@nomalism-com/api 0.28.28 → 0.28.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.min.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("axios"),require("@nomalism-com/types")):"function"==typeof define&&define.amd?define(["axios","@nomalism-com/types"],e):(t="undefined"!=typeof globalThis?globalThis:t||self)["@nomalism-com/api"]=e(t.axios,t["@nomalism-com/types"])}(this,(function(t,e){"use strict";var n=function(){return n=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},n.apply(this,arguments)};function i(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function r(t,e,n,i){return new(n||(n=Promise))((function(r,o){function u(t){try{s(i.next(t))}catch(t){o(t)}}function c(t){try{s(i.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,c)}s((i=i.apply(t,e||[])).next())}))}function o(t,e){var n,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=c(0),u.throw=c(1),u.return=c(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&c[0]?i.return:c[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,c[1])).done)return r;switch(i=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,i=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=e.call(t,o)}catch(t){c=[6,t],i=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}"function"==typeof SuppressedError&&SuppressedError;var u,c,s=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),a=Object.freeze({__proto__:null,default:s}),h=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByQuery=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"query"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),p=Object.freeze({__proto__:null,default:h}),d=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),f=Object.freeze({__proto__:null,default:d}),l=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findActiveByUserId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"active"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findOwnerByToken=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_token"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.resendLast=function(t){return r(this,arguments,void 0,(function(t){var e=t.owner_id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route,"resend_last/").concat(e))];case 1:return t.sent(),[2]}}))}))},t.prototype.markAllAsRead=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"mark_all_as_read/").concat(t.owner_id))];case 1:return e.sent(),[2]}}))}))},t.prototype.markAllAsUnread=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"mark_all_as_unread/").concat(t.owner_id))];case 1:return e.sent(),[2]}}))}))},t}(),v=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),b=Object.freeze({__proto__:null,default:v}),y=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByAlpha2=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"alpha2"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),w=Object.freeze({__proto__:null,default:y}),_=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findSideMenuStoreOperators=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"side_menu_store_operators"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findStart=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"start/").concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findStartVirtual=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"start_virtual/").concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByDocumentLineState=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_document_line_state"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByBasicSearch=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"basic_search"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByType=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_type"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findClientUnpaidCredit=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"unpaid_credit"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findClientUnpaidDebit=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"unpaid_debit"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findUnpaidCommissions=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"unpaid_commissions"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.createFromHeader=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"from_header"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.getActions=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"get_actions/").concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.transferClientOwnership=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"transfer_client_ownership"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.updateManyWithPersona=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"update_many_with_persona"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.sendClientNotification=function(t,e){return r(this,arguments,void 0,(function(t,e){var n=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route).concat(n,"/send_client_notification"),e)];case 1:return t.sent(),[2]}}))}))},t.prototype.markUnsentClientNotification=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route).concat(e,"/mark_unsent_client_notification"))];case 1:return t.sent(),[2]}}))}))},t.prototype.documentPdf=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route,"document_pdf/").concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.documentPdfStream=function(t,e){return r(this,arguments,void 0,(function(t,e){var n=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"document_pdf/").concat(n),{params:e,responseType:"arraybuffer"})];case 1:return[2,t.sent().data]}}))}))},t.prototype.getDocumentPdfUrl=function(t,e){var n=t.id,i=new URLSearchParams;return(null==e?void 0:e.token)&&i.set("token",e.token),"".concat(this.route,"document_pdf/").concat(n,"?").concat(i.toString())},t.prototype.documentList=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route,"document_list/").concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.getAllRelatedDocumentHeaderIds=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"related/").concat(e))];case 1:return[2,t.sent().data]}}))}))},t}(),m=Object.freeze({__proto__:null,default:_}),g=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"bill_of_lading"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),O=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.createProductionOrder=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"production_order"),t)];case 1:return e.sent(),[2]}}))}))},t}(),R=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"pro_forma"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),P=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.createProviderProposal=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"provider_proposal"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),k=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findProviderReturn=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"provider_return"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.createProviderCreditNoteFromReturn=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"provider_credit_note_from_return"),t)];case 1:return e.sent(),[2]}}))}))},t}(),I=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findProviderInvoice=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"provider_invoice"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.createProviderFinancialCreditNote=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"provider_financial_credit_note"),t)];case 1:return e.sent(),[2]}}))}))},t}(),B=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.createProviderServiceInvoice=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"provider_service_invoice"),t)];case 1:return e.sent(),[2]}}))}))},t}(),S=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByState=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"find_by_state"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.updateIndexes=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"update_indexes"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.updateData=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"update_data"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.updateMany=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"update_many"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteMany=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route),{data:t})];case 1:return e.sent(),[2]}}))}))},t.prototype.printLabelToPdfUrl=function(t,e){var n=t.document_line_ids,i=new URLSearchParams;return i.set("token",e),"".concat(this.route,"print_label_pdf/").concat(n,"?").concat(i.toString())},t}(),j=Object.freeze({__proto__:null,default:S}),z=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findVirtualsByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"virtuals_by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t}(),M=Object.freeze({__proto__:null,default:z}),E=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),T=Object.freeze({__proto__:null,default:E}),C=e.DocumentType.DocumentTypeUserTypeEnum,L=e.DocumentType.documentTypeUserTypes,x=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findDetailed=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"detailed"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),D=Object.freeze({__proto__:null,DocumentTypeUserTypeEnum:C,default:x,documentTypeUserTypes:L}),U=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByUrl=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.list=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"list"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),F=Object.freeze({__proto__:null,default:U}),A=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerIds=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owners"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.publicRoute),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),V=Object.freeze({__proto__:null,default:A}),q=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.clone=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.get("".concat(this.route,"clone/").concat(t.id),{params:e})];case 1:return[2,n.sent().data]}}))}))},t.prototype.export=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"export"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.getData=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return n.sent(),[2]}}))}))},t}(),N=Object.freeze({__proto__:null,default:q}),Q=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),H=Object.freeze({__proto__:null,default:Q}),W=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),G=Object.freeze({__proto__:null,default:W}),Z=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),J=Object.freeze({__proto__:null,default:Z}),K=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.logout=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route))];case 1:return t.sent(),[2]}}))}))},t}(),X=Object.freeze({__proto__:null,default:K}),Y=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.getUrl=function(t,e){void 0===e&&(e=!1);var n=new URLSearchParams;return e&&n.set("download",e.toString()),"".concat(this.publicRoute).concat(t,"?").concat(n.toString())},t.prototype.create=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return[4,this.api.post("".concat(this.publicRoute,"upload"),t,{headers:n(n({},e||{}),{"content-type":"multipart/form-data"}),maxBodyLength:1/0,maxContentLength:1/0})];case 1:return[2,i.sent().data]}}))}))},t}(),$=Object.freeze({__proto__:null,default:Y}),tt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerIds=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"by_owners"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),et=Object.freeze({__proto__:null,default:tt}),nt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),it=Object.freeze({__proto__:null,default:nt}),rt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ot=Object.freeze({__proto__:null,default:rt}),ut=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.forgotPassword=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.publicRoute,"forgot"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.resetPassword=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.publicRoute,"reset"),t)];case 1:return e.sent(),[2]}}))}))},t}(),ct=Object.freeze({__proto__:null,default:ut}),st=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),at=Object.freeze({__proto__:null,default:st}),ht=e.ProductImage.ImageTypeEnum,pt=e.ProductImage.imageTypes,dt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ft=Object.freeze({__proto__:null,ImageTypeEnum:ht,default:dt,imageTypes:pt}),lt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.getBestDiscount=function(t,e,n,i,r){var o=t.filter((function(t){var e=!t.exclusive_to_location_id||t.exclusive_to_location_id===n,r=!t.exclusive_to_client_id||t.exclusive_to_client_id===i;return e&&r})).reduce((function(t,e){return e.discount>t?e.discount:t}),0),u=r?0:e||0;return o>u?o:u},t}(),vt=Object.freeze({__proto__:null,default:lt}),bt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),yt=Object.freeze({__proto__:null,default:bt}),wt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByQuery=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"query"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinifiedManufacturer=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified_manufacturer"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),_t=Object.freeze({__proto__:null,default:wt}),mt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),gt=Object.freeze({__proto__:null,default:mt}),Ot=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Rt=Object.freeze({__proto__:null,default:Ot}),Pt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),kt=Object.freeze({__proto__:null,default:Pt}),It=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.publicRoute),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Bt=Object.freeze({__proto__:null,default:It}),St=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),jt=Object.freeze({__proto__:null,default:St}),zt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.publicRoute),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Mt=Object.freeze({__proto__:null,default:zt}),Et=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Tt=Object.freeze({__proto__:null,default:Et}),Ct=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Lt=Object.freeze({__proto__:null,default:Ct}),xt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.checkPin=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"pin"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Dt=Object.freeze({__proto__:null,default:xt}),Ut=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Ft=Object.freeze({__proto__:null,default:Ut}),At=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Vt=Object.freeze({__proto__:null,default:At}),qt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Nt=Object.freeze({__proto__:null,default:qt}),Qt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Ht=Object.freeze({__proto__:null,default:Qt}),Wt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Gt=Object.freeze({__proto__:null,default:Wt}),Zt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findProvidersWithClientId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"providers"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findFromClientOrProviderId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"from_client_or_provider_id"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Jt=Object.freeze({__proto__:null,default:Zt}),Kt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Xt=Object.freeze({__proto__:null,default:Kt}),Yt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),$t=Object.freeze({__proto__:null,default:Yt}),te=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ee=Object.freeze({__proto__:null,default:te}),ne=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ie=Object.freeze({__proto__:null,default:ne}),re=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),oe=Object.freeze({__proto__:null,default:re}),ue=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ce=Object.freeze({__proto__:null,default:ue}),se=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ae=Object.freeze({__proto__:null,default:se}),he=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),pe=Object.freeze({__proto__:null,default:he}),de=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),fe=Object.freeze({__proto__:null,default:de}),le=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteBatch=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route,"delete_batch").concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findCurrentAccountByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"current_account"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findBalanceByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"balance"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findSettledMaterialEntrance=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"settled_material_entrance"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findSettledMaterialEntranceProviders=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"settled_material_entrance_providers"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.createProvidersPayments=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"provider"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaymentsNotExported=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"not_exported"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaymentBatches=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"batches"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.updateDownloadedBatchNumber=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"downloaded_batch_number/").concat(t))];case 1:return e.sent(),[2]}}))}))},t.prototype.exportCurrentAccount=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.publicRoute,"export_current_account"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findSettledMaterialEntranceByDate=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"settled_material_entrance_by_date"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.exportPayments=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"export_payments"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.getExportCurrentAccountUrl=function(t){var e=t.owner_id,n=t.start_date,i=t.end_date,r=t.output,o=t.token,u=new URLSearchParams;return u.set("owner_id",e),u.set("output",r),n&&u.set("start_date",n.toISOString()),i&&u.set("end_date",i.toISOString()),u.set("token",o),"".concat(this.publicRoute,"export_current_account?").concat(u.toString())},t}(),ve=Object.freeze({__proto__:null,default:le}),be=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.publicFindByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"public_by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.sendEmailDocument=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"sendEmail"),t)];case 1:return e.sent(),[2]}}))}))},t}(),ye=Object.freeze({__proto__:null,default:be}),we=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findFaturaPorPagar=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"fatura_por_pagar"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.pagarFatura=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"pagar_fatura"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.findFaturaParaDevolver=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"fatura_para_devolver"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.devolver=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"devolver"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.findByBasicSearch=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"basic_search"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.regularizarMultiplosDocumentos=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"multiple_documents"),{data:t})];case 1:return e.sent(),[2]}}))}))},t}(),_e=Object.freeze({__proto__:null,default:we}),me=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),ge=Object.freeze({__proto__:null,default:me}),Oe=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return e.sent(),[2]}}))}))},t}(),Re=Object.freeze({__proto__:null,default:Oe}),Pe=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByLatest=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:{nif:t}})];case 1:return[2,e.sent().data]}}))}))},t}(),ke=Object.freeze({__proto__:null,default:Pe}),Ie=e.StockMovement.ExportFormatEnum,Be=e.StockMovement.exportFormats,Se=e.StockMovement.ExportVersionEnum,je=e.StockMovement.exportVersions,ze=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByProvider=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route).concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.exportCsv=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"csv"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.getStockCsvUrl=function(t){var e=t.date,n=t.version,i=t.format,r=t.token,o=new URLSearchParams;return o.set("date",e.toISOString()),o.set("version",n),o.set("format",i),o.set("token",r),"".concat(this.publicRoute,"csv?").concat(o.toString())},t}(),Me=Object.freeze({__proto__:null,ExportFormatEnum:Ie,ExportVersionEnum:Se,default:ze,exportFormats:Be,exportVersions:je}),Ee=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.findByPostalCode=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),Te=Object.freeze({__proto__:null,default:Ee}),Ce=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t}(),Le=Object.freeze({__proto__:null,default:Ce}),xe=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_user/").concat(t.created_by))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPending=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"pending"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.updatePreSaleQuantity=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id,"/quantity"),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.removeProduct=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route,"product/").concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.importToClientProposal=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"client_proposal"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),De=Object.freeze({__proto__:null,default:xe}),Ue=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Fe=Object.freeze({__proto__:null,default:Ue}),Ae=e.Cabide.cabideTypes,Ve=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByBasicSearch=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"basic_search"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByIdProvider=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"'/id_provider/").concat(t.id_provider))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findCabideProviders=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"cabide_providers"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.printLabelToPdfUrl=function(t,e){var n=t.id,i=new URLSearchParams;return i.set("token",e),"".concat(this.publicRoute,"print_label_pdf/").concat(n,"?").concat(i.toString())},t}(),qe=Object.freeze({__proto__:null,cabidesTypesEnum:Ae,default:Ve}),Ne=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.createProductByCabideProductId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"product"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.findById=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route).concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findByOwner=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerPaginated=function(t){return r(this,void 0,void 0,(function(){var e=t.owner_id,n=i(t,["owner_id"]);return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route).concat(e,"/paginated"),{params:n})];case 1:return[2,t.sent().data]}}))}))},t.prototype.findProductByCabideProductId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"product/").concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Qe=Object.freeze({__proto__:null,default:Ne}),He=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findProviderProducts=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"provider_products"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findProductHistory=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"product_history"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),We=Object.freeze({__proto__:null,default:He}),Ge=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t}(),Ze=Object.freeze({__proto__:null,default:Ge}),Je=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t}(),Ke=Object.freeze({__proto__:null,default:Je}),Xe=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.createMany=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"many"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.dispatchSchedulePrintJob=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"dispatch_schedule_print_job"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwner=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),Ye=Object.freeze({__proto__:null,default:Xe}),$e=e.QueryList.executeOutput,tn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.execute=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"execute"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.getQueryExecuteUrl=function(t){var e=t.query_id,n=t.output,r=t.token,o=i(t,["query_id","output","token"]),u=new URLSearchParams;return u.set("query_id",e),u.set("output",n),r&&u.set("token",r),Object.entries(o).forEach((function(t){var e=t[0],n=t[1];null!=n&&u.set(e,n.toString())})),"".concat(this.route,"execute?").concat(u.toString())},t}(),en=Object.freeze({__proto__:null,default:tn,executeOutput:$e}),nn=e.QueryParameter.QueryParameterDatatypeEnum,rn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),on=Object.freeze({__proto__:null,QueryParameterDatatypeEnum:nn,default:rn}),un=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),cn=Object.freeze({__proto__:null,default:un}),sn=e.PropostaSheets.IConflictEnum,an=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.isProcessing=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"is_processing"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.importFromSheet=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"import_from_sheet"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.createSheetFromDocument=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"create_sheet_from_document"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.cloneSheetsToNewDocument=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"clone_sheet_to_new_document"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.conflictAccept=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"conflict_accept"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.conflictDelete=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route,"conflict_delete"),{data:t})];case 1:return e.sent(),[2]}}))}))},t.prototype.conflictFindByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"conflict_find_by_owner_id"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),hn=Object.freeze({__proto__:null,IConflictEnum:sn,default:an}),pn=(u=e.Schedule).ScheduleTypeEnum,dn=u.scheduleTypes,fn=u.ScheduleTypeLabel,ln=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.runImmediately=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route).concat(t.scheduleType))];case 1:return e.sent(),[2]}}))}))},t}(),vn=Object.freeze({__proto__:null,ScheduleTypeEnum:pn,ScheduleTypeLabel:fn,default:ln,scheduleTypes:dn}),bn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),yn=Object.freeze({__proto__:null,default:bn}),wn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByKey=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.publicRoute,"by_key"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t}(),_n=Object.freeze({__proto__:null,default:wn}),mn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findToday=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"find_today"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.update=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.undoLastCall=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.put("".concat(this.route,"undo_last_call"))];case 1:return[2,t.sent().data]}}))}))},t}(),gn=Object.freeze({__proto__:null,default:mn}),On=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t))];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.post("".concat(this.route).concat(t),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t))];case 1:return e.sent(),[2]}}))}))},t}(),Rn=Object.freeze({__proto__:null,default:On}),Pn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t))];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.post("".concat(this.route).concat(t),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t))];case 1:return e.sent(),[2]}}))}))},t}(),kn=Object.freeze({__proto__:null,default:Pn}),In=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t))];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.post("".concat(this.route).concat(t),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t))];case 1:return e.sent(),[2]}}))}))},t}(),Bn=Object.freeze({__proto__:null,default:In}),Sn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),jn=Object.freeze({__proto__:null,default:Sn}),zn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return e.sent(),[2]}}))}))},t}(),Mn=Object.freeze({__proto__:null,default:zn}),En=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findContactPersonaByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"contact"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByBasic=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"basic_search"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{data:t})];case 1:return[2,e.sent().data]}}))}))},t}(),Tn=Object.freeze({__proto__:null,default:En}),Cn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.sendEmail=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"sendEmail"),t)];case 1:return e.sent(),[2]}}))}))},t}(),Ln=Object.freeze({__proto__:null,default:Cn}),xn=(c=e.Order).ConferirEncomendaClienteOptionsEnum,Dn=c.conferirEncomendaClienteOptions,Un=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.unsetCativado=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"unset_cativado"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findStockToOrder=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"check_lines_to_order"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findProvidersWithStockToOrder=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"stock_order_provider"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.undoEncomendaVA=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id,"/undo_encomenda_va"))];case 1:return e.sent(),[2]}}))}))},t.prototype.setProvider=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"set_provider"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.unsetProvider=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route).concat(e,"/unset_provider"))];case 1:return t.sent(),[2]}}))}))},t.prototype.undoEncomendaStock=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route).concat(e,"/undo_encomenda_stock"))];case 1:return t.sent(),[2]}}))}))},t.prototype.undoProviderOrder=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"undo_provider_order"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.conferirEncomendaCliente=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"check_client_order"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),Fn=Object.freeze({__proto__:null,ConferirEncomendaClienteOptionsEnum:xn,conferirEncomendaClienteOptions:Dn,default:Un}),An=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.purchaseFromProvider=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"purchase_from_provider"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.findUnpaidMaterialEntrance=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"unpaid_material_entrance"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findUnpaidMaterialEntranceProviders=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"unpaid_material_entrance_providers"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.sync=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"sync"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Vn=Object.freeze({__proto__:null,default:An}),qn=e.MaterialEntrance.ICreateMaterialEntranceClientOrderOptionEnum,Nn=e.MaterialEntrance.createMaterialEntranceClientOrderOptions,Qn=e.MaterialEntrance.ICreateMaterialEntranceStockOptionEnum,Hn=e.MaterialEntrance.createMaterialEntranceStockOptions,Wn=e.MaterialEntrance.ICreateMaterialEntranceStockWithoutOrderOptionEnum,Gn=e.MaterialEntrance.createMaterialEntranceStockWithoutOrderOptions,Zn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findMaterialEntranceProviders=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"material_entrance_providers"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findUnfinishedPickings=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"unfinished_pickings/").concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.finalizarEntradaMaterial=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"finalize_material_entrance"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.undoEntradaMaterial=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"undo_material_entrance"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.printLabelToPdfUrl=function(t,e,n){var i=t.product_id,r=e.quantity,o=e.ef_name,u=e.pc_document_number,c=e.prison,s=e.note,a=new URLSearchParams;return a.set("ef_name",o),a.set("quantity",r.toString()),u&&a.set("pc_document_number",u.toString()),s&&a.set("note",s.toString()),a.set("prison",c.toString()),a.set("token",n),"".concat(this.publicRoute,"print_label_pdf/").concat(i,"?").concat(a.toString())},t.prototype.printBulkLabelToPdfUrl=function(t){var e=t.groupLabel,n=t.saved_em_picking_ids,i=t.token,r=new URLSearchParams;return r.set("groupLabel",e.toString()),r.set("saved_em_picking_ids",n),r.set("token",i),"".concat(this.publicRoute,"print_bulk_label_pdf?").concat(r.toString())},t}(),Jn=Object.freeze({__proto__:null,ICreateMaterialEntranceClientOrderOptionEnum:qn,ICreateMaterialEntranceStockOptionEnum:Qn,ICreateMaterialEntranceStockWithoutOrderOptionEnum:Wn,createMaterialEntranceClientOrderOptions:Nn,createMaterialEntranceStockOptions:Hn,createMaterialEntranceStockWithoutOrderOptions:Gn,default:Zn}),Kn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Xn=Object.freeze({__proto__:null,default:Kn}),Yn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.post("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t}(),$n=Object.freeze({__proto__:null,default:Yn}),ti=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.createMany=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"many"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ei=Object.freeze({__proto__:null,default:ti}),ni=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.send=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"send"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),ii=Object.freeze({__proto__:null,default:ni}),ri=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t}(),oi=Object.freeze({__proto__:null,default:ri}),ui=e.Prison.checkLineInPrisonOptions,ci=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.putLineInPrison=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"put_in_prison"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.removeLineFromPrison=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"remove_from_prison"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findLinesInPrison=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"in_prison"),{})];case 1:return[2,t.sent().data]}}))}))},t.prototype.findLinesInPrisonProviders=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"in_prison_providers"),{})];case 1:return[2,t.sent().data]}}))}))},t.prototype.checkLinesInPrison=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"check_in_prison"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.createLinesInPrison=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"create_lines"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),si=Object.freeze({__proto__:null,checkLineInPrisonOptions:ui,default:ci}),ai=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findInventoryLosses=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findInventoryLossesProviders=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"providers"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.createMany=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"create_many"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteInventoryLosses=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route,"inventory_loss"),{data:t})];case 1:return e.sent(),[2]}}))}))},t}(),hi=Object.freeze({__proto__:null,default:ai}),pi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.createInventory=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return e.sent(),[2]}}))}))},t}(),di=Object.freeze({__proto__:null,default:pi}),fi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findLinesToReturn=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"lines_to_return"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findLinesToReturnProviders=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"lines_to_return_providers"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.checkLinesToReturn=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"check_to_return"),t)];case 1:return e.sent(),[2]}}))}))},t}(),li=Object.freeze({__proto__:null,default:fi}),vi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.isVerified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.sendVerificationEmail=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.markAsVerified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.publicRoute),t)];case 1:return[2,e.sent().data]}}))}))},t}(),bi=Object.freeze({__proto__:null,default:vi}),yi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route).concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findByDocumentHeaderId=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"document_header/").concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.checkSent=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"check_sent"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),wi=Object.freeze({__proto__:null,default:yi}),_i=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),mi=Object.freeze({__proto__:null,default:_i}),gi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByProviderId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Oi=Object.freeze({__proto__:null,default:gi}),Ri=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.basicSearch=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"basic_search"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findReferenceAndIdForMobile=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"reference_and_id_mobile"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findDataForMobile=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"data_mobile/").concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findStockForMobile=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"stock_mobile/").concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPreArtigo=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"pre_artigo"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.updatePricesFromPreArtigo=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"update_prices_from_pre_artigo"))];case 1:return t.sent(),[2]}}))}))},t.prototype.validateByRef=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"validate_by_ref"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findSimilarProductsByName=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"similar_products"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByProductType=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_product_type"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route).concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findByIdWithStock=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route).concat(e,"/with_stock"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.updateGoogleSheetsLinesProduct=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"update_google_sheets_lines_product"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.googleSheetsFieldsByRef=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"google_sheets_fields_by_ref/").concat(t.reference))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findRowPositionOnSheetsWithColumns=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"sheet_row_and_columns/").concat(t.selector))];case 1:return[2,e.sent().data]}}))}))},t.prototype.checkStockByIds=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"check_stock_by_ids"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,arguments,void 0,(function(t,e){var n=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.put("".concat(this.route).concat(n),e)];case 1:return t.sent(),[2]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.printLabelToPdfUrl=function(t,e){var n=t.id,i=new URLSearchParams;return i.set("token",e),"".concat(this.publicRoute,"print_label_pdf/").concat(n,"?").concat(i.toString())},t.prototype.updateDbFromSheets=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route,"update_db_from_sheets"))];case 1:return t.sent(),[2]}}))}))},t.prototype.partialLocation=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"partial_location"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.fullLocation=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"full_location"),t)];case 1:return e.sent(),[2]}}))}))},t}(),Pi=Object.freeze({__proto__:null,default:Ri}),ki=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this.api.get("".concat(this.route).concat(t))]}))}))},t.prototype.findWithMessages=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this.api.get("".concat(this.route,"with_messages"),{params:t})]}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.delete=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route,"by_owner/").concat(t.owner_id))];case 1:return[2,e.sent().data]}}))}))},t}(),Ii=Object.freeze({__proto__:null,default:ki}),Bi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.delete=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t}(),Si=Object.freeze({__proto__:null,default:Bi}),ji=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findAll=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){return[2,this.api.get("".concat(this.route))]}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.delete=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t}(),zi=Object.freeze({__proto__:null,default:ji}),Mi=function(e){var n=e.processEnvironment,i=e.services,r=e.gatewayUrl,o=e.apikey,u=e.tokenBearer,c=this;this.processEnvironment=n||"localhost";var a=new t.AxiosHeaders;o&&a.set("apikey",o),u&&a.setAuthorization(u),this.client=t.create({baseURL:r,headers:a});var p=function(t){var e=i[t],r="localhost"===n?"/":"".concat(t,"/").concat(o?"apikey/":"auth/"),u="localhost"===n?"/":"".concat(t,"/public/");return{authPath:"".concat(e).concat(r),publicPath:"".concat(e).concat(u)}};this.services={stock:p("stock"),users:p("users"),integration:p("integration"),documents:p("documents"),view:p("view"),print:p("print"),tickets:p("tickets"),stockworker:p("stockworker")};var f=function(t,e){return{api:c.client,route:"".concat(c.services[t].authPath).concat(e,"/"),publicRoute:"".concat(c.services[t].publicPath).concat(e,"/")}};this.BankData=new s(f("users","bank_data")),this.Client=new h(f("users","client")),this.ClientType=new d(f("users","client_type")),this.Chat=new l(f("stock","chat")),this.Commissioner=new v(f("users","commissioner")),this.Country=new y(f("users","country")),this.DocumentHeader=new _(f("stock","document_header")),this.BillOfLading=new g(f("stock","document_header")),this.ProductionOrder=new O(f("stock","document_header")),this.Proforma=new R(f("stock","document_header")),this.PropostaFornecedor=new P(f("stock","document_header")),this.ProviderCreditNoteFromReturn=new k(f("stock","document_header")),this.ProviderFinancialCreditNote=new I(f("stock","document_header")),this.ProviderServiceInvoice=new B(f("stock","document_header")),this.DocumentLine=new S(f("stock","document_line")),this.DocumentLineAssoc=new z(f("stock","document_line_assoc")),this.DocumentLineFolder=new E(f("stock","document_line_folder")),this.DocumentType=new x(f("stock","document_type")),this.Favorites=new U(f("users","favorite")),this.File=new A(f("integration","file")),this.GoogleSheets=new q(f("integration","google")),this.GroupPermissions=new Q(f("users","group_permission")),this.Language=new W(f("users","language")),this.Location=new Z(f("stock","location")),this.Logout=new K(f("users","logout")),this.Multimedia=new Y(f("documents","multimedia")),this.Observation=new tt(f("integration","observation")),this.ObservationType=new nt(f("integration","observation_type")),this.PaymentConditions=new rt(f("users","payment_condition")),this.Password=new ut(f("users","password")),this.Permissions=new st(f("users","permission")),this.ProductImage=new dt(f("stock","product_image")),this.Promotion=new lt(f("stock","promotion")),this.PromotionAssoc=new bt(f("stock","promotion_assoc")),this.Providers=new wt(f("users","provider")),this.ProviderType=new mt(f("users","provider_type")),this.PurchaseConditions=new Ot(f("users","purchase_condition")),this.ReasonForExemption=new Pt(f("users","reason_for_exemption")),this.RefreshToken=new It(f("users","refresh-token")),this.SegmentsArea=new St(f("users","segments_area")),this.Sessions=new zt(f("users","sessions")),this.Shippings=new Et(f("users","shipping")),this.SocialMedia=new Ct(f("users","social_media")),this.StoreOperator=new xt(f("users","store_operator")),this.Swift=new Ut(f("users","swift")),this.TypeOfLocation=new At(f("stock","type_of_location")),this.UnitOfMeasure=new qt(f("stock","unit_of_measure")),this.UserPermissions=new Qt(f("users","user_permission")),this.UserPositions=new Wt(f("users","user_position")),this.Users=new Zt(f("users","users")),this.VatTax=new Kt(f("stock","vat_tax")),this.VatTaxZone=new Yt(f("stock","vat_tax_zone")),this.Workflow=new te(f("stock","workflow")),this.DeliveryMethods=new ne(f("users","delivery_methods")),this.MaturityDates=new re(f("users","maturity_dates")),this.PaymentMethods=new ue(f("users","payment_methods")),this.Vehicles=new se(f("users","vehicles")),this.ExternalDocumentType=new he(f("stock","external_document_type")),this.DocumentSet=new de(f("stock","document_set")),this.Payment=new le(f("stock","payment")),this.ExternalDocumentHeader=new be(f("stock","external_document_header")),this.ClientCurrentAccount=new we(f("stock","client_current_account")),this.ProviderCurrentAccount=new me(f("stock","provider_current_account")),this.MoloniRequest=new Oe(f("stock","moloni_request")),this.VatValidation=new Pe(f("stock","vat_validation")),this.StockMovement=new ze(f("stock","stock_movement")),this.ZipCode=new Ee(f("users","zip_code")),this.Tenant=new Ce(f("users","tenant")),this.PreSale=new xe(f("stock","pre_sale")),this.PreSaleProduct=new Ue(f("stock","pre_sale_product")),this.Cabide=new Ve(f("stock","cabide")),this.CabideProduct=new Ne(f("stock","cabide_product")),this.OrderManagement=new He(f("stock","order_management")),this.Npc=new Ge(f("print","npc")),this.Printer=new Je(f("print","printer")),this.SchedulePrintJob=new Xe(f("print","schedule_print_job")),this.QueryList=new tn(f("stock","query")),this.QueryParameter=new rn(f("stock","query_parameter")),this.ReturnReason=new un(f("stock","return_reason")),this.PropostaSheets=new an(f("stock","proposta_sheets")),this.Schedule=new ln(f("stock","schedule")),this.GoogleFilePermission=new bn(f("integration","google_file_permission")),this.Settings=new wn(f("integration","settings")),this.Tickets=new mn(f("tickets","tickets")),this.Channel=new On(f("tickets","channel")),this.TicketsLanguage=new Pn(f("tickets","tickets_language")),this.Clt=new In(f("tickets","clt")),this.StartDocumentHeaderLastUpdate=new Sn(f("stock","start_document_header_last_update")),this.ErrorHandler=new zn(f("integration","error_handler")),this.Persona=new En(f("users","persona")),this.ProjectInfo=new Cn(f("integration","project_info")),this.Order=new Un(f("stock","order")),this.Purchase=new An(f("stock","purchase")),this.MaterialEntrance=new Zn(f("stock","material_entrance")),this.Transformado=new Kn(f("stock","transformado")),this.UpfrontReturn=new Yn(f("stock","upfront_return")),this.SavedEmPicking=new ti(f("stock","saved_em_picking")),this.EmailTemplate=new ni(f("integration","email_template")),this.EmailTemplateAttachment=new ri(f("integration","email_template_attachment")),this.Prison=new ci(f("stock","prison")),this.Quebra=new ai(f("stock","quebra")),this.Inventario=new pi(f("stock","inventario")),this.ReturnToProvider=new fi(f("stock","return_to_provider")),this.EmailVerification=new vi(f("integration","email_verification")),this.EmailLog=new yi(f("integration","email_log")),this.DocumentLineNote=new _i(f("stock","document_line_note")),this.SavedProviderProposal=new gi(f("stock","saved_provider_proposal")),this.ProductGoogleSheets=new Ri(f("stock","product_google")),this.Task=new ki(f("stock","task")),this.TaskMessage=new Bi(f("stock","task_message")),this.RecurrentTasks=new ji(f("stock","recurrent_tasks"))},Ei=Object.freeze({__proto__:null,API:Mi,BankData:a,Cabide:qe,CabideProduct:Qe,Channel:Rn,Client:p,ClientCurrentAccount:_e,ClientType:f,Clt:Bn,Commissioner:b,Country:w,DeliveryMethods:ie,DocumentHeader:m,DocumentLine:j,DocumentLineAssoc:M,DocumentLineFolder:T,DocumentLineNote:mi,DocumentSet:fe,DocumentType:D,EmailLog:wi,EmailTemplate:ii,EmailTemplateAttachment:oi,EmailVerification:bi,ErrorHandler:Mn,ExternalDocumentHeader:ye,ExternalDocumentType:pe,Favorites:F,File:V,GoogleFilePermission:yn,GoogleSheets:N,GroupPermissions:H,Inventario:di,Language:G,Location:J,Logout:X,MaterialEntrance:Jn,MaturityDates:oe,MoloniRequest:Re,Multimedia:$,Npc:Ze,Observation:et,ObservationType:it,Order:Fn,OrderManagement:We,Password:ct,Payment:ve,PaymentConditions:ot,PaymentMethods:ce,Permissions:at,Persona:Tn,PreSale:De,PreSaleProduct:Fe,Printer:Ke,Prison:si,ProductGoogleSheets:Pi,ProductImage:ft,ProjectInfo:Ln,Promotion:vt,PromotionAssoc:yt,PropostaSheets:hn,ProviderCurrentAccount:ge,ProviderType:gt,Providers:_t,Purchase:Vn,PurchaseConditions:Rt,Quebra:hi,QueryList:en,QueryParameter:on,ReasonForExemption:kt,RecurrentTasks:zi,RefreshToken:Bt,ReturnReason:cn,ReturnToProvider:li,SavedEmPicking:ei,SavedProviderProposal:Oi,Schedule:vn,SchedulePrintJob:Ye,SegmentsArea:jt,Sessions:Mt,Settings:_n,Shippings:Tt,SocialMedia:Lt,StartDocumentHeaderLastUpdate:jn,StockMovement:Me,StoreOperator:Dt,Swift:Ft,Task:Ii,TaskMessage:Si,Tenant:Le,Tickets:gn,TicketsLanguage:kn,Transformado:Xn,TypeOfLocation:Vt,UnitOfMeasure:Nt,UpfrontReturn:$n,UserPermissions:Ht,UserPositions:Gt,Users:Jt,VatTax:Xt,VatTaxZone:$t,VatValidation:ke,Vehicles:ae,Workflow:ee,ZipCode:Te});return Object.assign(module.exports,Ei),Ei}));
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("axios"),require("@nomalism-com/types")):"function"==typeof define&&define.amd?define(["axios","@nomalism-com/types"],e):(t="undefined"!=typeof globalThis?globalThis:t||self)["@nomalism-com/api"]=e(t.axios,t["@nomalism-com/types"])}(this,(function(t,e){"use strict";var n=function(){return n=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},n.apply(this,arguments)};function i(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function r(t,e,n,i){return new(n||(n=Promise))((function(r,o){function u(t){try{s(i.next(t))}catch(t){o(t)}}function c(t){try{s(i.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,c)}s((i=i.apply(t,e||[])).next())}))}function o(t,e){var n,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=c(0),u.throw=c(1),u.return=c(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&c[0]?i.return:c[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,c[1])).done)return r;switch(i=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,i=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=e.call(t,o)}catch(t){c=[6,t],i=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}"function"==typeof SuppressedError&&SuppressedError;var u,c,s=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),a=Object.freeze({__proto__:null,default:s}),h=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByQuery=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"query"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),p=Object.freeze({__proto__:null,default:h}),d=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),f=Object.freeze({__proto__:null,default:d}),l=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findActiveByUserId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"active"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findOwnerByToken=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_token"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.resendLast=function(t){return r(this,arguments,void 0,(function(t){var e=t.owner_id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route,"resend_last/").concat(e))];case 1:return t.sent(),[2]}}))}))},t.prototype.markAllAsRead=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"mark_all_as_read/").concat(t.owner_id))];case 1:return e.sent(),[2]}}))}))},t.prototype.markAllAsUnread=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"mark_all_as_unread/").concat(t.owner_id))];case 1:return e.sent(),[2]}}))}))},t}(),v=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),b=Object.freeze({__proto__:null,default:v}),y=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByAlpha2=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"alpha2"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),w=Object.freeze({__proto__:null,default:y}),_=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findSideMenuStoreOperators=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"side_menu_store_operators"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findStart=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"start/").concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findStartVirtual=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"start_virtual/").concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByDocumentLineState=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_document_line_state"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByBasicSearch=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"basic_search"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByType=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_type"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findClientUnpaidCredit=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"unpaid_credit"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findClientUnpaidDebit=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"unpaid_debit"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findUnpaidCommissions=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"unpaid_commissions"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.createFromHeader=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"from_header"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.getActions=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"get_actions/").concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.transferClientOwnership=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"transfer_client_ownership"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.updateManyWithPersona=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"update_many_with_persona"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.sendClientNotification=function(t,e){return r(this,arguments,void 0,(function(t,e){var n=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route).concat(n,"/send_client_notification"),e)];case 1:return t.sent(),[2]}}))}))},t.prototype.markUnsentClientNotification=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route).concat(e,"/mark_unsent_client_notification"))];case 1:return t.sent(),[2]}}))}))},t.prototype.documentPdf=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route,"document_pdf/").concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.documentPdfStream=function(t,e){return r(this,arguments,void 0,(function(t,e){var n=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"document_pdf/").concat(n),{params:e,responseType:"arraybuffer"})];case 1:return[2,t.sent().data]}}))}))},t.prototype.getDocumentPdfUrl=function(t,e){var n=t.id,i=new URLSearchParams;return(null==e?void 0:e.token)&&i.set("token",e.token),"".concat(this.route,"document_pdf/").concat(n,"?").concat(i.toString())},t.prototype.documentList=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route,"document_list/").concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.getAllRelatedDocumentHeaderIds=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"related/").concat(e))];case 1:return[2,t.sent().data]}}))}))},t}(),m=Object.freeze({__proto__:null,default:_}),g=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"bill_of_lading"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),O=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.createProductionOrder=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"production_order"),t)];case 1:return e.sent(),[2]}}))}))},t}(),R=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"pro_forma"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),P=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.createProviderProposal=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"provider_proposal"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),k=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findProviderReturn=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"provider_return"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.createProviderCreditNoteFromReturn=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"provider_credit_note_from_return"),t)];case 1:return e.sent(),[2]}}))}))},t}(),I=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findProviderInvoice=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"provider_invoice"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.createProviderFinancialCreditNote=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"provider_financial_credit_note"),t)];case 1:return e.sent(),[2]}}))}))},t}(),B=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.createProviderServiceInvoice=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"provider_service_invoice"),t)];case 1:return e.sent(),[2]}}))}))},t}(),S=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByState=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"find_by_state"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.updateIndexes=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"update_indexes"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.updateData=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"update_data"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.updateMany=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"update_many"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.updateManyByDocumentHeader=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"update_many_by_document_header_id"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.deleteMany=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route),{data:t})];case 1:return e.sent(),[2]}}))}))},t.prototype.printLabelToPdfUrl=function(t,e){var n=t.document_line_ids,i=new URLSearchParams;return i.set("token",e),"".concat(this.route,"print_label_pdf/").concat(n,"?").concat(i.toString())},t}(),j=Object.freeze({__proto__:null,default:S}),z=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findVirtualsByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"virtuals_by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t}(),M=Object.freeze({__proto__:null,default:z}),E=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),T=Object.freeze({__proto__:null,default:E}),C=e.DocumentType.DocumentTypeUserTypeEnum,L=e.DocumentType.documentTypeUserTypes,x=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findDetailed=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"detailed"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),D=Object.freeze({__proto__:null,DocumentTypeUserTypeEnum:C,default:x,documentTypeUserTypes:L}),U=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByUrl=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.list=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"list"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),F=Object.freeze({__proto__:null,default:U}),A=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerIds=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owners"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.publicRoute),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),V=Object.freeze({__proto__:null,default:A}),q=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.clone=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.get("".concat(this.route,"clone/").concat(t.id),{params:e})];case 1:return[2,n.sent().data]}}))}))},t.prototype.export=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"export"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.getData=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return n.sent(),[2]}}))}))},t}(),H=Object.freeze({__proto__:null,default:q}),N=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Q=Object.freeze({__proto__:null,default:N}),W=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),G=Object.freeze({__proto__:null,default:W}),Z=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),J=Object.freeze({__proto__:null,default:Z}),K=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.logout=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route))];case 1:return t.sent(),[2]}}))}))},t}(),X=Object.freeze({__proto__:null,default:K}),Y=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.getUrl=function(t,e){void 0===e&&(e=!1);var n=new URLSearchParams;return e&&n.set("download",e.toString()),"".concat(this.publicRoute).concat(t,"?").concat(n.toString())},t.prototype.create=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return[4,this.api.post("".concat(this.publicRoute,"upload"),t,{headers:n(n({},e||{}),{"content-type":"multipart/form-data"}),maxBodyLength:1/0,maxContentLength:1/0})];case 1:return[2,i.sent().data]}}))}))},t}(),$=Object.freeze({__proto__:null,default:Y}),tt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerIds=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"by_owners"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),et=Object.freeze({__proto__:null,default:tt}),nt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),it=Object.freeze({__proto__:null,default:nt}),rt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ot=Object.freeze({__proto__:null,default:rt}),ut=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.forgotPassword=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.publicRoute,"forgot"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.resetPassword=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.publicRoute,"reset"),t)];case 1:return e.sent(),[2]}}))}))},t}(),ct=Object.freeze({__proto__:null,default:ut}),st=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),at=Object.freeze({__proto__:null,default:st}),ht=e.ProductImage.ImageTypeEnum,pt=e.ProductImage.imageTypes,dt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ft=Object.freeze({__proto__:null,ImageTypeEnum:ht,default:dt,imageTypes:pt}),lt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.getBestDiscount=function(t,e,n,i,r){var o=t.filter((function(t){var e=!t.exclusive_to_location_id||t.exclusive_to_location_id===n,r=!t.exclusive_to_client_id||t.exclusive_to_client_id===i;return e&&r})).reduce((function(t,e){return e.discount>t?e.discount:t}),0),u=r?0:e||0;return o>u?o:u},t}(),vt=Object.freeze({__proto__:null,default:lt}),bt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),yt=Object.freeze({__proto__:null,default:bt}),wt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByQuery=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"query"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinifiedManufacturer=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified_manufacturer"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),_t=Object.freeze({__proto__:null,default:wt}),mt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),gt=Object.freeze({__proto__:null,default:mt}),Ot=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Rt=Object.freeze({__proto__:null,default:Ot}),Pt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),kt=Object.freeze({__proto__:null,default:Pt}),It=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.publicRoute),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Bt=Object.freeze({__proto__:null,default:It}),St=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),jt=Object.freeze({__proto__:null,default:St}),zt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.publicRoute),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Mt=Object.freeze({__proto__:null,default:zt}),Et=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Tt=Object.freeze({__proto__:null,default:Et}),Ct=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Lt=Object.freeze({__proto__:null,default:Ct}),xt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.checkPin=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"pin"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Dt=Object.freeze({__proto__:null,default:xt}),Ut=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Ft=Object.freeze({__proto__:null,default:Ut}),At=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Vt=Object.freeze({__proto__:null,default:At}),qt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Ht=Object.freeze({__proto__:null,default:qt}),Nt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Qt=Object.freeze({__proto__:null,default:Nt}),Wt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Gt=Object.freeze({__proto__:null,default:Wt}),Zt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findProvidersWithClientId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"providers"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findFromClientOrProviderId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"from_client_or_provider_id"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Jt=Object.freeze({__proto__:null,default:Zt}),Kt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Xt=Object.freeze({__proto__:null,default:Kt}),Yt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),$t=Object.freeze({__proto__:null,default:Yt}),te=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ee=Object.freeze({__proto__:null,default:te}),ne=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ie=Object.freeze({__proto__:null,default:ne}),re=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),oe=Object.freeze({__proto__:null,default:re}),ue=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ce=Object.freeze({__proto__:null,default:ue}),se=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ae=Object.freeze({__proto__:null,default:se}),he=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),pe=Object.freeze({__proto__:null,default:he}),de=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),fe=Object.freeze({__proto__:null,default:de}),le=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteBatch=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route,"delete_batch").concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findCurrentAccountByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"current_account"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findBalanceByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"balance"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findSettledMaterialEntrance=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"settled_material_entrance"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findSettledMaterialEntranceProviders=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"settled_material_entrance_providers"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.createProvidersPayments=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"provider"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaymentsNotExported=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"not_exported"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaymentBatches=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"batches"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.updateDownloadedBatchNumber=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"downloaded_batch_number/").concat(t))];case 1:return e.sent(),[2]}}))}))},t.prototype.exportCurrentAccount=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.publicRoute,"export_current_account"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findSettledMaterialEntranceByDate=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"settled_material_entrance_by_date"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.exportPayments=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"export_payments"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.getExportCurrentAccountUrl=function(t){var e=t.owner_id,n=t.start_date,i=t.end_date,r=t.output,o=t.token,u=new URLSearchParams;return u.set("owner_id",e),u.set("output",r),n&&u.set("start_date",n.toISOString()),i&&u.set("end_date",i.toISOString()),u.set("token",o),"".concat(this.publicRoute,"export_current_account?").concat(u.toString())},t}(),ve=Object.freeze({__proto__:null,default:le}),be=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.publicFindByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"public_by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.sendEmailDocument=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"sendEmail"),t)];case 1:return e.sent(),[2]}}))}))},t}(),ye=Object.freeze({__proto__:null,default:be}),we=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findFaturaPorPagar=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"fatura_por_pagar"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.pagarFatura=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"pagar_fatura"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.findFaturaParaDevolver=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"fatura_para_devolver"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.devolver=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"devolver"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.findByBasicSearch=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"basic_search"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.regularizarMultiplosDocumentos=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"multiple_documents"),{data:t})];case 1:return e.sent(),[2]}}))}))},t}(),_e=Object.freeze({__proto__:null,default:we}),me=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),ge=Object.freeze({__proto__:null,default:me}),Oe=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return e.sent(),[2]}}))}))},t}(),Re=Object.freeze({__proto__:null,default:Oe}),Pe=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByLatest=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:{nif:t}})];case 1:return[2,e.sent().data]}}))}))},t}(),ke=Object.freeze({__proto__:null,default:Pe}),Ie=e.StockMovement.ExportFormatEnum,Be=e.StockMovement.exportFormats,Se=e.StockMovement.ExportVersionEnum,je=e.StockMovement.exportVersions,ze=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByProvider=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route).concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.exportCsv=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"csv"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.getStockCsvUrl=function(t){var e=t.date,n=t.version,i=t.format,r=t.token,o=new URLSearchParams;return o.set("date",e.toISOString()),o.set("version",n),o.set("format",i),o.set("token",r),"".concat(this.publicRoute,"csv?").concat(o.toString())},t}(),Me=Object.freeze({__proto__:null,ExportFormatEnum:Ie,ExportVersionEnum:Se,default:ze,exportFormats:Be,exportVersions:je}),Ee=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.findByPostalCode=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),Te=Object.freeze({__proto__:null,default:Ee}),Ce=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t}(),Le=Object.freeze({__proto__:null,default:Ce}),xe=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_user/").concat(t.created_by))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPending=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"pending"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.updatePreSaleQuantity=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id,"/quantity"),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.removeProduct=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route,"product/").concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.importToClientProposal=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"client_proposal"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),De=Object.freeze({__proto__:null,default:xe}),Ue=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Fe=Object.freeze({__proto__:null,default:Ue}),Ae=e.Cabide.cabideTypes,Ve=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByBasicSearch=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"basic_search"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByIdProvider=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"'/id_provider/").concat(t.id_provider))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findCabideProviders=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"cabide_providers"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.printLabelToPdfUrl=function(t,e){var n=t.id,i=new URLSearchParams;return i.set("token",e),"".concat(this.publicRoute,"print_label_pdf/").concat(n,"?").concat(i.toString())},t}(),qe=Object.freeze({__proto__:null,cabidesTypesEnum:Ae,default:Ve}),He=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.createProductByCabideProductId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"product"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.findById=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route).concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findByOwner=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerPaginated=function(t){return r(this,void 0,void 0,(function(){var e=t.owner_id,n=i(t,["owner_id"]);return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route).concat(e,"/paginated"),{params:n})];case 1:return[2,t.sent().data]}}))}))},t.prototype.findProductByCabideProductId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"product/").concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Ne=Object.freeze({__proto__:null,default:He}),Qe=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findProviderProducts=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"provider_products"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findProductHistory=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"product_history"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),We=Object.freeze({__proto__:null,default:Qe}),Ge=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t}(),Ze=Object.freeze({__proto__:null,default:Ge}),Je=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t}(),Ke=Object.freeze({__proto__:null,default:Je}),Xe=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.createMany=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"many"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.dispatchSchedulePrintJob=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"dispatch_schedule_print_job"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwner=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),Ye=Object.freeze({__proto__:null,default:Xe}),$e=e.QueryList.executeOutput,tn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.execute=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"execute"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.getQueryExecuteUrl=function(t){var e=t.query_id,n=t.output,r=t.token,o=i(t,["query_id","output","token"]),u=new URLSearchParams;return u.set("query_id",e),u.set("output",n),r&&u.set("token",r),Object.entries(o).forEach((function(t){var e=t[0],n=t[1];null!=n&&u.set(e,n.toString())})),"".concat(this.route,"execute?").concat(u.toString())},t}(),en=Object.freeze({__proto__:null,default:tn,executeOutput:$e}),nn=e.QueryParameter.QueryParameterDatatypeEnum,rn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),on=Object.freeze({__proto__:null,QueryParameterDatatypeEnum:nn,default:rn}),un=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),cn=Object.freeze({__proto__:null,default:un}),sn=e.PropostaSheets.IConflictEnum,an=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.isProcessing=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"is_processing"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.importFromSheet=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"import_from_sheet"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.createSheetFromDocument=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"create_sheet_from_document"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.cloneSheetsToNewDocument=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"clone_sheet_to_new_document"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.conflictAccept=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"conflict_accept"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.conflictDelete=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route,"conflict_delete"),{data:t})];case 1:return e.sent(),[2]}}))}))},t.prototype.conflictFindByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"conflict_find_by_owner_id"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),hn=Object.freeze({__proto__:null,IConflictEnum:sn,default:an}),pn=(u=e.Schedule).ScheduleTypeEnum,dn=u.scheduleTypes,fn=u.ScheduleTypeLabel,ln=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.runImmediately=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route).concat(t.scheduleType))];case 1:return e.sent(),[2]}}))}))},t}(),vn=Object.freeze({__proto__:null,ScheduleTypeEnum:pn,ScheduleTypeLabel:fn,default:ln,scheduleTypes:dn}),bn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),yn=Object.freeze({__proto__:null,default:bn}),wn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByKey=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.publicRoute,"by_key"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t}(),_n=Object.freeze({__proto__:null,default:wn}),mn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findToday=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"find_today"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.update=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.undoLastCall=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.put("".concat(this.route,"undo_last_call"))];case 1:return[2,t.sent().data]}}))}))},t}(),gn=Object.freeze({__proto__:null,default:mn}),On=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t))];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.post("".concat(this.route).concat(t),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t))];case 1:return e.sent(),[2]}}))}))},t}(),Rn=Object.freeze({__proto__:null,default:On}),Pn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t))];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.post("".concat(this.route).concat(t),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t))];case 1:return e.sent(),[2]}}))}))},t}(),kn=Object.freeze({__proto__:null,default:Pn}),In=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t))];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.post("".concat(this.route).concat(t),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t))];case 1:return e.sent(),[2]}}))}))},t}(),Bn=Object.freeze({__proto__:null,default:In}),Sn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),jn=Object.freeze({__proto__:null,default:Sn}),zn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return e.sent(),[2]}}))}))},t}(),Mn=Object.freeze({__proto__:null,default:zn}),En=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findContactPersonaByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"contact"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByBasic=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"basic_search"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{data:t})];case 1:return[2,e.sent().data]}}))}))},t}(),Tn=Object.freeze({__proto__:null,default:En}),Cn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.sendEmail=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"sendEmail"),t)];case 1:return e.sent(),[2]}}))}))},t}(),Ln=Object.freeze({__proto__:null,default:Cn}),xn=(c=e.Order).ConferirEncomendaClienteOptionsEnum,Dn=c.conferirEncomendaClienteOptions,Un=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.unsetCativado=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"unset_cativado"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findStockToOrder=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"check_lines_to_order"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findProvidersWithStockToOrder=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"stock_order_provider"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.undoEncomendaVA=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id,"/undo_encomenda_va"))];case 1:return e.sent(),[2]}}))}))},t.prototype.setProvider=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"set_provider"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.unsetProvider=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route).concat(e,"/unset_provider"))];case 1:return t.sent(),[2]}}))}))},t.prototype.undoEncomendaStock=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route).concat(e,"/undo_encomenda_stock"))];case 1:return t.sent(),[2]}}))}))},t.prototype.undoProviderOrder=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"undo_provider_order"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.conferirEncomendaCliente=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"check_client_order"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),Fn=Object.freeze({__proto__:null,ConferirEncomendaClienteOptionsEnum:xn,conferirEncomendaClienteOptions:Dn,default:Un}),An=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.purchaseFromProvider=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"purchase_from_provider"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.findUnpaidMaterialEntrance=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"unpaid_material_entrance"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findUnpaidMaterialEntranceProviders=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"unpaid_material_entrance_providers"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.sync=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"sync"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Vn=Object.freeze({__proto__:null,default:An}),qn=e.MaterialEntrance.ICreateMaterialEntranceClientOrderOptionEnum,Hn=e.MaterialEntrance.createMaterialEntranceClientOrderOptions,Nn=e.MaterialEntrance.ICreateMaterialEntranceStockOptionEnum,Qn=e.MaterialEntrance.createMaterialEntranceStockOptions,Wn=e.MaterialEntrance.ICreateMaterialEntranceStockWithoutOrderOptionEnum,Gn=e.MaterialEntrance.createMaterialEntranceStockWithoutOrderOptions,Zn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findMaterialEntranceProviders=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"material_entrance_providers"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findUnfinishedPickings=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"unfinished_pickings/").concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.finalizarEntradaMaterial=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"finalize_material_entrance"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.undoEntradaMaterial=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"undo_material_entrance"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.printLabelToPdfUrl=function(t,e,n){var i=t.product_id,r=e.quantity,o=e.ef_name,u=e.pc_document_number,c=e.prison,s=e.note,a=new URLSearchParams;return a.set("ef_name",o),a.set("quantity",r.toString()),u&&a.set("pc_document_number",u.toString()),s&&a.set("note",s.toString()),a.set("prison",c.toString()),a.set("token",n),"".concat(this.publicRoute,"print_label_pdf/").concat(i,"?").concat(a.toString())},t.prototype.printBulkLabelToPdfUrl=function(t){var e=t.groupLabel,n=t.saved_em_picking_ids,i=t.token,r=new URLSearchParams;return r.set("groupLabel",e.toString()),r.set("saved_em_picking_ids",n),r.set("token",i),"".concat(this.publicRoute,"print_bulk_label_pdf?").concat(r.toString())},t}(),Jn=Object.freeze({__proto__:null,ICreateMaterialEntranceClientOrderOptionEnum:qn,ICreateMaterialEntranceStockOptionEnum:Nn,ICreateMaterialEntranceStockWithoutOrderOptionEnum:Wn,createMaterialEntranceClientOrderOptions:Hn,createMaterialEntranceStockOptions:Qn,createMaterialEntranceStockWithoutOrderOptions:Gn,default:Zn}),Kn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Xn=Object.freeze({__proto__:null,default:Kn}),Yn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.post("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t}(),$n=Object.freeze({__proto__:null,default:Yn}),ti=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.createMany=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"many"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ei=Object.freeze({__proto__:null,default:ti}),ni=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.send=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"send"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),ii=Object.freeze({__proto__:null,default:ni}),ri=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t}(),oi=Object.freeze({__proto__:null,default:ri}),ui=e.Prison.checkLineInPrisonOptions,ci=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.putLineInPrison=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"put_in_prison"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.removeLineFromPrison=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"remove_from_prison"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findLinesInPrison=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"in_prison"),{})];case 1:return[2,t.sent().data]}}))}))},t.prototype.findLinesInPrisonProviders=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"in_prison_providers"),{})];case 1:return[2,t.sent().data]}}))}))},t.prototype.checkLinesInPrison=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"check_in_prison"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.createLinesInPrison=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"create_lines"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),si=Object.freeze({__proto__:null,checkLineInPrisonOptions:ui,default:ci}),ai=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findInventoryLosses=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findInventoryLossesProviders=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"providers"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.createMany=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"create_many"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteInventoryLosses=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route,"inventory_loss"),{data:t})];case 1:return e.sent(),[2]}}))}))},t}(),hi=Object.freeze({__proto__:null,default:ai}),pi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.createInventory=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return e.sent(),[2]}}))}))},t}(),di=Object.freeze({__proto__:null,default:pi}),fi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findLinesToReturn=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"lines_to_return"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findLinesToReturnProviders=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"lines_to_return_providers"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.checkLinesToReturn=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"check_to_return"),t)];case 1:return e.sent(),[2]}}))}))},t}(),li=Object.freeze({__proto__:null,default:fi}),vi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.isVerified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.sendVerificationEmail=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.markAsVerified=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.publicRoute),t)];case 1:return[2,e.sent().data]}}))}))},t}(),bi=Object.freeze({__proto__:null,default:vi}),yi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route).concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findByDocumentHeaderId=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"document_header/").concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.checkSent=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"check_sent"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),wi=Object.freeze({__proto__:null,default:yi}),_i=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),mi=Object.freeze({__proto__:null,default:_i}),gi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByProviderId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Oi=Object.freeze({__proto__:null,default:gi}),Ri=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.basicSearch=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"basic_search"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findReferenceAndIdForMobile=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"reference_and_id_mobile"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findDataForMobile=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"data_mobile/").concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findStockForMobile=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"stock_mobile/").concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPreArtigo=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"pre_artigo"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.updatePricesFromPreArtigo=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"update_prices_from_pre_artigo"))];case 1:return t.sent(),[2]}}))}))},t.prototype.validateByRef=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"validate_by_ref"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findSimilarProductsByName=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"similar_products"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByProductType=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_product_type"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route).concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findByIdWithStock=function(t){return r(this,arguments,void 0,(function(t){var e=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route).concat(e,"/with_stock"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.updateGoogleSheetsLinesProduct=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"update_google_sheets_lines_product"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.googleSheetsFieldsByRef=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"google_sheets_fields_by_ref/").concat(t.reference))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findRowPositionOnSheetsWithColumns=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"sheet_row_and_columns/").concat(t.selector))];case 1:return[2,e.sent().data]}}))}))},t.prototype.checkStockByIds=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"check_stock_by_ids"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,arguments,void 0,(function(t,e){var n=t.id;return o(this,(function(t){switch(t.label){case 0:return[4,this.api.put("".concat(this.route).concat(n),e)];case 1:return t.sent(),[2]}}))}))},t.prototype.deleteOne=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.printLabelToPdfUrl=function(t,e){var n=t.id,i=new URLSearchParams;return i.set("token",e),"".concat(this.publicRoute,"print_label_pdf/").concat(n,"?").concat(i.toString())},t.prototype.updateDbFromSheets=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route,"update_db_from_sheets"))];case 1:return t.sent(),[2]}}))}))},t.prototype.partialLocation=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"partial_location"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.fullLocation=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"full_location"),t)];case 1:return e.sent(),[2]}}))}))},t}(),Pi=Object.freeze({__proto__:null,default:Ri}),ki=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this.api.get("".concat(this.route).concat(t))]}))}))},t.prototype.findWithMessages=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this.api.get("".concat(this.route,"with_messages"),{params:t})]}))}))},t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.delete=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.findByOwnerId=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route,"by_owner/").concat(t.owner_id))];case 1:return[2,e.sent().data]}}))}))},t}(),Ii=Object.freeze({__proto__:null,default:ki}),Bi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.delete=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t}(),Si=Object.freeze({__proto__:null,default:Bi}),ji=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findAll=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){return[2,this.api.get("".concat(this.route))]}))}))},t.prototype.update=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.delete=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t}(),zi=Object.freeze({__proto__:null,default:ji}),Mi=function(e){var n=e.processEnvironment,i=e.services,r=e.gatewayUrl,o=e.apikey,u=e.tokenBearer,c=this;this.processEnvironment=n||"localhost";var a=new t.AxiosHeaders;o&&a.set("apikey",o),u&&a.setAuthorization(u),this.client=t.create({baseURL:r,headers:a});var p=function(t){var e=i[t],r="localhost"===n?"/":"".concat(t,"/").concat(o?"apikey/":"auth/"),u="localhost"===n?"/":"".concat(t,"/public/");return{authPath:"".concat(e).concat(r),publicPath:"".concat(e).concat(u)}};this.services={stock:p("stock"),users:p("users"),integration:p("integration"),documents:p("documents"),view:p("view"),print:p("print"),tickets:p("tickets"),stockworker:p("stockworker")};var f=function(t,e){return{api:c.client,route:"".concat(c.services[t].authPath).concat(e,"/"),publicRoute:"".concat(c.services[t].publicPath).concat(e,"/")}};this.BankData=new s(f("users","bank_data")),this.Client=new h(f("users","client")),this.ClientType=new d(f("users","client_type")),this.Chat=new l(f("stock","chat")),this.Commissioner=new v(f("users","commissioner")),this.Country=new y(f("users","country")),this.DocumentHeader=new _(f("stock","document_header")),this.BillOfLading=new g(f("stock","document_header")),this.ProductionOrder=new O(f("stock","document_header")),this.Proforma=new R(f("stock","document_header")),this.PropostaFornecedor=new P(f("stock","document_header")),this.ProviderCreditNoteFromReturn=new k(f("stock","document_header")),this.ProviderFinancialCreditNote=new I(f("stock","document_header")),this.ProviderServiceInvoice=new B(f("stock","document_header")),this.DocumentLine=new S(f("stock","document_line")),this.DocumentLineAssoc=new z(f("stock","document_line_assoc")),this.DocumentLineFolder=new E(f("stock","document_line_folder")),this.DocumentType=new x(f("stock","document_type")),this.Favorites=new U(f("users","favorite")),this.File=new A(f("integration","file")),this.GoogleSheets=new q(f("integration","google")),this.GroupPermissions=new N(f("users","group_permission")),this.Language=new W(f("users","language")),this.Location=new Z(f("stock","location")),this.Logout=new K(f("users","logout")),this.Multimedia=new Y(f("documents","multimedia")),this.Observation=new tt(f("integration","observation")),this.ObservationType=new nt(f("integration","observation_type")),this.PaymentConditions=new rt(f("users","payment_condition")),this.Password=new ut(f("users","password")),this.Permissions=new st(f("users","permission")),this.ProductImage=new dt(f("stock","product_image")),this.Promotion=new lt(f("stock","promotion")),this.PromotionAssoc=new bt(f("stock","promotion_assoc")),this.Providers=new wt(f("users","provider")),this.ProviderType=new mt(f("users","provider_type")),this.PurchaseConditions=new Ot(f("users","purchase_condition")),this.ReasonForExemption=new Pt(f("users","reason_for_exemption")),this.RefreshToken=new It(f("users","refresh-token")),this.SegmentsArea=new St(f("users","segments_area")),this.Sessions=new zt(f("users","sessions")),this.Shippings=new Et(f("users","shipping")),this.SocialMedia=new Ct(f("users","social_media")),this.StoreOperator=new xt(f("users","store_operator")),this.Swift=new Ut(f("users","swift")),this.TypeOfLocation=new At(f("stock","type_of_location")),this.UnitOfMeasure=new qt(f("stock","unit_of_measure")),this.UserPermissions=new Nt(f("users","user_permission")),this.UserPositions=new Wt(f("users","user_position")),this.Users=new Zt(f("users","users")),this.VatTax=new Kt(f("stock","vat_tax")),this.VatTaxZone=new Yt(f("stock","vat_tax_zone")),this.Workflow=new te(f("stock","workflow")),this.DeliveryMethods=new ne(f("users","delivery_methods")),this.MaturityDates=new re(f("users","maturity_dates")),this.PaymentMethods=new ue(f("users","payment_methods")),this.Vehicles=new se(f("users","vehicles")),this.ExternalDocumentType=new he(f("stock","external_document_type")),this.DocumentSet=new de(f("stock","document_set")),this.Payment=new le(f("stock","payment")),this.ExternalDocumentHeader=new be(f("stock","external_document_header")),this.ClientCurrentAccount=new we(f("stock","client_current_account")),this.ProviderCurrentAccount=new me(f("stock","provider_current_account")),this.MoloniRequest=new Oe(f("stock","moloni_request")),this.VatValidation=new Pe(f("stock","vat_validation")),this.StockMovement=new ze(f("stock","stock_movement")),this.ZipCode=new Ee(f("users","zip_code")),this.Tenant=new Ce(f("users","tenant")),this.PreSale=new xe(f("stock","pre_sale")),this.PreSaleProduct=new Ue(f("stock","pre_sale_product")),this.Cabide=new Ve(f("stock","cabide")),this.CabideProduct=new He(f("stock","cabide_product")),this.OrderManagement=new Qe(f("stock","order_management")),this.Npc=new Ge(f("print","npc")),this.Printer=new Je(f("print","printer")),this.SchedulePrintJob=new Xe(f("print","schedule_print_job")),this.QueryList=new tn(f("stock","query")),this.QueryParameter=new rn(f("stock","query_parameter")),this.ReturnReason=new un(f("stock","return_reason")),this.PropostaSheets=new an(f("stock","proposta_sheets")),this.Schedule=new ln(f("stock","schedule")),this.GoogleFilePermission=new bn(f("integration","google_file_permission")),this.Settings=new wn(f("integration","settings")),this.Tickets=new mn(f("tickets","tickets")),this.Channel=new On(f("tickets","channel")),this.TicketsLanguage=new Pn(f("tickets","tickets_language")),this.Clt=new In(f("tickets","clt")),this.StartDocumentHeaderLastUpdate=new Sn(f("stock","start_document_header_last_update")),this.ErrorHandler=new zn(f("integration","error_handler")),this.Persona=new En(f("users","persona")),this.ProjectInfo=new Cn(f("integration","project_info")),this.Order=new Un(f("stock","order")),this.Purchase=new An(f("stock","purchase")),this.MaterialEntrance=new Zn(f("stock","material_entrance")),this.Transformado=new Kn(f("stock","transformado")),this.UpfrontReturn=new Yn(f("stock","upfront_return")),this.SavedEmPicking=new ti(f("stock","saved_em_picking")),this.EmailTemplate=new ni(f("integration","email_template")),this.EmailTemplateAttachment=new ri(f("integration","email_template_attachment")),this.Prison=new ci(f("stock","prison")),this.Quebra=new ai(f("stock","quebra")),this.Inventario=new pi(f("stock","inventario")),this.ReturnToProvider=new fi(f("stock","return_to_provider")),this.EmailVerification=new vi(f("integration","email_verification")),this.EmailLog=new yi(f("integration","email_log")),this.DocumentLineNote=new _i(f("stock","document_line_note")),this.SavedProviderProposal=new gi(f("stock","saved_provider_proposal")),this.ProductGoogleSheets=new Ri(f("stock","product_google")),this.Task=new ki(f("stock","task")),this.TaskMessage=new Bi(f("stock","task_message")),this.RecurrentTasks=new ji(f("stock","recurrent_tasks"))},Ei=Object.freeze({__proto__:null,API:Mi,BankData:a,Cabide:qe,CabideProduct:Ne,Channel:Rn,Client:p,ClientCurrentAccount:_e,ClientType:f,Clt:Bn,Commissioner:b,Country:w,DeliveryMethods:ie,DocumentHeader:m,DocumentLine:j,DocumentLineAssoc:M,DocumentLineFolder:T,DocumentLineNote:mi,DocumentSet:fe,DocumentType:D,EmailLog:wi,EmailTemplate:ii,EmailTemplateAttachment:oi,EmailVerification:bi,ErrorHandler:Mn,ExternalDocumentHeader:ye,ExternalDocumentType:pe,Favorites:F,File:V,GoogleFilePermission:yn,GoogleSheets:H,GroupPermissions:Q,Inventario:di,Language:G,Location:J,Logout:X,MaterialEntrance:Jn,MaturityDates:oe,MoloniRequest:Re,Multimedia:$,Npc:Ze,Observation:et,ObservationType:it,Order:Fn,OrderManagement:We,Password:ct,Payment:ve,PaymentConditions:ot,PaymentMethods:ce,Permissions:at,Persona:Tn,PreSale:De,PreSaleProduct:Fe,Printer:Ke,Prison:si,ProductGoogleSheets:Pi,ProductImage:ft,ProjectInfo:Ln,Promotion:vt,PromotionAssoc:yt,PropostaSheets:hn,ProviderCurrentAccount:ge,ProviderType:gt,Providers:_t,Purchase:Vn,PurchaseConditions:Rt,Quebra:hi,QueryList:en,QueryParameter:on,ReasonForExemption:kt,RecurrentTasks:zi,RefreshToken:Bt,ReturnReason:cn,ReturnToProvider:li,SavedEmPicking:ei,SavedProviderProposal:Oi,Schedule:vn,SchedulePrintJob:Ye,SegmentsArea:jt,Sessions:Mt,Settings:_n,Shippings:Tt,SocialMedia:Lt,StartDocumentHeaderLastUpdate:jn,StockMovement:Me,StoreOperator:Dt,Swift:Ft,Task:Ii,TaskMessage:Si,Tenant:Le,Tickets:gn,TicketsLanguage:kn,Transformado:Xn,TypeOfLocation:Vt,UnitOfMeasure:Ht,UpfrontReturn:$n,UserPermissions:Qt,UserPositions:Gt,Users:Jt,VatTax:Xt,VatTaxZone:$t,VatValidation:ke,Vehicles:ae,Workflow:ee,ZipCode:Te});return Object.assign(module.exports,Ei),Ei}));
@@ -25,6 +25,7 @@ export default class Repository implements Nomalism.DocumentLine.IApi {
25
25
  updateIndexes(document_line_ids: string[]): Promise<void>;
26
26
  updateData(data: IUpdateDataRequest): Promise<Nomalism.DocumentLineAssoc.IEntityWithDocumentLine[]>;
27
27
  updateMany(data: IUpdateManyRequest): Promise<void>;
28
+ updateManyByDocumentHeader(data: Nomalism.DocumentLine.IUpdateManyByDocumentHeaderRequest): Promise<void>;
28
29
  deleteMany(document_line_ids: string[]): Promise<void>;
29
30
  printLabelToPdfUrl({ document_line_ids }: IPrintLabelParamsRequest, token: string): string;
30
31
  }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.28.28",
12
+ "version": "0.28.29",
13
13
  "main": "dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [
@@ -44,7 +44,7 @@
44
44
  "tslib": "^2.8.1"
45
45
  },
46
46
  "dependencies": {
47
- "@nomalism-com/types": "^0.28.38",
47
+ "@nomalism-com/types": "^0.28.40",
48
48
  "axios": "^1.7.9"
49
49
  }
50
50
  }