@nomalism-com/api 0.28.15 → 0.28.17
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.isActive=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,"is_active/").concat(e))];case 1:return[2,t.sent().data]}}))}))},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.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}(),y=Object.freeze({__proto__:null,default:b}),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.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}(),_=Object.freeze({__proto__:null,default:w}),m=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}(),g=Object.freeze({__proto__:null,default:m}),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.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}(),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.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}(),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.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}(),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.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}(),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.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}(),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.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}(),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.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}(),j=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}(),z=Object.freeze({__proto__:null,default:j}),M=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}(),E=Object.freeze({__proto__:null,default:M}),T=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}(),C=Object.freeze({__proto__:null,default:T}),L=e.DocumentType.DocumentTypeUserTypeEnum,x=e.DocumentType.documentTypeUserTypes,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.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}(),U=Object.freeze({__proto__:null,DocumentTypeUserTypeEnum:L,default:D,documentTypeUserTypes:x}),F=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}(),A=Object.freeze({__proto__:null,default:F}),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.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}(),q=Object.freeze({__proto__:null,default:V}),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.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}(),Q=Object.freeze({__proto__:null,default:N}),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.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}(),W=Object.freeze({__proto__:null,default:H}),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.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}(),Z=Object.freeze({__proto__:null,default:G}),J=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}(),K=Object.freeze({__proto__:null,default:J}),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.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}(),Y=Object.freeze({__proto__:null,default: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.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}(),tt=Object.freeze({__proto__:null,default:$}),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.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}(),nt=Object.freeze({__proto__:null,default:et}),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.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}(),rt=Object.freeze({__proto__:null,default:it}),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}(),ut=Object.freeze({__proto__:null,default:ot}),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.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}(),st=Object.freeze({__proto__:null,default:ct}),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(){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}(),ht=Object.freeze({__proto__:null,default:at}),pt=e.ProductImage.ImageTypeEnum,dt=e.ProductImage.imageTypes,ft=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,ImageTypeEnum:pt,default:ft,imageTypes:dt}),vt=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}(),bt=Object.freeze({__proto__:null,default:vt}),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.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}(),wt=Object.freeze({__proto__:null,default:yt}),_t=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}(),mt=Object.freeze({__proto__:null,default:_t}),gt=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}(),Ot=Object.freeze({__proto__:null,default:gt}),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}(),Pt=Object.freeze({__proto__:null,default:Rt}),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.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}(),It=Object.freeze({__proto__:null,default:kt}),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.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}(),St=Object.freeze({__proto__:null,default:Bt}),jt=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}(),zt=Object.freeze({__proto__:null,default:jt}),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.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}(),Et=Object.freeze({__proto__:null,default:Mt}),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.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}(),Ct=Object.freeze({__proto__:null,default:Tt}),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.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:Lt}),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.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}(),Ut=Object.freeze({__proto__:null,default:Dt}),Ft=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}(),At=Object.freeze({__proto__:null,default:Ft}),Vt=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}(),qt=Object.freeze({__proto__:null,default:Vt}),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(t){return r(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}(),Qt=Object.freeze({__proto__:null,default:Nt}),Ht=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}(),Wt=Object.freeze({__proto__:null,default:Ht}),Gt=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}(),Zt=Object.freeze({__proto__:null,default:Gt}),Jt=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}(),Kt=Object.freeze({__proto__:null,default:Jt}),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}(),Yt=Object.freeze({__proto__:null,default:Xt}),$t=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}(),te=Object.freeze({__proto__:null,default:$t}),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.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}(),ne=Object.freeze({__proto__:null,default:ee}),ie=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}(),re=Object.freeze({__proto__:null,default:ie}),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.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}(),ue=Object.freeze({__proto__:null,default:oe}),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.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}(),se=Object.freeze({__proto__:null,default:ce}),ae=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}(),he=Object.freeze({__proto__:null,default:ae}),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.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}(),de=Object.freeze({__proto__:null,default:pe}),fe=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}(),le=Object.freeze({__proto__:null,default:fe}),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.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}(),be=Object.freeze({__proto__:null,default:ve}),ye=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.findByToken=function(t){return r(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.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}(),we=Object.freeze({__proto__:null,default:ye}),_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.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}(),me=Object.freeze({__proto__:null,default:_e}),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.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}(),Oe=Object.freeze({__proto__:null,default:ge}),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.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}(),Pe=Object.freeze({__proto__:null,default:Re}),ke=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}(),Ie=Object.freeze({__proto__:null,default:ke}),Be=e.StockMovement.ExportFormatEnum,Se=e.StockMovement.exportFormats,je=e.StockMovement.ExportVersionEnum,ze=e.StockMovement.exportVersions,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.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}(),Ee=Object.freeze({__proto__:null,ExportFormatEnum:Be,ExportVersionEnum:je,default:Me,exportFormats:Se,exportVersions:ze}),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.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}(),Ce=Object.freeze({__proto__:null,default:Te}),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.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}(),xe=Object.freeze({__proto__:null,default:Le}),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(t){return r(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}(),Ue=Object.freeze({__proto__:null,default:De}),Fe=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}(),Ae=Object.freeze({__proto__:null,default:Fe}),Ve=e.Cabide.cabideTypes,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.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}(),Ne=Object.freeze({__proto__:null,cabidesTypesEnum:Ve,default:qe}),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.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}(),He=Object.freeze({__proto__:null,default:Qe}),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.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}(),Ge=Object.freeze({__proto__:null,default:We}),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.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}(),Je=Object.freeze({__proto__:null,default:Ze}),Ke=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}(),Xe=Object.freeze({__proto__:null,default:Ke}),Ye=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}(),$e=Object.freeze({__proto__:null,default:Ye}),tn=e.QueryList.executeOutput,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.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}(),nn=Object.freeze({__proto__:null,default:en,executeOutput:tn}),rn=e.QueryParameter.QueryParameterDatatypeEnum,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.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}(),un=Object.freeze({__proto__:null,QueryParameterDatatypeEnum:rn,default:on}),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.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}(),sn=Object.freeze({__proto__:null,default:cn}),an=e.PropostaSheets.IConflictEnum,hn=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}(),pn=Object.freeze({__proto__:null,IConflictEnum:an,default:hn}),dn=(u=e.Schedule).ScheduleTypeEnum,fn=u.scheduleTypes,ln=u.ScheduleTypeLabel,vn=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}(),bn=Object.freeze({__proto__:null,ScheduleTypeEnum:dn,ScheduleTypeLabel:ln,default:vn,scheduleTypes:fn}),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){return r(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}(),wn=Object.freeze({__proto__:null,default:yn}),_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.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}(),mn=Object.freeze({__proto__:null,default:_n}),gn=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}(),On=Object.freeze({__proto__:null,default:gn}),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.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}(),Pn=Object.freeze({__proto__:null,default:Rn}),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.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}(),In=Object.freeze({__proto__:null,default:kn}),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.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}(),Sn=Object.freeze({__proto__:null,default:Bn}),jn=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}(),zn=Object.freeze({__proto__:null,default:jn}),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 e.sent(),[2]}}))}))},t}(),En=Object.freeze({__proto__:null,default:Mn}),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.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),{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}(),Cn=Object.freeze({__proto__:null,default:Tn}),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.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}(),xn=Object.freeze({__proto__:null,default:Ln}),Dn=(c=e.Order).ConferirEncomendaClienteOptionsEnum,Un=c.conferirEncomendaClienteOptions,Fn=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}(),An=Object.freeze({__proto__:null,ConferirEncomendaClienteOptionsEnum:Dn,conferirEncomendaClienteOptions:Un,default:Fn}),Vn=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}(),qn=Object.freeze({__proto__:null,default:Vn}),Nn=e.MaterialEntrance.ICreateMaterialEntranceClientOrderOptionEnum,Qn=e.MaterialEntrance.createMaterialEntranceClientOrderOptions,Hn=e.MaterialEntrance.ICreateMaterialEntranceStockOptionEnum,Wn=e.MaterialEntrance.createMaterialEntranceStockOptions,Gn=e.MaterialEntrance.ICreateMaterialEntranceStockWithoutOrderOptionEnum,Zn=e.MaterialEntrance.createMaterialEntranceStockWithoutOrderOptions,Jn=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}(),Kn=Object.freeze({__proto__:null,ICreateMaterialEntranceClientOrderOptionEnum:Nn,ICreateMaterialEntranceStockOptionEnum:Hn,ICreateMaterialEntranceStockWithoutOrderOptionEnum:Gn,createMaterialEntranceClientOrderOptions:Qn,createMaterialEntranceStockOptions:Wn,createMaterialEntranceStockWithoutOrderOptions:Zn,default:Jn}),Xn=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}(),Yn=Object.freeze({__proto__:null,default:Xn}),$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.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}(),ti=Object.freeze({__proto__:null,default:$n}),ei=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}(),ni=Object.freeze({__proto__:null,default:ei}),ii=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}(),ri=Object.freeze({__proto__:null,default:ii}),oi=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}(),ui=Object.freeze({__proto__:null,default:oi}),ci=e.Prison.checkLineInPrisonOptions,si=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}(),ai=Object.freeze({__proto__:null,checkLineInPrisonOptions:ci,default:si}),hi=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}(),pi=Object.freeze({__proto__:null,default:hi}),di=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}(),fi=Object.freeze({__proto__:null,default:di}),li=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}(),vi=Object.freeze({__proto__:null,default:li}),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.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}(),yi=Object.freeze({__proto__:null,default:bi}),wi=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}(),_i=Object.freeze({__proto__:null,default:wi}),mi=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}(),gi=Object.freeze({__proto__:null,default:mi}),Oi=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}(),Ri=Object.freeze({__proto__:null,default:Oi}),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.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}(),ki=Object.freeze({__proto__:null,default:Pi}),Ii=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}(),Bi=Object.freeze({__proto__:null,default:Ii}),Si=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}(),ji=Object.freeze({__proto__:null,default:Si}),zi=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}(),Mi=Object.freeze({__proto__:null,default:zi}),Ei=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.ChatToken=new v(f("stock","chat_token")),this.Commissioner=new b(f("users","commissioner")),this.Country=new w(f("users","country")),this.DocumentHeader=new m(f("stock","document_header")),this.BillOfLading=new O(f("stock","document_header")),this.ProductionOrder=new R(f("stock","document_header")),this.Proforma=new P(f("stock","document_header")),this.PropostaFornecedor=new k(f("stock","document_header")),this.ProviderCreditNoteFromReturn=new I(f("stock","document_header")),this.ProviderFinancialCreditNote=new B(f("stock","document_header")),this.ProviderServiceInvoice=new S(f("stock","document_header")),this.DocumentLine=new j(f("stock","document_line")),this.DocumentLineAssoc=new M(f("stock","document_line_assoc")),this.DocumentLineFolder=new T(f("stock","document_line_folder")),this.DocumentType=new D(f("stock","document_type")),this.Favorites=new F(f("users","favorite")),this.File=new V(f("integration","file")),this.GoogleSheets=new N(f("integration","google")),this.GroupPermissions=new H(f("users","group_permission")),this.Language=new G(f("users","language")),this.Location=new J(f("stock","location")),this.Logout=new X(f("users","logout")),this.Multimedia=new $(f("documents","multimedia")),this.Observation=new et(f("integration","observation")),this.ObservationType=new it(f("integration","observation_type")),this.PaymentConditions=new ot(f("users","payment_condition")),this.Password=new ct(f("users","password")),this.Permissions=new at(f("users","permission")),this.ProductImage=new ft(f("stock","product_image")),this.Promotion=new vt(f("stock","promotion")),this.PromotionAssoc=new yt(f("stock","promotion_assoc")),this.Providers=new _t(f("users","provider")),this.ProviderType=new gt(f("users","provider_type")),this.PurchaseConditions=new Rt(f("users","purchase_condition")),this.ReasonForExemption=new kt(f("users","reason_for_exemption")),this.RefreshToken=new Bt(f("users","refresh-token")),this.SegmentsArea=new jt(f("users","segments_area")),this.Sessions=new Mt(f("users","sessions")),this.Shippings=new Tt(f("users","shipping")),this.SocialMedia=new Lt(f("users","social_media")),this.StoreOperator=new Dt(f("users","store_operator")),this.Swift=new Ft(f("users","swift")),this.TypeOfLocation=new Vt(f("stock","type_of_location")),this.UnitOfMeasure=new Nt(f("stock","unit_of_measure")),this.UserPermissions=new Ht(f("users","user_permission")),this.UserPositions=new Gt(f("users","user_position")),this.Users=new Jt(f("users","users")),this.VatTax=new Xt(f("stock","vat_tax")),this.VatTaxZone=new $t(f("stock","vat_tax_zone")),this.Workflow=new ee(f("stock","workflow")),this.DeliveryMethods=new ie(f("users","delivery_methods")),this.MaturityDates=new oe(f("users","maturity_dates")),this.PaymentMethods=new ce(f("users","payment_methods")),this.Vehicles=new ae(f("users","vehicles")),this.ExternalDocumentType=new pe(f("stock","external_document_type")),this.DocumentSet=new fe(f("stock","document_set")),this.Payment=new ve(f("stock","payment")),this.ExternalDocumentHeader=new ye(f("stock","external_document_header")),this.ClientCurrentAccount=new _e(f("stock","client_current_account")),this.ProviderCurrentAccount=new ge(f("stock","provider_current_account")),this.MoloniRequest=new Re(f("stock","moloni_request")),this.VatValidation=new ke(f("stock","vat_validation")),this.StockMovement=new Me(f("stock","stock_movement")),this.ZipCode=new Te(f("users","zip_code")),this.Tenant=new Le(f("users","tenant")),this.PreSale=new De(f("stock","pre_sale")),this.PreSaleProduct=new Fe(f("stock","pre_sale_product")),this.Cabide=new qe(f("stock","cabide")),this.CabideProduct=new Qe(f("stock","cabide_product")),this.OrderManagement=new We(f("stock","order_management")),this.Npc=new Ze(f("print","npc")),this.Printer=new Ke(f("print","printer")),this.SchedulePrintJob=new Ye(f("print","schedule_print_job")),this.QueryList=new en(f("stock","query")),this.QueryParameter=new on(f("stock","query_parameter")),this.ReturnReason=new cn(f("stock","return_reason")),this.PropostaSheets=new hn(f("stock","proposta_sheets")),this.Schedule=new vn(f("stock","schedule")),this.GoogleFilePermission=new yn(f("integration","google_file_permission")),this.Settings=new _n(f("integration","settings")),this.Tickets=new gn(f("tickets","tickets")),this.Channel=new Rn(f("tickets","channel")),this.TicketsLanguage=new kn(f("tickets","tickets_language")),this.Clt=new Bn(f("tickets","clt")),this.StartDocumentHeaderLastUpdate=new jn(f("stock","start_document_header_last_update")),this.ErrorHandler=new Mn(f("integration","error_handler")),this.Persona=new Tn(f("users","persona")),this.ProjectInfo=new Ln(f("integration","project_info")),this.Order=new Fn(f("stock","order")),this.Purchase=new Vn(f("stock","purchase")),this.MaterialEntrance=new Jn(f("stock","material_entrance")),this.Transformado=new Xn(f("stock","transformado")),this.UpfrontReturn=new $n(f("stock","upfront_return")),this.SavedEmPicking=new ei(f("stock","saved_em_picking")),this.EmailTemplate=new ii(f("integration","email_template")),this.EmailTemplateAttachment=new oi(f("integration","email_template_attachment")),this.Prison=new si(f("stock","prison")),this.Quebra=new hi(f("stock","quebra")),this.Inventario=new di(f("stock","inventario")),this.ReturnToProvider=new li(f("stock","return_to_provider")),this.EmailVerification=new bi(f("integration","email_verification")),this.EmailLog=new wi(f("integration","email_log")),this.DocumentLineNote=new mi(f("stock","document_line_note")),this.SavedProviderProposal=new Oi(f("stock","saved_provider_proposal")),this.ProductGoogleSheets=new Pi(f("stock","product_google")),this.Task=new Ii(f("stock","task")),this.TaskMessage=new Si(f("stock","task_message")),this.RecurrentTasks=new zi(f("stock","recurrent_tasks"))},Ti=Object.freeze({__proto__:null,API:Ei,BankData:a,Cabide:Ne,CabideProduct:He,Channel:Pn,Client:p,ClientCurrentAccount:me,ClientType:f,Clt:Sn,Commissioner:y,Country:_,DeliveryMethods:re,DocumentHeader:g,DocumentLine:z,DocumentLineAssoc:E,DocumentLineFolder:C,DocumentLineNote:gi,DocumentSet:le,DocumentType:U,EmailLog:_i,EmailTemplate:ri,EmailTemplateAttachment:ui,EmailVerification:yi,ErrorHandler:En,ExternalDocumentHeader:we,ExternalDocumentType:de,Favorites:A,File:q,GoogleFilePermission:wn,GoogleSheets:Q,GroupPermissions:W,Inventario:fi,Language:Z,Location:K,Logout:Y,MaterialEntrance:Kn,MaturityDates:ue,MoloniRequest:Pe,Multimedia:tt,Npc:Je,Observation:nt,ObservationType:rt,Order:An,OrderManagement:Ge,Password:st,Payment:be,PaymentConditions:ut,PaymentMethods:se,Permissions:ht,Persona:Cn,PreSale:Ue,PreSaleProduct:Ae,Printer:Xe,Prison:ai,ProductGoogleSheets:ki,ProductImage:lt,ProjectInfo:xn,Promotion:bt,PromotionAssoc:wt,PropostaSheets:pn,ProviderCurrentAccount:Oe,ProviderType:Ot,Providers:mt,Purchase:qn,PurchaseConditions:Pt,Quebra:pi,QueryList:nn,QueryParameter:un,ReasonForExemption:It,RecurrentTasks:Mi,RefreshToken:St,ReturnReason:sn,ReturnToProvider:vi,SavedEmPicking:ni,SavedProviderProposal:Ri,Schedule:bn,SchedulePrintJob:$e,SegmentsArea:zt,Sessions:Et,Settings:mn,Shippings:Ct,SocialMedia:xt,StartDocumentHeaderLastUpdate:zn,StockMovement:Ee,StoreOperator:Ut,Swift:At,Task:Bi,TaskMessage:ji,Tenant:xe,Tickets:On,TicketsLanguage:In,Transformado:Yn,TypeOfLocation:qt,UnitOfMeasure:Qt,UpfrontReturn:ti,UserPermissions:Wt,UserPositions:Zt,Users:Kt,VatTax:Yt,VatTaxZone:te,VatValidation:Ie,Vehicles:he,Workflow:ne,ZipCode:Ce});return Object.assign(module.exports,Ti),Ti}));
|
|
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.findByToken=function(t){return r(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.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.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}));
|
package/dist/main.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import BankDataClass from "./modules/user/bankData";
|
|
|
3
3
|
import ClientClass from "./modules/user/clients";
|
|
4
4
|
import ClientTypeClass from "./modules/user/clientType";
|
|
5
5
|
import ChatClass from "./modules/stock/chat";
|
|
6
|
-
import ChatTokenClass from "./modules/stock/chatToken";
|
|
7
6
|
import CommissionerClass from "./modules/user/commissioner";
|
|
8
7
|
import CountryClass from "./modules/user/country";
|
|
9
8
|
import DocumentHeaderClass from "./modules/supply/documentHeader";
|
|
@@ -241,7 +240,6 @@ export declare class API {
|
|
|
241
240
|
Client: ClientClass;
|
|
242
241
|
ClientType: ClientTypeClass;
|
|
243
242
|
Chat: ChatClass;
|
|
244
|
-
ChatToken: ChatTokenClass;
|
|
245
243
|
Commissioner: CommissionerClass;
|
|
246
244
|
Country: CountryClass;
|
|
247
245
|
DocumentHeader: DocumentHeaderClass;
|
|
@@ -3,7 +3,6 @@ import { IModuleConstructor } from "../../main";
|
|
|
3
3
|
export import IFindByDocumentLineStateRequest = Nomalism.DocumentHeader.IFindByDocumentLineStateRequest;
|
|
4
4
|
export import IFindByDocumentLineStateResponse = Nomalism.DocumentHeader.IFindByDocumentLineStateResponse;
|
|
5
5
|
export import IFindOneResponse = Nomalism.DocumentHeader.IFindOneResponse;
|
|
6
|
-
export import IFindOneStartResponse = Nomalism.DocumentHeader.IFindOneStartResponse;
|
|
7
6
|
export import IFindRequest = Nomalism.DocumentHeader.IFindRequest;
|
|
8
7
|
export import IFindMinifiedResponse = Nomalism.shared.IFindMinifiedResponse;
|
|
9
8
|
export import IBasicSearchRequest = Nomalism.DocumentHeader.IBasicSearchRequest;
|
|
@@ -35,7 +34,7 @@ export default class Repository implements Nomalism.DocumentHeader.IApi {
|
|
|
35
34
|
constructor({ api, route, publicRoute }: IModuleConstructor);
|
|
36
35
|
findSideMenuStoreOperators(): Promise<string[]>;
|
|
37
36
|
findOne(selector: Nomalism.shared.IFindByIdRequest): Promise<IFindOneResponse | null>;
|
|
38
|
-
findStart(selector: Nomalism.shared.IFindByIdRequest): Promise<
|
|
37
|
+
findStart(selector: Nomalism.shared.IFindByIdRequest): Promise<IFindOneResponse | null>;
|
|
39
38
|
findStartVirtual(selector: Nomalism.shared.IFindByIdRequest): Promise<IStartDocumentHeaderVirtuals | null>;
|
|
40
39
|
findByDocumentLineState(params: IFindByDocumentLineStateRequest): Promise<IFindByDocumentLineStateResponse[]>;
|
|
41
40
|
findByBasicSearch(params: IBasicSearchRequest): Promise<Nomalism.shared.IPaginationResponse<IBasicSearchResponse>>;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.28.
|
|
12
|
+
"version": "0.28.17",
|
|
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.
|
|
47
|
+
"@nomalism-com/types": "^0.28.27",
|
|
48
48
|
"axios": "^1.7.8"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import Nomalism from "@nomalism-com/types";
|
|
2
|
-
import { IModuleConstructor } from "../../main";
|
|
3
|
-
export default class Repository implements Nomalism.ChatToken.IRepository {
|
|
4
|
-
route: string;
|
|
5
|
-
publicRoute: string;
|
|
6
|
-
private api;
|
|
7
|
-
constructor({ api, route, publicRoute }: IModuleConstructor);
|
|
8
|
-
isActive({ id }: Nomalism.shared.IFindByIdRequest): Promise<boolean>;
|
|
9
|
-
}
|