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/context-service   js

Repository URL to install this package:

Version: 0.6.0 

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("web-console-core"),require("@angular/core"),require("@angular/common/http")):"function"==typeof define&&define.amd?define("@wa-motif-open-api/context-service",["exports","web-console-core","@angular/core","@angular/common/http"],t):t((e["wa-motif-open-api"]=e["wa-motif-open-api"]||{},e["wa-motif-open-api"]["context-service"]={}),e.WebConsoleCore,e.ng.core,e.ng.common.http)}(this,function(e,t,n,i){"use strict";function a(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}var o=(r.prototype.selectHeaderContentType=function(e){var t=this;if(0===e.length)return undefined;var n=e.find(function(e){return t.isJsonMime(e)});return n===undefined?e[0]:n},r.prototype.selectHeaderAccept=function(e){var t=this;if(0===e.length)return undefined;var n=e.find(function(e){return t.isJsonMime(e)});return n===undefined?e[0]:n},r.prototype.isJsonMime=function(e){var t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())},r);function r(e){void 0===e&&(e={}),this.apiKeys=e.apiKeys,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.withCredentials=e.withCredentials}var s=(c.prototype.canConsumeForm=function(e){var t,n;try{for(var i=a(e),o=i.next();!o.done;o=i.next())if("multipart/form-data"===o.value)return!0}catch(r){t={error:r}}finally{try{o&&!o.done&&(n=i["return"])&&n.call(i)}finally{if(t)throw t.error}}return!1},c.prototype.createAttribute=function(e,t,n){void 0===t&&(t="body"),void 0===n&&(n=!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 r=this.configuration.selectHeaderAccept(["application/json"]);r!==undefined&&(i=i.set("Accept",r));var a=this.configuration.selectHeaderContentType(["application/json"]);return a!==undefined&&(i=i.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/contextservice/attributes",e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})},c.prototype.deleteAttribute=function(e,t,n){if(void 0===t&&(t="body"),void 0===n&&(n=!1),null===e||e===undefined)throw new Error("Required parameter attribute was null or undefined when calling deleteAttribute.");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 r=this.configuration.selectHeaderAccept(["application/json"]);return r!==undefined&&(i=i.set("Accept",r)),this.httpClient["delete"](this.configuration.basePath+"/contextservice/attributes/"+encodeURIComponent(String(e)),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})},c.prototype.getAttribute=function(e,t,n){if(void 0===t&&(t="body"),void 0===n&&(n=!1),null===e||e===undefined)throw new Error("Required parameter attribute was null or undefined when calling getAttribute.");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 r=this.configuration.selectHeaderAccept(["application/json"]);return r!==undefined&&(i=i.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/contextservice/attributes/"+encodeURIComponent(String(e)),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})},c.prototype.getAttributes=function(e,t){void 0===e&&(e="body"),void 0===t&&(t=!1);var n=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var o=this.configuration.selectHeaderAccept(["application/json"]);return o!==undefined&&(n=n.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/contextservice/attributes",{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})},c.prototype.updateAttribute=function(e,t,n,i){if(void 0===n&&(n="body"),void 0===i&&(i=!1),null===e||e===undefined)throw new Error("Required parameter attribute was null or undefined when calling updateAttribute.");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 r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);a!==undefined&&(o=o.set("Accept",a));var s=this.configuration.selectHeaderContentType(["application/json"]);return s!==undefined&&(o=o.set("Content-Type",s)),this.httpClient.put(this.configuration.basePath+"/contextservice/attributes/"+encodeURIComponent(String(e)),t,{withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})},c.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],c.ctorParameters=function(){return[{type:i.HttpClient},{type:String,decorators:[{type:n.Optional},{type:n.Inject,args:[t.WC_API_BASE_PATH]}]},{type:o,decorators:[{type:n.Optional}]}]},c.ngInjectableDef=n.defineInjectable({factory:function(){return new c(n.inject(i.HttpClient),n.inject(t.WC_API_BASE_PATH,8),n.inject(o,8))},token:c,providedIn:"root"}),c);function c(e,t,n){this.httpClient=e,this.basePath="http://localhost:8080/rest/v2",this.defaultHeaders=new i.HttpHeaders,this.configuration=new o,n?(this.configuration=n,this.configuration.basePath=n.basePath||t||this.basePath):this.configuration.basePath=t||this.basePath}var u=(d.prototype.canConsumeForm=function(e){var t,n;try{for(var i=a(e),o=i.next();!o.done;o=i.next())if("multipart/form-data"===o.value)return!0}catch(r){t={error:r}}finally{try{o&&!o.done&&(n=i["return"])&&n.call(i)}finally{if(t)throw t.error}}return!1},d.prototype.createContext=function(e,t,n,i,o){if(void 0===i&&(i="body"),void 0===o&&(o=!1),null===e||e===undefined)throw new Error("Required parameter domain was null or undefined when calling createContext.");if(null===t||t===undefined)throw new Error("Required parameter application was null or undefined when calling createContext.");var r=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);s!==undefined&&(r=r.set("Accept",s));var c=this.configuration.selectHeaderContentType(["application/json"]);return c!==undefined&&(r=r.set("Content-Type",c)),this.httpClient.post(this.configuration.basePath+"/contextservice/domains/"+encodeURIComponent(String(e))+"/applications/"+encodeURIComponent(String(t))+"/contexts",n,{withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:o})},d.prototype.deleteContext=function(e,t,n,i,o){if(void 0===i&&(i="body"),void 0===o&&(o=!1),null===e||e===undefined)throw new Error("Required parameter domain was null or undefined when calling deleteContext.");if(null===t||t===undefined)throw new Error("Required parameter application was null or undefined when calling deleteContext.");if(null===n||n===undefined)throw new Error("Required parameter context was null or undefined when calling deleteContext.");var r=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return s!==undefined&&(r=r.set("Accept",s)),this.httpClient["delete"](this.configuration.basePath+"/contextservice/domains/"+encodeURIComponent(String(e))+"/applications/"+encodeURIComponent(String(t))+"/contexts/"+encodeURIComponent(String(n)),{withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:o})},d.prototype.disableContext=function(e,t,n,i,o){if(void 0===i&&(i="body"),void 0===o&&(o=!1),null===e||e===undefined)throw new Error("Required parameter domain was null or undefined when calling disableContext.");if(null===t||t===undefined)throw new Error("Required parameter application was null or undefined when calling disableContext.");if(null===n||n===undefined)throw new Error("Required parameter context was null or undefined when calling disableContext.");var r=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return s!==undefined&&(r=r.set("Accept",s)),this.httpClient["delete"](this.configuration.basePath+"/contextservice/domains/"+encodeURIComponent(String(e))+"/applications/"+encodeURIComponent(String(t))+"/contexts/"+encodeURIComponent(String(n))+"/enable",{withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:o})},d.prototype.enableContext=function(e,t,n,i,o){if(void 0===i&&(i="body"),void 0===o&&(o=!1),null===e||e===undefined)throw new Error("Required parameter domain was null or undefined when calling enableContext.");if(null===t||t===undefined)throw new Error("Required parameter application was null or undefined when calling enableContext.");if(null===n||n===undefined)throw new Error("Required parameter context was null or undefined when calling enableContext.");var r=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return s!==undefined&&(r=r.set("Accept",s)),this.httpClient.post(this.configuration.basePath+"/contextservice/domains/"+encodeURIComponent(String(e))+"/applications/"+encodeURIComponent(String(t))+"/contexts/"+encodeURIComponent(String(n))+"/enable",null,{withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:o})},d.prototype.getApplicationContexts=function(e,t,n,i){if(void 0===n&&(n="body"),void 0===i&&(i=!1),null===e||e===undefined)throw new Error("Required parameter domain was null or undefined when calling getApplicationContexts.");if(null===t||t===undefined)throw new Error("Required parameter application was null or undefined when calling getApplicationContexts.");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 r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);return a!==undefined&&(o=o.set("Accept",a)),this.httpClient.get(this.configuration.basePath+"/contextservice/domains/"+encodeURIComponent(String(e))+"/applications/"+encodeURIComponent(String(t))+"/contexts",{withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})},d.prototype.getContext=function(e,t,n,i,o){if(void 0===i&&(i="body"),void 0===o&&(o=!1),null===e||e===undefined)throw new Error("Required parameter domain was null or undefined when calling getContext.");if(null===t||t===undefined)throw new Error("Required parameter application was null or undefined when calling getContext.");if(null===n||n===undefined)throw new Error("Required parameter context was null or undefined when calling getContext.");var r=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return s!==undefined&&(r=r.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/contextservice/domains/"+encodeURIComponent(String(e))+"/applications/"+encodeURIComponent(String(t))+"/contexts/"+encodeURIComponent(String(n)),{withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:o})},d.prototype.getContexts=function(e,t){void 0===e&&(e="body"),void 0===t&&(t=!1);var n=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var o=this.configuration.selectHeaderAccept(["application/json"]);return o!==undefined&&(n=n.set("Accept",o)),this.httpClient.get(this.configuration.basePath+"/contextservice/contexts",{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})},d.prototype.updateContext=function(e,t,n,i,o,r){if(void 0===o&&(o="body"),void 0===r&&(r=!1),null===e||e===undefined)throw new Error("Required parameter domain was null or undefined when calling updateContext.");if(null===t||t===undefined)throw new Error("Required parameter application was null or undefined when calling updateContext.");if(null===n||n===undefined)throw new Error("Required parameter context was null or undefined when calling updateContext.");var a=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);c!==undefined&&(a=a.set("Accept",c));var u=this.configuration.selectHeaderContentType(["application/json"]);return u!==undefined&&(a=a.set("Content-Type",u)),this.httpClient.put(this.configuration.basePath+"/contextservice/domains/"+encodeURIComponent(String(e))+"/applications/"+encodeURIComponent(String(t))+"/contexts/"+encodeURIComponent(String(n)),i,{withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:r})},d.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],d.ctorParameters=function(){return[{type:i.HttpClient},{type:String,decorators:[{type:n.Optional},{type:n.Inject,args:[t.WC_API_BASE_PATH]}]},{type:o,decorators:[{type:n.Optional}]}]},d.ngInjectableDef=n.defineInjectable({factory:function(){return new d(n.inject(i.HttpClient),n.inject(t.WC_API_BASE_PATH,8),n.inject(o,8))},token:d,providedIn:"root"}),d);function d(e,t,n){this.httpClient=e,this.basePath="http://localhost:8080/rest/v2",this.defaultHeaders=new i.HttpHeaders,this.configuration=new o,n?(this.configuration=n,this.configuration.basePath=n.basePath||t||this.basePath):this.configuration.basePath=t||this.basePath}var l=(f.prototype.canConsumeForm=function(e){var t,n;try{for(var i=a(e),o=i.next();!o.done;o=i.next())if("multipart/form-data"===o.value)return!0}catch(r){t={error:r}}finally{try{o&&!o.done&&(n=i["return"])&&n.call(i)}finally{if(t)throw t.error}}return!1},f.prototype.createValue=function(e,t,n,i,o,r){if(void 0===o&&(o="body"),void 0===r&&(r=!1),null===e||e===undefined)throw new Error("Required parameter domain was null or undefined when calling createValue.");if(null===t||t===undefined)throw new Error("Required parameter application was null or undefined when calling createValue.");if(null===n||n===undefined)throw new Error("Required parameter context was null or undefined when calling createValue.");var a=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);c!==undefined&&(a=a.set("Accept",c));var u=this.configuration.selectHeaderContentType(["application/json"]);return u!==undefined&&(a=a.set("Content-Type",u)),this.httpClient.post(this.configuration.basePath+"/contextservice/domains/"+encodeURIComponent(String(e))+"/applications/"+encodeURIComponent(String(t))+"/contexts/"+encodeURIComponent(String(n))+"/attributes",i,{withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:r})},f.prototype.deleteValue=function(e,t,n,i,o,r){if(void 0===o&&(o="body"),void 0===r&&(r=!1),null===e||e===undefined)throw new Error("Required parameter domain was null or undefined when calling deleteValue.");if(null===t||t===undefined)throw new Error("Required parameter application was null or undefined when calling deleteValue.");if(null===n||n===undefined)throw new Error("Required parameter context was null or undefined when calling deleteValue.");if(null===i||i===undefined)throw new Error("Required parameter attribute was null or undefined when calling deleteValue.");var a=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return c!==undefined&&(a=a.set("Accept",c)),this.httpClient["delete"](this.configuration.basePath+"/contextservice/domains/"+encodeURIComponent(String(e))+"/applications/"+encodeURIComponent(String(t))+"/contexts/"+encodeURIComponent(String(n))+"/attributes/"+encodeURIComponent(String(i)),{withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:r})},f.prototype.getValue=function(e,t,n,i,o,r){if(void 0===o&&(o="body"),void 0===r&&(r=!1),null===e||e===undefined)throw new Error("Required parameter domain was null or undefined when calling getValue.");if(null===t||t===undefined)throw new Error("Required parameter application was null or undefined when calling getValue.");if(null===n||n===undefined)throw new Error("Required parameter context was null or undefined when calling getValue.");if(null===i||i===undefined)throw new Error("Required parameter attribute was null or undefined when calling getValue.");var a=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return c!==undefined&&(a=a.set("Accept",c)),this.httpClient.get(this.configuration.basePath+"/contextservice/domains/"+encodeURIComponent(String(e))+"/applications/"+encodeURIComponent(String(t))+"/contexts/"+encodeURIComponent(String(n))+"/attributes/"+encodeURIComponent(String(i)),{withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:r})},f.prototype.getValues=function(e,t,n,i,o){if(void 0===i&&(i="body"),void 0===o&&(o=!1),null===e||e===undefined)throw new Error("Required parameter domain was null or undefined when calling getValues.");if(null===t||t===undefined)throw new Error("Required parameter application was null or undefined when calling getValues.");if(null===n||n===undefined)throw new Error("Required parameter context was null or undefined when calling getValues.");var r=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return s!==undefined&&(r=r.set("Accept",s)),this.httpClient.get(this.configuration.basePath+"/contextservice/domains/"+encodeURIComponent(String(e))+"/applications/"+encodeURIComponent(String(t))+"/contexts/"+encodeURIComponent(String(n))+"/attributes",{withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:o})},f.prototype.updateValue=function(e,t,n,i,o,r,a){if(void 0===r&&(r="body"),void 0===a&&(a=!1),null===e||e===undefined)throw new Error("Required parameter domain was null or undefined when calling updateValue.");if(null===t||t===undefined)throw new Error("Required parameter application was null or undefined when calling updateValue.");if(null===n||n===undefined)throw new Error("Required parameter context was null or undefined when calling updateValue.");if(null===i||i===undefined)throw new Error("Required parameter attribute was null or undefined when calling updateValue.");var s=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);u!==undefined&&(s=s.set("Accept",u));var d=this.configuration.selectHeaderContentType(["application/json"]);return d!==undefined&&(s=s.set("Content-Type",d)),this.httpClient.put(this.configuration.basePath+"/contextservice/domains/"+encodeURIComponent(String(e))+"/applications/"+encodeURIComponent(String(t))+"/contexts/"+encodeURIComponent(String(n))+"/attributes/"+encodeURIComponent(String(i)),o,{withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})},f.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],f.ctorParameters=function(){return[{type:i.HttpClient},{type:String,decorators:[{type:n.Optional},{type:n.Inject,args:[t.WC_API_BASE_PATH]}]},{type:o,decorators:[{type:n.Optional}]}]},f.ngInjectableDef=n.defineInjectable({factory:function(){return new f(n.inject(i.HttpClient),n.inject(t.WC_API_BASE_PATH,8),n.inject(o,8))},token:f,providedIn:"root"}),f);function f(e,t,n){this.httpClient=e,this.basePath="http://localhost:8080/rest/v2",this.defaultHeaders=new i.HttpHeaders,this.configuration=new o,n?(this.configuration=n,this.configuration.basePath=n.basePath||t||this.basePath):this.configuration.basePath=t||this.basePath}var h=[s,u,l],p=new n.InjectionToken("basePath"),g=(w.forRoot=function(e){return{ngModule:w,providers:[{provide:o,useFactory:e}]}},w.decorators=[{type:n.NgModule,args:[{imports:[],declarations:[],exports:[],providers:[s,u,l]}]}],w.ctorParameters=function(){return[{type:w,decorators:[{type:n.Optional},{type:n.SkipSelf}]},{type:i.HttpClient,decorators:[{type:n.Optional}]}]},w);function w(e,t){if(e)throw new Error("ContextServiceModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}e.APIS=h,e.AttributesService=s,e.ContextsService=u,e.ValuesService=l,e.BASE_PATH=p,e.COLLECTION_FORMATS={csv:",",tsv:"   ",ssv:" ",pipes:"|"},e.Configuration=o,e.ContextServiceModule=g,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=wa-motif-open-api-context-service.umd.min.js.map