Repository URL to install this package:
!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/datarecords-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"]["datarecords-service"]={}),e.WebConsoleCore,e.ng.core,e.ng.common.http)}(this,function(e,t,n,g){"use strict";var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var r,y=(function h(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(i,r=g.HttpUrlEncodingCodec),i.prototype.encodeKey=function(e){return(e=r.prototype.encodeKey.call(this,e)).replace(/\+/gi,"%2B")},i.prototype.encodeValue=function(e){return(e=r.prototype.encodeValue.call(this,e)).replace(/\+/gi,"%2B")},i);function i(){return null!==r&&r.apply(this,arguments)||this}var a=(s.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},s.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},s.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())},s);function s(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 c=(u.prototype.canConsumeForm=function(e){var t,n;try{for(var o=function i(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}}}}(e),r=o.next();!r.done;r=o.next())if("multipart/form-data"===r.value)return!0}catch(a){t={error:a}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(t)throw t.error}}return!1},u.prototype.exportDatarecords=function(e,t,n,o,r,i,a,s,c,u,d){if(void 0===u&&(u="body"),void 0===d&&(d=!1),null===e||e===undefined)throw new Error("Required parameter type was null or undefined when calling exportDatarecords.");var p=new g.HttpParams({encoder:new y});t!==undefined&&null!==t&&(p=p.set("hashedSession",t)),n!==undefined&&null!==n&&(p=p.set("usersId",n)),o&&o.forEach(function(e){p=p.append("operations",e)}),r!==undefined&&null!==r&&(p=p.set("fromDate",r.toISOString())),i!==undefined&&null!==i&&(p=p.set("toDate",i.toISOString())),a!==undefined&&null!==a&&(p=p.set("resultCode",a)),s!==undefined&&null!==s&&(p=p.set("anyError",s)),c!==undefined&&null!==c&&(p=p.set("singleCsv",c));var f=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(f=f.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;f=f.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/zip","application/json"]);return h!==undefined&&(f=f.set("Accept",h)),this.httpClient.get(this.configuration.basePath+"/datarecords/types/"+encodeURIComponent(String(e))+"/export",{params:p,responseType:"blob",withCredentials:this.configuration.withCredentials,headers:f,observe:u,reportProgress:d})},u.prototype.getDatarecords=function(e,t,n,o,r,i,a,s){if(void 0===a&&(a="body"),void 0===s&&(s=!1),null===e||e===undefined)throw new Error("Required parameter type was null or undefined when calling getDatarecords.");var c=new g.HttpParams({encoder:new y});t!==undefined&&null!==t&&(c=c.set("fromDate",t.toISOString())),n!==undefined&&null!==n&&(c=c.set("toDate",n.toISOString())),o!==undefined&&null!==o&&(c=c.set("page",o)),r!==undefined&&null!==r&&(c=c.set("page_size",r)),i!==undefined&&null!==i&&(c=c.set("sort",i));var u=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var d="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+d)}var p=this.configuration.selectHeaderAccept(["application/json"]);return p!==undefined&&(u=u.set("Accept",p)),this.httpClient.get(this.configuration.basePath+"/datarecords/types/"+encodeURIComponent(String(e)),{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:a,reportProgress:s})},u.prototype.getDatarecordsTypes=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 o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+o)}var r=this.configuration.selectHeaderAccept(["application/json"]);return r!==undefined&&(n=n.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/datarecords/types",{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})},u.prototype.verifyDatarecordsExport=function(e,t,n,o,r,i,a,s,c,u,d){if(void 0===u&&(u="body"),void 0===d&&(d=!1),null===e||e===undefined)throw new Error("Required parameter type was null or undefined when calling verifyDatarecordsExport.");var p=new g.HttpParams({encoder:new y});t!==undefined&&null!==t&&(p=p.set("hashedSession",t)),n!==undefined&&null!==n&&(p=p.set("usersId",n)),o&&o.forEach(function(e){p=p.append("operations",e)}),r!==undefined&&null!==r&&(p=p.set("fromDate",r.toISOString())),i!==undefined&&null!==i&&(p=p.set("toDate",i.toISOString())),a!==undefined&&null!==a&&(p=p.set("resultCode",a)),s!==undefined&&null!==s&&(p=p.set("anyError",s)),c!==undefined&&null!==c&&(p=p.set("singleCsv",c));var f=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(f=f.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;f=f.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return h!==undefined&&(f=f.set("Accept",h)),this.httpClient.get(this.configuration.basePath+"/datarecords/types/"+encodeURIComponent(String(e))+"/export/verify",{params:p,withCredentials:this.configuration.withCredentials,headers:f,observe:u,reportProgress:d})},u.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],u.ctorParameters=function(){return[{type:g.HttpClient},{type:String,decorators:[{type:n.Optional},{type:n.Inject,args:[t.WC_API_BASE_PATH]}]},{type:a,decorators:[{type:n.Optional}]}]},u.ngInjectableDef=n.defineInjectable({factory:function(){return new u(n.inject(g.HttpClient),n.inject(t.WC_API_BASE_PATH,8),n.inject(a,8))},token:u,providedIn:"root"}),u);function u(e,t,n){this.httpClient=e,this.basePath="http://localhost:8080/rest/v2",this.defaultHeaders=new g.HttpHeaders,this.configuration=new a,n?(this.configuration=n,this.configuration.basePath=n.basePath||t||this.basePath):this.configuration.basePath=t||this.basePath}var d=[c],p=new n.InjectionToken("basePath"),f=(l.forRoot=function(e){return{ngModule:l,providers:[{provide:a,useFactory:e}]}},l.decorators=[{type:n.NgModule,args:[{imports:[],declarations:[],exports:[],providers:[c]}]}],l.ctorParameters=function(){return[{type:l,decorators:[{type:n.Optional},{type:n.SkipSelf}]},{type:g.HttpClient,decorators:[{type:n.Optional}]}]},l);function l(e,t){if(e)throw new Error("DatarecordsServiceModule 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=d,e.DatarecordsService=c,e.BASE_PATH=p,e.COLLECTION_FORMATS={csv:",",tsv:" ",ssv:" ",pipes:"|"},e.Configuration=a,e.DatarecordsServiceModule=f,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=wa-motif-open-api-datarecords-service.umd.min.js.map