@aurigma/ng-rendering-service-client
Advanced tools
Comparing version
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"CreateApiClientConfiguration":{"__symbolic":"function"},"RenderingServiceModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":1},"arguments":[{"declarations":[],"imports":[],"exports":[]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["token","apiUrl","apiKey"],"defaults":[null,null,"ApiKey"],"value":{"ngModule":{"__symbolic":"reference","name":"RenderingServiceModule"},"providers":[{"provide":{"__symbolic":"reference","name":"API_BASE_URL"},"useValue":{"__symbolic":"reference","name":"apiUrl"}},{"provide":{"__symbolic":"reference","name":"ApiClientConfiguration"},"useFactory":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"CreateApiClientConfiguration"},"member":"bind"},"arguments":[{"__symbolic":"error","message":"Expression form not supported","line":29,"character":56,"module":"./lib/rendering-service.module"},{"__symbolic":"reference","name":"token"},{"__symbolic":"reference","name":"apiUrl"},{"__symbolic":"reference","name":"apiKey"}]}}]}}}},"API_BASE_URL":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":14,"character":32},"arguments":["API_BASE_URL"]},"ApiClientConfiguration":{"__symbolic":"class","members":{"getAuthorizationToken":[{"__symbolic":"method"}],"setAuthorizationToken":[{"__symbolic":"method"}]}},"ApiClientBase":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ApiClientConfiguration"}]}],"transformOptions":[{"__symbolic":"method"}],"getBaseUrl":[{"__symbolic":"method"}],"transformResult":[{"__symbolic":"method"}]}},"IBuildInfoApiClient":{"__symbolic":"interface"},"BuildInfoApiClient":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ApiClientBase"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":63,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":71,"character":17},"arguments":[{"__symbolic":"reference","name":"ApiClientConfiguration"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":71,"character":88},"arguments":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":71,"character":95}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":71,"character":126}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":71,"character":138},"arguments":[{"__symbolic":"reference","name":"API_BASE_URL"}]}]],"parameters":[{"__symbolic":"reference","name":"ApiClientConfiguration"},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":71,"character":113},{"__symbolic":"reference","name":"string"}]}],"headInfo":[{"__symbolic":"method"}],"processHeadInfo":[{"__symbolic":"method"}],"getInfo":[{"__symbolic":"method"}],"processGetInfo":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"IRenderingJobsApiClient":{"__symbolic":"interface"},"RenderingJobsApiClient":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ApiClientBase"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":246,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":254,"character":17},"arguments":[{"__symbolic":"reference","name":"ApiClientConfiguration"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":254,"character":88},"arguments":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":71,"character":113}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":254,"character":126}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":254,"character":138},"arguments":[{"__symbolic":"reference","name":"API_BASE_URL"}]}]],"parameters":[{"__symbolic":"reference","name":"ApiClientConfiguration"},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":71,"character":113},{"__symbolic":"reference","name":"string"}]}],"getAll":[{"__symbolic":"method"}],"processGetAll":[{"__symbolic":"method"}],"create":[{"__symbolic":"method"}],"processCreate":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"processGet":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"processDelete":[{"__symbolic":"method"}],"discard":[{"__symbolic":"method"}],"processDiscard":[{"__symbolic":"method"}],"recover":[{"__symbolic":"method"}],"processRecover":[{"__symbolic":"method"}],"restart":[{"__symbolic":"method"}],"processRestart":[{"__symbolic":"method"}],"start":[{"__symbolic":"method"}],"processStart":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"BuildInfoModel":{"__symbolic":"interface"},"RenderingJobStatus":{"New":"New","InProgress":"InProgress","Completed":"Completed","Failed":"Failed","Recovered":"Recovered","Discarded":"Discarded"},"ProjectItemInfo":{"__symbolic":"interface"},"ProjectInfo":{"__symbolic":"interface"},"RenderingTaskStatus":{"New":"New","InProgress":"InProgress","Completed":"Completed","Failed":"Failed","RequestFailed":"RequestFailed","Pending":"Pending","Skipped":"Skipped"},"RenderingTaskDto":{"__symbolic":"interface"},"RenderingJobDto":{"__symbolic":"interface"},"PagedOfRenderingJobDto":{"__symbolic":"interface"},"CreateRenderingTaskDto":{"__symbolic":"interface"},"CreateRenderingJobDto":{"__symbolic":"interface"},"ProblemDetails":{"__symbolic":"interface"},"ApiException":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"Error"},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Expression form not supported","line":1054,"character":76,"module":"./lib/rendering-service-api-client"},{"__symbolic":"reference","name":"any"}]}]},"statics":{"isApiException":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"obj"},"member":"isApiException"},"right":true}}}}},"origins":{"CreateApiClientConfiguration":"./lib/rendering-service.module","RenderingServiceModule":"./lib/rendering-service.module","API_BASE_URL":"./lib/rendering-service-api-client","ApiClientConfiguration":"./lib/rendering-service-api-client","ApiClientBase":"./lib/rendering-service-api-client","IBuildInfoApiClient":"./lib/rendering-service-api-client","BuildInfoApiClient":"./lib/rendering-service-api-client","IRenderingJobsApiClient":"./lib/rendering-service-api-client","RenderingJobsApiClient":"./lib/rendering-service-api-client","BuildInfoModel":"./lib/rendering-service-api-client","RenderingJobStatus":"./lib/rendering-service-api-client","ProjectItemInfo":"./lib/rendering-service-api-client","ProjectInfo":"./lib/rendering-service-api-client","RenderingTaskStatus":"./lib/rendering-service-api-client","RenderingTaskDto":"./lib/rendering-service-api-client","RenderingJobDto":"./lib/rendering-service-api-client","PagedOfRenderingJobDto":"./lib/rendering-service-api-client","CreateRenderingTaskDto":"./lib/rendering-service-api-client","CreateRenderingJobDto":"./lib/rendering-service-api-client","ProblemDetails":"./lib/rendering-service-api-client","ApiException":"./lib/rendering-service-api-client"},"importAs":"@aurigma/ng-rendering-service-client"} | ||
{"__symbolic":"module","version":4,"metadata":{"CreateApiClientConfiguration":{"__symbolic":"function"},"RenderingServiceModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":1},"arguments":[{"declarations":[],"imports":[],"exports":[]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["token","apiUrl","apiKey"],"defaults":[null,null,"ApiKey"],"value":{"ngModule":{"__symbolic":"reference","name":"RenderingServiceModule"},"providers":[{"provide":{"__symbolic":"reference","name":"API_BASE_URL"},"useValue":{"__symbolic":"reference","name":"apiUrl"}},{"provide":{"__symbolic":"reference","name":"ApiClientConfiguration"},"useFactory":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"CreateApiClientConfiguration"},"member":"bind"},"arguments":[{"__symbolic":"error","message":"Expression form not supported","line":29,"character":56,"module":"./lib/rendering-service.module"},{"__symbolic":"reference","name":"token"},{"__symbolic":"reference","name":"apiUrl"},{"__symbolic":"reference","name":"apiKey"}]}}]}}}},"API_BASE_URL":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":14,"character":32},"arguments":["API_BASE_URL"]},"ApiClientConfiguration":{"__symbolic":"class","members":{"getAuthorizationToken":[{"__symbolic":"method"}],"setAuthorizationToken":[{"__symbolic":"method"}]}},"ApiClientBase":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ApiClientConfiguration"}]}],"transformOptions":[{"__symbolic":"method"}],"getBaseUrl":[{"__symbolic":"method"}],"transformResult":[{"__symbolic":"method"}]}},"IBuildInfoApiClient":{"__symbolic":"interface"},"BuildInfoApiClient":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ApiClientBase"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":63,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":71,"character":17},"arguments":[{"__symbolic":"reference","name":"ApiClientConfiguration"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":71,"character":88},"arguments":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":71,"character":95}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":71,"character":126}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":71,"character":138},"arguments":[{"__symbolic":"reference","name":"API_BASE_URL"}]}]],"parameters":[{"__symbolic":"reference","name":"ApiClientConfiguration"},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":71,"character":113},{"__symbolic":"reference","name":"string"}]}],"headInfo":[{"__symbolic":"method"}],"processHeadInfo":[{"__symbolic":"method"}],"getInfo":[{"__symbolic":"method"}],"processGetInfo":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"IRenderingJobsApiClient":{"__symbolic":"interface"},"RenderingJobsApiClient":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ApiClientBase"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":246,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":254,"character":17},"arguments":[{"__symbolic":"reference","name":"ApiClientConfiguration"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":254,"character":88},"arguments":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":71,"character":113}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":254,"character":126}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":254,"character":138},"arguments":[{"__symbolic":"reference","name":"API_BASE_URL"}]}]],"parameters":[{"__symbolic":"reference","name":"ApiClientConfiguration"},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":71,"character":113},{"__symbolic":"reference","name":"string"}]}],"getAll":[{"__symbolic":"method"}],"processGetAll":[{"__symbolic":"method"}],"create":[{"__symbolic":"method"}],"processCreate":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"processGet":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"processDelete":[{"__symbolic":"method"}],"discard":[{"__symbolic":"method"}],"processDiscard":[{"__symbolic":"method"}],"recover":[{"__symbolic":"method"}],"processRecover":[{"__symbolic":"method"}],"restart":[{"__symbolic":"method"}],"processRestart":[{"__symbolic":"method"}],"start":[{"__symbolic":"method"}],"processStart":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"ITenantsApiClient":{"__symbolic":"interface"},"TenantsApiClient":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ApiClientBase"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":914,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":922,"character":17},"arguments":[{"__symbolic":"reference","name":"ApiClientConfiguration"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":922,"character":88},"arguments":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":71,"character":113}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":922,"character":126}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":922,"character":138},"arguments":[{"__symbolic":"reference","name":"API_BASE_URL"}]}]],"parameters":[{"__symbolic":"reference","name":"ApiClientConfiguration"},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":71,"character":113},{"__symbolic":"reference","name":"string"}]}],"getAll":[{"__symbolic":"method"}],"processGetAll":[{"__symbolic":"method"}],"create":[{"__symbolic":"method"}],"processCreate":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"processGet":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"processUpdate":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"processDelete":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"BuildInfoModel":{"__symbolic":"interface"},"ConflictType":{"Name":"Name"},"CreateRenderingJobDto":{"__symbolic":"interface"},"CreateRenderingTaskDto":{"__symbolic":"interface"},"CreateTenantDto":{"__symbolic":"interface"},"NameConflictDto":{"__symbolic":"interface"},"PagedOfRenderingJobDto":{"__symbolic":"interface"},"PagedOfTenantDto":{"__symbolic":"interface"},"ProblemDetails":{"__symbolic":"interface"},"ProjectInfo":{"__symbolic":"interface"},"ProjectItemInfo":{"__symbolic":"interface"},"RenderingJobDto":{"__symbolic":"interface"},"RenderingJobStatus":{"New":"New","InProgress":"InProgress","Completed":"Completed","Failed":"Failed","Recovered":"Recovered","Discarded":"Discarded"},"RenderingTaskDto":{"__symbolic":"interface"},"RenderingTaskStatus":{"New":"New","InProgress":"InProgress","Completed":"Completed","Failed":"Failed","RequestFailed":"RequestFailed","Pending":"Pending","Skipped":"Skipped"},"TenantDto":{"__symbolic":"interface"},"UpdateTenantDto":{"__symbolic":"interface"},"ApiException":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"Error"},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Expression form not supported","line":1524,"character":76,"module":"./lib/rendering-service-api-client"},{"__symbolic":"reference","name":"any"}]}]},"statics":{"isApiException":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"obj"},"member":"isApiException"},"right":true}}}}},"origins":{"CreateApiClientConfiguration":"./lib/rendering-service.module","RenderingServiceModule":"./lib/rendering-service.module","API_BASE_URL":"./lib/rendering-service-api-client","ApiClientConfiguration":"./lib/rendering-service-api-client","ApiClientBase":"./lib/rendering-service-api-client","IBuildInfoApiClient":"./lib/rendering-service-api-client","BuildInfoApiClient":"./lib/rendering-service-api-client","IRenderingJobsApiClient":"./lib/rendering-service-api-client","RenderingJobsApiClient":"./lib/rendering-service-api-client","ITenantsApiClient":"./lib/rendering-service-api-client","TenantsApiClient":"./lib/rendering-service-api-client","BuildInfoModel":"./lib/rendering-service-api-client","ConflictType":"./lib/rendering-service-api-client","CreateRenderingJobDto":"./lib/rendering-service-api-client","CreateRenderingTaskDto":"./lib/rendering-service-api-client","CreateTenantDto":"./lib/rendering-service-api-client","NameConflictDto":"./lib/rendering-service-api-client","PagedOfRenderingJobDto":"./lib/rendering-service-api-client","PagedOfTenantDto":"./lib/rendering-service-api-client","ProblemDetails":"./lib/rendering-service-api-client","ProjectInfo":"./lib/rendering-service-api-client","ProjectItemInfo":"./lib/rendering-service-api-client","RenderingJobDto":"./lib/rendering-service-api-client","RenderingJobStatus":"./lib/rendering-service-api-client","RenderingTaskDto":"./lib/rendering-service-api-client","RenderingTaskStatus":"./lib/rendering-service-api-client","TenantDto":"./lib/rendering-service-api-client","UpdateTenantDto":"./lib/rendering-service-api-client","ApiException":"./lib/rendering-service-api-client"},"importAs":"@aurigma/ng-rendering-service-client"} |
@@ -15,3 +15,3 @@ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@angular/core"),require("rxjs/operators"),require("rxjs"),require("@angular/common/http")):"function"==typeof define&&define.amd?define("@aurigma/ng-rendering-service-client",["exports","@angular/core","rxjs/operators","rxjs","@angular/common/http"],r):r(((e="undefined"!=typeof globalThis?globalThis:e||self).aurigma=e.aurigma||{},e.aurigma["ng-rendering-service-client"]={}),e.ng.core,e.rxjs.operators,e.rxjs,e.ng.common.http)}(this,(function(e,r,t,n,o){"use strict"; | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var i=function(e,r){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])})(e,r)};function a(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=e}i(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}function s(e,r,t,n){return new(t||(t=Promise))((function(o,i){function a(e){try{p(n.next(e))}catch(e){i(e)}}function s(e){try{p(n.throw(e))}catch(e){i(e)}}function p(e){var r;e.done?o(e.value):(r=e.value,r instanceof t?r:new t((function(e){e(r)}))).then(a,s)}p((n=n.apply(e,r||[])).next())}))}function p(e,r){var t,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=r.call(e,a)}catch(e){i=[6,e],n=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}Object.create;function u(e){var r="function"==typeof Symbol&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;var c=new r.InjectionToken("API_BASE_URL"),l=function(){function e(){this.apiKey="ApiKey",this.authorizationToken=null}return e.prototype.getAuthorizationToken=function(){return s(this,void 0,void 0,(function(){return p(this,(function(e){return[2,this.authorizationToken]}))}))},e.prototype.setAuthorizationToken=function(e){this.authorizationToken=e},e}(),f=function(){function e(e){this.configuration=e}return e.prototype.transformOptions=function(e){return s(this,void 0,void 0,(function(){var r;return p(this,(function(t){switch(t.label){case 0:return[4,this.configuration.getAuthorizationToken()];case 1:return r=t.sent(),e.headers=null!=r?e.headers.append("authorization","Bearer "+r):e.headers.append("X-API-Key",this.configuration.apiKey),[2,e]}}))}))},e.prototype.getBaseUrl=function(e){return this.configuration.apiUrl.endsWith("/")?this.configuration.apiUrl.slice(0,-1):this.configuration.apiUrl},e.prototype.transformResult=function(e,r,t){return t(r)},e}(),d=function(e){function r(r,t,n){var o=e.call(this,r)||this;return o.jsonParseReviver=void 0,o.http=t,o.baseUrl=null!=n?n:o.getBaseUrl(""),o}return a(r,e),r.prototype.headInfo=function(){var e=this,r=this.baseUrl+"/api/rendering/v1/info";r=r.replace(/[?&]$/,"");var i={observe:"response",responseType:"blob",headers:new o.HttpHeaders({})};return n.from(this.transformOptions(i)).pipe(t.mergeMap((function(t){return e.http.request("head",r,t)}))).pipe(t.mergeMap((function(t){return e.transformResult(r,t,(function(r){return e.processHeadInfo(r)}))}))).pipe(t.catchError((function(t){if(!(t instanceof o.HttpResponseBase))return n.throwError(t);try{return e.transformResult(r,t,(function(r){return e.processHeadInfo(r)}))}catch(e){return n.throwError(e)}})))},r.prototype.processHeadInfo=function(e){var r,i,a=e.status,s=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,p={};if(e.headers)try{for(var c=u(e.headers.keys()),l=c.next();!l.done;l=c.next()){var f=l.value;p[f]=e.headers.get(f)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return 200===a?b(s).pipe(t.mergeMap((function(e){return n.of(null)}))):200!==a&&204!==a?b(s).pipe(t.mergeMap((function(e){return g("An unexpected server error occurred.",a,e,p)}))):n.of(null)},r.prototype.getInfo=function(){var e=this,r=this.baseUrl+"/api/rendering/v1/info";r=r.replace(/[?&]$/,"");var i={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(i)).pipe(t.mergeMap((function(t){return e.http.request("get",r,t)}))).pipe(t.mergeMap((function(t){return e.transformResult(r,t,(function(r){return e.processGetInfo(r)}))}))).pipe(t.catchError((function(t){if(!(t instanceof o.HttpResponseBase))return n.throwError(t);try{return e.transformResult(r,t,(function(r){return e.processGetInfo(r)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetInfo=function(e){var r,i,a=this,s=e.status,p=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===s?b(p).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):200!==s&&204!==s?b(p).pipe(t.mergeMap((function(e){return g("An unexpected server error occurred.",s,e,c)}))):n.of(null)},r}(f);d.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new d(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:d,providedIn:"root"}),d.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],d.ctorParameters=function(){return[{type:l,decorators:[{type:r.Inject,args:[l]}]},{type:o.HttpClient,decorators:[{type:r.Inject,args:[o.HttpClient]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[c]}]}]};var h,v,m=function(e){function r(r,t,n){var o=e.call(this,r)||this;return o.jsonParseReviver=void 0,o.http=t,o.baseUrl=null!=n?n:o.getBaseUrl(""),o}return a(r,e),r.prototype.getAll=function(e,r,i,a,s,p,u){var c=this,l=this.baseUrl+"/api/rendering/v1/jobs?";if(null!=e&&(l+="status="+encodeURIComponent(""+e)+"&"),null!=r&&(l+="projectId="+encodeURIComponent(""+r)+"&"),null!=i&&(l+="projectOrderId="+encodeURIComponent(""+i)+"&"),null!=a&&(l+="skip="+encodeURIComponent(""+a)+"&"),null!=s&&(l+="take="+encodeURIComponent(""+s)+"&"),null!=p&&(l+="sorting="+encodeURIComponent(""+p)+"&"),null===u)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==u&&(l+="tenantId="+encodeURIComponent(""+u)+"&"),l=l.replace(/[?&]$/,"");var f={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(f)).pipe(t.mergeMap((function(e){return c.http.request("get",l,e)}))).pipe(t.mergeMap((function(e){return c.transformResult(l,e,(function(e){return c.processGetAll(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return c.transformResult(l,e,(function(e){return c.processGetAll(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetAll=function(e){var r,i,a=this,s=e.status,p=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===s?b(p).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):401===s?b(p).pipe(t.mergeMap((function(e){return g("Unauthorized",s,e,c)}))):403===s?b(p).pipe(t.mergeMap((function(e){return g("Forbidden",s,e,c)}))):200!==s&&204!==s?b(p).pipe(t.mergeMap((function(e){return g("An unexpected server error occurred.",s,e,c)}))):n.of(null)},r.prototype.create=function(e,r,i){var a=this,s=this.baseUrl+"/api/rendering/v1/jobs?";if(null===e)throw new Error("The parameter 'startImmediately' cannot be null.");if(void 0!==e&&(s+="startImmediately="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(s+="tenantId="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(i),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processCreate(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processCreate(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processCreate=function(e){var r,i,a=this,s=e.status,p=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 201===s?b(p).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):401===s?b(p).pipe(t.mergeMap((function(e){return g("Unauthorized",s,e,c)}))):403===s?b(p).pipe(t.mergeMap((function(e){return g("Forbidden",s,e,c)}))):200!==s&&204!==s?b(p).pipe(t.mergeMap((function(e){return g("An unexpected server error occurred.",s,e,c)}))):n.of(null)},r.prototype.get=function(e,r){var i=this,a=this.baseUrl+"/api/rendering/v1/jobs/{id}?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(a=a.replace("{id}",encodeURIComponent(""+e)),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(a+="tenantId="+encodeURIComponent(""+r)+"&"),a=a.replace(/[?&]$/,"");var s={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(s)).pipe(t.mergeMap((function(e){return i.http.request("get",a,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(a,e,(function(e){return i.processGet(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(a,e,(function(e){return i.processGet(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGet=function(e){var r,i,a=this,s=e.status,p=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===s?b(p).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):404===s?b(p).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),g("Not Found",s,e,c,r)}))):401===s?b(p).pipe(t.mergeMap((function(e){return g("Unauthorized",s,e,c)}))):403===s?b(p).pipe(t.mergeMap((function(e){return g("Forbidden",s,e,c)}))):200!==s&&204!==s?b(p).pipe(t.mergeMap((function(e){return g("An unexpected server error occurred.",s,e,c)}))):n.of(null)},r.prototype.delete=function(e,r){var i=this,a=this.baseUrl+"/api/rendering/v1/jobs/{id}?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(a=a.replace("{id}",encodeURIComponent(""+e)),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(a+="tenantId="+encodeURIComponent(""+r)+"&"),a=a.replace(/[?&]$/,"");var s={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(s)).pipe(t.mergeMap((function(e){return i.http.request("delete",a,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(a,e,(function(e){return i.processDelete(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(a,e,(function(e){return i.processDelete(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processDelete=function(e){var r,i,a=this,s=e.status,p=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===s?b(p).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):404===s?b(p).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),g("Not Found",s,e,c,r)}))):401===s?b(p).pipe(t.mergeMap((function(e){return g("Unauthorized",s,e,c)}))):403===s?b(p).pipe(t.mergeMap((function(e){return g("Forbidden",s,e,c)}))):200!==s&&204!==s?b(p).pipe(t.mergeMap((function(e){return g("An unexpected server error occurred.",s,e,c)}))):n.of(null)},r.prototype.discard=function(e,r){var i=this,a=this.baseUrl+"/api/rendering/v1/jobs/{id}/discard?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(a=a.replace("{id}",encodeURIComponent(""+e)),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(a+="tenantId="+encodeURIComponent(""+r)+"&"),a=a.replace(/[?&]$/,"");var s={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(s)).pipe(t.mergeMap((function(e){return i.http.request("post",a,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(a,e,(function(e){return i.processDiscard(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(a,e,(function(e){return i.processDiscard(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processDiscard=function(e){var r,i,a=this,s=e.status,p=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===s?b(p).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):401===s?b(p).pipe(t.mergeMap((function(e){return g("Unauthorized",s,e,c)}))):403===s?b(p).pipe(t.mergeMap((function(e){return g("Forbidden",s,e,c)}))):200!==s&&204!==s?b(p).pipe(t.mergeMap((function(e){return g("An unexpected server error occurred.",s,e,c)}))):n.of(null)},r.prototype.recover=function(e,r){var i=this,a=this.baseUrl+"/api/rendering/v1/jobs/{id}/recover?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(a=a.replace("{id}",encodeURIComponent(""+e)),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(a+="tenantId="+encodeURIComponent(""+r)+"&"),a=a.replace(/[?&]$/,"");var s={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(s)).pipe(t.mergeMap((function(e){return i.http.request("post",a,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(a,e,(function(e){return i.processRecover(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(a,e,(function(e){return i.processRecover(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processRecover=function(e){var r,i,a=this,s=e.status,p=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===s?b(p).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):401===s?b(p).pipe(t.mergeMap((function(e){return g("Unauthorized",s,e,c)}))):403===s?b(p).pipe(t.mergeMap((function(e){return g("Forbidden",s,e,c)}))):200!==s&&204!==s?b(p).pipe(t.mergeMap((function(e){return g("An unexpected server error occurred.",s,e,c)}))):n.of(null)},r.prototype.restart=function(e,r){var i=this,a=this.baseUrl+"/api/rendering/v1/jobs/{id}/restart?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(a=a.replace("{id}",encodeURIComponent(""+e)),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(a+="tenantId="+encodeURIComponent(""+r)+"&"),a=a.replace(/[?&]$/,"");var s={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(s)).pipe(t.mergeMap((function(e){return i.http.request("post",a,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(a,e,(function(e){return i.processRestart(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(a,e,(function(e){return i.processRestart(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processRestart=function(e){var r,i,a=this,s=e.status,p=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===s?b(p).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):401===s?b(p).pipe(t.mergeMap((function(e){return g("Unauthorized",s,e,c)}))):403===s?b(p).pipe(t.mergeMap((function(e){return g("Forbidden",s,e,c)}))):200!==s&&204!==s?b(p).pipe(t.mergeMap((function(e){return g("An unexpected server error occurred.",s,e,c)}))):n.of(null)},r.prototype.start=function(e,r){var i=this,a=this.baseUrl+"/api/rendering/v1/jobs/{id}/start?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(a=a.replace("{id}",encodeURIComponent(""+e)),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(a+="tenantId="+encodeURIComponent(""+r)+"&"),a=a.replace(/[?&]$/,"");var s={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(s)).pipe(t.mergeMap((function(e){return i.http.request("post",a,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(a,e,(function(e){return i.processStart(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(a,e,(function(e){return i.processStart(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processStart=function(e){var r,i,a=this,s=e.status,p=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===s?b(p).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):404===s?b(p).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),g("Not Found",s,e,c,r)}))):409===s?b(p).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),g("Conflict",s,e,c,r)}))):401===s?b(p).pipe(t.mergeMap((function(e){return g("Unauthorized",s,e,c)}))):403===s?b(p).pipe(t.mergeMap((function(e){return g("Forbidden",s,e,c)}))):200!==s&&204!==s?b(p).pipe(t.mergeMap((function(e){return g("An unexpected server error occurred.",s,e,c)}))):n.of(null)},r}(f);m.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new m(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:m,providedIn:"root"}),m.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],m.ctorParameters=function(){return[{type:l,decorators:[{type:r.Inject,args:[l]}]},{type:o.HttpClient,decorators:[{type:r.Inject,args:[o.HttpClient]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[c]}]}]},(h=e.RenderingJobStatus||(e.RenderingJobStatus={})).New="New",h.InProgress="InProgress",h.Completed="Completed",h.Failed="Failed",h.Recovered="Recovered",h.Discarded="Discarded",(v=e.RenderingTaskStatus||(e.RenderingTaskStatus={})).New="New",v.InProgress="InProgress",v.Completed="Completed",v.Failed="Failed",v.RequestFailed="RequestFailed",v.Pending="Pending",v.Skipped="Skipped";var y=function(e){function r(r,t,n,o,i){var a=e.call(this)||this;return a.isApiException=!0,a.message=r,a.status=t,a.response=n,a.headers=o,a.result=i,a}return a(r,e),r.isApiException=function(e){return!0===e.isApiException},r}(Error);function g(e,r,t,o,i){return null!=i?n.throwError(i):n.throwError(new y(e,r,t,o,null))}function b(e){return new n.Observable((function(r){if(e){var t=new FileReader;t.onload=function(e){r.next(e.target.result),r.complete()},t.readAsText(e)}else r.next(""),r.complete()}))}function w(e,r,t){void 0===t&&(t="ApiKey");var n=new l;return n.apiKey=t,n.apiUrl=r,n.setAuthorizationToken(e),n}var R=function(){function e(){}return e.forRoot=function(r,t,n){return void 0===n&&(n="ApiKey"),{ngModule:e,providers:[{provide:c,useValue:t},{provide:l,useFactory:w.bind(this,r,t,n)}]}},e}();R.decorators=[{type:r.NgModule,args:[{declarations:[],imports:[],exports:[]}]}],e.API_BASE_URL=c,e.ApiClientBase=f,e.ApiClientConfiguration=l,e.ApiException=y,e.BuildInfoApiClient=d,e.CreateApiClientConfiguration=w,e.RenderingJobsApiClient=m,e.RenderingServiceModule=R,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
***************************************************************************** */var i=function(e,r){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])})(e,r)};function a(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=e}i(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}function p(e,r,t,n){return new(t||(t=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function p(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var r;e.done?o(e.value):(r=e.value,r instanceof t?r:new t((function(e){e(r)}))).then(a,p)}s((n=n.apply(e,r||[])).next())}))}function s(e,r){var t,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:p(0),throw:p(1),return:p(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function p(i){return function(p){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=r.call(e,a)}catch(e){i=[6,e],n=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,p])}}}Object.create;function u(e){var r="function"==typeof Symbol&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;var c=new r.InjectionToken("API_BASE_URL"),l=function(){function e(){this.apiKey="ApiKey",this.authorizationToken=null}return e.prototype.getAuthorizationToken=function(){return p(this,void 0,void 0,(function(){return s(this,(function(e){return[2,this.authorizationToken]}))}))},e.prototype.setAuthorizationToken=function(e){this.authorizationToken=e},e}(),f=function(){function e(e){this.configuration=e}return e.prototype.transformOptions=function(e){return p(this,void 0,void 0,(function(){var r;return s(this,(function(t){switch(t.label){case 0:return[4,this.configuration.getAuthorizationToken()];case 1:return r=t.sent(),e.headers=null!=r?e.headers.append("authorization","Bearer "+r):e.headers.append("X-API-Key",this.configuration.apiKey),[2,e]}}))}))},e.prototype.getBaseUrl=function(e){return this.configuration.apiUrl.endsWith("/")?this.configuration.apiUrl.slice(0,-1):this.configuration.apiUrl},e.prototype.transformResult=function(e,r,t){return t(r)},e}(),d=function(e){function r(r,t,n){var o=e.call(this,r)||this;return o.jsonParseReviver=void 0,o.http=t,o.baseUrl=null!=n?n:o.getBaseUrl(""),o}return a(r,e),r.prototype.headInfo=function(){var e=this,r=this.baseUrl+"/api/rendering/v1/info";r=r.replace(/[?&]$/,"");var i={observe:"response",responseType:"blob",headers:new o.HttpHeaders({})};return n.from(this.transformOptions(i)).pipe(t.mergeMap((function(t){return e.http.request("head",r,t)}))).pipe(t.mergeMap((function(t){return e.transformResult(r,t,(function(r){return e.processHeadInfo(r)}))}))).pipe(t.catchError((function(t){if(!(t instanceof o.HttpResponseBase))return n.throwError(t);try{return e.transformResult(r,t,(function(r){return e.processHeadInfo(r)}))}catch(e){return n.throwError(e)}})))},r.prototype.processHeadInfo=function(e){var r,i,a=e.status,p=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,s={};if(e.headers)try{for(var c=u(e.headers.keys()),l=c.next();!l.done;l=c.next()){var f=l.value;s[f]=e.headers.get(f)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return 200===a?w(p).pipe(t.mergeMap((function(e){return n.of(null)}))):200!==a&&204!==a?w(p).pipe(t.mergeMap((function(e){return b("An unexpected server error occurred.",a,e,s)}))):n.of(null)},r.prototype.getInfo=function(){var e=this,r=this.baseUrl+"/api/rendering/v1/info";r=r.replace(/[?&]$/,"");var i={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(i)).pipe(t.mergeMap((function(t){return e.http.request("get",r,t)}))).pipe(t.mergeMap((function(t){return e.transformResult(r,t,(function(r){return e.processGetInfo(r)}))}))).pipe(t.catchError((function(t){if(!(t instanceof o.HttpResponseBase))return n.throwError(t);try{return e.transformResult(r,t,(function(r){return e.processGetInfo(r)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetInfo=function(e){var r,i,a=this,p=e.status,s=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?w(s).pipe(t.mergeMap((function(e){return b("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r}(f);d.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new d(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:d,providedIn:"root"}),d.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],d.ctorParameters=function(){return[{type:l,decorators:[{type:r.Inject,args:[l]}]},{type:o.HttpClient,decorators:[{type:r.Inject,args:[o.HttpClient]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[c]}]}]};var h=function(e){function r(r,t,n){var o=e.call(this,r)||this;return o.jsonParseReviver=void 0,o.http=t,o.baseUrl=null!=n?n:o.getBaseUrl(""),o}return a(r,e),r.prototype.getAll=function(e,r,i,a,p,s,u){var c=this,l=this.baseUrl+"/api/rendering/v1/jobs?";if(null===e)throw new Error("The parameter 'status' cannot be null.");if(void 0!==e&&(l+="status="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'projectId' cannot be null.");if(void 0!==r&&(l+="projectId="+encodeURIComponent(""+r)+"&"),null===i)throw new Error("The parameter 'projectOrderId' cannot be null.");if(void 0!==i&&(l+="projectOrderId="+encodeURIComponent(""+i)+"&"),null===a)throw new Error("The parameter 'skip' cannot be null.");if(void 0!==a&&(l+="skip="+encodeURIComponent(""+a)+"&"),null===p)throw new Error("The parameter 'take' cannot be null.");if(void 0!==p&&(l+="take="+encodeURIComponent(""+p)+"&"),null===s)throw new Error("The parameter 'sorting' cannot be null.");if(void 0!==s&&(l+="sorting="+encodeURIComponent(""+s)+"&"),null===u)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==u&&(l+="tenantId="+encodeURIComponent(""+u)+"&"),l=l.replace(/[?&]$/,"");var f={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(f)).pipe(t.mergeMap((function(e){return c.http.request("get",l,e)}))).pipe(t.mergeMap((function(e){return c.transformResult(l,e,(function(e){return c.processGetAll(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return c.transformResult(l,e,(function(e){return c.processGetAll(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetAll=function(e){var r,i,a=this,p=e.status,s=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):401===p?w(s).pipe(t.mergeMap((function(e){return b("Unauthorized",p,e,c)}))):403===p?w(s).pipe(t.mergeMap((function(e){return b("Forbidden",p,e,c)}))):200!==p&&204!==p?w(s).pipe(t.mergeMap((function(e){return b("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.create=function(e,r,i){var a=this,p=this.baseUrl+"/api/rendering/v1/jobs?";if(null===e)throw new Error("The parameter 'startImmediately' cannot be null.");if(void 0!==e&&(p+="startImmediately="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(p+="tenantId="+encodeURIComponent(""+r)+"&"),p=p.replace(/[?&]$/,"");var s={body:JSON.stringify(i),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(s)).pipe(t.mergeMap((function(e){return a.http.request("post",p,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(p,e,(function(e){return a.processCreate(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(p,e,(function(e){return a.processCreate(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processCreate=function(e){var r,i,a=this,p=e.status,s=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 201===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):401===p?w(s).pipe(t.mergeMap((function(e){return b("Unauthorized",p,e,c)}))):403===p?w(s).pipe(t.mergeMap((function(e){return b("Forbidden",p,e,c)}))):200!==p&&204!==p?w(s).pipe(t.mergeMap((function(e){return b("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.get=function(e,r){var i=this,a=this.baseUrl+"/api/rendering/v1/jobs/{id}?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(a=a.replace("{id}",encodeURIComponent(""+e)),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(a+="tenantId="+encodeURIComponent(""+r)+"&"),a=a.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return i.http.request("get",a,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(a,e,(function(e){return i.processGet(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(a,e,(function(e){return i.processGet(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGet=function(e){var r,i,a=this,p=e.status,s=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):404===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),b("Not Found",p,e,c,r)}))):401===p?w(s).pipe(t.mergeMap((function(e){return b("Unauthorized",p,e,c)}))):403===p?w(s).pipe(t.mergeMap((function(e){return b("Forbidden",p,e,c)}))):200!==p&&204!==p?w(s).pipe(t.mergeMap((function(e){return b("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.delete=function(e,r){var i=this,a=this.baseUrl+"/api/rendering/v1/jobs/{id}?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(a=a.replace("{id}",encodeURIComponent(""+e)),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(a+="tenantId="+encodeURIComponent(""+r)+"&"),a=a.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return i.http.request("delete",a,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(a,e,(function(e){return i.processDelete(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(a,e,(function(e){return i.processDelete(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processDelete=function(e){var r,i,a=this,p=e.status,s=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):404===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),b("Not Found",p,e,c,r)}))):401===p?w(s).pipe(t.mergeMap((function(e){return b("Unauthorized",p,e,c)}))):403===p?w(s).pipe(t.mergeMap((function(e){return b("Forbidden",p,e,c)}))):200!==p&&204!==p?w(s).pipe(t.mergeMap((function(e){return b("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.discard=function(e,r){var i=this,a=this.baseUrl+"/api/rendering/v1/jobs/{id}/discard?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(a=a.replace("{id}",encodeURIComponent(""+e)),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(a+="tenantId="+encodeURIComponent(""+r)+"&"),a=a.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return i.http.request("post",a,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(a,e,(function(e){return i.processDiscard(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(a,e,(function(e){return i.processDiscard(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processDiscard=function(e){var r,i,a=this,p=e.status,s=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):401===p?w(s).pipe(t.mergeMap((function(e){return b("Unauthorized",p,e,c)}))):403===p?w(s).pipe(t.mergeMap((function(e){return b("Forbidden",p,e,c)}))):200!==p&&204!==p?w(s).pipe(t.mergeMap((function(e){return b("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.recover=function(e,r){var i=this,a=this.baseUrl+"/api/rendering/v1/jobs/{id}/recover?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(a=a.replace("{id}",encodeURIComponent(""+e)),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(a+="tenantId="+encodeURIComponent(""+r)+"&"),a=a.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return i.http.request("post",a,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(a,e,(function(e){return i.processRecover(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(a,e,(function(e){return i.processRecover(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processRecover=function(e){var r,i,a=this,p=e.status,s=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):401===p?w(s).pipe(t.mergeMap((function(e){return b("Unauthorized",p,e,c)}))):403===p?w(s).pipe(t.mergeMap((function(e){return b("Forbidden",p,e,c)}))):200!==p&&204!==p?w(s).pipe(t.mergeMap((function(e){return b("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.restart=function(e,r){var i=this,a=this.baseUrl+"/api/rendering/v1/jobs/{id}/restart?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(a=a.replace("{id}",encodeURIComponent(""+e)),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(a+="tenantId="+encodeURIComponent(""+r)+"&"),a=a.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return i.http.request("post",a,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(a,e,(function(e){return i.processRestart(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(a,e,(function(e){return i.processRestart(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processRestart=function(e){var r,i,a=this,p=e.status,s=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):401===p?w(s).pipe(t.mergeMap((function(e){return b("Unauthorized",p,e,c)}))):403===p?w(s).pipe(t.mergeMap((function(e){return b("Forbidden",p,e,c)}))):200!==p&&204!==p?w(s).pipe(t.mergeMap((function(e){return b("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.start=function(e,r){var i=this,a=this.baseUrl+"/api/rendering/v1/jobs/{id}/start?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(a=a.replace("{id}",encodeURIComponent(""+e)),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(a+="tenantId="+encodeURIComponent(""+r)+"&"),a=a.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return i.http.request("post",a,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(a,e,(function(e){return i.processStart(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(a,e,(function(e){return i.processStart(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processStart=function(e){var r,i,a=this,p=e.status,s=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):404===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),b("Not Found",p,e,c,r)}))):409===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),b("Conflict",p,e,c,r)}))):401===p?w(s).pipe(t.mergeMap((function(e){return b("Unauthorized",p,e,c)}))):403===p?w(s).pipe(t.mergeMap((function(e){return b("Forbidden",p,e,c)}))):200!==p&&204!==p?w(s).pipe(t.mergeMap((function(e){return b("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r}(f);h.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new h(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:h,providedIn:"root"}),h.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],h.ctorParameters=function(){return[{type:l,decorators:[{type:r.Inject,args:[l]}]},{type:o.HttpClient,decorators:[{type:r.Inject,args:[o.HttpClient]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[c]}]}]};var v,m,y=function(e){function r(r,t,n){var o=e.call(this,r)||this;return o.jsonParseReviver=void 0,o.http=t,o.baseUrl=null!=n?n:o.getBaseUrl(""),o}return a(r,e),r.prototype.getAll=function(e,r,i,a){var p=this,s=this.baseUrl+"/api/rendering/v1/tenants?";if(null===e)throw new Error("The parameter 'skip' cannot be null.");if(void 0!==e&&(s+="skip="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'take' cannot be null.");if(void 0!==r&&(s+="take="+encodeURIComponent(""+r)+"&"),null===i)throw new Error("The parameter 'sorting' cannot be null.");if(void 0!==i&&(s+="sorting="+encodeURIComponent(""+i)+"&"),null===a)throw new Error("The parameter 'search' cannot be null.");void 0!==a&&(s+="search="+encodeURIComponent(""+a)+"&"),s=s.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(s,e,(function(e){return p.processGetAll(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(s,e,(function(e){return p.processGetAll(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetAll=function(e){var r,i,a=this,p=e.status,s=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):401===p?w(s).pipe(t.mergeMap((function(e){return b("Unauthorized",p,e,c)}))):403===p?w(s).pipe(t.mergeMap((function(e){return b("Forbidden",p,e,c)}))):200!==p&&204!==p?w(s).pipe(t.mergeMap((function(e){return b("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.create=function(e){var r=this,i=this.baseUrl+"/api/rendering/v1/tenants";i=i.replace(/[?&]$/,"");var a={body:JSON.stringify(e),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(a)).pipe(t.mergeMap((function(e){return r.http.request("post",i,e)}))).pipe(t.mergeMap((function(e){return r.transformResult(i,e,(function(e){return r.processCreate(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return r.transformResult(i,e,(function(e){return r.processCreate(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processCreate=function(e){var r,i,a=this,p=e.status,s=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 201===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):409===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),b("Conflict",p,e,c,r)}))):401===p?w(s).pipe(t.mergeMap((function(e){return b("Unauthorized",p,e,c)}))):403===p?w(s).pipe(t.mergeMap((function(e){return b("Forbidden",p,e,c)}))):200!==p&&204!==p?w(s).pipe(t.mergeMap((function(e){return b("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.get=function(e){var r=this,i=this.baseUrl+"/api/rendering/v1/tenants/{id}";if(null==e)throw new Error("The parameter 'id' must be defined.");i=(i=i.replace("{id}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var a={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(a)).pipe(t.mergeMap((function(e){return r.http.request("get",i,e)}))).pipe(t.mergeMap((function(e){return r.transformResult(i,e,(function(e){return r.processGet(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return r.transformResult(i,e,(function(e){return r.processGet(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGet=function(e){var r,i,a=this,p=e.status,s=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):404===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),b("Not Found",p,e,c,r)}))):401===p?w(s).pipe(t.mergeMap((function(e){return b("Unauthorized",p,e,c)}))):403===p?w(s).pipe(t.mergeMap((function(e){return b("Forbidden",p,e,c)}))):200!==p&&204!==p?w(s).pipe(t.mergeMap((function(e){return b("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.update=function(e,r){var i=this,a=this.baseUrl+"/api/rendering/v1/tenants/{id}";if(null==e)throw new Error("The parameter 'id' must be defined.");a=(a=a.replace("{id}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return i.http.request("put",a,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(a,e,(function(e){return i.processUpdate(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(a,e,(function(e){return i.processUpdate(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdate=function(e){var r,i,a=this,p=e.status,s=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):404===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),b("Not Found",p,e,c,r)}))):409===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),b("Conflict",p,e,c,r)}))):401===p?w(s).pipe(t.mergeMap((function(e){return b("Unauthorized",p,e,c)}))):403===p?w(s).pipe(t.mergeMap((function(e){return b("Forbidden",p,e,c)}))):200!==p&&204!==p?w(s).pipe(t.mergeMap((function(e){return b("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.delete=function(e){var r=this,i=this.baseUrl+"/api/rendering/v1/tenants/{id}";if(null==e)throw new Error("The parameter 'id' must be defined.");i=(i=i.replace("{id}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var a={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(a)).pipe(t.mergeMap((function(e){return r.http.request("delete",i,e)}))).pipe(t.mergeMap((function(e){return r.transformResult(i,e,(function(e){return r.processDelete(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return r.transformResult(i,e,(function(e){return r.processDelete(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processDelete=function(e){var r,i,a=this,p=e.status,s=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return 200===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),n.of(r)}))):404===p?w(s).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,a.jsonParseReviver),b("Not Found",p,e,c,r)}))):401===p?w(s).pipe(t.mergeMap((function(e){return b("Unauthorized",p,e,c)}))):403===p?w(s).pipe(t.mergeMap((function(e){return b("Forbidden",p,e,c)}))):200!==p&&204!==p?w(s).pipe(t.mergeMap((function(e){return b("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r}(f);y.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new y(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:y,providedIn:"root"}),y.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],y.ctorParameters=function(){return[{type:l,decorators:[{type:r.Inject,args:[l]}]},{type:o.HttpClient,decorators:[{type:r.Inject,args:[o.HttpClient]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[c]}]}]},(e.ConflictType||(e.ConflictType={})).Name="Name",(v=e.RenderingJobStatus||(e.RenderingJobStatus={})).New="New",v.InProgress="InProgress",v.Completed="Completed",v.Failed="Failed",v.Recovered="Recovered",v.Discarded="Discarded",(m=e.RenderingTaskStatus||(e.RenderingTaskStatus={})).New="New",m.InProgress="InProgress",m.Completed="Completed",m.Failed="Failed",m.RequestFailed="RequestFailed",m.Pending="Pending",m.Skipped="Skipped";var g=function(e){function r(r,t,n,o,i){var a=e.call(this)||this;return a.isApiException=!0,a.message=r,a.status=t,a.response=n,a.headers=o,a.result=i,a}return a(r,e),r.isApiException=function(e){return!0===e.isApiException},r}(Error);function b(e,r,t,o,i){return null!=i?n.throwError(i):n.throwError(new g(e,r,t,o,null))}function w(e){return new n.Observable((function(r){if(e){var t=new FileReader;t.onload=function(e){r.next(e.target.result),r.complete()},t.readAsText(e)}else r.next(""),r.complete()}))}function R(e,r,t){void 0===t&&(t="ApiKey");var n=new l;return n.apiKey=t,n.apiUrl=r,n.setAuthorizationToken(e),n}var M=function(){function e(){}return e.forRoot=function(r,t,n){return void 0===n&&(n="ApiKey"),{ngModule:e,providers:[{provide:c,useValue:t},{provide:l,useFactory:R.bind(this,r,t,n)}]}},e}();M.decorators=[{type:r.NgModule,args:[{declarations:[],imports:[],exports:[]}]}],e.API_BASE_URL=c,e.ApiClientBase=f,e.ApiClientConfiguration=l,e.ApiException=g,e.BuildInfoApiClient=d,e.CreateApiClientConfiguration=R,e.RenderingJobsApiClient=h,e.RenderingServiceModule=M,e.TenantsApiClient=y,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=aurigma-ng-rendering-service-client.umd.min.js.map |
@@ -5,2 +5,2 @@ /** | ||
export * from './public-api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXVyaWdtYS1uZy1yZW5kZXJpbmctc2VydmljZS1jbGllbnQuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2VudHMvQ0NIMDMvX3dvcmsvNi9zL0F1cmlnbWEuUmVuZGVyaW5nU2VydmljZS5UeXBlU2NyaXB0QXBpQ2xpZW50L0FuZ3VsYXIvYXBpLWNsaWVudC9wcm9qZWN0cy9jbGllbnQvc3JjLyIsInNvdXJjZXMiOlsiYXVyaWdtYS1uZy1yZW5kZXJpbmctc2VydmljZS1jbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXVyaWdtYS1uZy1yZW5kZXJpbmctc2VydmljZS1jbGllbnQuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2VudHMvQ0NIMDIvX3dvcmsvNi9zL3NyYy9BdXJpZ21hLlJlbmRlcmluZ1NlcnZpY2UuVHlwZVNjcmlwdEFwaUNsaWVudC9Bbmd1bGFyL2FwaS1jbGllbnQvcHJvamVjdHMvY2xpZW50L3NyYy8iLCJzb3VyY2VzIjpbImF1cmlnbWEtbmctcmVuZGVyaW5nLXNlcnZpY2UtY2xpZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0= |
@@ -35,2 +35,2 @@ import { NgModule } from '@angular/core'; | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyaW5nLXNlcnZpY2UubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Ii9ob21lL2F1cmlnbWEvYWdlbnRzL0NDSDAzL193b3JrLzYvcy9BdXJpZ21hLlJlbmRlcmluZ1NlcnZpY2UuVHlwZVNjcmlwdEFwaUNsaWVudC9Bbmd1bGFyL2FwaS1jbGllbnQvcHJvamVjdHMvY2xpZW50L3NyYy8iLCJzb3VyY2VzIjpbImxpYi9yZW5kZXJpbmctc2VydmljZS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFzQixRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDNUQsT0FBTyxLQUFLLHlCQUF5QixNQUFNLGdDQUFnQyxDQUFDO0FBRTVFLFdBQVc7QUFDWCxNQUFNLFVBQVUsNEJBQTRCLENBQUMsS0FBYSxFQUFFLE1BQWMsRUFBRSxTQUFpQixRQUFRO0lBQ25HLE1BQU0sT0FBTyxHQUFHLElBQUkseUJBQXlCLENBQUMsc0JBQXNCLEVBQUUsQ0FBQztJQUN2RSxPQUFPLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztJQUN4QixPQUFPLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztJQUN4QixPQUFPLENBQUMscUJBQXFCLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDckMsT0FBTyxPQUFPLENBQUM7QUFDakIsQ0FBQztBQVFELE1BQU0sT0FBTyxzQkFBc0I7SUFDakMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxLQUFhLEVBQUUsTUFBYyxFQUFFLFNBQWlCLFFBQVE7UUFDckUsT0FBTztZQUNMLFFBQVEsRUFBRSxzQkFBc0I7WUFDaEMsU0FBUyxFQUFFO2dCQUNUO29CQUNFLE9BQU8sRUFBRSx5QkFBeUIsQ0FBQyxZQUFZO29CQUMvQyxRQUFRLEVBQUUsTUFBTTtpQkFDakI7Z0JBQ0Q7b0JBQ0UsT0FBTyxFQUFFLHlCQUF5QixDQUFDLHNCQUFzQjtvQkFDekQsVUFBVSxFQUFFLDRCQUE0QixDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsS0FBSyxFQUFHLE1BQU0sRUFBRSxNQUFNLENBQUM7aUJBQzVFO2FBQ0Y7U0FDRixDQUFDO0lBQ0osQ0FBQzs7O1lBckJGLFFBQVEsU0FBQztnQkFDUixZQUFZLEVBQUUsRUFBRTtnQkFDaEIsT0FBTyxFQUFFLEVBQ1I7Z0JBQ0QsT0FBTyxFQUFFLEVBQUU7YUFDWiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7TW9kdWxlV2l0aFByb3ZpZGVycywgTmdNb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0ICogYXMgUmVuZGVyaW5nU2VydmljZUFwaUNsaWVudCBmcm9tICcuL3JlbmRlcmluZy1zZXJ2aWNlLWFwaS1jbGllbnQnO1xuXG4vLyBAZHluYW1pY1xuZXhwb3J0IGZ1bmN0aW9uIENyZWF0ZUFwaUNsaWVudENvbmZpZ3VyYXRpb24odG9rZW46IHN0cmluZywgYXBpVXJsOiBzdHJpbmcsIGFwaUtleTogc3RyaW5nID0gJ0FwaUtleScpOiBSZW5kZXJpbmdTZXJ2aWNlQXBpQ2xpZW50LkFwaUNsaWVudENvbmZpZ3VyYXRpb24ge1xuICBjb25zdCBhcGlDb25mID0gbmV3IFJlbmRlcmluZ1NlcnZpY2VBcGlDbGllbnQuQXBpQ2xpZW50Q29uZmlndXJhdGlvbigpO1xuICBhcGlDb25mLmFwaUtleSA9IGFwaUtleTtcbiAgYXBpQ29uZi5hcGlVcmwgPSBhcGlVcmw7XG4gIGFwaUNvbmYuc2V0QXV0aG9yaXphdGlvblRva2VuKHRva2VuKTtcbiAgcmV0dXJuIGFwaUNvbmY7XG59XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW10sXG4gIGltcG9ydHM6IFtcbiAgXSxcbiAgZXhwb3J0czogW11cbn0pXG5leHBvcnQgY2xhc3MgUmVuZGVyaW5nU2VydmljZU1vZHVsZSB7XG4gIHN0YXRpYyBmb3JSb290KHRva2VuOiBzdHJpbmcsIGFwaVVybDogc3RyaW5nLCBhcGlLZXk6IHN0cmluZyA9ICdBcGlLZXknKTogTW9kdWxlV2l0aFByb3ZpZGVyczxSZW5kZXJpbmdTZXJ2aWNlTW9kdWxlPiB7XG4gICAgcmV0dXJuIHtcbiAgICAgIG5nTW9kdWxlOiBSZW5kZXJpbmdTZXJ2aWNlTW9kdWxlLFxuICAgICAgcHJvdmlkZXJzOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBwcm92aWRlOiBSZW5kZXJpbmdTZXJ2aWNlQXBpQ2xpZW50LkFQSV9CQVNFX1VSTCxcbiAgICAgICAgICB1c2VWYWx1ZTogYXBpVXJsXG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBwcm92aWRlOiBSZW5kZXJpbmdTZXJ2aWNlQXBpQ2xpZW50LkFwaUNsaWVudENvbmZpZ3VyYXRpb24sXG4gICAgICAgICAgdXNlRmFjdG9yeTogQ3JlYXRlQXBpQ2xpZW50Q29uZmlndXJhdGlvbi5iaW5kKHRoaXMsIHRva2VuICwgYXBpVXJsLCBhcGlLZXkpXG4gICAgICAgIH0sXG4gICAgICBdXG4gICAgfTtcbiAgfVxufVxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyaW5nLXNlcnZpY2UubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Ii9ob21lL2F1cmlnbWEvYWdlbnRzL0NDSDAyL193b3JrLzYvcy9zcmMvQXVyaWdtYS5SZW5kZXJpbmdTZXJ2aWNlLlR5cGVTY3JpcHRBcGlDbGllbnQvQW5ndWxhci9hcGktY2xpZW50L3Byb2plY3RzL2NsaWVudC9zcmMvIiwic291cmNlcyI6WyJsaWIvcmVuZGVyaW5nLXNlcnZpY2UubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBc0IsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQzVELE9BQU8sS0FBSyx5QkFBeUIsTUFBTSxnQ0FBZ0MsQ0FBQztBQUU1RSxXQUFXO0FBQ1gsTUFBTSxVQUFVLDRCQUE0QixDQUFDLEtBQWEsRUFBRSxNQUFjLEVBQUUsU0FBaUIsUUFBUTtJQUNuRyxNQUFNLE9BQU8sR0FBRyxJQUFJLHlCQUF5QixDQUFDLHNCQUFzQixFQUFFLENBQUM7SUFDdkUsT0FBTyxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7SUFDeEIsT0FBTyxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7SUFDeEIsT0FBTyxDQUFDLHFCQUFxQixDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQ3JDLE9BQU8sT0FBTyxDQUFDO0FBQ2pCLENBQUM7QUFRRCxNQUFNLE9BQU8sc0JBQXNCO0lBQ2pDLE1BQU0sQ0FBQyxPQUFPLENBQUMsS0FBYSxFQUFFLE1BQWMsRUFBRSxTQUFpQixRQUFRO1FBQ3JFLE9BQU87WUFDTCxRQUFRLEVBQUUsc0JBQXNCO1lBQ2hDLFNBQVMsRUFBRTtnQkFDVDtvQkFDRSxPQUFPLEVBQUUseUJBQXlCLENBQUMsWUFBWTtvQkFDL0MsUUFBUSxFQUFFLE1BQU07aUJBQ2pCO2dCQUNEO29CQUNFLE9BQU8sRUFBRSx5QkFBeUIsQ0FBQyxzQkFBc0I7b0JBQ3pELFVBQVUsRUFBRSw0QkFBNEIsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLEtBQUssRUFBRyxNQUFNLEVBQUUsTUFBTSxDQUFDO2lCQUM1RTthQUNGO1NBQ0YsQ0FBQztJQUNKLENBQUM7OztZQXJCRixRQUFRLFNBQUM7Z0JBQ1IsWUFBWSxFQUFFLEVBQUU7Z0JBQ2hCLE9BQU8sRUFBRSxFQUNSO2dCQUNELE9BQU8sRUFBRSxFQUFFO2FBQ1oiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge01vZHVsZVdpdGhQcm92aWRlcnMsIE5nTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCAqIGFzIFJlbmRlcmluZ1NlcnZpY2VBcGlDbGllbnQgZnJvbSAnLi9yZW5kZXJpbmctc2VydmljZS1hcGktY2xpZW50JztcblxuLy8gQGR5bmFtaWNcbmV4cG9ydCBmdW5jdGlvbiBDcmVhdGVBcGlDbGllbnRDb25maWd1cmF0aW9uKHRva2VuOiBzdHJpbmcsIGFwaVVybDogc3RyaW5nLCBhcGlLZXk6IHN0cmluZyA9ICdBcGlLZXknKTogUmVuZGVyaW5nU2VydmljZUFwaUNsaWVudC5BcGlDbGllbnRDb25maWd1cmF0aW9uIHtcbiAgY29uc3QgYXBpQ29uZiA9IG5ldyBSZW5kZXJpbmdTZXJ2aWNlQXBpQ2xpZW50LkFwaUNsaWVudENvbmZpZ3VyYXRpb24oKTtcbiAgYXBpQ29uZi5hcGlLZXkgPSBhcGlLZXk7XG4gIGFwaUNvbmYuYXBpVXJsID0gYXBpVXJsO1xuICBhcGlDb25mLnNldEF1dGhvcml6YXRpb25Ub2tlbih0b2tlbik7XG4gIHJldHVybiBhcGlDb25mO1xufVxuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtdLFxuICBpbXBvcnRzOiBbXG4gIF0sXG4gIGV4cG9ydHM6IFtdXG59KVxuZXhwb3J0IGNsYXNzIFJlbmRlcmluZ1NlcnZpY2VNb2R1bGUge1xuICBzdGF0aWMgZm9yUm9vdCh0b2tlbjogc3RyaW5nLCBhcGlVcmw6IHN0cmluZywgYXBpS2V5OiBzdHJpbmcgPSAnQXBpS2V5Jyk6IE1vZHVsZVdpdGhQcm92aWRlcnM8UmVuZGVyaW5nU2VydmljZU1vZHVsZT4ge1xuICAgIHJldHVybiB7XG4gICAgICBuZ01vZHVsZTogUmVuZGVyaW5nU2VydmljZU1vZHVsZSxcbiAgICAgIHByb3ZpZGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogUmVuZGVyaW5nU2VydmljZUFwaUNsaWVudC5BUElfQkFTRV9VUkwsXG4gICAgICAgICAgdXNlVmFsdWU6IGFwaVVybFxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogUmVuZGVyaW5nU2VydmljZUFwaUNsaWVudC5BcGlDbGllbnRDb25maWd1cmF0aW9uLFxuICAgICAgICAgIHVzZUZhY3Rvcnk6IENyZWF0ZUFwaUNsaWVudENvbmZpZ3VyYXRpb24uYmluZCh0aGlzLCB0b2tlbiAsIGFwaVVybCwgYXBpS2V5KVxuICAgICAgICB9LFxuICAgICAgXVxuICAgIH07XG4gIH1cbn1cbiJdfQ== |
@@ -6,2 +6,2 @@ /* | ||
export * from './lib/rendering-service-api-client'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy9DQ0gwMy9fd29yay82L3MvQXVyaWdtYS5SZW5kZXJpbmdTZXJ2aWNlLlR5cGVTY3JpcHRBcGlDbGllbnQvQW5ndWxhci9hcGktY2xpZW50L3Byb2plY3RzL2NsaWVudC9zcmMvIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxnQ0FBZ0MsQ0FBQztBQUMvQyxjQUFjLG9DQUFvQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBjbGllbnRcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9yZW5kZXJpbmctc2VydmljZS5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcmVuZGVyaW5nLXNlcnZpY2UtYXBpLWNsaWVudCc7XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy9DQ0gwMi9fd29yay82L3Mvc3JjL0F1cmlnbWEuUmVuZGVyaW5nU2VydmljZS5UeXBlU2NyaXB0QXBpQ2xpZW50L0FuZ3VsYXIvYXBpLWNsaWVudC9wcm9qZWN0cy9jbGllbnQvc3JjLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsZ0NBQWdDLENBQUM7QUFDL0MsY0FBYyxvQ0FBb0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgY2xpZW50XG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvcmVuZGVyaW5nLXNlcnZpY2UubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3JlbmRlcmluZy1zZXJ2aWNlLWFwaS1jbGllbnQnO1xuIl19 |
@@ -192,13 +192,25 @@ import { InjectionToken, ɵɵdefineInjectable, ɵɵinject, Injectable, Inject, Optional, NgModule } from '@angular/core'; | ||
let url_ = this.baseUrl + "/api/rendering/v1/jobs?"; | ||
if (status !== undefined && status !== null) | ||
if (status === null) | ||
throw new Error("The parameter 'status' cannot be null."); | ||
else if (status !== undefined) | ||
url_ += "status=" + encodeURIComponent("" + status) + "&"; | ||
if (projectId !== undefined && projectId !== null) | ||
if (projectId === null) | ||
throw new Error("The parameter 'projectId' cannot be null."); | ||
else if (projectId !== undefined) | ||
url_ += "projectId=" + encodeURIComponent("" + projectId) + "&"; | ||
if (projectOrderId !== undefined && projectOrderId !== null) | ||
if (projectOrderId === null) | ||
throw new Error("The parameter 'projectOrderId' cannot be null."); | ||
else if (projectOrderId !== undefined) | ||
url_ += "projectOrderId=" + encodeURIComponent("" + projectOrderId) + "&"; | ||
if (skip !== undefined && skip !== null) | ||
if (skip === null) | ||
throw new Error("The parameter 'skip' cannot be null."); | ||
else if (skip !== undefined) | ||
url_ += "skip=" + encodeURIComponent("" + skip) + "&"; | ||
if (take !== undefined && take !== null) | ||
if (take === null) | ||
throw new Error("The parameter 'take' cannot be null."); | ||
else if (take !== undefined) | ||
url_ += "take=" + encodeURIComponent("" + take) + "&"; | ||
if (sorting !== undefined && sorting !== null) | ||
if (sorting === null) | ||
throw new Error("The parameter 'sorting' cannot be null."); | ||
else if (sorting !== undefined) | ||
url_ += "sorting=" + encodeURIComponent("" + sorting) + "&"; | ||
@@ -273,3 +285,3 @@ if (tenantId === null) | ||
* @param body (optional) Create operation parameters. | ||
* @return Success | ||
* @return Created | ||
*/ | ||
@@ -832,3 +844,426 @@ create(startImmediately, tenantId, body) { | ||
]; | ||
/** Rendering job status. */ | ||
class TenantsApiClient extends ApiClientBase { | ||
constructor(configuration, http, baseUrl) { | ||
super(configuration); | ||
this.jsonParseReviver = undefined; | ||
this.http = http; | ||
this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl(""); | ||
} | ||
/** | ||
* Returns all tenants. | ||
* @param skip (optional) Defines page start offset from beginning of sorted result list. | ||
* @param take (optional) Defines page length (how much consequent items of sorted result list should be taken). | ||
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC". | ||
* @param search (optional) Search string for partial match. | ||
* @return Success | ||
*/ | ||
getAll(skip, take, sorting, search) { | ||
let url_ = this.baseUrl + "/api/rendering/v1/tenants?"; | ||
if (skip === null) | ||
throw new Error("The parameter 'skip' cannot be null."); | ||
else if (skip !== undefined) | ||
url_ += "skip=" + encodeURIComponent("" + skip) + "&"; | ||
if (take === null) | ||
throw new Error("The parameter 'take' cannot be null."); | ||
else if (take !== undefined) | ||
url_ += "take=" + encodeURIComponent("" + take) + "&"; | ||
if (sorting === null) | ||
throw new Error("The parameter 'sorting' cannot be null."); | ||
else if (sorting !== undefined) | ||
url_ += "sorting=" + encodeURIComponent("" + sorting) + "&"; | ||
if (search === null) | ||
throw new Error("The parameter 'search' cannot be null."); | ||
else if (search !== undefined) | ||
url_ += "search=" + encodeURIComponent("" + search) + "&"; | ||
url_ = url_.replace(/[?&]$/, ""); | ||
let options_ = { | ||
observe: "response", | ||
responseType: "blob", | ||
headers: new HttpHeaders({ | ||
"Accept": "application/json" | ||
}) | ||
}; | ||
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => { | ||
return this.http.request("get", url_, transformedOptions_); | ||
})).pipe(mergeMap((response_) => { | ||
return this.transformResult(url_, response_, (r) => this.processGetAll(r)); | ||
})).pipe(catchError((response_) => { | ||
if (response_ instanceof HttpResponseBase) { | ||
try { | ||
return this.transformResult(url_, response_, (r) => this.processGetAll(r)); | ||
} | ||
catch (e) { | ||
return throwError(e); | ||
} | ||
} | ||
else | ||
return throwError(response_); | ||
})); | ||
} | ||
processGetAll(response) { | ||
const status = response.status; | ||
const responseBlob = response instanceof HttpResponse ? response.body : | ||
response.error instanceof Blob ? response.error : undefined; | ||
let _headers = {}; | ||
if (response.headers) { | ||
for (let key of response.headers.keys()) { | ||
_headers[key] = response.headers.get(key); | ||
} | ||
} | ||
if (status === 200) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
let result200 = null; | ||
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); | ||
return of(result200); | ||
})); | ||
} | ||
else if (status === 401) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
return throwException("Unauthorized", status, _responseText, _headers); | ||
})); | ||
} | ||
else if (status === 403) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
return throwException("Forbidden", status, _responseText, _headers); | ||
})); | ||
} | ||
else if (status !== 200 && status !== 204) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
return throwException("An unexpected server error occurred.", status, _responseText, _headers); | ||
})); | ||
} | ||
return of(null); | ||
} | ||
/** | ||
* Creates a new tenant. | ||
* @param body (optional) Operation parameters. | ||
* @return Created | ||
*/ | ||
create(body) { | ||
let url_ = this.baseUrl + "/api/rendering/v1/tenants"; | ||
url_ = url_.replace(/[?&]$/, ""); | ||
const content_ = JSON.stringify(body); | ||
let options_ = { | ||
body: content_, | ||
observe: "response", | ||
responseType: "blob", | ||
headers: new HttpHeaders({ | ||
"Content-Type": "application/json", | ||
"Accept": "application/json" | ||
}) | ||
}; | ||
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => { | ||
return this.http.request("post", url_, transformedOptions_); | ||
})).pipe(mergeMap((response_) => { | ||
return this.transformResult(url_, response_, (r) => this.processCreate(r)); | ||
})).pipe(catchError((response_) => { | ||
if (response_ instanceof HttpResponseBase) { | ||
try { | ||
return this.transformResult(url_, response_, (r) => this.processCreate(r)); | ||
} | ||
catch (e) { | ||
return throwError(e); | ||
} | ||
} | ||
else | ||
return throwError(response_); | ||
})); | ||
} | ||
processCreate(response) { | ||
const status = response.status; | ||
const responseBlob = response instanceof HttpResponse ? response.body : | ||
response.error instanceof Blob ? response.error : undefined; | ||
let _headers = {}; | ||
if (response.headers) { | ||
for (let key of response.headers.keys()) { | ||
_headers[key] = response.headers.get(key); | ||
} | ||
} | ||
if (status === 201) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
let result201 = null; | ||
result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); | ||
return of(result201); | ||
})); | ||
} | ||
else if (status === 409) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
let result409 = null; | ||
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); | ||
return throwException("Conflict", status, _responseText, _headers, result409); | ||
})); | ||
} | ||
else if (status === 401) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
return throwException("Unauthorized", status, _responseText, _headers); | ||
})); | ||
} | ||
else if (status === 403) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
return throwException("Forbidden", status, _responseText, _headers); | ||
})); | ||
} | ||
else if (status !== 200 && status !== 204) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
return throwException("An unexpected server error occurred.", status, _responseText, _headers); | ||
})); | ||
} | ||
return of(null); | ||
} | ||
/** | ||
* Returns a tenant by ID. | ||
* @param id Tenant identifier. | ||
* @return Success | ||
*/ | ||
get(id) { | ||
let url_ = this.baseUrl + "/api/rendering/v1/tenants/{id}"; | ||
if (id === undefined || id === null) | ||
throw new Error("The parameter 'id' must be defined."); | ||
url_ = url_.replace("{id}", encodeURIComponent("" + id)); | ||
url_ = url_.replace(/[?&]$/, ""); | ||
let options_ = { | ||
observe: "response", | ||
responseType: "blob", | ||
headers: new HttpHeaders({ | ||
"Accept": "application/json" | ||
}) | ||
}; | ||
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => { | ||
return this.http.request("get", url_, transformedOptions_); | ||
})).pipe(mergeMap((response_) => { | ||
return this.transformResult(url_, response_, (r) => this.processGet(r)); | ||
})).pipe(catchError((response_) => { | ||
if (response_ instanceof HttpResponseBase) { | ||
try { | ||
return this.transformResult(url_, response_, (r) => this.processGet(r)); | ||
} | ||
catch (e) { | ||
return throwError(e); | ||
} | ||
} | ||
else | ||
return throwError(response_); | ||
})); | ||
} | ||
processGet(response) { | ||
const status = response.status; | ||
const responseBlob = response instanceof HttpResponse ? response.body : | ||
response.error instanceof Blob ? response.error : undefined; | ||
let _headers = {}; | ||
if (response.headers) { | ||
for (let key of response.headers.keys()) { | ||
_headers[key] = response.headers.get(key); | ||
} | ||
} | ||
if (status === 200) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
let result200 = null; | ||
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); | ||
return of(result200); | ||
})); | ||
} | ||
else if (status === 404) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
let result404 = null; | ||
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); | ||
return throwException("Not Found", status, _responseText, _headers, result404); | ||
})); | ||
} | ||
else if (status === 401) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
return throwException("Unauthorized", status, _responseText, _headers); | ||
})); | ||
} | ||
else if (status === 403) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
return throwException("Forbidden", status, _responseText, _headers); | ||
})); | ||
} | ||
else if (status !== 200 && status !== 204) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
return throwException("An unexpected server error occurred.", status, _responseText, _headers); | ||
})); | ||
} | ||
return of(null); | ||
} | ||
/** | ||
* Updates the specified tenant. | ||
* @param id Tenant identifier. | ||
* @param body (optional) Operation parameters | ||
* @return Success | ||
*/ | ||
update(id, body) { | ||
let url_ = this.baseUrl + "/api/rendering/v1/tenants/{id}"; | ||
if (id === undefined || id === null) | ||
throw new Error("The parameter 'id' must be defined."); | ||
url_ = url_.replace("{id}", encodeURIComponent("" + id)); | ||
url_ = url_.replace(/[?&]$/, ""); | ||
const content_ = JSON.stringify(body); | ||
let options_ = { | ||
body: content_, | ||
observe: "response", | ||
responseType: "blob", | ||
headers: new HttpHeaders({ | ||
"Content-Type": "application/json", | ||
"Accept": "application/json" | ||
}) | ||
}; | ||
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => { | ||
return this.http.request("put", url_, transformedOptions_); | ||
})).pipe(mergeMap((response_) => { | ||
return this.transformResult(url_, response_, (r) => this.processUpdate(r)); | ||
})).pipe(catchError((response_) => { | ||
if (response_ instanceof HttpResponseBase) { | ||
try { | ||
return this.transformResult(url_, response_, (r) => this.processUpdate(r)); | ||
} | ||
catch (e) { | ||
return throwError(e); | ||
} | ||
} | ||
else | ||
return throwError(response_); | ||
})); | ||
} | ||
processUpdate(response) { | ||
const status = response.status; | ||
const responseBlob = response instanceof HttpResponse ? response.body : | ||
response.error instanceof Blob ? response.error : undefined; | ||
let _headers = {}; | ||
if (response.headers) { | ||
for (let key of response.headers.keys()) { | ||
_headers[key] = response.headers.get(key); | ||
} | ||
} | ||
if (status === 200) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
let result200 = null; | ||
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); | ||
return of(result200); | ||
})); | ||
} | ||
else if (status === 404) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
let result404 = null; | ||
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); | ||
return throwException("Not Found", status, _responseText, _headers, result404); | ||
})); | ||
} | ||
else if (status === 409) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
let result409 = null; | ||
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); | ||
return throwException("Conflict", status, _responseText, _headers, result409); | ||
})); | ||
} | ||
else if (status === 401) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
return throwException("Unauthorized", status, _responseText, _headers); | ||
})); | ||
} | ||
else if (status === 403) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
return throwException("Forbidden", status, _responseText, _headers); | ||
})); | ||
} | ||
else if (status !== 200 && status !== 204) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
return throwException("An unexpected server error occurred.", status, _responseText, _headers); | ||
})); | ||
} | ||
return of(null); | ||
} | ||
/** | ||
* Deletes the specified tenant. | ||
* @param id Tenant identifier. | ||
* @return Success | ||
*/ | ||
delete(id) { | ||
let url_ = this.baseUrl + "/api/rendering/v1/tenants/{id}"; | ||
if (id === undefined || id === null) | ||
throw new Error("The parameter 'id' must be defined."); | ||
url_ = url_.replace("{id}", encodeURIComponent("" + id)); | ||
url_ = url_.replace(/[?&]$/, ""); | ||
let options_ = { | ||
observe: "response", | ||
responseType: "blob", | ||
headers: new HttpHeaders({ | ||
"Accept": "application/json" | ||
}) | ||
}; | ||
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => { | ||
return this.http.request("delete", url_, transformedOptions_); | ||
})).pipe(mergeMap((response_) => { | ||
return this.transformResult(url_, response_, (r) => this.processDelete(r)); | ||
})).pipe(catchError((response_) => { | ||
if (response_ instanceof HttpResponseBase) { | ||
try { | ||
return this.transformResult(url_, response_, (r) => this.processDelete(r)); | ||
} | ||
catch (e) { | ||
return throwError(e); | ||
} | ||
} | ||
else | ||
return throwError(response_); | ||
})); | ||
} | ||
processDelete(response) { | ||
const status = response.status; | ||
const responseBlob = response instanceof HttpResponse ? response.body : | ||
response.error instanceof Blob ? response.error : undefined; | ||
let _headers = {}; | ||
if (response.headers) { | ||
for (let key of response.headers.keys()) { | ||
_headers[key] = response.headers.get(key); | ||
} | ||
} | ||
if (status === 200) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
let result200 = null; | ||
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); | ||
return of(result200); | ||
})); | ||
} | ||
else if (status === 404) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
let result404 = null; | ||
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); | ||
return throwException("Not Found", status, _responseText, _headers, result404); | ||
})); | ||
} | ||
else if (status === 401) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
return throwException("Unauthorized", status, _responseText, _headers); | ||
})); | ||
} | ||
else if (status === 403) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
return throwException("Forbidden", status, _responseText, _headers); | ||
})); | ||
} | ||
else if (status !== 200 && status !== 204) { | ||
return blobToText(responseBlob).pipe(mergeMap(_responseText => { | ||
return throwException("An unexpected server error occurred.", status, _responseText, _headers); | ||
})); | ||
} | ||
return of(null); | ||
} | ||
} | ||
TenantsApiClient.ɵprov = ɵɵdefineInjectable({ factory: function TenantsApiClient_Factory() { return new TenantsApiClient(ɵɵinject(ApiClientConfiguration), ɵɵinject(HttpClient), ɵɵinject(API_BASE_URL, 8)); }, token: TenantsApiClient, providedIn: "root" }); | ||
TenantsApiClient.decorators = [ | ||
{ type: Injectable, args: [{ | ||
providedIn: 'root' | ||
},] } | ||
]; | ||
TenantsApiClient.ctorParameters = () => [ | ||
{ type: ApiClientConfiguration, decorators: [{ type: Inject, args: [ApiClientConfiguration,] }] }, | ||
{ type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] }, | ||
{ type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] } | ||
]; | ||
/** Conflict types. */ | ||
var ConflictType; | ||
(function (ConflictType) { | ||
ConflictType["Name"] = "Name"; | ||
})(ConflictType || (ConflictType = {})); | ||
var RenderingJobStatus; | ||
@@ -843,3 +1278,2 @@ (function (RenderingJobStatus) { | ||
})(RenderingJobStatus || (RenderingJobStatus = {})); | ||
/** Defines available rendering task statuses. */ | ||
var RenderingTaskStatus; | ||
@@ -933,3 +1367,3 @@ (function (RenderingTaskStatus) { | ||
export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, CreateApiClientConfiguration, RenderingJobStatus, RenderingJobsApiClient, RenderingServiceModule, RenderingTaskStatus }; | ||
export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, ConflictType, CreateApiClientConfiguration, RenderingJobStatus, RenderingJobsApiClient, RenderingServiceModule, RenderingTaskStatus, TenantsApiClient }; | ||
//# sourceMappingURL=aurigma-ng-rendering-service-client.js.map |
@@ -61,3 +61,3 @@ import { Observable } from 'rxjs'; | ||
*/ | ||
getAll(status?: RenderingJobStatus | null | undefined, projectId?: number | null | undefined, projectOrderId?: string | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, tenantId?: number | undefined): Observable<PagedOfRenderingJobDto>; | ||
getAll(status?: RenderingJobStatus | undefined, projectId?: number | undefined, projectOrderId?: string | undefined, skip?: number | undefined, take?: number | undefined, sorting?: string | undefined, tenantId?: number | undefined): Observable<PagedOfRenderingJobDto>; | ||
/** | ||
@@ -68,5 +68,5 @@ * Creates a new rendering job and starts its execution from the very first task. | ||
* @param body (optional) Create operation parameters. | ||
* @return Success | ||
* @return Created | ||
*/ | ||
create(startImmediately?: boolean | undefined, tenantId?: number | undefined, body?: CreateRenderingJobDto | null | undefined): Observable<RenderingJobDto>; | ||
create(startImmediately?: boolean | undefined, tenantId?: number | undefined, body?: CreateRenderingJobDto | undefined): Observable<RenderingJobDto>; | ||
/** | ||
@@ -78,3 +78,3 @@ * Returns a rendering job by ID. | ||
*/ | ||
get(id: string | null, tenantId?: number | undefined): Observable<RenderingJobDto>; | ||
get(id: string, tenantId?: number | undefined): Observable<RenderingJobDto>; | ||
/** | ||
@@ -86,3 +86,3 @@ * Deletes specified rendering job. | ||
*/ | ||
delete(id: string | null, tenantId?: number | undefined): Observable<RenderingJobDto>; | ||
delete(id: string, tenantId?: number | undefined): Observable<RenderingJobDto>; | ||
/** | ||
@@ -94,3 +94,3 @@ * Discards the specified rendering job and prevents its further execution. | ||
*/ | ||
discard(id: string | null, tenantId?: number | undefined): Observable<boolean>; | ||
discard(id: string, tenantId?: number | undefined): Observable<boolean>; | ||
/** | ||
@@ -102,3 +102,3 @@ * Recovers the specified rendering job and continues its execution from the failed task. | ||
*/ | ||
recover(id: string | null, tenantId?: number | undefined): Observable<boolean>; | ||
recover(id: string, tenantId?: number | undefined): Observable<boolean>; | ||
/** | ||
@@ -110,3 +110,3 @@ * Restarts the specified rendering job and begins its execution from the very first task. | ||
*/ | ||
restart(id: string | null, tenantId?: number | undefined): Observable<boolean>; | ||
restart(id: string, tenantId?: number | undefined): Observable<boolean>; | ||
/** | ||
@@ -118,3 +118,3 @@ * Starts the specified rendering job that has never been executed. | ||
*/ | ||
start(id: string | null, tenantId?: number | undefined): Observable<boolean>; | ||
start(id: string, tenantId?: number | undefined): Observable<boolean>; | ||
} | ||
@@ -137,3 +137,3 @@ export declare class RenderingJobsApiClient extends ApiClientBase implements IRenderingJobsApiClient { | ||
*/ | ||
getAll(status?: RenderingJobStatus | null | undefined, projectId?: number | null | undefined, projectOrderId?: string | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, tenantId?: number | undefined): Observable<PagedOfRenderingJobDto>; | ||
getAll(status?: RenderingJobStatus | undefined, projectId?: number | undefined, projectOrderId?: string | undefined, skip?: number | undefined, take?: number | undefined, sorting?: string | undefined, tenantId?: number | undefined): Observable<PagedOfRenderingJobDto>; | ||
protected processGetAll(response: HttpResponseBase): Observable<PagedOfRenderingJobDto>; | ||
@@ -145,5 +145,5 @@ /** | ||
* @param body (optional) Create operation parameters. | ||
* @return Success | ||
* @return Created | ||
*/ | ||
create(startImmediately?: boolean | undefined, tenantId?: number | undefined, body?: CreateRenderingJobDto | null | undefined): Observable<RenderingJobDto>; | ||
create(startImmediately?: boolean | undefined, tenantId?: number | undefined, body?: CreateRenderingJobDto | undefined): Observable<RenderingJobDto>; | ||
protected processCreate(response: HttpResponseBase): Observable<RenderingJobDto>; | ||
@@ -156,3 +156,3 @@ /** | ||
*/ | ||
get(id: string | null, tenantId?: number | undefined): Observable<RenderingJobDto>; | ||
get(id: string, tenantId?: number | undefined): Observable<RenderingJobDto>; | ||
protected processGet(response: HttpResponseBase): Observable<RenderingJobDto>; | ||
@@ -165,3 +165,3 @@ /** | ||
*/ | ||
delete(id: string | null, tenantId?: number | undefined): Observable<RenderingJobDto>; | ||
delete(id: string, tenantId?: number | undefined): Observable<RenderingJobDto>; | ||
protected processDelete(response: HttpResponseBase): Observable<RenderingJobDto>; | ||
@@ -174,3 +174,3 @@ /** | ||
*/ | ||
discard(id: string | null, tenantId?: number | undefined): Observable<boolean>; | ||
discard(id: string, tenantId?: number | undefined): Observable<boolean>; | ||
protected processDiscard(response: HttpResponseBase): Observable<boolean>; | ||
@@ -183,3 +183,3 @@ /** | ||
*/ | ||
recover(id: string | null, tenantId?: number | undefined): Observable<boolean>; | ||
recover(id: string, tenantId?: number | undefined): Observable<boolean>; | ||
protected processRecover(response: HttpResponseBase): Observable<boolean>; | ||
@@ -192,3 +192,3 @@ /** | ||
*/ | ||
restart(id: string | null, tenantId?: number | undefined): Observable<boolean>; | ||
restart(id: string, tenantId?: number | undefined): Observable<boolean>; | ||
protected processRestart(response: HttpResponseBase): Observable<boolean>; | ||
@@ -201,5 +201,86 @@ /** | ||
*/ | ||
start(id: string | null, tenantId?: number | undefined): Observable<boolean>; | ||
start(id: string, tenantId?: number | undefined): Observable<boolean>; | ||
protected processStart(response: HttpResponseBase): Observable<boolean>; | ||
} | ||
export interface ITenantsApiClient { | ||
/** | ||
* Returns all tenants. | ||
* @param skip (optional) Defines page start offset from beginning of sorted result list. | ||
* @param take (optional) Defines page length (how much consequent items of sorted result list should be taken). | ||
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC". | ||
* @param search (optional) Search string for partial match. | ||
* @return Success | ||
*/ | ||
getAll(skip?: number | undefined, take?: number | undefined, sorting?: string | undefined, search?: string | undefined): Observable<PagedOfTenantDto>; | ||
/** | ||
* Creates a new tenant. | ||
* @param body (optional) Operation parameters. | ||
* @return Created | ||
*/ | ||
create(body?: CreateTenantDto | undefined): Observable<TenantDto>; | ||
/** | ||
* Returns a tenant by ID. | ||
* @param id Tenant identifier. | ||
* @return Success | ||
*/ | ||
get(id: number): Observable<TenantDto>; | ||
/** | ||
* Updates the specified tenant. | ||
* @param id Tenant identifier. | ||
* @param body (optional) Operation parameters | ||
* @return Success | ||
*/ | ||
update(id: number, body?: UpdateTenantDto | undefined): Observable<TenantDto>; | ||
/** | ||
* Deletes the specified tenant. | ||
* @param id Tenant identifier. | ||
* @return Success | ||
*/ | ||
delete(id: number): Observable<TenantDto>; | ||
} | ||
export declare class TenantsApiClient extends ApiClientBase implements ITenantsApiClient { | ||
private http; | ||
private baseUrl; | ||
protected jsonParseReviver: ((key: string, value: any) => any) | undefined; | ||
constructor(configuration: ApiClientConfiguration, http: HttpClient, baseUrl?: string); | ||
/** | ||
* Returns all tenants. | ||
* @param skip (optional) Defines page start offset from beginning of sorted result list. | ||
* @param take (optional) Defines page length (how much consequent items of sorted result list should be taken). | ||
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC". | ||
* @param search (optional) Search string for partial match. | ||
* @return Success | ||
*/ | ||
getAll(skip?: number | undefined, take?: number | undefined, sorting?: string | undefined, search?: string | undefined): Observable<PagedOfTenantDto>; | ||
protected processGetAll(response: HttpResponseBase): Observable<PagedOfTenantDto>; | ||
/** | ||
* Creates a new tenant. | ||
* @param body (optional) Operation parameters. | ||
* @return Created | ||
*/ | ||
create(body?: CreateTenantDto | undefined): Observable<TenantDto>; | ||
protected processCreate(response: HttpResponseBase): Observable<TenantDto>; | ||
/** | ||
* Returns a tenant by ID. | ||
* @param id Tenant identifier. | ||
* @return Success | ||
*/ | ||
get(id: number): Observable<TenantDto>; | ||
protected processGet(response: HttpResponseBase): Observable<TenantDto>; | ||
/** | ||
* Updates the specified tenant. | ||
* @param id Tenant identifier. | ||
* @param body (optional) Operation parameters | ||
* @return Success | ||
*/ | ||
update(id: number, body?: UpdateTenantDto | undefined): Observable<TenantDto>; | ||
protected processUpdate(response: HttpResponseBase): Observable<TenantDto>; | ||
/** | ||
* Deletes the specified tenant. | ||
* @param id Tenant identifier. | ||
* @return Success | ||
*/ | ||
delete(id: number): Observable<TenantDto>; | ||
protected processDelete(response: HttpResponseBase): Observable<TenantDto>; | ||
} | ||
/** Information about a service. */ | ||
@@ -216,67 +297,24 @@ export interface BuildInfoModel { | ||
} | ||
/** Rendering job status. */ | ||
export declare enum RenderingJobStatus { | ||
New = "New", | ||
InProgress = "InProgress", | ||
Completed = "Completed", | ||
Failed = "Failed", | ||
Recovered = "Recovered", | ||
Discarded = "Discarded" | ||
/** Conflict types. */ | ||
export declare enum ConflictType { | ||
Name = "Name" | ||
} | ||
/** Project item information. */ | ||
export interface ProjectItemInfo { | ||
/** Project item identifier. */ | ||
itemId?: number | null; | ||
/** Project item name. */ | ||
name?: string | null; | ||
/** Identifier of rendering job that will process project item data. */ | ||
jobId?: string | null; | ||
/** Project item quantity. */ | ||
quantity?: number; | ||
/** Project item custom informational fields. */ | ||
fields?: { | ||
[key: string]: any; | ||
} | null; | ||
/** Project item design identifiers. */ | ||
designIds?: string[] | null; | ||
/** DTO, containing parameters for creating rendering job. */ | ||
export interface CreateRenderingJobDto { | ||
/** Rendering Job identifier. If not set, identifier will be generated automatically. */ | ||
id?: string | null; | ||
/** Project description. */ | ||
project?: ProjectInfo | null; | ||
/** Rendering task list. */ | ||
tasks?: CreateRenderingTaskDto[] | null; | ||
} | ||
/** Project information. */ | ||
export interface ProjectInfo { | ||
/** Project identifier. */ | ||
id?: number; | ||
/** Project owner identifier. */ | ||
ownerId?: string | null; | ||
/** Project name. */ | ||
name?: string | null; | ||
/** Project order identifier. */ | ||
orderId?: string | null; | ||
/** Project order number. */ | ||
orderNumber?: string | null; | ||
/** Project order customer identifier. */ | ||
customerId?: string | null; | ||
/** Project order customer name. */ | ||
customerName?: string | null; | ||
/** List of project items. */ | ||
items?: ProjectItemInfo[] | null; | ||
} | ||
/** Defines available rendering task statuses. */ | ||
export declare enum RenderingTaskStatus { | ||
New = "New", | ||
InProgress = "InProgress", | ||
Completed = "Completed", | ||
Failed = "Failed", | ||
RequestFailed = "RequestFailed", | ||
Pending = "Pending", | ||
Skipped = "Skipped" | ||
} | ||
export interface RenderingTaskDto { | ||
/** DTO, containing parameters for creating rendering task. */ | ||
export interface CreateRenderingTaskDto { | ||
/** Rendering task description. */ | ||
description?: string | null; | ||
/** Rendering task identifier. */ | ||
id?: string | null; | ||
/** Rendering task name. It should be unique within job task list. */ | ||
name?: string | null; | ||
/** Rendering task namespace. It is used to find appropriate task processor. */ | ||
/** Rendering task namespace. It is used to find appropriate task processor in conjunction with 'Type' property. */ | ||
namespace?: string | null; | ||
/** Rendering task type. It is used to find appropriate task processor. | ||
/** Rendering task type. It is used to find appropriate task processor in conjunction with 'Namespace' property. | ||
/// */ | ||
@@ -286,3 +324,3 @@ type?: string | null; | ||
inputArtifacts?: string[] | null; | ||
/** Rendering task processing parameters. */ | ||
/** Task processing parameters dictinary. */ | ||
parameters?: { | ||
@@ -295,17 +333,64 @@ [key: string]: any; | ||
finalArtifacts?: string[] | null; | ||
/** Rendering task status. */ | ||
status?: RenderingTaskStatus; | ||
/** Rendering task 'processing requested' timestamp. */ | ||
requested?: string | null; | ||
/** Rendering task 'processing started' timestamp. */ | ||
started?: string | null; | ||
/** Rendering task 'processing completed' timestamp. */ | ||
finished?: string | null; | ||
/** Rendering task processing timeout. */ | ||
/** Task processing timeout. */ | ||
processingTimeout?: number | null; | ||
/** Rendering task automatic retry count value. */ | ||
autoRetryCount?: number | null; | ||
/** Rendering task 'long execution' tag. */ | ||
longExecution?: boolean | null; | ||
/** Task processing automatic retry count limit. */ | ||
maxAutoRetryCount?: number | null; | ||
} | ||
/** DTO, containing create operation parameters for a tenant entity. */ | ||
export interface CreateTenantDto { | ||
/** Tenant entity desired identifier. */ | ||
id: number; | ||
/** Tenant name. */ | ||
name: string; | ||
} | ||
/** Information about operation subject which has name conflict. */ | ||
export interface NameConflictDto { | ||
/** Coflict type. */ | ||
readonly type?: ConflictType; | ||
/** Operation subject identifier. */ | ||
id?: string | null; | ||
/** Operation subject name. */ | ||
name?: string | null; | ||
} | ||
/** DTO, containing results of paged query. */ | ||
export interface PagedOfRenderingJobDto { | ||
/** Items count. */ | ||
total?: number; | ||
/** Items list. */ | ||
items?: RenderingJobDto[] | null; | ||
} | ||
/** DTO, containing results of paged query. */ | ||
export interface PagedOfTenantDto { | ||
/** Items count. */ | ||
total?: number; | ||
/** Items list. */ | ||
items?: TenantDto[] | null; | ||
} | ||
export interface ProblemDetails { | ||
type?: string | null; | ||
title?: string | null; | ||
status?: number | null; | ||
detail?: string | null; | ||
instance?: string | null; | ||
} | ||
export interface ProjectInfo { | ||
id?: number; | ||
ownerId?: string | null; | ||
name?: string | null; | ||
orderId?: string | null; | ||
orderNumber?: string | null; | ||
customerId?: string | null; | ||
customerName?: string | null; | ||
items?: ProjectItemInfo[] | null; | ||
} | ||
export interface ProjectItemInfo { | ||
itemId?: number | null; | ||
name?: string | null; | ||
jobId?: string | null; | ||
quantity?: number; | ||
fields?: { | ||
[key: string]: any; | ||
} | null; | ||
designIds?: string[] | null; | ||
} | ||
/** Rendering job DTO. */ | ||
@@ -336,18 +421,20 @@ export interface RenderingJobDto { | ||
} | ||
/** DTO, containing results of paged query. */ | ||
export interface PagedOfRenderingJobDto { | ||
/** Items count. */ | ||
total?: number; | ||
/** Items list. */ | ||
items?: RenderingJobDto[] | null; | ||
export declare enum RenderingJobStatus { | ||
New = "New", | ||
InProgress = "InProgress", | ||
Completed = "Completed", | ||
Failed = "Failed", | ||
Recovered = "Recovered", | ||
Discarded = "Discarded" | ||
} | ||
/** DTO, containing parameters for creating rendering task. */ | ||
export interface CreateRenderingTaskDto { | ||
export interface RenderingTaskDto { | ||
/** Rendering task description. */ | ||
description?: string | null; | ||
/** Rendering task identifier. */ | ||
id?: string | null; | ||
/** Rendering task name. It should be unique within job task list. */ | ||
name?: string | null; | ||
/** Rendering task namespace. It is used to find appropriate task processor in conjunction with 'Type' property. */ | ||
/** Rendering task namespace. It is used to find appropriate task processor. */ | ||
namespace?: string | null; | ||
/** Rendering task type. It is used to find appropriate task processor in conjunction with 'Namespace' property. | ||
/** Rendering task type. It is used to find appropriate task processor. | ||
/// */ | ||
@@ -357,3 +444,3 @@ type?: string | null; | ||
inputArtifacts?: string[] | null; | ||
/** Task processing parameters dictinary. */ | ||
/** Rendering task processing parameters. */ | ||
parameters?: { | ||
@@ -366,23 +453,40 @@ [key: string]: any; | ||
finalArtifacts?: string[] | null; | ||
/** Task processing timeout. */ | ||
/** Rendering task status. */ | ||
status?: RenderingTaskStatus; | ||
/** Rendering task 'processing requested' timestamp. */ | ||
requested?: string | null; | ||
/** Rendering task 'processing started' timestamp. */ | ||
started?: string | null; | ||
/** Rendering task 'processing completed' timestamp. */ | ||
finished?: string | null; | ||
/** Rendering task processing timeout. */ | ||
processingTimeout?: number | null; | ||
/** Task processing automatic retry count limit. */ | ||
maxAutoRetryCount?: number | null; | ||
/** Rendering task automatic retry count value. */ | ||
autoRetryCount?: number | null; | ||
/** Rendering task 'long execution' tag. */ | ||
longExecution?: boolean | null; | ||
} | ||
/** DTO, containing parameters for creating rendering job. */ | ||
export interface CreateRenderingJobDto { | ||
/** Rendering Job identifier. If not set, identifier will be generated automatically. */ | ||
id?: string | null; | ||
/** Project description. */ | ||
project?: ProjectInfo | null; | ||
/** Rendering task list. */ | ||
tasks?: CreateRenderingTaskDto[] | null; | ||
export declare enum RenderingTaskStatus { | ||
New = "New", | ||
InProgress = "InProgress", | ||
Completed = "Completed", | ||
Failed = "Failed", | ||
RequestFailed = "RequestFailed", | ||
Pending = "Pending", | ||
Skipped = "Skipped" | ||
} | ||
export interface ProblemDetails { | ||
type?: string | null; | ||
title?: string | null; | ||
status?: number | null; | ||
detail?: string | null; | ||
instance?: string | null; | ||
/** Tenant DTO. */ | ||
export interface TenantDto { | ||
/** Tenant unique identifier. */ | ||
id?: number; | ||
/** Tenant name. */ | ||
name?: string | null; | ||
/** Last entity modification date and time. */ | ||
lastModified?: string; | ||
} | ||
/** DTO, containing update operation parameters for a tenant entity. */ | ||
export interface UpdateTenantDto { | ||
/** Tenant name. */ | ||
name?: string | null; | ||
} | ||
export declare class ApiException extends Error { | ||
@@ -389,0 +493,0 @@ message: string; |
{ | ||
"name": "@aurigma/ng-rendering-service-client", | ||
"version": "2.62.9", | ||
"version": "2.63.2", | ||
"license": "SEE LICENSE IN License.md", | ||
@@ -5,0 +5,0 @@ "description": "Angular API Client for Rendering service of Customer's Canvas web-to-print system.", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
842193
39.15%5264
40.26%1
-50%