!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common/http"),require("@angular/common")):"function"==typeof define&&define.amd?define("veri-wine-client-angular-central",["exports","@angular/core","@angular/common/http","@angular/common"],t):t((e=e||self)["veri-wine-client-angular-central"]={},e.ng.core,e.ng.common.http,e.ng.common)}(this,(function(e,t,r,s){"use strict";
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation. All rights reserved.
    Licensed under the Apache License, Version 2.0 (the "License"); you may not use
    this file except in compliance with the License. You may obtain a copy of the
    License at http://www.apache.org/licenses/LICENSE-2.0

    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
    MERCHANTABLITY OR NON-INFRINGEMENT.

    See the Apache Version 2.0 License for specific language governing permissions
    and limitations under the License.
    ***************************************************************************** */var i,o,a,n,h,p,d;function v(e,t,r,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function _(e,t){return function(r,s){t(r,s,e)}}(i=e.OffersChainStatusEnum||(e.OffersChainStatusEnum={})).CreatorDecisionRequired="creator_decision_required",i.OfferorDecisionRequired="offeror_decision_required",i.Accepted="accepted",i.Refused="refused",(o=e.RecipientLegalTypeEnum||(e.RecipientLegalTypeEnum={})).Winery="winery",o.Exporter="exporter",o.Importer="importer",o.TransportCompany="transport_company",o.Warehouse="warehouse",o.Distributor="distributor",o.Wholesale="wholesale",o.Retail="retail",o.ECommerce="e_commerce",o.Expert="expert",o.ConsumerCellarer="consumer_cellarer",(a=e.BottleGroupStatusEnum||(e.BottleGroupStatusEnum={})).ReadyForTagging="ready_for_tagging",a.TaggingInProgress="tagging_in_progress",a.ReadyForMarket="ready_for_market",(n=e.TypeEnum||(e.TypeEnum={})).WoodenBox="wooden_box",n.CardboardBox="cardboard_box",(h=e.SizeEnum||(e.SizeEnum={})).OneBottle="one_bottle",h.TwoBottles="two_bottles",h.ThreeBottles="three_bottles",h.SixBottles="six_bottles",h.TwelveBottles="twelve_bottles",(p=e.RoleEnum||(e.RoleEnum={})).Admin="admin",p.Producer="producer",p.Consumer="consumer",p.Professional="professional",(d=e.ApprovingStatusEnum||(e.ApprovingStatusEnum={})).WaitingForApproval="waiting_for_approval",d.ParticipantNewPassword="participant_new_password",d.Approved="approved",d.Rejected="rejected",d.PasswordChangeRequired="password_change_required";var l=new t.InjectionToken("Server url"),c=function(){function e(){}return e.prototype.sanitizeObject=function(e,t){return void 0===t&&(t=[null,void 0]),Object.keys(e).reduce((function(r,s){var i=e[s];if(t.indexOf(i)<0){var o=i instanceof Array?i.map((function(e){return e.toString()})):i.toString();r[s]=o}return r}),{})},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"})],e)}(),u=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.getAll=function(){var e=this._headers;this._headers=void 0;var t={observe:"body",responseType:"json",headers:e},r=this._serverUrl+"/api/appellation";return this._httpClient.get(r,t)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),y=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.approveCustomerOnBoarding=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/onboarding/customers/"+e+"/agents/"+t+"/roles/approve";return this._httpClient.post(i,void 0,s)},e.prototype.approveOrganizationOnBoarding=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/onboarding/organizations/"+e+"/agents/"+t+"/roles/approve";return this._httpClient.post(i,void 0,s)},e.prototype.approveWineryOnBoarding=function(e,t,r){var s=this._headers;this._headers=void 0;var i={observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/onboarding/organizations/"+e+"/wineries/"+t+"/agents/"+r+"/roles/approve";return this._httpClient.post(o,void 0,i)},e.prototype.createCustomerOnBoardingRequest=function(e,t,r){var s=this._headers;this._headers=void 0;var i={observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/onboarding/customers/"+e+"/agents/"+t+"/roles";return this._httpClient.post(o,r,i)},e.prototype.createOrganizationOnBoardingRequest=function(e,t,r){var s=this._headers;this._headers=void 0;var i={observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/onboarding/organizations/"+e+"/agents/"+t+"/roles";return this._httpClient.post(o,r,i)},e.prototype.createWineryOnBoardingRequest=function(e,t,r,s){var i=this._headers;this._headers=void 0;var o={observe:"body",responseType:"json",headers:i},a=this._serverUrl+"/api/onboarding/organizations/"+e+"/wineries/"+t+"/agents/"+r+"/roles";return this._httpClient.post(a,s,o)},e.prototype.getCustomerOnBoardingRequests=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/onboarding/customers/"+e+"/agents/"+t+"/roles";return this._httpClient.get(i,s)},e.prototype.getOrganizationOnBoardingRequests=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/onboarding/organizations/"+e+"/agents/"+t+"/roles";return this._httpClient.get(i,s)},e.prototype.getWineryOnBoardingRequests=function(e,t,r){var s=this._headers;this._headers=void 0;var i={observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/onboarding/organizations/"+e+"/wineries/"+t+"/agents/"+r+"/roles";return this._httpClient.get(o,i)},e.prototype.registerCustomerManagedAgent=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/onboarding/customers/"+e+"/agents";return this._httpClient.post(i,t,s)},e.prototype.registerCustomerWalletlessAgent=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/onboarding/customers/"+e+"/agents";return this._httpClient.put(i,t,s)},e.prototype.registerOrganizationManagedAgent=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/onboarding/organizations/"+e+"/agents";return this._httpClient.post(i,t,s)},e.prototype.registerOrganizationWalletlessAgent=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/onboarding/organizations/"+e+"/agents";return this._httpClient.put(i,t,s)},e.prototype.registerWineryManagedAgent=function(e,t,r){var s=this._headers;this._headers=void 0;var i={observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/onboarding/organizations/"+t+"/wineries/"+e+"/agents";return this._httpClient.post(o,r,i)},e.prototype.registerWineryWalletlessAgent=function(e,t,r){var s=this._headers;this._headers=void 0;var i={observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/onboarding/organizations/"+e+"/wineries/"+t+"/agents";return this._httpClient.put(o,r,i)},e.prototype.searchEthAddresses=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/onboarding/ethaddresses";return this._httpClient.get(s,r)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),b=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.addBottleGroup=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/bottlebatch/"+e+"/bottlegroup";return this._httpClient.post(o,r,i)},e.prototype.bottleGroupStatusTransitions=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/bottlebatch/"+e+"/bottlegroup/"+t+"/status/allowedTransitions";return this._httpClient.get(o,i)},e.prototype.changeBottleBatchStatus=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/bottlebatch/"+e+"/status";return this._httpClient.put(i,void 0,s)},e.prototype.createBottleBatch=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/bottlebatch";return this._httpClient.post(i,t,s)},e.prototype.deleteBottleBatch=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/bottlebatch/"+e;return this._httpClient.delete(i,s)},e.prototype.deleteBottleGroup=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/bottlebatch/"+e+"/bottlegroup/"+t;return this._httpClient.delete(o,i)},e.prototype.getAllBottleBatches=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/bottlebatch/all";return this._httpClient.get(s,r)},e.prototype.getBottleBatch=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/bottlebatch/"+e;return this._httpClient.get(i,s)},e.prototype.getBottleBatchImages=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/bottlebatch/"+e+"/images/"+t;return this._httpClient.get(i,s)},e.prototype.getBottleBatchImagesDto=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/bottlebatch/"+e+"/images/"+t+"/dto";return this._httpClient.get(i,s)},e.prototype.getBottleBatchImagesInfos=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/bottlebatch/"+e+"/images";return this._httpClient.get(s,r)},e.prototype.getBottleBatchStatusTransitions=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/bottlebatch/"+e+"/status/allowedTransitions";return this._httpClient.get(i,s)},e.prototype.getBottleBatchesPage=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/bottlebatch/page";return this._httpClient.get(s,r)},e.prototype.getBottleGroup=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/bottlebatch/"+e+"/bottlegroup/"+t;return this._httpClient.get(o,i)},e.prototype.getBottleGroupById=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/bottlebatch/bottlegroup/"+e;return this._httpClient.get(i,s)},e.prototype.getBottleGroups=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/bottlebatch/wineries/"+e+"/bottlegroups";return this._httpClient.get(i,s)},e.prototype.getBottleGroupsPage=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/bottlebatch/bottlegroup/page";return this._httpClient.get(s,r)},e.prototype.getBottleSizes=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/bottlebatch/sizes";return this._httpClient.get(s,r)},e.prototype.isBottleBatchEditable=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/bottlebatch/"+e+"/editable";return this._httpClient.get(i,s)},e.prototype.isBottleGroupEditable=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/bottlebatch/"+e+"/bottlegroup/"+t+"/isEditable";return this._httpClient.get(o,i)},e.prototype.markBottleGroupLabellingInProgress=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/bottlebatch/"+e+"/bottlegroup/"+t+"/status/labellingInProgress";return this._httpClient.post(o,void 0,i)},e.prototype.markBottleGroupReadyForMarket=function(e,t,r,s){var i=this._headers;this._headers=void 0;var o={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:i},a=this._serverUrl+"/api/bottlebatch/"+e+"/bottlegroup/"+t+"/status/readyForMarket";return this._httpClient.post(a,s,o)},e.prototype.updateBottleBatch=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/bottlebatch/"+e;return this._httpClient.put(o,r,i)},e.prototype.updateBottleGroup=function(e,t,r,s){var i=this._headers;this._headers=void 0;var o={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:i},a=this._serverUrl+"/api/bottlebatch/"+e+"/bottlegroup/"+t;return this._httpClient.put(a,s,o)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),g=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.changeBottleStatus=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/bottle/"+e+"/status/"+t;return this._httpClient.post(i,void 0,s)},e.prototype.checkIsBottleAvailable=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/bottle/"+e+"/box/available";return this._httpClient.get(s,r)},e.prototype.getAvailableBottles=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/bottle/available";return this._httpClient.get(s,r)},e.prototype.getBottle=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/bottle/"+e;return this._httpClient.get(s,r)},e.prototype.getBottleBlockchainHistory=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/bottle/"+e+"/history/blockchain";return this._httpClient.get(s,r)},e.prototype.getBottleSummary=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/bottle/"+e+"/bottleSummary";return this._httpClient.get(s,r)},e.prototype.getBottleSummaryBasic=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/bottle/"+e+"/bottleSummary/basic";return this._httpClient.get(s,r)},e.prototype.getBottleSummaryExtended=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/bottle/"+e+"/bottleSummary/extended";return this._httpClient.get(s,r)},e.prototype.getBottlesBySearchParams=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/bottle/search";return this._httpClient.post(s,e,r)},e.prototype.getRandomBottle=function(){var e=this._headers;this._headers=void 0;var t={observe:"body",responseType:"json",headers:e},r=this._serverUrl+"/api/bottle/random";return this._httpClient.get(r,t)},e.prototype.getRecentBottles=function(){var e=this._headers;this._headers=void 0;var t={observe:"body",responseType:"json",headers:e},r=this._serverUrl+"/api/bottle/recent";return this._httpClient.get(r,t)},e.prototype.searchSingleBottle=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/bottle/searchOne";return this._httpClient.get(s,r)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),j=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.checkIn=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/bottleops/checkIns";return this._httpClient.post(i,t,s)},e.prototype.checkOut=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/bottleops/checkOuts";return this._httpClient.post(i,t,s)},e.prototype.consume=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/bottleops/statuses";return this._httpClient.post(i,t,s)},e.prototype.transferOwnership=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/bottleops/ownershipTransfers";return this._httpClient.post(i,t,s)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),f=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.getDepartmentAggregatedCellar=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/cellar/department/"+e+"/aggregated";return this._httpClient.get(i,s)},e.prototype.getDepartmentDetailedCellar=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/cellar/department/"+e+"/detailed";return this._httpClient.get(i,s)},e.prototype.getPersonalAggregatedCellar=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/cellar/user/"+e+"/aggregated";return this._httpClient.get(i,s)},e.prototype.getPersonalDetailedCellar=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/cellar/user/"+e+"/detailed";return this._httpClient.get(i,s)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),U=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.changeStatusTagId=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/tagging/status/"+e;return this._httpClient.put(i,void 0,s)},e.prototype.changeStatusTagIds=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/tagging/status";return this._httpClient.put(i,t,s)},e.prototype.checkTag=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/tagging/tag/"+e+"/status";return this._httpClient.get(i,s)},e.prototype.generateTagIds=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/tagging/"+t+"/"+e;return this._httpClient.post(o,void 0,i)},e.prototype.generateTagIdsForBottleBatch=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/tagging/batch/"+t+"/"+e;return this._httpClient.post(o,void 0,i)},e.prototype.getResourceByTid=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/tagging/scan/"+e;return this._httpClient.get(s,r)},e.prototype.getTagIdById=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/tagging/"+e;return this._httpClient.get(s,r)},e.prototype.getTagIdPage=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/tagging/page";return this._httpClient.get(s,r)},e.prototype.getTagIds=function(){var e=this._headers;this._headers=void 0;var t={observe:"body",responseType:"json",headers:e},r=this._serverUrl+"/api/tagging";return this._httpClient.get(r,t)},e.prototype.tagIdExists=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/tagging/exists/"+e;return this._httpClient.get(s,r)},e.prototype.tagIdIsOfType=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/tagging/type/"+t+"/"+e;return this._httpClient.get(i,s)},e.prototype.verifyGroupBottles=function(e,t,r,s){var i=this._headers;this._headers=void 0;var o={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:i},a=this._serverUrl+"/api/tagging/"+e+"/bottlegroup/"+t+"/status/verify";return this._httpClient.post(a,s,o)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),C=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.getWineryTest=function(){var e=this._headers;this._headers=void 0;var t={observe:"body",responseType:"json",headers:e},r=this._serverUrl+"/api/market/test";return this._httpClient.get(r,t)},e.prototype.produceWineTest=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/market/test2";return this._httpClient.get(s,r)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),m=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.createOenologist=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/oenologist";return this._httpClient.post(s,e,r)},e.prototype.deleteOenologist=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/oenologist/"+e;return this._httpClient.delete(i,s)},e.prototype.getOenologist=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/oenologist/"+e;return this._httpClient.get(s,r)},e.prototype.getOenologistPage=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/oenologist/page";return this._httpClient.get(s,r)},e.prototype.getOenologists=function(){var e=this._headers;this._headers=void 0;var t={observe:"body",responseType:"json",headers:e},r=this._serverUrl+"/api/oenologist";return this._httpClient.get(r,t)},e.prototype.updateOenologist=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/oenologist/"+e;return this._httpClient.put(i,t,s)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),T=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.acceptOffer=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/offer/instance/"+e+"/accept";return this._httpClient.post(i,void 0,s)},e.prototype.createOffer=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/offer/instance";return this._httpClient.post(i,t,s)},e.prototype.getAvailableBottlesForOffer=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/offer/bottles";return this._httpClient.get(s,r)},e.prototype.getAvailableBoxesForOffer=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/offer/boxes";return this._httpClient.get(s,r)},e.prototype.getAvailableVintagesForOffer=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/offer/vintages";return this._httpClient.get(s,r)},e.prototype.getBuyerOffers=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/offer/instance/"+e+"/buyers";return this._httpClient.get(i,s)},e.prototype.getOffer=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/offer/instance/"+e;return this._httpClient.get(s,r)},e.prototype.getOfferPage=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/offer/page";return this._httpClient.get(s,r)},e.prototype.rejectOffer=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/offer/instance/"+e+"/reject";return this._httpClient.post(i,void 0,s)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),O=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.confirmPaymentForOrder=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/order/orders2/"+e+"/confirmPayment";return this._httpClient.post(i,void 0,s)},e.prototype.getOrder=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/order/orders2/"+e;return this._httpClient.get(i,s)},e.prototype.lookupBottles=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/order/orders/"+e+"/bottles/lookup";return this._httpClient.get(i,s)},e.prototype.performPaymentForOrder=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/order/orders2/"+e+"/performPayment";return this._httpClient.post(i,void 0,s)},e.prototype.reserveBottlesForOrder=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/order/orders2/"+e+"/reserveBottles";return this._httpClient.post(i,void 0,s)},e.prototype.searchOrders=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/order/orders2";return this._httpClient.get(s,r)},e.prototype.startBottlesReservingForOrder=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/order/orders2/"+e+"/startBottlesReserving";return this._httpClient.post(i,void 0,s)},e.prototype.startTransferOwnershipForOrder=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/order/orders2/"+e+"/startTransferOwnership";return this._httpClient.post(i,void 0,s)},e.prototype.validateBottle=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/order/orders/"+e+"/bottles/"+t+"/validate";return this._httpClient.post(o,void 0,i)},e.prototype.validateOrder=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/order/orders/"+e+"/validate";return this._httpClient.post(i,void 0,s)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),I=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.addOrgUnitImage=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/orgunit/"+e+"/image";return this._httpClient.post(o,r,i)},e.prototype.approveOrgUnit=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/orgunit/"+e+"/approve";return this._httpClient.post(i,void 0,s)},e.prototype.createOrgUnit=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/orgunit";return this._httpClient.post(i,t,s)},e.prototype.getAllOrgUnits=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/orgunit/all/restricted";return this._httpClient.get(s,r)},e.prototype.getAllOrgUnits1=function(){var e=this._headers;this._headers=void 0;var t={observe:"body",responseType:"json",headers:e},r=this._serverUrl+"/api/orgunit/all";return this._httpClient.get(r,t)},e.prototype.getAllOrgUnitsNames=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/orgunit/names";return this._httpClient.get(s,r)},e.prototype.getAllOrgUnitsWhereProducer=function(){var e=this._headers;this._headers=void 0;var t={observe:"body",responseType:"json",headers:e},r=this._serverUrl+"/api/orgunit";return this._httpClient.get(r,t)},e.prototype.getOrgUnit=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/orgunit/"+e;return this._httpClient.get(s,r)},e.prototype.getOrgUnitImage=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/orgunit/"+e+"/image/"+t;return this._httpClient.get(i,s)},e.prototype.getOrgUnitImagesInfos=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/orgunit/"+e+"/image";return this._httpClient.get(s,r)},e.prototype.getOrganizationsByApprovalStatus=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/orgunit/all/"+e;return this._httpClient.get(i,s)},e.prototype.rejectOrgUnit=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/orgunit/"+e+"/reject";return this._httpClient.post(i,void 0,s)},e.prototype.removeOrgUnit=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/orgunit/"+e;return this._httpClient.delete(i,s)},e.prototype.removeOrgUnitImage=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/orgunit/"+e+"/images/"+t;return this._httpClient.delete(o,i)},e.prototype.searchOrgUnitsPage=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/orgunit/page";return this._httpClient.get(s,r)},e.prototype.updateOrgUnit=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/orgunit";return this._httpClient.put(i,t,s)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),z=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.addOrgImage=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/organization/"+e+"/image";return this._httpClient.post(o,r,i)},e.prototype.approveOrganization=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/organization/"+e+"/approve";return this._httpClient.post(i,void 0,s)},e.prototype.createOrganization=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/organization";return this._httpClient.post(s,e,r)},e.prototype.deleteOrganizationLogo=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/organization/"+e+"/logo";return this._httpClient.delete(s,r)},e.prototype.getAllOrganizations=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/organization/all";return this._httpClient.get(s,r)},e.prototype.getOrgUnitImage1=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/organization/"+e+"/image/"+t;return this._httpClient.get(i,s)},e.prototype.getOrganization=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/organization/"+e;return this._httpClient.get(s,r)},e.prototype.getOrganizationLogo=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/organization/"+e+"/logo/"+t;return this._httpClient.get(i,s)},e.prototype.getOrganizationsByApprovalStatus1=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/organization/all/"+e;return this._httpClient.get(i,s)},e.prototype.rejectOrganization=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/organization/"+e+"/reject";return this._httpClient.post(i,void 0,s)},e.prototype.removeOrgImage=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/organization/"+e+"/image/"+t;return this._httpClient.delete(o,i)},e.prototype.removeOrganization=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/organization/"+e;return this._httpClient.delete(s,r)},e.prototype.searchPage=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/organization/page";return this._httpClient.get(s,r)},e.prototype.searchSingleOrganization=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/organization/single";return this._httpClient.get(s,r)},e.prototype.updateOrganization=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/organization";return this._httpClient.put(s,e,r)},e.prototype.updateOrganizationLogo=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/organization/"+e+"/logo";return this._httpClient.put(i,t,s)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),w=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.registerOrgUnits=function(){var e=this._headers;this._headers=void 0;var t={observe:"body",responseType:"json",headers:e},r=this._serverUrl+"/api/data/orgUnits";return this._httpClient.post(r,void 0,t)},e.prototype.registerOrgs=function(){var e=this._headers;this._headers=void 0;var t={observe:"body",responseType:"json",headers:e},r=this._serverUrl+"/api/data/organizations";return this._httpClient.post(r,void 0,t)},e.prototype.registerUsers=function(){var e=this._headers;this._headers=void 0;var t={observe:"body",responseType:"json",headers:e},r=this._serverUrl+"/api/data/users";return this._httpClient.post(r,void 0,t)},e.prototype.updateUsersRole=function(){var e=this._headers;this._headers=void 0;var t={observe:"body",responseType:"json",headers:e},r=this._serverUrl+"/api/data/users/role";return this._httpClient.put(r,void 0,t)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),B=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.getAllForLanguageId=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/translations/getAllForLanguageId/"+e;return this._httpClient.get(i,s)},e.prototype.getRefBook=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/translations/"+e+"/"+t;return this._httpClient.get(o,i)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),H=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.activateUser=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/users/"+e+"/activate";return this._httpClient.post(s,void 0,r)},e.prototype.addUserRole=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/users/"+e+"/roles";return this._httpClient.post(i,void 0,s)},e.prototype.approveOwnerRole=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/users/"+e+"/owner/approve";return this._httpClient.post(i,void 0,s)},e.prototype.approveUserRole=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/users/"+e+"/roles/"+t+"/approve";return this._httpClient.post(o,void 0,i)},e.prototype.assignAdminRole=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/users/"+e+"/admin";return this._httpClient.post(s,void 0,r)},e.prototype.changePassword=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/users/changePassword";return this._httpClient.put(s,void 0,r)},e.prototype.createUser=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/users";return this._httpClient.post(i,t,s)},e.prototype.deactivateUser=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/users/"+e+"/deactivate";return this._httpClient.post(s,void 0,r)},e.prototype.deleteUserRole=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/users/"+e+"/roles/"+t;return this._httpClient.delete(i,s)},e.prototype.getAllAllowedUserRoles=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/users/roles";return this._httpClient.get(s,r)},e.prototype.getAllRoleInfos=function(){var e=this._headers;this._headers=void 0;var t={observe:"body",responseType:"json",headers:e},r=this._serverUrl+"/api/users/roles/infos";return this._httpClient.get(r,t)},e.prototype.getAvatar=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/users/"+e+"/avatar";return this._httpClient.get(s,r)},e.prototype.getOwnerRequests=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/users/owner/requests";return this._httpClient.get(s,r)},e.prototype.getProducerRolesSetPassword=function(){var e=this._headers;this._headers=void 0;var t={observe:"body",responseType:"json",headers:e},r=this._serverUrl+"/api/users/roles/setpassword";return this._httpClient.get(r,t)},e.prototype.getProfile=function(){var e=this._headers;this._headers=void 0;var t={observe:"body",responseType:"json",headers:e},r=this._serverUrl+"/api/users/profile";return this._httpClient.get(r,t)},e.prototype.getProfileById=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/users/"+e+"/profile";return this._httpClient.get(s,r)},e.prototype.getUserRoles=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/users/"+e+"/roles";return this._httpClient.get(i,s)},e.prototype.getUsersList=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/users/list";return this._httpClient.get(s,r)},e.prototype.isEmailUsed=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/users/emailUsed";return this._httpClient.get(s,r)},e.prototype.isLoginUsed=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/users/loginUsed";return this._httpClient.get(s,r)},e.prototype.rejectOwnerRole=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/users/"+e+"/owner/reject";return this._httpClient.post(i,void 0,s)},e.prototype.rejectRole=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/users/"+e+"/roles/"+t+"/reject";return this._httpClient.post(o,void 0,i)},e.prototype.removeAdminRole=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/users/"+e+"/admin";return this._httpClient.delete(s,r)},e.prototype.requestOwnerStatus=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/users/"+e+"/owner";return this._httpClient.post(s,void 0,r)},e.prototype.searchPage1=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/users/page";return this._httpClient.get(s,r)},e.prototype.setNewPasswordProducerRole=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/users/roles/"+e+"/setpassword";return this._httpClient.post(i,t,s)},e.prototype.updateUser=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/users";return this._httpClient.put(s,e,r)},e.prototype.updateUserAvatar=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/users/avatar";return this._httpClient.put(i,t,s)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),P=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.addVineyardImage=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/vineyard/"+e+"/image";return this._httpClient.post(o,r,i)},e.prototype.createVineyard=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/vineyard";return this._httpClient.post(i,t,s)},e.prototype.getGrapeVarietiesForVineyard=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/vineyard/grapeVarieties";return this._httpClient.get(s,r)},e.prototype.getVineyard=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/vineyard/"+e;return this._httpClient.get(s,r)},e.prototype.getVineyardImage=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/vineyard/"+e+"/images/"+t;return this._httpClient.get(i,s)},e.prototype.getVineyardImagesInfos=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/vineyard/"+e+"/images";return this._httpClient.get(s,r)},e.prototype.getVineyardInfoPage=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/vineyard/page";return this._httpClient.get(s,r)},e.prototype.getVineyardsSearchPage=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/vineyard/all";return this._httpClient.get(s,r)},e.prototype.removeVineyard=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/vineyard/"+e;return this._httpClient.delete(i,s)},e.prototype.removeVineyardImage=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/vineyard/"+e+"/images/"+t;return this._httpClient.delete(o,i)},e.prototype.updateVineyard=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/vineyard";return this._httpClient.put(i,t,s)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),S=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.addBottleToBox=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/box/add/"+e+"/bottle/"+t;return this._httpClient.put(o,void 0,i)},e.prototype.checkIsBoxAvailable=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/box/"+e+"/pallet/available";return this._httpClient.get(s,r)},e.prototype.checkTagStatus=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/box/"+e+"/status";return this._httpClient.get(s,r)},e.prototype.completeBox=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/box/"+e+"/complete/"+t;return this._httpClient.put(o,void 0,i)},e.prototype.createNewWineBox=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/box/";return this._httpClient.post(i,t,s)},e.prototype.getBoxingHistory=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/box/history/"+e;return this._httpClient.get(i,s)},e.prototype.getWineBoxById=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/box/"+e;return this._httpClient.get(s,r)},e.prototype.getWineBoxByTid=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/box/tid/"+e;return this._httpClient.get(s,r)},e.prototype.loadPageByConsumer=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/box/page/"+e+"/user";return this._httpClient.get(i,s)},e.prototype.loadPageByProducer=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/box/page/"+e;return this._httpClient.get(i,s)},e.prototype.modifyWineBox=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/box/"+e;return this._httpClient.put(o,r,i)},e.prototype.removeBottleFromBox=function(e,t,r){var s=this._headers;this._headers=void 0;var i={params:this._apiUtils.sanitizeObject(r),observe:"body",responseType:"json",headers:s},o=this._serverUrl+"/api/box/remove/"+e+"/bottle/"+t;return this._httpClient.put(o,void 0,i)},e.prototype.unpackWineBox=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/box/unpack/"+e;return this._httpClient.post(i,void 0,s)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),R=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.addBoxToPallet=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/pallet/add/"+e+"/box";return this._httpClient.put(i,void 0,s)},e.prototype.checkTagStatus1=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/pallet/"+e+"/status";return this._httpClient.get(s,r)},e.prototype.createNewWinePallet=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/pallet/";return this._httpClient.post(i,t,s)},e.prototype.getWinePalletById=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/pallet/"+e;return this._httpClient.get(s,r)},e.prototype.getWinePalletByTid=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/pallet/"+e+"/tid";return this._httpClient.get(s,r)},e.prototype.loadPageByProducer1=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/pallet/page/"+e;return this._httpClient.get(i,s)},e.prototype.removeBoxFromPallet=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/pallet/remove/"+e+"/box";return this._httpClient.put(i,void 0,s)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),k=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.createWineProduct=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/wineproduct/templates";return this._httpClient.post(i,t,s)},e.prototype.createWineProductInstance=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/wineproduct/instances";return this._httpClient.post(i,t,s)},e.prototype.deleteWineProduct=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/wineproduct/templates/"+e;return this._httpClient.delete(i,s)},e.prototype.deleteWineProductInstance=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/wineproduct/instances/"+e;return this._httpClient.delete(i,s)},e.prototype.getAppellations=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/wineproduct/appellations";return this._httpClient.get(s,r)},e.prototype.getUnallocatedVolume=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/wineproduct/instances/"+e+"/unallocatedVolume";return this._httpClient.get(s,r)},e.prototype.getUnitsOfMeasure=function(){var e=this._headers;this._headers=void 0;var t={observe:"body",responseType:"json",headers:e},r=this._serverUrl+"/api/wineproduct/instances/unitsOfMeasure";return this._httpClient.get(r,t)},e.prototype.getWineProduct=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/wineproduct/templates/"+e;return this._httpClient.get(s,r)},e.prototype.getWineProducts=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/wineproduct/templates";return this._httpClient.get(s,r)},e.prototype.getWineProductsInstance=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/wineproduct/instances/"+e;return this._httpClient.get(s,r)},e.prototype.getWineProductsInstanceName=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/wineproduct/instances/"+e+"/name";return this._httpClient.get(s,r)},e.prototype.getWineProductsInstancePage=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/wineproduct/instances/page";return this._httpClient.get(s,r)},e.prototype.getWineProductsInstances=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/wineproduct/instances";return this._httpClient.get(s,r)},e.prototype.getWineProductsPage=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/wineproduct/templates/page";return this._httpClient.get(s,r)},e.prototype.isWineProductEditable=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/wineproduct/templates/"+e+"/editable";return this._httpClient.get(i,s)},e.prototype.isWineProductInstanceEditable=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(t),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/wineproduct/instance/"+e+"/editable";return this._httpClient.get(i,s)},e.prototype.prepareDefaultWineProductInstance=function(e){var t=this._headers;this._headers=void 0;var r={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/wineproduct/instances/default";return this._httpClient.get(s,r)},e.prototype.updateWineProduct=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/wineproduct/templates";return this._httpClient.put(i,t,s)},e.prototype.updateWineProductInstance=function(e,t){var r=this._headers;this._headers=void 0;var s={params:this._apiUtils.sanitizeObject(e),observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/wineproduct/instances";return this._httpClient.put(i,t,s)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),x=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.addWineProductInstanceRating=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/winerating/ratings";return this._httpClient.post(s,e,r)},e.prototype.getAllowedRatingSystems=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/winerating/ratings/productinstances/"+e+"/allowed";return this._httpClient.get(s,r)},e.prototype.getWineProductInstanceRatings=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/winerating/ratings/productinstances/"+e;return this._httpClient.get(s,r)},e.prototype.getWineRatingSystem=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/winerating/experts/systems/"+e;return this._httpClient.get(s,r)},e.prototype.getWineRatingSystems=function(){var e=this._headers;this._headers=void 0;var t={observe:"body",responseType:"json",headers:e},r=this._serverUrl+"/api/winerating/experts/systems";return this._httpClient.get(r,t)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),W=function(){function e(e,t,r){this._serverUrl=e,this._httpClient=t,this._apiUtils=r,this._headers=void 0}return e.prototype.addCustomHeader=function(e,t){return this._headers||(this._headers=new r.HttpHeaders),this._headers=this._headers.append(e,t),this},e.prototype.createNewTastingNote=function(e,t){var r=this._headers;this._headers=void 0;var s={observe:"body",responseType:"json",headers:r},i=this._serverUrl+"/api/note/"+e;return this._httpClient.post(i,t,s)},e.prototype.deleteById=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/note/"+e;return this._httpClient.delete(s,r)},e.prototype.getAllTastingNotesByWineProductInstance=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/note/"+e;return this._httpClient.get(s,r)},e.prototype.getTastingNoteByLoggedUserAndWineProductInstance=function(e){var t=this._headers;this._headers=void 0;var r={observe:"body",responseType:"json",headers:t},s=this._serverUrl+"/api/note/"+e+"/user";return this._httpClient.get(s,r)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:r.HttpClient},{type:c}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](l),t["ɵɵinject"](r.HttpClient),t["ɵɵinject"](c))},token:e,providedIn:"root"}),e=v([t.Injectable({providedIn:"root"}),_(0,t.Inject(l))],e)}(),A=function(){function e(){}return e=v([t.NgModule({imports:[s.CommonModule,r.HttpClientModule]})],e)}();e.ApiModule=A,e.AppellationControllerService=u,e.BlockchainIngressControllerService=y,e.BottleBatchControllerService=b,e.BottleControllerService=g,e.BottleOperationsControllerService=j,e.CellarControllerService=f,e.CentralTaggingControllerService=U,e.MarketControllerService=C,e.OenologistControllerService=m,e.OfferControllerService=T,e.OrderControllerService=O,e.OrgUnitControllerService=I,e.OrganizationControllerService=z,e.RegisterDataControllerService=w,e.SERVER_URL=l,e.TranslationControllerService=B,e.UserControllerService=H,e.VineyardControllerService=P,e.WineBoxControllerService=S,e.WinePalletControllerService=R,e.WineProductControllerService=k,e.WineRatingControllerService=x,e.WineTastingNoteControllerService=W,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=veri-wine-client-angular-central.umd.min.js.map