/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@nomalism-com/api@1.3.33/dist/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
var __defProp=Object.defineProperty,__export=(t,a)=>{for(var e in a)__defProp(t,e,{get:a[e],enumerable:!0})},main_exports={};__export(main_exports,{API:()=>API,AccountCodeClass:()=>accountCode_exports,AdminPanelClass:()=>adminPanel_exports,BankData:()=>bankData_exports,Channel:()=>channel_exports,ChatRapidMessageClass:()=>chatRapidMessage_exports,ChatSubscriberClass:()=>chatSubscriber_exports,Client:()=>clients_exports,ClientType:()=>clientType_exports,Clt:()=>clt_exports,Commissioner:()=>commissioner_exports,Country:()=>country_exports,CurrentAccountClass:()=>currentAccount_exports,DashboardClass:()=>dashboard_exports,DeliveryMethods:()=>deliveryMethods_exports,DocumentHeader:()=>documentHeader_exports,DocumentHeaderHistory:()=>documentHeaderHistory_exports,DocumentHeaderSubscriberClass:()=>documentHeaderSubscriber_exports,DocumentLine:()=>documentLine_exports,DocumentLineAssoc:()=>documentLineAssoc_exports,DocumentLineMtClass:()=>documentLineMt_exports,DocumentLineNote:()=>documentLineNote_exports,DocumentLineRmClass:()=>documentLineRm_exports,DocumentSet:()=>documentSet_exports,DocumentType:()=>documentType_exports,EmailLog:()=>emailLog_exports,EmailTemplate:()=>emailTemplate_exports,EmailTemplateAttachment:()=>emailTemplateAttachment_exports,EmailVerification:()=>emailVerification_exports,ErrorLogClass:()=>errorLog_exports,ExternalDocumentHeader:()=>externalDocumentHeader_exports,ExternalDocumentType:()=>externalDocumentType_exports,Favorites:()=>favorites_exports,File:()=>file_exports,GmailsClass:()=>gmails_exports,GoogleFilePermission:()=>googleFilePermission_exports,GoogleSheetPoolClass:()=>googleSheetPool_exports,GoogleSheets:()=>googleSheets_exports,Inventario:()=>inventario_exports,LLMClass:()=>llm_exports,Language:()=>language_exports,Location:()=>location_exports,Logout:()=>logout_exports,MaterialEntrance:()=>materialEntrance_exports,MaturityDates:()=>maturityDates_exports,Multimedia:()=>multimedia_exports,NPFClass:()=>NPF_exports,NRCLClass:()=>NRCL_exports,Npc:()=>npc_exports,Observation:()=>observation_exports,ObservationType:()=>observationType_exports,Order:()=>order_exports,OrderManagement:()=>orderManagement_exports,Password:()=>password_exports,PatchNotesClass:()=>patchNotes_exports,Payment:()=>payment_exports,PaymentBatchClass:()=>paymentBatch_exports,PaymentMethods:()=>paymentMethods_exports,Persona:()=>persona_exports,PortalClass:()=>portal_exports,PreSale:()=>preSale_exports,PreSaleProduct:()=>preSaleProduct_exports,Printer:()=>printer_exports,Prison:()=>prison_exports,ProductGoogleSheets:()=>productGoogleSheets_exports,ProductImage:()=>productImage_exports,ProjectInfo:()=>projectInfo_exports,Promotion:()=>promotion_exports,PromotionAssoc:()=>promotionAssoc_exports,PropostaSheets:()=>propostaSheets_exports,ProviderType:()=>providerType_exports,Providers:()=>provider_exports,Purchase:()=>purchase_exports,PurchaseConditions:()=>purchaseCondition_exports,Quebra:()=>quebra_exports,QueryList:()=>queryList_exports,QueryParameter:()=>queryParameter_exports,ReasonForExemption:()=>reasonForExemption_exports,RecurrentTasks:()=>recurrentTasks_exports,RefreshToken:()=>refreshToken_exports,ReturnReason:()=>returnReason_exports,ReturnToProvider:()=>returnToProvider_exports,SaftClass:()=>saft_exports,SavedEmPicking:()=>savedEmPicking_exports,SavedProviderProposal:()=>savedProviderProposal_exports,Schedule:()=>schedule_exports,SchedulePrintJob:()=>schedulePrintJob_exports,SegmentsArea:()=>segmentsArea_exports,Sessions:()=>sessions_exports,Settings:()=>settings_exports,Shippings:()=>shippings_exports,SideMenuClass:()=>sideMenu_exports,StartDocumentHeaderLastUpdate:()=>startDocumentHeaderLastUpdate_exports,StockMovement:()=>stockMovement_exports,StoreOperator:()=>storeOperator_exports,Swift:()=>swift_exports,TagClass:()=>tag_exports,Task:()=>task_exports,TaskMessage:()=>taskMessage_exports,TaskReadClass:()=>taskRead_exports,Tenant:()=>tenant_exports,ThemeClass:()=>theme_exports,Tickets:()=>tickets_exports,TicketsLanguage:()=>language_exports2,Transformado:()=>transformado_exports,TypeOfLocation:()=>typeOfLocation_exports,UnitOfMeasure:()=>unitOfMeasure_exports,UpfrontReturn:()=>upfrontReturn_exports,UserPositions:()=>userPositions_exports,Users:()=>user_exports,VatTax:()=>vatTax_exports,VatTaxZone:()=>vatTaxZone_exports,VatValidation:()=>vatValidation_exports,Vehicles:()=>vehicles_exports,Workflow:()=>workflow_exports,ZipCode:()=>zipCode_exports});import axios,{AxiosHeaders}from"axios";var bankData_exports={};__export(bankData_exports,{default:()=>Repository});var Repository=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},clients_exports={};__export(clients_exports,{default:()=>Repository2});var Repository2=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findByQuery(t){return(await this.api.post(`${this.route}query`,t)).data}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},clientType_exports={};__export(clientType_exports,{default:()=>Repository3});var Repository3=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},Repository4=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findByOwnerId(t){return(await this.api.get(`${this.route}active`,{params:t})).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update({id:t},a){await this.api.put(`${this.route}${t}`,a)}async deleteOne({id:t}){await this.api.delete(`${this.route}${t}`)}async resendLast({id:t}){await this.api.post(`${this.route}resend_last/${t}`)}async markAllAsRead({id:t}){await this.api.put(`${this.route}mark_all_as_read/${t}`)}async markAllAsUnread({id:t}){await this.api.put(`${this.route}mark_all_as_unread/${t}`)}async publicMarkAllClientReadUnread(t){await this.api.put(`${this.route}mark_all_client_read_unread/${t.chat_document_header_id}/${t.client_read}`)}async translate(t){return(await this.api.post(`${this.route}translate`,t)).data}},commissioner_exports={};__export(commissioner_exports,{default:()=>Repository5});var Repository5=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},country_exports={};__export(country_exports,{default:()=>Repository6});var Repository6=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findByAlpha2(t){return(await this.api.get(`${this.route}alpha2`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},documentHeader_exports={};__export(documentHeader_exports,{default:()=>Repository7});var Repository7=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findOne(t){return(await this.api.get(`${this.route}${t.id}`)).data}async findStartVirtual(t){return(await this.api.get(`${this.route}start_virtual/${t.id}`)).data}async findByBasicSearch(t){return(await this.api.get(`${this.route}basic_search`,{params:t})).data}async findByType(t){return(await this.api.get(`${this.route}by_type`,{params:t})).data}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async createFromHeader(t){return(await this.api.post(`${this.route}from_header`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){await this.api.delete(`${this.route}${t.id}`)}async getActions(t){return(await this.api.get(`${this.route}get_actions/${t.id}`)).data}async transferClientOwnership(t){await this.api.put(`${this.route}transfer_client_ownership`,t)}async updateManyWithPersona(t){await this.api.put(`${this.route}update_many_with_persona`,t)}async sendClientNotification({id:t},a){await this.api.post(`${this.route}${t}/send_client_notification`,a)}async markUnsentClientNotification({id:t}){await this.api.post(`${this.route}${t}/mark_unsent_client_notification`)}async documentPdf({id:t}){return(await this.api.post(`${this.route}document_pdf/${t}`)).data}getDocumentPdfUrl({id:t},a){const e=new URLSearchParams;return a?.token&&e.set("token",a.token),`${this.route}document_pdf/${t}?${e.toString()}`}async documentThermalPrint({id:t}){return(await this.api.get(`${this.route}document_thermal_print/${t}`)).data}async documentList({id:t}){return(await this.api.post(`${this.route}document_list/${t}`)).data}async findStartDocumentHeaderSiblings({id:t}){return(await this.api.get(`${this.route}siblings/${t}`)).data}async createSiteProposal(t){return(await this.api.post(`${this.route}create_site_proposal`,t)).data}},documentHeaderHistory_exports={};__export(documentHeaderHistory_exports,{default:()=>Repository8});var Repository8=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner/${t.owner_id}`)).data}},Repository9=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}bill_of_lading`,t)).data}},Repository10=class{constructor({api:t,route:a}){this.api=t,this.route=a}async createProductionOrder(t){await this.api.post(`${this.route}production_order`,t)}},Repository11=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}pro_forma`,t)).data}async createFromLines(t){return(await this.api.post(`${this.route}pro_forma_from_lines`,t)).data}},Repository12=class{constructor({api:t,route:a}){this.api=t,this.route=a}async createProviderProposal(t){return(await this.api.post(`${this.route}provider_proposal`,t)).data}},Repository13=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findProviderReturn(t){return(await this.api.get(`${this.route}provider_return`,{params:t})).data}async createProviderCreditNoteFromReturn(t){await this.api.post(`${this.route}provider_credit_note_from_return`,t)}},Repository14=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findProviderInvoice(t){return(await this.api.get(`${this.route}provider_invoice`,{params:t})).data}async createProviderFinancialCreditNote(t){await this.api.post(`${this.route}provider_financial_credit_note`,t)}},Repository15=class{constructor({api:t,route:a}){this.api=t,this.route=a}async createProviderServiceInvoice(t){await this.api.post(`${this.route}provider_service_invoice`,t)}},documentLine_exports={};__export(documentLine_exports,{default:()=>Repository16});var Repository16=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){await this.api.put(`${this.route}${t.id}`,a)}async updateMany(t){return(await this.api.post(`${this.route}update_many`,t)).data}async updateManyByDocumentHeader(t,a){await this.api.post(`${this.route}update_many_by_document_header_id`,a,{params:t})}async deleteMany(t){await this.api.delete(`${this.route}`,{data:t})}printLabelToPdfUrl({document_line_ids:t},a){const e=new URLSearchParams;return e.set("token",a),`${this.route}print_label_pdf/${t}?${e.toString()}`}printGroupLabelToPdfUrl({document_line_ids:t},a){const e=new URLSearchParams;return e.set("token",a),`${this.route}print_group_label_pdf/${t}?${e.toString()}`}},documentLineAssoc_exports={};__export(documentLineAssoc_exports,{default:()=>Repository17});var Repository17=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async findVirtualsByOwnerId(t){return(await this.api.get(`${this.route}virtuals_by_owner`,{params:t})).data}async findHistoryByLineId(t){return(await this.api.get(`${this.route}history_by_line_id`,{params:t})).data}},documentType_exports={};__export(documentType_exports,{default:()=>Repository18});var Repository18=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findDetailed(t){return(await this.api.get(`${this.route}detailed`,{params:t})).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},favorites_exports={};__export(favorites_exports,{default:()=>Repository19});var Repository19=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findByUrl(t){return(await this.api.get(`${this.route}`,{params:t})).data}async list(){return(await this.api.get(`${this.route}list`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async deleteOne(t){return(await this.api.delete(`${this.route}`,{params:t})).data}},file_exports={};__export(file_exports,{default:()=>Repository20});var Repository20=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update({id:t},a){await this.api.put(`${this.route}${t}`,a)}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},googleSheets_exports={};__export(googleSheets_exports,{default:()=>Repository21});var Repository21=class{constructor({api:t,route:a}){this.api=t,this.route=a}async clone(t,a){return(await this.api.get(`${this.route}clone/${t.id}`,{params:a})).data}async export(t){return(await this.api.get(`${this.route}export`,{params:t})).data}async getData(t){return(await this.api.get(`${this.route}${t.id}`)).data}async update(t,a){await this.api.put(`${this.route}${t.id}`,a)}},language_exports={};__export(language_exports,{default:()=>Repository22});var Repository22=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},location_exports={};__export(location_exports,{default:()=>Repository23});var Repository23=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},logout_exports={};__export(logout_exports,{default:()=>Repository24});var Repository24=class{constructor({api:t,route:a}){this.api=t,this.route=a}async logout(){await this.api.post(`${this.route}`)}},multimedia_exports={};__export(multimedia_exports,{default:()=>Repository25});var Repository25=class{constructor({api:t,route:a}){this.api=t,this.route=a}getUrl(t,a=!1){const e=new URLSearchParams;return a&&e.set("download",a.toString()),`${this.route}${t}?${e.toString()}`}async create(t,a){return(await this.api.post(`${this.route}upload`,t,{headers:{...a||{},"content-type":"multipart/form-data"},maxBodyLength:1/0,maxContentLength:1/0})).data}},observation_exports={};__export(observation_exports,{default:()=>Repository26});var Repository26=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findByOwnerId(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findByOwnerIds(t){return(await this.api.post(`${this.route}by_owners`,t)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},observationType_exports={};__export(observationType_exports,{default:()=>Repository27});var Repository27=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(){return(await this.api.get(`${this.route}`)).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},password_exports={};__export(password_exports,{default:()=>Repository28});var Repository28=class{constructor({api:t,route:a}){this.api=t,this.route=a}async forgotPassword(t){await this.api.post(`${this.route}forgot`,t)}async resetPassword(t){await this.api.post(`${this.route}reset`,t)}},productImage_exports={};__export(productImage_exports,{default:()=>Repository29});var Repository29=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},promotion_exports={};__export(promotion_exports,{default:()=>Repository30});var Repository30=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}getBestDiscount(t,a,e,i,r){const s=t.filter((t=>{const a=!t.exclusive_to_location_id||t.exclusive_to_location_id===e,r=!t.exclusive_to_client_id||t.exclusive_to_client_id===i;return a&&r})).reduce(((t,a)=>a.discount>t?a.discount:t),0),o=r?0:a||0;return s>o?s:o}},promotionAssoc_exports={};__export(promotionAssoc_exports,{default:()=>Repository31});var Repository31=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},provider_exports={};__export(provider_exports,{default:()=>Repository32});var Repository32=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findByQuery(t){return(await this.api.post(`${this.route}query`,t)).data}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findMinifiedManufacturer(t){return(await this.api.get(`${this.route}minified_manufacturer`,{params:t})).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}async findByNumber(t){return(await this.api.get(`${this.route}by_number/${t.number}`)).data}},providerType_exports={};__export(providerType_exports,{default:()=>Repository33});var Repository33=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},purchaseCondition_exports={};__export(purchaseCondition_exports,{default:()=>Repository34});var Repository34=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},reasonForExemption_exports={};__export(reasonForExemption_exports,{default:()=>Repository35});var Repository35=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},refreshToken_exports={};__export(refreshToken_exports,{default:()=>Repository36});var Repository36=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}`,t)).data}},segmentsArea_exports={};__export(segmentsArea_exports,{default:()=>Repository37});var Repository37=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},sessions_exports={};__export(sessions_exports,{default:()=>Repository38});var Repository38=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}`,t)).data}},shippings_exports={};__export(shippings_exports,{default:()=>Repository39});var Repository39=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},storeOperator_exports={};__export(storeOperator_exports,{default:()=>Repository40});var Repository40=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(){return(await this.api.get(`${this.route}`)).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async updatePassword(t,a){return(await this.api.put(`${this.route}password/${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},swift_exports={};__export(swift_exports,{default:()=>Repository41});var Repository41=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},typeOfLocation_exports={};__export(typeOfLocation_exports,{default:()=>Repository42});var Repository42=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},unitOfMeasure_exports={};__export(unitOfMeasure_exports,{default:()=>Repository43});var Repository43=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},userPositions_exports={};__export(userPositions_exports,{default:()=>Repository44});var Repository44=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},user_exports={};__export(user_exports,{default:()=>Repository45});var Repository45=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}async findProvidersWithClientId(t){return(await this.api.post(`${this.route}providers`,t)).data}async findFromClientOrProviderId(t){return(await this.api.post(`${this.route}from_client_or_provider_id`,t)).data}},vatTax_exports={};__export(vatTax_exports,{default:()=>Repository46});var Repository46=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},vatTaxZone_exports={};__export(vatTaxZone_exports,{default:()=>Repository47});var Repository47=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},workflow_exports={};__export(workflow_exports,{default:()=>Repository48});var Repository48=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},deliveryMethods_exports={};__export(deliveryMethods_exports,{default:()=>Repository49});var Repository49=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(){return(await this.api.get(`${this.route}`)).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},maturityDates_exports={};__export(maturityDates_exports,{default:()=>Repository50});var Repository50=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(){return(await this.api.get(`${this.route}`)).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},paymentMethods_exports={};__export(paymentMethods_exports,{default:()=>Repository51});var Repository51=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(){return(await this.api.get(`${this.route}`)).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},vehicles_exports={};__export(vehicles_exports,{default:()=>Repository52});var Repository52=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(){return(await this.api.get(`${this.route}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},externalDocumentType_exports={};__export(externalDocumentType_exports,{default:()=>Repository53});var Repository53=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(){return(await this.api.get(`${this.route}`)).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}},documentSet_exports={};__export(documentSet_exports,{default:()=>Repository54});var Repository54=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(){return(await this.api.get(`${this.route}`)).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},payment_exports={};__export(payment_exports,{default:()=>Repository55});var Repository55=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findPaginated(t){return(await this.api.get(`${this.route}paginated`,{params:t})).data}async findSettledMaterialEntrance(t){return(await this.api.get(`${this.route}settled_material_entrance`,{params:t})).data}async findSettledMaterialEntranceByDate(t){return(await this.api.get(`${this.route}settled_material_entrance_by_date`,{params:t})).data}async findSettledMaterialEntranceProviders(){return(await this.api.get(`${this.route}settled_material_entrance_providers`)).data}},externalDocumentHeader_exports={};__export(externalDocumentHeader_exports,{default:()=>Repository56});var Repository56=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async deleteOne(t){return(await this.api.get(`${this.route}`,{params:t})).data}async sendEmailDocument(t){await this.api.post(`${this.route}sendEmail`,t)}async retry(t){await this.api.post(`${this.route}retry`,t)}async create(t){return(await this.api.post(`${this.route}`,t)).data}},vatValidation_exports={};__export(vatValidation_exports,{default:()=>Repository57});var Repository57=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findByLatest(t){return(await this.api.get(`${this.route}`,{params:{nif:t}})).data}},stockMovement_exports={};__export(stockMovement_exports,{default:()=>Repository58});var Repository58=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findByProvider({id:t}){return(await this.api.get(`${this.route}${t}`)).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async exportCsv(t){return(await this.api.get(`${this.route}csv`,{params:t})).data}getStockCsvUrl({date:t,version:a,format:e,token:i}){const r=new URLSearchParams;return r.set("date",t.toISOString()),r.set("version",a),r.set("format",e),r.set("token",i),`${this.route}csv?${r.toString()}`}async findStockMovementPaginated(t){return(await this.api.get(`${this.route}stock_movement_paginated`,{params:t})).data}},zipCode_exports={};__export(zipCode_exports,{default:()=>Repository59});var Repository59=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){await this.api.post(`${this.route}`,t)}async findByPostalCode(t){return(await this.api.get(`${this.route}`,{params:t})).data}},tenant_exports={};__export(tenant_exports,{default:()=>Repository60});var Repository60=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}`,t)).data}async find(){return(await this.api.get(`${this.route}`)).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}},preSale_exports={};__export(preSale_exports,{default:()=>Repository61});var Repository61=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}by_user/${t.created_by}`)).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async findPending(){return(await this.api.get(`${this.route}pending`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async updatePreSaleQuantity(t,a){return(await this.api.put(`${this.route}${t.id}/quantity`,a)).data}async removeProduct(t,a){return(await this.api.put(`${this.route}product/${t.id}`,a)).data}async importToClientProposal(t){return(await this.api.post(`${this.route}client_proposal`,t)).data}},preSaleProduct_exports={};__export(preSaleProduct_exports,{default:()=>Repository62});var Repository62=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(){return(await this.api.get(`${this.route}`)).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}},orderManagement_exports={};__export(orderManagement_exports,{default:()=>Repository63});var Repository63=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findProviderProducts(t){return(await this.api.get(`${this.route}provider_products`,{params:t})).data}async findAllProviderProducts(){return(await this.api.get(`${this.route}all_provider_products`)).data}},npc_exports={};__export(npc_exports,{default:()=>Repository64});var Repository64=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(){return(await this.api.get(`${this.route}`)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async findPrintJobsForComputerId(t){return(await this.api.get(`${this.route}find_print_jobs_for_computer_id/${t.computer_id}`)).data}},printer_exports={};__export(printer_exports,{default:()=>Repository65});var Repository65=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(){return(await this.api.get(`${this.route}`)).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async updateMany(t){await this.api.put(`${this.route}update_many`,t)}async getOrSetPrinters(t){return(await this.api.post(`${this.route}get_or_set_printers`,t)).data}},schedulePrintJob_exports={};__export(schedulePrintJob_exports,{default:()=>Repository66});var Repository66=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){await this.api.post(`${this.route}`,t)}async createMany(t){await this.api.post(`${this.route}many`,t)}async deleteOne(t){await this.api.delete(`${this.route}${t.id}`)}async dispatchSchedulePrintJob(t){return(await this.api.post(`${this.route}dispatch_schedule_print_job`,t)).data}async findByOwner(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}},queryList_exports={};__export(queryList_exports,{default:()=>Repository67});var Repository67=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(){return(await this.api.get(`${this.route}`)).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}async execute(t){return(await this.api.get(`${this.route}execute`,{params:t})).data}getQueryExecuteUrl({query_id:t,output:a,token:e,...i}){const r=new URLSearchParams;return r.set("query_id",t),r.set("output",a),e&&r.set("token",e),Object.entries(i).forEach((([t,a])=>{null!=a&&r.set(t,a.toString())})),`${this.route}execute?${r.toString()}`}},queryParameter_exports={};__export(queryParameter_exports,{default:()=>Repository68});var Repository68=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(){return(await this.api.get(`${this.route}`)).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}},returnReason_exports={};__export(returnReason_exports,{default:()=>Repository69});var Repository69=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async find(){return(await this.api.get(`${this.route}`)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},propostaSheets_exports={};__export(propostaSheets_exports,{default:()=>Repository70});var Repository70=class{constructor({api:t,route:a}){this.api=t,this.route=a}async isProcessing(t){return(await this.api.get(`${this.route}is_processing`,{params:t})).data}async importFromSheet(t){return(await this.api.post(`${this.route}import_from_sheet`,{params:t})).data}async createSheetFromDocument(t){return(await this.api.post(`${this.route}create_sheet_from_document`,t)).data}async cloneSheetToNewDocument(t){return(await this.api.post(`${this.route}clone_sheet_to_new_document`,t)).data}async conflictAccept(t){await this.api.post(`${this.route}conflict_accept`,t)}async conflictDelete(t){await this.api.delete(`${this.route}conflict_delete`,{data:t})}async conflictFindByOwnerId(t){return(await this.api.get(`${this.route}conflict_find_by_owner_id`,{params:t})).data}async rmGetDataBySheetId(t){return(await this.api.get(`${this.route}rm_data_by_sheet_id/${t.id}`)).data}async rmUpdateDataBySheetId(t,a){await this.api.post(`${this.route}rm_data_by_sheet_id/${t.id}`,a)}async findRmOpenDocuments(){return(await this.api.get(`${this.route}rm_open_documents`)).data}},schedule_exports={};__export(schedule_exports,{default:()=>Repository71});var Repository71=class{constructor({api:t,route:a}){this.api=t,this.route=a}async runImmediately(t){await this.api.post(`${this.route}${t.scheduleType}`)}},googleFilePermission_exports={};__export(googleFilePermission_exports,{default:()=>Repository72});var Repository72=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}`,t)).data}async find(){return(await this.api.get(`${this.route}`)).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}},settings_exports={};__export(settings_exports,{default:()=>Repository73});var Repository73=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}`,t)).data}async findByKey(t){return(await this.api.get(`${this.route}by_key`,{params:t})).data}async update(t){return(await this.api.put(`${this.route}`,t)).data}async deleteOne(t){return(await this.api.delete(`${this.route}${t.id}`)).data}async find(){return(await this.api.get(`${this.route}`)).data}},tickets_exports={};__export(tickets_exports,{default:()=>Repository74});var Repository74=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}`,t)).data}async findToday(){return(await this.api.get(`${this.route}find_today`)).data}async update(t){return(await this.api.put(`${this.route}`,t)).data}async undoLastCall(){return(await this.api.put(`${this.route}undo_last_call`)).data}},channel_exports={};__export(channel_exports,{default:()=>Repository75});var Repository75=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}`,t)).data}async find(){return(await this.api.get(`${this.route}`)).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t}`)).data}async update(t,a){await this.api.post(`${this.route}${t}`,a)}async deleteOne(t){await this.api.delete(`${this.route}${t}`)}},language_exports2={};__export(language_exports2,{default:()=>Repository76});var Repository76=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}`,t)).data}async find(){return(await this.api.get(`${this.route}`)).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t}`)).data}async update(t,a){await this.api.post(`${this.route}${t}`,a)}async deleteOne(t){await this.api.delete(`${this.route}${t}`)}},clt_exports={};__export(clt_exports,{default:()=>Repository77});var Repository77=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}`,t)).data}async find(){return(await this.api.get(`${this.route}`)).data}async findMinified(t){return(await this.api.get(`${this.route}minified`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t}`)).data}async update(t,a){await this.api.post(`${this.route}${t}`,a)}async deleteOne(t){await this.api.delete(`${this.route}${t}`)}},startDocumentHeaderLastUpdate_exports={};__export(startDocumentHeaderLastUpdate_exports,{default:()=>Repository78});var Repository78=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}},persona_exports={};__export(persona_exports,{default:()=>Repository79});var Repository79=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){return(await this.api.delete(`${this.route}`,{params:t})).data}async findByBasic(t){return(await this.api.get(`${this.route}basic_search`,{params:t})).data}async findForBillOfLading(t){return(await this.api.get(`${this.route}`,{data:t})).data}async findByEmail(t){return(await this.api.get(`${this.route}by_email`,{data:t})).data}async findClientOrProvider(t){return(await this.api.get(`${this.route}find_client_or_provider`,{params:t})).data}async findForGmail(t){return(await this.api.get(`${this.route}for_gmail`,{params:t})).data}async publicUpdate(t,a){await this.api.put(`${this.route}public/${t.id}`,a)}},projectInfo_exports={};__export(projectInfo_exports,{default:()=>Repository80});var Repository80=class{constructor({api:t,route:a}){this.api=t,this.route=a}async sendEmail(t){return(await this.api.post(`${this.route}sendEmail`,t)).data}},order_exports={};__export(order_exports,{default:()=>Repository81});var Repository81=class{constructor({api:t,route:a}){this.api=t,this.route=a}async unsetCativado(t){return(await this.api.post(`${this.route}unset_cativado`,{params:t})).data}async setProvider(t){await this.api.post(`${this.route}set_provider`,t)}async unsetProvider({id:t}){await this.api.post(`${this.route}${t}/unset_provider`)}async unlinkFromProviderOrder(t){await this.api.post(`${this.route}undo_encomenda_stock`,t)}async undoProviderOrder(t){await this.api.post(`${this.route}undo_provider_order`,t)}async conferirEncomendaCliente(t){return(await this.api.post(`${this.route}check_client_order`,t)).data}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async previewRegroupLinesInProviderOrder({id:t}){return(await this.api.get(`${this.route}regroup/${t}`)).data}async regroupLinesInProviderOrder({id:t}){await this.api.post(`${this.route}regroup/${t}`)}},purchase_exports={};__export(purchase_exports,{default:()=>Repository82});var Repository82=class{constructor({api:t,route:a}){this.api=t,this.route=a}async purchaseFromProvider(t){await this.api.post(`${this.route}purchase_from_provider`,t)}async findUnpaidMaterialEntrance(t){return(await this.api.get(`${this.route}unpaid_material_entrance`,{params:t})).data}async findUnpaidMaterialEntranceProviders(){return(await this.api.get(`${this.route}unpaid_material_entrance_providers`)).data}async sync(t){return(await this.api.post(`${this.route}sync`,t)).data}async findPurchasedOrdersSummary(t){return(await this.api.get(`${this.route}purchased_orders_summary`,{params:t})).data}},materialEntrance_exports={};__export(materialEntrance_exports,{default:()=>Repository83});var Repository83=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findMaterialEntranceProviders(){return(await this.api.get(`${this.route}material_entrance_providers`)).data}async findUnfinishedPickings({id:t}){return(await this.api.get(`${this.route}unfinished_pickings/${t}`)).data}async finalizarEntradaMaterial(t){return(await this.api.post(`${this.route}finalize_material_entrance`,t)).data}async undoEntradaMaterial(t){await this.api.post(`${this.route}undo_material_entrance`,t)}printLabelToPdfUrl({product_id:t},{quantity:a,ef_name:e,pc_document_number:i,prison:r,note:s,availableStock:o},n){const p=new URLSearchParams;return p.set("ef_name",e),p.set("quantity",a.toString()),i&&p.set("pc_document_number",i.toString()),s&&p.set("note",s.toString()),p.set("prison",r.toString()),p.set("availableStock",o.toString()),p.set("token",n),`${this.route}print_label_pdf/${t}?${p.toString()}`}printBulkLabelToPdfUrl({groupLabel:t,saved_em_picking_ids:a,token:e}){const i=new URLSearchParams;return i.set("groupLabel",t.toString()),i.set("saved_em_picking_ids",a),i.set("token",e),`${this.route}print_bulk_label_pdf?${i.toString()}`}},transformado_exports={};__export(transformado_exports,{default:()=>Repository84});var Repository84=class{constructor({api:t,route:a}){this.api=t,this.route=a}async transformar(t){return(await this.api.post(`${this.route}transformar`,t)).data}async destransformar(t){return(await this.api.post(`${this.route}destransformar`,t)).data}},upfrontReturn_exports={};__export(upfrontReturn_exports,{default:()=>Repository85});var Repository85=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t,a){return(await this.api.post(`${this.route}${t.id}`,a)).data}},savedEmPicking_exports={};__export(savedEmPicking_exports,{default:()=>Repository86});var Repository86=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}`,t)).data}async createMany(t){return(await this.api.post(`${this.route}many`,t)).data}async deleteOne(t){await this.api.delete(`${this.route}${t.id}`)}async deleteMany(t){await this.api.post(`${this.route}delete_many`,t)}},emailTemplate_exports={};__export(emailTemplate_exports,{default:()=>Repository87});var Repository87=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(){return(await this.api.get(`${this.route}`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){return(await this.api.put(`${this.route}${t.id}`,a)).data}async deleteOne(t){await this.api.delete(`${this.route}${t.id}`)}async send(t){return(await this.api.post(`${this.route}send`,t)).data}async preview(t,a){return(await this.api.post(`${this.route}preview/${t.id}`,a)).data}},emailTemplateAttachment_exports={};__export(emailTemplateAttachment_exports,{default:()=>Repository88});var Repository88=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}`,t)).data}async deleteOne(t){await this.api.delete(`${this.route}${t.id}`)}},prison_exports={};__export(prison_exports,{default:()=>Repository89});var Repository89=class{constructor({api:t,route:a}){this.api=t,this.route=a}async putLineInPrison(t){return(await this.api.post(`${this.route}put_in_prison`,t)).data}async removeLineFromPrison(t){return(await this.api.post(`${this.route}remove_from_prison`,t)).data}async findLinesInPrison(){return(await this.api.get(`${this.route}in_prison`,{})).data}async findLinesInPrisonProviders(){return(await this.api.get(`${this.route}in_prison_providers`,{})).data}async checkLinesInPrison(t){return(await this.api.post(`${this.route}check_in_prison`,t)).data}async createLinesInPrison(t){return(await this.api.post(`${this.route}create_lines`,t)).data}},quebra_exports={};__export(quebra_exports,{default:()=>Repository90});var Repository90=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findInventoryLosses(){return(await this.api.get(`${this.route}`)).data}async findInventoryLossesProviders(){return(await this.api.get(`${this.route}providers`)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async createMany(t){return(await this.api.post(`${this.route}create_many`,t)).data}async deleteInventoryLosses(t){await this.api.delete(`${this.route}inventory_loss`,{data:t})}},inventario_exports={};__export(inventario_exports,{default:()=>Repository91});var Repository91=class{constructor({api:t,route:a}){this.api=t,this.route=a}async createInventory(t){await this.api.post(`${this.route}`,t)}async createManyInventory(t){await this.api.post(`${this.route}/create_many`,t)}},returnToProvider_exports={};__export(returnToProvider_exports,{default:()=>Repository92});var Repository92=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findLinesToReturn(t){return(await this.api.get(`${this.route}lines_to_return`,{params:t})).data}async findLinesToReturnProviders(){return(await this.api.get(`${this.route}lines_to_return_providers`)).data}async checkLinesToReturn(t){await this.api.post(`${this.route}check_to_return`,t)}},emailVerification_exports={};__export(emailVerification_exports,{default:()=>Repository93});var Repository93=class{constructor({api:t,route:a}){this.api=t,this.route=a}async isVerified(t){return(await this.api.get(`${this.route}`,{params:t})).data}async sendVerificationEmail(t){return(await this.api.post(`${this.route}`,t)).data}async markAsVerified(t){return(await this.api.put(`${this.route}`,t)).data}},emailLog_exports={};__export(emailLog_exports,{default:()=>Repository94});var Repository94=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return(await this.api.get(`${this.route}`,{params:t})).data}async findById({id:t}){return(await this.api.get(`${this.route}${t}`)).data}async findByDocumentHeaderId({id:t}){return(await this.api.get(`${this.route}document_header/${t}`)).data}async checkSent(t){return(await this.api.post(`${this.route}check_sent`,t)).data}},documentLineNote_exports={};__export(documentLineNote_exports,{default:()=>Repository95});var Repository95=class{constructor({api:t,route:a}){this.api=t,this.route=a}async upsertOrDelete(t){return(await this.api.post(`${this.route}`,t)).data}},savedProviderProposal_exports={};__export(savedProviderProposal_exports,{default:()=>Repository96});var Repository96=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findByProviderId(t){return(await this.api.get(`${this.route}${t.id}`)).data}async set(t){return(await this.api.post(`${this.route}`,t)).data}},productGoogleSheets_exports={};__export(productGoogleSheets_exports,{default:()=>Repository97});var Repository97=class{constructor({api:t,route:a}){this.api=t,this.route=a}async basicSearch(t){return(await this.api.get(`${this.route}basic_search`,{params:t})).data}async findReferenceAndIdForMobile(t){return(await this.api.get(`${this.route}reference_and_id_mobile`,{params:t})).data}async findDataForMobile(t){return(await this.api.get(`${this.route}data_mobile/${t.id}`)).data}async findStockForMobile(t){return(await this.api.get(`${this.route}stock_mobile/${t.id}`)).data}async findPreArtigo(t){return(await this.api.get(`${this.route}pre_artigo`,{params:t})).data}async updatePricesFromPreArtigo(){await this.api.get(`${this.route}update_prices_from_pre_artigo`)}async validateByRef(t){return(await this.api.get(`${this.route}validate_by_ref`,{params:t})).data}async findSimilarProductsByName(t){return(await this.api.get(`${this.route}similar_products`,{params:t})).data}async findByProductType(t){return(await this.api.get(`${this.route}by_product_type`,{params:t})).data}async findById({id:t}){return(await this.api.get(`${this.route}${t}`)).data}async findByIdWithStock({id:t}){return(await this.api.get(`${this.route}${t}/with_stock`)).data}async updateGoogleSheetsLinesProduct(t){return(await this.api.put(`${this.route}update_google_sheets_lines_product`,t)).data}async googleSheetsFieldsByRef(t){return(await this.api.get(`${this.route}google_sheets_fields_by_ref/${t.reference}`)).data}async findRowPositionOnSheetsWithColumns(t){return(await this.api.get(`${this.route}sheet_row_and_columns/${t.selector}`)).data}async checkStockByIds(t){return(await this.api.post(`${this.route}check_stock_by_ids`,t)).data}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update({id:t},a){await this.api.put(`${this.route}${t}`,a)}async deleteOne(t){await this.api.delete(`${this.route}${t.id}`)}printLabelToPdfUrl({id:t},a){const e=new URLSearchParams;return e.set("token",a),`${this.route}print_label_pdf/${t}?${e.toString()}`}printLabelToPdfBulk(t,a){const e=new URLSearchParams;return e.set("token",a),e.set("ids",t.join(",")),`${this.route}print_label_pdf/bulk?${e.toString()}`}async updateDbFromSheets(){await this.api.post(`${this.route}update_db_from_sheets`)}async partialLocation(t){await this.api.post(`${this.route}partial_location`,t)}async fullLocation(t){await this.api.post(`${this.route}full_location`,t)}},task_exports={};__export(task_exports,{default:()=>Repository98});var Repository98=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(t){return this.api.get(`${this.route}${t}`)}async findWithMessages(t){return this.api.get(`${this.route}with_messages`,{params:t})}async create(t){return(await this.api.post(`${this.route}`,t)).data}async createFromDossier(t){return(await this.api.post(`${this.route}from_dossier`,t)).data}async update(t,a){await this.api.put(`${this.route}${t.id}`,a)}async delete(t){await this.api.delete(`${this.route}${t.id}`)}async findByOwnerId(t){return(await this.api.delete(`${this.route}by_owner/${t.owner_id}`)).data}},taskMessage_exports={};__export(taskMessage_exports,{default:()=>Repository99});var Repository99=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}`,t)).data}async update(t,a){await this.api.put(`${this.route}${t.id}`,a)}async delete(t){await this.api.delete(`${this.route}${t.id}`)}},recurrentTasks_exports={};__export(recurrentTasks_exports,{default:()=>Repository100});var Repository100=class{constructor({api:t,route:a}){this.api=t,this.route=a}async from_master(){return this.api.post(`${this.route}from_master`)}async from_master_checked(){return this.api.post(`${this.route}from_master`)}},taskRead_exports={};__export(taskRead_exports,{default:()=>Repository101});var Repository101=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){await this.api.post(`${this.route}`,t)}async delete(t){await this.api.delete(`${this.route}`,{data:t})}},theme_exports={};__export(theme_exports,{default:()=>Repository102});var Repository102=class{constructor({api:t,route:a}){this.api=t,this.route=a}async createOrUpdate(t){await this.api.post(`${this.route}`,t)}},dashboard_exports={};__export(dashboard_exports,{default:()=>Repository103});var Repository103=class{constructor({api:t,route:a}){this.api=t,this.route=a}async salesByDate(t){return(await this.api.get(`${this.route}sales`,{params:t})).data}async projectInfo(){return(await this.api.get(`${this.route}project_info`)).data}},chatRapidMessage_exports={};__export(chatRapidMessage_exports,{default:()=>Repository104});var Repository104=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}`,t)).data}async findMinified(){return(await this.api.get(`${this.route}`)).data}async findById(t){return(await this.api.get(`${this.route}${t.id}`)).data}async update(t,a){return(await this.api.put(`${this.route}${t.date}`,a)).data}async delete(t){await this.api.delete(`${this.route}${t.id}`)}},sideMenu_exports={};__export(sideMenu_exports,{default:()=>Repository105});var Repository105=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findSideMenuStoreOperators(){return(await this.api.get(`${this.route}side_menu_store_operators`)).data}async findByDocumentLineState(t){return(await this.api.get(`${this.route}by_document_line_state`,{params:t})).data}async findByState(t){return(await this.api.get(`${this.route}find_by_state`,{params:t})).data}async findSideMenuCounters(){return(await this.api.get(`${this.route}counters`)).data}},errorLog_exports={};__export(errorLog_exports,{default:()=>Repository106});var Repository106=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){await this.api.post(`${this.route}`,t)}},adminPanel_exports={};__export(adminPanel_exports,{default:()=>Repository107});var Repository107=class{constructor({api:t,route:a}){this.api=t,this.route=a}async getData(t){return(await this.api.get(`${this.route}`,{params:t})).data}},documentLineRm_exports={};__export(documentLineRm_exports,{default:()=>Repository108});var Repository108=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findByOwnerId({owner_id:t}){return(await this.api.get(`${this.route}${t}`)).data}async update(t){await this.api.put(`${this.route}`,t)}},documentLineMt_exports={};__export(documentLineMt_exports,{default:()=>Repository109});var Repository109=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findByOwnerId({owner_id:t}){return(await this.api.get(`${this.route}${t}`)).data}async update(t){await this.api.put(`${this.route}`,t)}},chatSubscriber_exports={};__export(chatSubscriber_exports,{default:()=>Repository110});var Repository110=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findDocumentHeaderSubscribers(t){return(await this.api.get(`${this.route}document_header_subscribers`,{params:t})).data}async findSubscribedDocumentHeaders(t){return(await this.api.get(`${this.route}subscribed_document_headers`,{params:t})).data}async findById({id:t}){return(await this.api.get(`${this.route}${t}`)).data}async createOrUpdate(t){return(await this.api.post(`${this.route}`,t)).data}async deleteOne({id:t}){await this.api.delete(`${this.route}${t}`)}async deleteByDocumentHeader({id:t}){await this.api.delete(`${this.route}document_header/${t}`)}},tag_exports={};__export(tag_exports,{default:()=>Repository111});var Repository111=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}`,t)).data}async findByDocumentHeaderId(t){return(await this.api.get(`${this.route}document_header_id/${t.id}`)).data}async updateMany(t){await this.api.put(`${this.route}update_many`,t)}async delete(t){await this.api.delete(`${this.route}${t.id}`)}},gmails_exports={};__export(gmails_exports,{default:()=>Repository112});var Repository112=class{constructor({api:t,route:a}){this.api=t,this.route=a}async auth(){return(await this.api.get(`${this.route}auth`)).data}async emails(){return(await this.api.get(`${this.route}emails`)).data}},NPF_exports={};__export(NPF_exports,{default:()=>Repository113});var Repository113=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){return(await this.api.post(`${this.route}providers`,t)).data}},NRCL_exports={};__export(NRCL_exports,{default:()=>Repository114});var Repository114=class{constructor({api:t,route:a}){this.api=t,this.route=a}async create(t){await this.api.post(`${this.route}multiple_documents`,{data:t})}},currentAccount_exports={};__export(currentAccount_exports,{default:()=>Repository115});var Repository115=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findCurrentAccountByOwnerId(t){return(await this.api.get(`${this.route}current_account`,{params:t})).data}async findBalanceByOwnerId(t){return(await this.api.get(`${this.route}balance`,{params:t})).data}async exportCurrentAccount(t){return(await this.api.get(`${this.route}export_current_account`,{params:t})).data}async findClientUnpaidCredit(t){return(await this.api.get(`${this.route}unpaid_credit`,{params:t})).data}async findClientUnpaidDebit(t){return(await this.api.get(`${this.route}unpaid_debit`,{params:t})).data}getExportCurrentAccountUrl({owner_id:t,start_date:a,end_date:e,output:i,token:r}){const s=new URLSearchParams;return s.set("owner_id",t),s.set("output",i),a&&s.set("start_date",a.toISOString()),e&&s.set("end_date",e.toISOString()),s.set("token",r),`${this.route}export_current_account?${s.toString()}`}},paymentBatch_exports={};__export(paymentBatch_exports,{default:()=>Repository116});var Repository116=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findPending(t){return(await this.api.get(`${this.route}not_exported`,{params:t})).data}async create(t){await this.api.post(`${this.route}export_payments`,t)}async findCreated(){return(await this.api.get(`${this.route}batches`)).data}async updateDownloadNumber(t){await this.api.put(`${this.route}downloaded_batch_number/${t}`)}async deleteOne(t){return(await this.api.delete(`${this.route}delete_batch${t.id}`)).data}getBatchPdfUrl(t){const a=new URLSearchParams;if(a.set("token",t.token),t.ids?.length)return a.set("ids",t.ids.join(",")),`${this.route}create_batch_pdf?${a.toString()}`;if(t.month&&t.year)return a.set("month",String(t.month)),a.set("year",String(t.year)),`${this.route}create_batch_pdf?${a.toString()}`;throw new Error("Precisas de passar ids OU month/year")}},portal_exports={};__export(portal_exports,{default:()=>Repository117});var Repository117=class{constructor({api:t,route:a}){this.api=t,this.route=a}async publicFindBySubscriberId(t){return(await this.api.get(`${this.route}public_by_subscriber`,{params:t})).data}async publicCreateDocumentHeaderNote(t){return(await this.api.post(`${this.route}public_document_header_note`,t)).data}async publicUpdateDocumentHeaderNote({id:t},a){return(await this.api.put(`${this.route}public_document_header_note/${t}`,a)).data}},googleSheetPool_exports={};__export(googleSheetPool_exports,{default:()=>Repository118});var Repository118=class{constructor({api:t,route:a}){this.api=t,this.route=a}async clearAndFill(){return(await this.api.post(`${this.route}clear_and_fill`)).data}},saft_exports={};__export(saft_exports,{default:()=>Repository119});var Repository119=class{constructor({route:t}){this.route=t}getUrl({date_start:t,date_end:a,token:e}){const i=new URLSearchParams;return i.set("date_start",t),i.set("date_end",a),i.set("token",e),`${this.route}download?${i.toString()}`}},accountCode_exports={};__export(accountCode_exports,{default:()=>Repository120});var Repository120=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findByCode({code:t}){return(await this.api.get(`${this.route}${t}`)).data}},llm_exports={};__export(llm_exports,{default:()=>Repository121});var Repository121=class{constructor({api:t,route:a}){this.api=t,this.route=a}prompt(t,{onChunk:a,onDone:e,onError:i}){const r=new AbortController;return(async()=>{try{const i=await fetch(`${this.route}prompt`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:this.api.defaults.headers.common.Authorization},body:JSON.stringify(t),signal:r.signal});if(!i.ok||!i.body){const t=await i.text().catch((()=>""));throw new Error(`HTTP ${i.status}: ${t}`)}const s=i.body.getReader(),o=new TextDecoder;for(;;){const{value:t,done:e}=await s.read();if(e)break;a(o.decode(t,{stream:!0}))}e?.()}catch(t){if("AbortError"===t?.name)return;i?.(t)}})(),{abort:()=>r.abort()}}async translate(t){return(await this.api.post(`${this.route}translate`,t)).data}async identifyLanguage(t){return(await this.api.post(`${this.route}identify_language`,t)).data}},patchNotes_exports={};__export(patchNotes_exports,{default:()=>Repository122});var Repository122=class{constructor({api:t,route:a}){this.api=t,this.route=a}async createOrUpdate(t){return(await this.api.post(`${this.route}`,t)).data}async find(){return(await this.api.get(`${this.route}`)).data}},Repository123=class{constructor({api:t,route:a}){this.api=t,this.route=a}async find(){return(await this.api.get(`${this.route}`)).data}async updateSent(t){return(await this.api.put(`${this.route}sent`,t)).data}async updateSurvey(t){return(await this.api.put(`${this.route}survey`,t)).data}},documentHeaderSubscriber_exports={};__export(documentHeaderSubscriber_exports,{default:()=>Repository124});var Repository124=class{constructor({api:t,route:a}){this.api=t,this.route=a}async findByOwnerId(t){return(await this.api.get(`${this.route}by_owner`,{params:t})).data}async create(t){await this.api.post(`${this.route}`,t)}async deleteOne(t){await this.api.delete(`${this.route}${t.id}`)}},API=class{constructor({processEnvironment:t,services:a,gatewayUrl:e,apikey:i,tokenBearer:r}){this.processEnvironment=t||"localhost",this.defaultHeaders=new AxiosHeaders,i&&this.defaultHeaders.set("apikey",i),r&&this.defaultHeaders.setAuthorization(r),this.client=axios.create({baseURL:e,headers:this.defaultHeaders});const s=e=>`${a[e]}${"localhost"===t?"/":`${e}/`}`;this.services={stock:s("stock"),users:s("users"),integration:s("integration"),documents:s("documents"),view:s("view"),print:s("print"),tickets:s("tickets"),llm:s("llm")};const o=(t,a)=>({api:this.client,route:`${this.services[t]}${a}/`});this.BankData=new Repository(o("users","bank_data")),this.Client=new Repository2(o("users","client")),this.ClientType=new Repository3(o("users","client_type")),this.Chat=new Repository4(o("stock","chat")),this.Commissioner=new Repository5(o("users","commissioner")),this.Country=new Repository6(o("users","country")),this.DocumentHeader=new Repository7(o("stock","document_header")),this.DocumentHeaderHistory=new Repository8(o("stock","document_header_history")),this.BillOfLading=new Repository9(o("stock","document_header")),this.ProductionOrder=new Repository10(o("stock","document_header")),this.Proforma=new Repository11(o("stock","document_header")),this.PropostaFornecedor=new Repository12(o("stock","document_header")),this.ProviderCreditNoteFromReturn=new Repository13(o("stock","document_header")),this.ProviderFinancialCreditNote=new Repository14(o("stock","document_header")),this.ProviderServiceInvoice=new Repository15(o("stock","document_header")),this.DocumentLine=new Repository16(o("stock","document_line")),this.DocumentLineAssoc=new Repository17(o("stock","document_line_assoc")),this.DocumentType=new Repository18(o("stock","document_type")),this.Favorites=new Repository19(o("users","favorite")),this.File=new Repository20(o("stock","file")),this.GoogleSheets=new Repository21(o("integration","google")),this.Language=new Repository22(o("users","language")),this.Location=new Repository23(o("stock","location")),this.Logout=new Repository24(o("users","logout")),this.Multimedia=new Repository25(o("documents","multimedia")),this.Observation=new Repository26(o("integration","observation")),this.ObservationType=new Repository27(o("integration","observation_type")),this.Password=new Repository28(o("users","password")),this.ProductImage=new Repository29(o("stock","product_image")),this.Promotion=new Repository30(o("stock","promotion")),this.PromotionAssoc=new Repository31(o("stock","promotion_assoc")),this.Providers=new Repository32(o("users","provider")),this.ProviderType=new Repository33(o("users","provider_type")),this.PurchaseConditions=new Repository34(o("users","purchase_condition")),this.ReasonForExemption=new Repository35(o("users","reason_for_exemption")),this.RefreshToken=new Repository36(o("users","refresh-token")),this.SegmentsArea=new Repository37(o("users","segments_area")),this.Sessions=new Repository38(o("users","sessions")),this.Shippings=new Repository39(o("users","shipping")),this.StoreOperator=new Repository40(o("users","store_operator")),this.Swift=new Repository41(o("users","swift")),this.TypeOfLocation=new Repository42(o("stock","type_of_location")),this.UnitOfMeasure=new Repository43(o("stock","unit_of_measure")),this.UserPositions=new Repository44(o("users","user_position")),this.Users=new Repository45(o("users","users")),this.VatTax=new Repository46(o("stock","vat_tax")),this.VatTaxZone=new Repository47(o("stock","vat_tax_zone")),this.Workflow=new Repository48(o("stock","workflow")),this.DeliveryMethods=new Repository49(o("users","delivery_methods")),this.MaturityDates=new Repository50(o("users","maturity_dates")),this.PaymentMethods=new Repository51(o("users","payment_methods")),this.Vehicles=new Repository52(o("users","vehicles")),this.ExternalDocumentType=new Repository53(o("stock","external_document_type")),this.DocumentSet=new Repository54(o("stock","document_set")),this.Payment=new Repository55(o("stock","payment")),this.ExternalDocumentHeader=new Repository56(o("stock","external_document_header")),this.VatValidation=new Repository57(o("stock","vat_validation")),this.StockMovement=new Repository58(o("stock","stock_movement")),this.ZipCode=new Repository59(o("users","zip_code")),this.Tenant=new Repository60(o("users","tenant")),this.PreSale=new Repository61(o("stock","pre_sale")),this.PreSaleProduct=new Repository62(o("stock","pre_sale_product")),this.OrderManagement=new Repository63(o("stock","order_management")),this.Npc=new Repository64(o("print","npc")),this.Printer=new Repository65(o("print","printer")),this.SchedulePrintJob=new Repository66(o("print","schedule_print_job")),this.QueryList=new Repository67(o("stock","query")),this.QueryParameter=new Repository68(o("stock","query_parameter")),this.ReturnReason=new Repository69(o("stock","return_reason")),this.PropostaSheets=new Repository70(o("stock","proposta_sheets")),this.Schedule=new Repository71(o("stock","schedule")),this.GoogleFilePermission=new Repository72(o("integration","google_file_permission")),this.Settings=new Repository73(o("integration","settings")),this.Tickets=new Repository74(o("tickets","tickets")),this.Channel=new Repository75(o("tickets","channel")),this.TicketsLanguage=new Repository76(o("tickets","tickets_language")),this.Clt=new Repository77(o("tickets","clt")),this.StartDocumentHeaderLastUpdate=new Repository78(o("stock","start_document_header_last_update")),this.Persona=new Repository79(o("users","persona")),this.ProjectInfo=new Repository80(o("integration","project_info")),this.Order=new Repository81(o("stock","order")),this.Purchase=new Repository82(o("stock","purchase")),this.MaterialEntrance=new Repository83(o("stock","material_entrance")),this.Transformado=new Repository84(o("stock","transformado")),this.UpfrontReturn=new Repository85(o("stock","upfront_return")),this.SavedEmPicking=new Repository86(o("stock","saved_em_picking")),this.EmailTemplate=new Repository87(o("integration","email_template")),this.EmailTemplateAttachment=new Repository88(o("integration","email_template_attachment")),this.Prison=new Repository89(o("stock","prison")),this.Quebra=new Repository90(o("stock","quebra")),this.Inventario=new Repository91(o("stock","inventario")),this.ReturnToProvider=new Repository92(o("stock","return_to_provider")),this.EmailVerification=new Repository93(o("integration","email_verification")),this.EmailLog=new Repository94(o("integration","email_log")),this.DocumentLineNote=new Repository95(o("stock","document_line_note")),this.SavedProviderProposal=new Repository96(o("stock","saved_provider_proposal")),this.ProductGoogleSheets=new Repository97(o("stock","product_google")),this.Task=new Repository98(o("stock","task")),this.TaskMessage=new Repository99(o("stock","task_message")),this.RecurrentTasks=new Repository100(o("stock","recurrent_tasks")),this.TaskRead=new Repository101(o("stock","task_read")),this.Theme=new Repository102(o("users","theme")),this.Dashboard=new Repository103(o("stock","dashboard")),this.ChatRapidMessage=new Repository104(o("stock","chat_rapid_message")),this.SideMenu=new Repository105(o("stock","side_menu")),this.ErrorLog=new Repository106(o("view","error_log")),this.AdminPanel=new Repository107(o("view","admin_panel")),this.DocumentLineRm=new Repository108(o("stock","document_line_rm")),this.DocumentLineMt=new Repository109(o("stock","document_line_mt")),this.ChatSubscriber=new Repository110(o("users","chat_subscriber")),this.Tag=new Repository111(o("stock","tag")),this.Gmails=new Repository112(o("stock","gmail")),this.NPF=new Repository113(o("stock","npf")),this.NRCL=new Repository114(o("stock","nrcl")),this.PaymentBatch=new Repository116(o("stock","payment_batch")),this.CurrentAccount=new Repository115(o("stock","current_account")),this.Portal=new Repository117(o("stock","portal")),this.GoogleSheetPool=new Repository118(o("stock","google_sheet_pool")),this.Saft=new Repository119(o("stock","saft")),this.AccountCode=new Repository120(o("stock","account_code")),this.LLM=new Repository121(o("llm","llm")),this.PatchNotes=new Repository122(o("integration","patch_notes")),this.DocumentHeaderSurvey=new Repository123(o("stock","document_header_survey")),this.DocumentHeaderSubscriber=new Repository124(o("stock","document_header_subscriber"))}},index_default=main_exports;export{index_default as default};
//# sourceMappingURL=/sm/88e5248628754c14d2ae78bf9b649713caa01f8e4c67d4cbf62064e9a4ab3543.map