@nomalism-com/api 0.27.66 → 0.27.68
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.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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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.document_header_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.createBillOfLading=function(t){return r(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.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.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.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.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.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.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.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.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.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.prototype.createProForma=function(t){return r(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}(),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.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}(),R=Object.freeze({__proto__:null,default:O}),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.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}(),k=Object.freeze({__proto__:null,default:P}),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.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}(),B=Object.freeze({__proto__:null,default:I}),S=e.DocumentType.DocumentTypeUserTypeEnum,j=e.DocumentType.documentTypeUserTypes,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.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}(),M=Object.freeze({__proto__:null,DocumentTypeUserTypeEnum:S,default:z,documentTypeUserTypes:j}),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.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}(),T=Object.freeze({__proto__:null,default:E}),C=function(){function 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.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}(),L=Object.freeze({__proto__:null,default:C}),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.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}(),D=Object.freeze({__proto__:null,default:x}),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.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}(),A=Object.freeze({__proto__:null,default:U}),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.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}(),V=Object.freeze({__proto__:null,default:F}),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(t){return r(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}(),Q=Object.freeze({__proto__:null,default:q}),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.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}(),N=Object.freeze({__proto__:null,default:H}),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.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}(),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.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}(),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.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}(),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.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}(),$=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.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}(),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.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=e.ProductImage.ImageTypeEnum,ot=e.ProductImage.imageTypes,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.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,ImageTypeEnum:rt,default:ut,imageTypes:ot}),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.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}(),at=Object.freeze({__proto__:null,default:st}),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.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:ht}),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.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}(),ft=Object.freeze({__proto__:null,default:dt}),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.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: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.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}(),_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.create=function(t){return 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}(),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.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}(),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.create=function(t){return 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}(),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.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}(),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.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}(),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.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}(),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.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}(),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.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}(),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}(),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.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}(),At=Object.freeze({__proto__:null,default:Ut}),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}(),Vt=Object.freeze({__proto__:null,default:Ft}),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.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}(),Qt=Object.freeze({__proto__:null,default:qt}),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.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:Ht}),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.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}(),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.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}(),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(){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}(),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(){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}(),$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(){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}(),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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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.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}(),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(t){return r(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}(),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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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.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}(),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.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}(),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.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}(),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 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.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}(),_e=Object.freeze({__proto__:null,default:we}),me=e.StockMovement.ExportFormatEnum,ge=e.StockMovement.exportFormats,Oe=e.StockMovement.ExportVersionEnum,Re=e.StockMovement.exportVersions,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.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}(),ke=Object.freeze({__proto__:null,ExportFormatEnum:me,ExportVersionEnum:Oe,default:Pe,exportFormats:ge,exportVersions:Re}),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.create=function(t){return r(this,void 0,void 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}(),Be=Object.freeze({__proto__:null,default:Ie}),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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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}(),je=Object.freeze({__proto__:null,default:Se}),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(t){return r(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}(),Me=Object.freeze({__proto__:null,default:ze}),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(){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}(),Te=Object.freeze({__proto__:null,default:Ee}),Ce=e.Cabide.cabideTypes,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.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}(),xe=Object.freeze({__proto__:null,cabidesTypesEnum:Ce,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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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}(),Ue=Object.freeze({__proto__:null,default:De}),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.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}(),Fe=Object.freeze({__proto__:null,default:Ae}),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(){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}(),qe=Object.freeze({__proto__:null,default:Ve}),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.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}(),He=Object.freeze({__proto__:null,default:Qe}),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 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}(),We=Object.freeze({__proto__:null,default:Ne}),Ge=e.QueryList.executeOutput,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.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}(),Je=Object.freeze({__proto__:null,default:Ze,executeOutput:Ge}),Ke=e.QueryParameter.QueryParameterDatatypeEnum,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(){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}(),Ye=Object.freeze({__proto__:null,QueryParameterDatatypeEnum:Ke,default:Xe}),$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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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}(),tn=Object.freeze({__proto__:null,default:$e}),en=e.PropostaSheets.IConflictEnum,nn=function(){function 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}(),rn=Object.freeze({__proto__:null,IConflictEnum:en,default:nn}),on=(u=e.Schedule).ScheduleTypeEnum,un=u.scheduleTypes,cn=u.ScheduleTypeLabel,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.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}(),an=Object.freeze({__proto__:null,ScheduleTypeEnum:on,ScheduleTypeLabel:cn,default:sn,scheduleTypes:un}),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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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}(),pn=Object.freeze({__proto__:null,default:hn}),dn=function(){function 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}(),fn=Object.freeze({__proto__:null,default:dn}),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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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}(),vn=Object.freeze({__proto__:null,default:ln}),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}(),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.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}(),_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.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}(),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.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}(),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 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.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}(),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.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}(),jn=Object.freeze({__proto__:null,default:Sn}),zn=(c=e.Order).ConferirEncomendaClienteOptionsEnum,Mn=c.conferirEncomendaClienteOptions,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.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}(),Tn=Object.freeze({__proto__:null,ConferirEncomendaClienteOptionsEnum:zn,conferirEncomendaClienteOptions:Mn,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.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}(),Ln=Object.freeze({__proto__:null,default:Cn}),xn=e.MaterialEntrance.ICreateMaterialEntranceClientOrderOptionEnum,Dn=e.MaterialEntrance.createMaterialEntranceClientOrderOptions,Un=e.MaterialEntrance.ICreateMaterialEntranceStockOptionEnum,An=e.MaterialEntrance.createMaterialEntranceStockOptions,Fn=e.MaterialEntrance.ICreateMaterialEntranceStockWithoutOrderOptionEnum,Vn=e.MaterialEntrance.createMaterialEntranceStockWithoutOrderOptions,qn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return 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,e){var n=t.groupLabel,i=t.saved_em_picking_ids,r=new URLSearchParams;return r.set("groupLabel",n.toString()),r.set("saved_em_picking_ids",i),r.set("token",e),"".concat(this.publicRoute,"print_bulk_label_pdf?").concat(r.toString())},t}(),Qn=Object.freeze({__proto__:null,ICreateMaterialEntranceClientOrderOptionEnum:xn,ICreateMaterialEntranceStockOptionEnum:Un,ICreateMaterialEntranceStockWithoutOrderOptionEnum:Fn,createMaterialEntranceClientOrderOptions:Dn,createMaterialEntranceStockOptions:An,createMaterialEntranceStockWithoutOrderOptions:Vn,default:qn}),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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Nn=Object.freeze({__proto__:null,default:Hn}),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,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}(),Gn=Object.freeze({__proto__:null,default:Wn}),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[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}(),Jn=Object.freeze({__proto__:null,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.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}(),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){return r(this,void 0,void 0,(function(){return o(this,(function(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}(),$n=Object.freeze({__proto__:null,default:Yn}),ti=e.Prison.checkLineInPrisonOptions,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.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}(),ni=Object.freeze({__proto__:null,checkLineInPrisonOptions:ti,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.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}(),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.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}(),ui=Object.freeze({__proto__:null,default:oi}),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.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}(),si=Object.freeze({__proto__:null,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.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}(),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.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}(),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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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}(),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.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}(),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.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}(),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.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}(),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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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}(),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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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}(),Pi=Object.freeze({__proto__:null,default:Ri}),ki=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.DocumentLine=new O(f("stock","document_line")),this.DocumentLineAssoc=new P(f("stock","document_line_assoc")),this.DocumentLineFolder=new I(f("stock","document_line_folder")),this.DocumentType=new z(f("stock","document_type")),this.Favorites=new E(f("users","favorite")),this.File=new C(f("integration","file")),this.GoogleSheets=new x(f("integration","google")),this.GroupPermissions=new U(f("users","group_permission")),this.Language=new F(f("users","language")),this.Location=new q(f("stock","location")),this.Logout=new H(f("users","logout")),this.Multimedia=new W(f("documents","multimedia")),this.Observation=new Z(f("integration","observation")),this.ObservationType=new K(f("integration","observation_type")),this.PaymentConditions=new Y(f("users","payment_condition")),this.Password=new tt(f("users","password")),this.Permissions=new nt(f("users","permission")),this.ProductImage=new ut(f("stock","product_image")),this.Promotion=new st(f("stock","promotion")),this.PromotionAssoc=new ht(f("stock","promotion_assoc")),this.Providers=new dt(f("users","provider")),this.ProviderType=new lt(f("users","provider_type")),this.PurchaseConditions=new bt(f("users","purchase_condition")),this.ReasonForExemption=new wt(f("users","reason_for_exemption")),this.RefreshToken=new mt(f("users","refresh-token")),this.SegmentsArea=new Ot(f("users","segments_area")),this.Sessions=new Pt(f("users","sessions")),this.Shippings=new It(f("users","shipping")),this.SocialMedia=new St(f("users","social_media")),this.StoreOperator=new zt(f("users","store_operator")),this.Swift=new Et(f("users","swift")),this.TypeOfLocation=new Ct(f("stock","type_of_location")),this.UnitOfMeasure=new xt(f("stock","unit_of_measure")),this.UserPermissions=new Ut(f("users","user_permission")),this.UserPositions=new Ft(f("users","user_position")),this.Users=new qt(f("users","users")),this.VatTax=new Ht(f("stock","vat_tax")),this.VatTaxZone=new Wt(f("stock","vat_tax_zone")),this.Workflow=new Zt(f("stock","workflow")),this.DeliveryMethods=new Kt(f("users","delivery_methods")),this.MaturityDates=new Yt(f("users","maturity_dates")),this.PaymentMethods=new te(f("users","payment_methods")),this.Vehicles=new ne(f("users","vehicles")),this.ExternalDocumentType=new re(f("stock","external_document_type")),this.DocumentSet=new ue(f("stock","document_set")),this.Payment=new se(f("stock","payment")),this.ExternalDocumentHeader=new he(f("stock","external_document_header")),this.ClientCurrentAccount=new de(f("stock","client_current_account")),this.ProviderCurrentAccount=new le(f("stock","provider_current_account")),this.MoloniRequest=new be(f("stock","moloni_request")),this.VatValidation=new we(f("stock","vat_validation")),this.StockMovement=new Pe(f("stock","stock_movement")),this.ZipCode=new Ie(f("users","zip_code")),this.Tenant=new Se(f("users","tenant")),this.PreSale=new ze(f("stock","pre_sale")),this.PreSaleProduct=new Ee(f("stock","pre_sale_product")),this.Cabide=new Le(f("stock","cabide")),this.CabideProduct=new De(f("stock","cabide_product")),this.OrderManagement=new Ae(f("stock","order_management")),this.Npc=new Ve(f("print","npc")),this.Printer=new Qe(f("print","printer")),this.SchedulePrintJob=new Ne(f("print","schedule_print_job")),this.QueryList=new Ze(f("stock","query")),this.QueryParameter=new Xe(f("stock","query_parameter")),this.ReturnReason=new $e(f("stock","return_reason")),this.PropostaSheets=new nn(f("stock","proposta_sheets")),this.Schedule=new sn(f("stock","schedule")),this.GoogleFilePermission=new hn(f("integration","google_file_permission")),this.Settings=new dn(f("integration","settings")),this.Tickets=new ln(f("tickets","tickets")),this.Channel=new bn(f("tickets","channel")),this.TicketsLanguage=new wn(f("tickets","tickets_language")),this.Clt=new mn(f("tickets","clt")),this.StartDocumentHeaderLastUpdate=new On(f("stock","start_document_header_last_update")),this.ErrorHandler=new Pn(f("integration","error_handler")),this.Persona=new In(f("users","persona")),this.ProjectInfo=new Sn(f("integration","project_info")),this.Order=new En(f("stock","order")),this.Purchase=new Cn(f("stock","purchase")),this.MaterialEntrance=new qn(f("stock","material_entrance")),this.Transformado=new Hn(f("stock","transformado")),this.UpfrontReturn=new Wn(f("stock","upfront_return")),this.SavedEmPicking=new Zn(f("stock","saved_em_picking")),this.EmailTemplate=new Kn(f("integration","email_template")),this.EmailTemplateAttachment=new Yn(f("integration","email_template_attachment")),this.Prison=new ei(f("stock","prison")),this.Quebra=new ii(f("stock","quebra")),this.Inventario=new oi(f("stock","inventario")),this.ReturnToProvider=new ci(f("stock","return_to_provider")),this.EmailVerification=new ai(f("integration","email_verification")),this.EmailLog=new pi(f("integration","email_log")),this.DocumentLineNote=new fi(f("stock","document_line_note")),this.SavedProviderProposal=new vi(f("stock","saved_provider_proposal")),this.ProductGoogleSheets=new yi(f("stock","product_google")),this.Task=new _i(f("stock","task")),this.TaskMessage=new gi(f("stock","task_message")),this.RecurrentTasks=new Ri(f("stock","recurrent_tasks"))},Ii=Object.freeze({__proto__:null,API:ki,BankData:a,Cabide:xe,CabideProduct:Ue,Channel:yn,Client:p,ClientCurrentAccount:fe,ClientType:f,Clt:gn,Commissioner:y,Country:_,DeliveryMethods:Xt,DocumentHeader:g,DocumentLine:R,DocumentLineAssoc:k,DocumentLineFolder:B,DocumentLineNote:li,DocumentSet:ce,DocumentType:M,EmailLog:di,EmailTemplate:Xn,EmailTemplateAttachment:$n,EmailVerification:hi,ErrorHandler:kn,ExternalDocumentHeader:pe,ExternalDocumentType:oe,Favorites:T,File:L,GoogleFilePermission:pn,GoogleSheets:D,GroupPermissions:A,Inventario:ui,Language:V,Location:Q,Logout:N,MaterialEntrance:Qn,MaturityDates:$t,MoloniRequest:ye,Multimedia:G,Npc:qe,Observation:J,ObservationType:X,Order:Tn,OrderManagement:Fe,Password:et,Payment:ae,PaymentConditions:$,PaymentMethods:ee,Permissions:it,Persona:Bn,PreSale:Me,PreSaleProduct:Te,Printer:He,Prison:ni,ProductGoogleSheets:wi,ProductImage:ct,ProjectInfo:jn,Promotion:at,PromotionAssoc:pt,PropostaSheets:rn,ProviderCurrentAccount:ve,ProviderType:vt,Providers:ft,Purchase:Ln,PurchaseConditions:yt,Quebra:ri,QueryList:Je,QueryParameter:Ye,ReasonForExemption:_t,RecurrentTasks:Pi,RefreshToken:gt,ReturnReason:tn,ReturnToProvider:si,SavedEmPicking:Jn,SavedProviderProposal:bi,Schedule:an,SchedulePrintJob:We,SegmentsArea:Rt,Sessions:kt,Settings:fn,Shippings:Bt,SocialMedia:jt,StartDocumentHeaderLastUpdate:Rn,StockMovement:ke,StoreOperator:Mt,Swift:Tt,Task:mi,TaskMessage:Oi,Tenant:je,Tickets:vn,TicketsLanguage:_n,Transformado:Nn,TypeOfLocation:Lt,UnitOfMeasure:Dt,UpfrontReturn:Gn,UserPermissions:At,UserPositions:Vt,Users:Qt,VatTax:Nt,VatTaxZone:Gt,VatValidation:_e,Vehicles:ie,Workflow:Jt,ZipCode:Be});return Object.assign(module.exports,Ii),Ii}));
|
|
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.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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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.document_header_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.createBillOfLading=function(t){return r(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.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.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.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.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.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.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.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.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.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.prototype.createProForma=function(t){return r(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}(),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.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}(),R=Object.freeze({__proto__:null,default:O}),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.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}(),k=Object.freeze({__proto__:null,default:P}),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.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}(),B=Object.freeze({__proto__:null,default:I}),S=e.DocumentType.DocumentTypeUserTypeEnum,j=e.DocumentType.documentTypeUserTypes,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.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}(),M=Object.freeze({__proto__:null,DocumentTypeUserTypeEnum:S,default:z,documentTypeUserTypes:j}),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.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}(),T=Object.freeze({__proto__:null,default:E}),C=function(){function 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.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}(),L=Object.freeze({__proto__:null,default:C}),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.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}(),D=Object.freeze({__proto__:null,default:x}),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.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}(),A=Object.freeze({__proto__:null,default:U}),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.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}(),V=Object.freeze({__proto__:null,default:F}),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(t){return r(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}(),Q=Object.freeze({__proto__:null,default:q}),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.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}(),N=Object.freeze({__proto__:null,default:H}),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.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}(),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.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}(),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.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}(),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.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}(),$=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.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}(),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.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=e.ProductImage.ImageTypeEnum,ot=e.ProductImage.imageTypes,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.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,ImageTypeEnum:rt,default:ut,imageTypes:ot}),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.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}(),at=Object.freeze({__proto__:null,default:st}),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.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:ht}),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.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}(),ft=Object.freeze({__proto__:null,default:dt}),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.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: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.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}(),_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.create=function(t){return 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}(),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.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}(),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.create=function(t){return 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}(),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.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}(),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.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}(),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.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}(),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.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}(),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.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}(),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}(),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.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}(),At=Object.freeze({__proto__:null,default:Ut}),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}(),Vt=Object.freeze({__proto__:null,default:Ft}),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.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}(),Qt=Object.freeze({__proto__:null,default:qt}),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.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:Ht}),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.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}(),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.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}(),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(){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}(),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(){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}(),$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(){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}(),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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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.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}(),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(t){return r(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}(),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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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.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}(),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.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}(),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.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}(),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 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.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}(),_e=Object.freeze({__proto__:null,default:we}),me=e.StockMovement.ExportFormatEnum,ge=e.StockMovement.exportFormats,Oe=e.StockMovement.ExportVersionEnum,Re=e.StockMovement.exportVersions,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.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}(),ke=Object.freeze({__proto__:null,ExportFormatEnum:me,ExportVersionEnum:Oe,default:Pe,exportFormats:ge,exportVersions:Re}),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.create=function(t){return r(this,void 0,void 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}(),Be=Object.freeze({__proto__:null,default:Ie}),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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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}(),je=Object.freeze({__proto__:null,default:Se}),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(t){return r(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}(),Me=Object.freeze({__proto__:null,default:ze}),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(){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}(),Te=Object.freeze({__proto__:null,default:Ee}),Ce=e.Cabide.cabideTypes,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.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}(),xe=Object.freeze({__proto__:null,cabidesTypesEnum:Ce,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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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}(),Ue=Object.freeze({__proto__:null,default:De}),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.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}(),Fe=Object.freeze({__proto__:null,default:Ae}),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(){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}(),qe=Object.freeze({__proto__:null,default:Ve}),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.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}(),He=Object.freeze({__proto__:null,default:Qe}),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 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}(),We=Object.freeze({__proto__:null,default:Ne}),Ge=e.QueryList.executeOutput,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.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}(),Je=Object.freeze({__proto__:null,default:Ze,executeOutput:Ge}),Ke=e.QueryParameter.QueryParameterDatatypeEnum,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(){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}(),Ye=Object.freeze({__proto__:null,QueryParameterDatatypeEnum:Ke,default:Xe}),$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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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}(),tn=Object.freeze({__proto__:null,default:$e}),en=e.PropostaSheets.IConflictEnum,nn=function(){function 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}(),rn=Object.freeze({__proto__:null,IConflictEnum:en,default:nn}),on=(u=e.Schedule).ScheduleTypeEnum,un=u.scheduleTypes,cn=u.ScheduleTypeLabel,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.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}(),an=Object.freeze({__proto__:null,ScheduleTypeEnum:on,ScheduleTypeLabel:cn,default:sn,scheduleTypes:un}),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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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}(),pn=Object.freeze({__proto__:null,default:hn}),dn=function(){function 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}(),fn=Object.freeze({__proto__:null,default:dn}),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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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}(),vn=Object.freeze({__proto__:null,default:ln}),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}(),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.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}(),_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.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}(),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.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}(),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 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.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}(),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.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}(),jn=Object.freeze({__proto__:null,default:Sn}),zn=(c=e.Order).ConferirEncomendaClienteOptionsEnum,Mn=c.conferirEncomendaClienteOptions,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.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}(),Tn=Object.freeze({__proto__:null,ConferirEncomendaClienteOptionsEnum:zn,conferirEncomendaClienteOptions:Mn,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.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}(),Ln=Object.freeze({__proto__:null,default:Cn}),xn=e.MaterialEntrance.ICreateMaterialEntranceClientOrderOptionEnum,Dn=e.MaterialEntrance.createMaterialEntranceClientOrderOptions,Un=e.MaterialEntrance.ICreateMaterialEntranceStockOptionEnum,An=e.MaterialEntrance.createMaterialEntranceStockOptions,Fn=e.MaterialEntrance.ICreateMaterialEntranceStockWithoutOrderOptionEnum,Vn=e.MaterialEntrance.createMaterialEntranceStockWithoutOrderOptions,qn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return 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}(),Qn=Object.freeze({__proto__:null,ICreateMaterialEntranceClientOrderOptionEnum:xn,ICreateMaterialEntranceStockOptionEnum:Un,ICreateMaterialEntranceStockWithoutOrderOptionEnum:Fn,createMaterialEntranceClientOrderOptions:Dn,createMaterialEntranceStockOptions:An,createMaterialEntranceStockWithoutOrderOptions:Vn,default:qn}),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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Nn=Object.freeze({__proto__:null,default:Hn}),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,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}(),Gn=Object.freeze({__proto__:null,default:Wn}),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[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}(),Jn=Object.freeze({__proto__:null,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.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}(),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){return r(this,void 0,void 0,(function(){return o(this,(function(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}(),$n=Object.freeze({__proto__:null,default:Yn}),ti=e.Prison.checkLineInPrisonOptions,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.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}(),ni=Object.freeze({__proto__:null,checkLineInPrisonOptions:ti,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.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}(),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.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}(),ui=Object.freeze({__proto__:null,default:oi}),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.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}(),si=Object.freeze({__proto__:null,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.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}(),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.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}(),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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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}(),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.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}(),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.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}(),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.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}(),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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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}(),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.create=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(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}(),Pi=Object.freeze({__proto__:null,default:Ri}),ki=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.DocumentLine=new O(f("stock","document_line")),this.DocumentLineAssoc=new P(f("stock","document_line_assoc")),this.DocumentLineFolder=new I(f("stock","document_line_folder")),this.DocumentType=new z(f("stock","document_type")),this.Favorites=new E(f("users","favorite")),this.File=new C(f("integration","file")),this.GoogleSheets=new x(f("integration","google")),this.GroupPermissions=new U(f("users","group_permission")),this.Language=new F(f("users","language")),this.Location=new q(f("stock","location")),this.Logout=new H(f("users","logout")),this.Multimedia=new W(f("documents","multimedia")),this.Observation=new Z(f("integration","observation")),this.ObservationType=new K(f("integration","observation_type")),this.PaymentConditions=new Y(f("users","payment_condition")),this.Password=new tt(f("users","password")),this.Permissions=new nt(f("users","permission")),this.ProductImage=new ut(f("stock","product_image")),this.Promotion=new st(f("stock","promotion")),this.PromotionAssoc=new ht(f("stock","promotion_assoc")),this.Providers=new dt(f("users","provider")),this.ProviderType=new lt(f("users","provider_type")),this.PurchaseConditions=new bt(f("users","purchase_condition")),this.ReasonForExemption=new wt(f("users","reason_for_exemption")),this.RefreshToken=new mt(f("users","refresh-token")),this.SegmentsArea=new Ot(f("users","segments_area")),this.Sessions=new Pt(f("users","sessions")),this.Shippings=new It(f("users","shipping")),this.SocialMedia=new St(f("users","social_media")),this.StoreOperator=new zt(f("users","store_operator")),this.Swift=new Et(f("users","swift")),this.TypeOfLocation=new Ct(f("stock","type_of_location")),this.UnitOfMeasure=new xt(f("stock","unit_of_measure")),this.UserPermissions=new Ut(f("users","user_permission")),this.UserPositions=new Ft(f("users","user_position")),this.Users=new qt(f("users","users")),this.VatTax=new Ht(f("stock","vat_tax")),this.VatTaxZone=new Wt(f("stock","vat_tax_zone")),this.Workflow=new Zt(f("stock","workflow")),this.DeliveryMethods=new Kt(f("users","delivery_methods")),this.MaturityDates=new Yt(f("users","maturity_dates")),this.PaymentMethods=new te(f("users","payment_methods")),this.Vehicles=new ne(f("users","vehicles")),this.ExternalDocumentType=new re(f("stock","external_document_type")),this.DocumentSet=new ue(f("stock","document_set")),this.Payment=new se(f("stock","payment")),this.ExternalDocumentHeader=new he(f("stock","external_document_header")),this.ClientCurrentAccount=new de(f("stock","client_current_account")),this.ProviderCurrentAccount=new le(f("stock","provider_current_account")),this.MoloniRequest=new be(f("stock","moloni_request")),this.VatValidation=new we(f("stock","vat_validation")),this.StockMovement=new Pe(f("stock","stock_movement")),this.ZipCode=new Ie(f("users","zip_code")),this.Tenant=new Se(f("users","tenant")),this.PreSale=new ze(f("stock","pre_sale")),this.PreSaleProduct=new Ee(f("stock","pre_sale_product")),this.Cabide=new Le(f("stock","cabide")),this.CabideProduct=new De(f("stock","cabide_product")),this.OrderManagement=new Ae(f("stock","order_management")),this.Npc=new Ve(f("print","npc")),this.Printer=new Qe(f("print","printer")),this.SchedulePrintJob=new Ne(f("print","schedule_print_job")),this.QueryList=new Ze(f("stock","query")),this.QueryParameter=new Xe(f("stock","query_parameter")),this.ReturnReason=new $e(f("stock","return_reason")),this.PropostaSheets=new nn(f("stock","proposta_sheets")),this.Schedule=new sn(f("stock","schedule")),this.GoogleFilePermission=new hn(f("integration","google_file_permission")),this.Settings=new dn(f("integration","settings")),this.Tickets=new ln(f("tickets","tickets")),this.Channel=new bn(f("tickets","channel")),this.TicketsLanguage=new wn(f("tickets","tickets_language")),this.Clt=new mn(f("tickets","clt")),this.StartDocumentHeaderLastUpdate=new On(f("stock","start_document_header_last_update")),this.ErrorHandler=new Pn(f("integration","error_handler")),this.Persona=new In(f("users","persona")),this.ProjectInfo=new Sn(f("integration","project_info")),this.Order=new En(f("stock","order")),this.Purchase=new Cn(f("stock","purchase")),this.MaterialEntrance=new qn(f("stock","material_entrance")),this.Transformado=new Hn(f("stock","transformado")),this.UpfrontReturn=new Wn(f("stock","upfront_return")),this.SavedEmPicking=new Zn(f("stock","saved_em_picking")),this.EmailTemplate=new Kn(f("integration","email_template")),this.EmailTemplateAttachment=new Yn(f("integration","email_template_attachment")),this.Prison=new ei(f("stock","prison")),this.Quebra=new ii(f("stock","quebra")),this.Inventario=new oi(f("stock","inventario")),this.ReturnToProvider=new ci(f("stock","return_to_provider")),this.EmailVerification=new ai(f("integration","email_verification")),this.EmailLog=new pi(f("integration","email_log")),this.DocumentLineNote=new fi(f("stock","document_line_note")),this.SavedProviderProposal=new vi(f("stock","saved_provider_proposal")),this.ProductGoogleSheets=new yi(f("stock","product_google")),this.Task=new _i(f("stock","task")),this.TaskMessage=new gi(f("stock","task_message")),this.RecurrentTasks=new Ri(f("stock","recurrent_tasks"))},Ii=Object.freeze({__proto__:null,API:ki,BankData:a,Cabide:xe,CabideProduct:Ue,Channel:yn,Client:p,ClientCurrentAccount:fe,ClientType:f,Clt:gn,Commissioner:y,Country:_,DeliveryMethods:Xt,DocumentHeader:g,DocumentLine:R,DocumentLineAssoc:k,DocumentLineFolder:B,DocumentLineNote:li,DocumentSet:ce,DocumentType:M,EmailLog:di,EmailTemplate:Xn,EmailTemplateAttachment:$n,EmailVerification:hi,ErrorHandler:kn,ExternalDocumentHeader:pe,ExternalDocumentType:oe,Favorites:T,File:L,GoogleFilePermission:pn,GoogleSheets:D,GroupPermissions:A,Inventario:ui,Language:V,Location:Q,Logout:N,MaterialEntrance:Qn,MaturityDates:$t,MoloniRequest:ye,Multimedia:G,Npc:qe,Observation:J,ObservationType:X,Order:Tn,OrderManagement:Fe,Password:et,Payment:ae,PaymentConditions:$,PaymentMethods:ee,Permissions:it,Persona:Bn,PreSale:Me,PreSaleProduct:Te,Printer:He,Prison:ni,ProductGoogleSheets:wi,ProductImage:ct,ProjectInfo:jn,Promotion:at,PromotionAssoc:pt,PropostaSheets:rn,ProviderCurrentAccount:ve,ProviderType:vt,Providers:ft,Purchase:Ln,PurchaseConditions:yt,Quebra:ri,QueryList:Je,QueryParameter:Ye,ReasonForExemption:_t,RecurrentTasks:Pi,RefreshToken:gt,ReturnReason:tn,ReturnToProvider:si,SavedEmPicking:Jn,SavedProviderProposal:bi,Schedule:an,SchedulePrintJob:We,SegmentsArea:Rt,Sessions:kt,Settings:fn,Shippings:Bt,SocialMedia:jt,StartDocumentHeaderLastUpdate:Rn,StockMovement:ke,StoreOperator:Mt,Swift:Tt,Task:mi,TaskMessage:Oi,Tenant:je,Tickets:vn,TicketsLanguage:_n,Transformado:Nn,TypeOfLocation:Lt,UnitOfMeasure:Dt,UpfrontReturn:Gn,UserPermissions:At,UserPositions:Vt,Users:Qt,VatTax:Nt,VatTaxZone:Gt,VatValidation:_e,Vehicles:ie,Workflow:Jt,ZipCode:Be});return Object.assign(module.exports,Ii),Ii}));
|
|
@@ -33,5 +33,5 @@ export default class Repository implements Nomalism.MaterialEntrance.IApi {
|
|
|
33
33
|
finalizarEntradaMaterial(data: IFinalizarEntradaDeMaterialRequest): Promise<IFinalizarEntradaDeMaterialResponse>;
|
|
34
34
|
undoEntradaMaterial(data: IUndoEntradaDeMaterialRequest): Promise<void>;
|
|
35
35
|
printLabelToPdfUrl({ product_id }: IPrintLabelParamsRequest, { quantity, ef_name, pc_document_number, prison, note, }: IPrintLabelQueryRequest, token: string): string;
|
|
36
|
-
printBulkLabelToPdfUrl({ groupLabel, saved_em_picking_ids }: IPrintBulkLabelRequest
|
|
36
|
+
printBulkLabelToPdfUrl({ groupLabel, saved_em_picking_ids, token, }: IPrintBulkLabelRequest): string;
|
|
37
37
|
}
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.27.
|
|
12
|
+
"version": "0.27.68",
|
|
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.27.
|
|
47
|
+
"@nomalism-com/types": "^0.27.92",
|
|
48
48
|
"axios": "^1.7.7"
|
|
49
49
|
}
|
|
50
50
|
}
|