@nomalism-com/api 0.33.83 → 0.34.2
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/.editorconfig +9 -0
- package/.prettierrc +7 -0
- package/dist/index.cjs +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +371 -0
- package/dist/main.js.map +1 -0
- package/dist/modules/document/billOfLading.d.ts +1 -0
- package/dist/modules/document/billOfLading.d.ts.map +1 -0
- package/dist/modules/document/billOfLading.js +12 -0
- package/dist/modules/document/billOfLading.js.map +1 -0
- package/dist/modules/document/inventario.d.ts +1 -0
- package/dist/modules/document/inventario.d.ts.map +1 -0
- package/dist/modules/document/inventario.js +11 -0
- package/dist/modules/document/inventario.js.map +1 -0
- package/dist/modules/document/materialEntrance.d.ts +1 -0
- package/dist/modules/document/materialEntrance.d.ts.map +1 -0
- package/dist/modules/document/materialEntrance.js +51 -0
- package/dist/modules/document/materialEntrance.js.map +1 -0
- package/dist/modules/document/order.d.ts +1 -0
- package/dist/modules/document/order.d.ts.map +1 -0
- package/dist/modules/document/order.js +49 -0
- package/dist/modules/document/order.js.map +1 -0
- package/dist/modules/document/productionOrder.d.ts +1 -0
- package/dist/modules/document/productionOrder.d.ts.map +1 -0
- package/dist/modules/document/productionOrder.js +11 -0
- package/dist/modules/document/productionOrder.js.map +1 -0
- package/dist/modules/document/proforma.d.ts +1 -0
- package/dist/modules/document/proforma.d.ts.map +1 -0
- package/dist/modules/document/proforma.js +12 -0
- package/dist/modules/document/proforma.js.map +1 -0
- package/dist/modules/document/propostaFornecedor.d.ts +1 -0
- package/dist/modules/document/propostaFornecedor.d.ts.map +1 -0
- package/dist/modules/document/propostaFornecedor.js +12 -0
- package/dist/modules/document/propostaFornecedor.js.map +1 -0
- package/dist/modules/document/propostaSheets.d.ts +1 -0
- package/dist/modules/document/propostaSheets.d.ts.map +1 -0
- package/dist/modules/document/propostaSheets.js +51 -0
- package/dist/modules/document/propostaSheets.js.map +1 -0
- package/dist/modules/document/providerCreditNoteFromReturn.d.ts +1 -0
- package/dist/modules/document/providerCreditNoteFromReturn.d.ts.map +1 -0
- package/dist/modules/document/providerCreditNoteFromReturn.js +17 -0
- package/dist/modules/document/providerCreditNoteFromReturn.js.map +1 -0
- package/dist/modules/document/providerFinancialCreditNote.d.ts +1 -0
- package/dist/modules/document/providerFinancialCreditNote.d.ts.map +1 -0
- package/dist/modules/document/providerFinancialCreditNote.js +17 -0
- package/dist/modules/document/providerFinancialCreditNote.js.map +1 -0
- package/dist/modules/document/providerServiceInvoice.d.ts +1 -0
- package/dist/modules/document/providerServiceInvoice.d.ts.map +1 -0
- package/dist/modules/document/providerServiceInvoice.js +11 -0
- package/dist/modules/document/providerServiceInvoice.js.map +1 -0
- package/dist/modules/document/purchase.d.ts +1 -0
- package/dist/modules/document/purchase.d.ts.map +1 -0
- package/dist/modules/document/purchase.js +25 -0
- package/dist/modules/document/purchase.js.map +1 -0
- package/dist/modules/document/quebra.d.ts +1 -0
- package/dist/modules/document/quebra.d.ts.map +1 -0
- package/dist/modules/document/quebra.js +27 -0
- package/dist/modules/document/quebra.js.map +1 -0
- package/dist/modules/document/returnToProvider.d.ts +1 -0
- package/dist/modules/document/returnToProvider.d.ts.map +1 -0
- package/dist/modules/document/returnToProvider.js +21 -0
- package/dist/modules/document/returnToProvider.js.map +1 -0
- package/dist/modules/document/transformado.d.ts +1 -0
- package/dist/modules/document/transformado.d.ts.map +1 -0
- package/dist/modules/document/transformado.js +12 -0
- package/dist/modules/document/transformado.js.map +1 -0
- package/dist/modules/document/upfrontReturn.d.ts +1 -0
- package/dist/modules/document/upfrontReturn.d.ts.map +1 -0
- package/dist/modules/document/upfrontReturn.js +12 -0
- package/dist/modules/document/upfrontReturn.js.map +1 -0
- package/dist/modules/documentManagement/multimedia.d.ts +1 -0
- package/dist/modules/documentManagement/multimedia.d.ts.map +1 -0
- package/dist/modules/documentManagement/multimedia.js +27 -0
- package/dist/modules/documentManagement/multimedia.js.map +1 -0
- package/dist/modules/integration/emailLog.d.ts +1 -0
- package/dist/modules/integration/emailLog.d.ts.map +1 -0
- package/dist/modules/integration/emailLog.js +24 -0
- package/dist/modules/integration/emailLog.js.map +1 -0
- package/dist/modules/integration/emailTemplate.d.ts +1 -0
- package/dist/modules/integration/emailTemplate.d.ts.map +1 -0
- package/dist/modules/integration/emailTemplate.js +27 -0
- package/dist/modules/integration/emailTemplate.js.map +1 -0
- package/dist/modules/integration/emailTemplateAttachment.d.ts +1 -0
- package/dist/modules/integration/emailTemplateAttachment.d.ts.map +1 -0
- package/dist/modules/integration/emailTemplateAttachment.js +15 -0
- package/dist/modules/integration/emailTemplateAttachment.js.map +1 -0
- package/dist/modules/integration/emailVerification.d.ts +1 -0
- package/dist/modules/integration/emailVerification.d.ts.map +1 -0
- package/dist/modules/integration/emailVerification.js +20 -0
- package/dist/modules/integration/emailVerification.js.map +1 -0
- package/dist/modules/integration/googleFilePermission.d.ts +1 -0
- package/dist/modules/integration/googleFilePermission.d.ts.map +1 -0
- package/dist/modules/integration/googleFilePermission.js +24 -0
- package/dist/modules/integration/googleFilePermission.js.map +1 -0
- package/dist/modules/integration/googleSheets.d.ts +1 -0
- package/dist/modules/integration/googleSheets.d.ts.map +1 -0
- package/dist/modules/integration/googleSheets.js +25 -0
- package/dist/modules/integration/googleSheets.js.map +1 -0
- package/dist/modules/integration/observation.d.ts +1 -0
- package/dist/modules/integration/observation.d.ts.map +1 -0
- package/dist/modules/integration/observation.js +30 -0
- package/dist/modules/integration/observation.js.map +1 -0
- package/dist/modules/integration/observationType.d.ts +1 -0
- package/dist/modules/integration/observationType.d.ts.map +1 -0
- package/dist/modules/integration/observationType.js +30 -0
- package/dist/modules/integration/observationType.js.map +1 -0
- package/dist/modules/integration/projectInfo.d.ts +1 -0
- package/dist/modules/integration/projectInfo.d.ts.map +1 -0
- package/dist/modules/integration/projectInfo.js +11 -0
- package/dist/modules/integration/projectInfo.js.map +1 -0
- package/dist/modules/integration/settings.d.ts +1 -0
- package/dist/modules/integration/settings.d.ts.map +1 -0
- package/dist/modules/integration/settings.js +30 -0
- package/dist/modules/integration/settings.js.map +1 -0
- package/dist/modules/print/npc.d.ts +1 -0
- package/dist/modules/print/npc.d.ts.map +1 -0
- package/dist/modules/print/npc.js +20 -0
- package/dist/modules/print/npc.js.map +1 -0
- package/dist/modules/print/printer.d.ts +1 -0
- package/dist/modules/print/printer.d.ts.map +1 -0
- package/dist/modules/print/printer.js +27 -0
- package/dist/modules/print/printer.js.map +1 -0
- package/dist/modules/print/schedulePrintJob.d.ts +1 -0
- package/dist/modules/print/schedulePrintJob.d.ts.map +1 -0
- package/dist/modules/print/schedulePrintJob.js +25 -0
- package/dist/modules/print/schedulePrintJob.js.map +1 -0
- package/dist/modules/stock/chat.d.ts +1 -0
- package/dist/modules/stock/chat.d.ts.map +1 -0
- package/dist/modules/stock/chat.js +33 -0
- package/dist/modules/stock/chat.js.map +1 -0
- package/dist/modules/stock/chatRapidMessage.d.ts +1 -0
- package/dist/modules/stock/chatRapidMessage.d.ts.map +1 -0
- package/dist/modules/stock/chatRapidMessage.js +27 -0
- package/dist/modules/stock/chatRapidMessage.js.map +1 -0
- package/dist/modules/stock/dashboard.d.ts +1 -0
- package/dist/modules/stock/dashboard.d.ts.map +1 -0
- package/dist/modules/stock/dashboard.js +12 -0
- package/dist/modules/stock/dashboard.js.map +1 -0
- package/dist/modules/stock/file.d.ts +1 -0
- package/dist/modules/stock/file.d.ts.map +1 -0
- package/dist/modules/stock/file.js +25 -0
- package/dist/modules/stock/file.js.map +1 -0
- package/dist/modules/stock/location.d.ts +1 -0
- package/dist/modules/stock/location.d.ts.map +1 -0
- package/dist/modules/stock/location.js +44 -0
- package/dist/modules/stock/location.js.map +1 -0
- package/dist/modules/stock/prison.d.ts +1 -0
- package/dist/modules/stock/prison.d.ts.map +1 -0
- package/dist/modules/stock/prison.js +33 -0
- package/dist/modules/stock/prison.js.map +1 -0
- package/dist/modules/stock/productGoogleSheets.d.ts +1 -0
- package/dist/modules/stock/productGoogleSheets.d.ts.map +1 -0
- package/dist/modules/stock/productGoogleSheets.js +109 -0
- package/dist/modules/stock/productGoogleSheets.js.map +1 -0
- package/dist/modules/stock/productImage.d.ts +1 -0
- package/dist/modules/stock/productImage.d.ts.map +1 -0
- package/dist/modules/stock/productImage.js +41 -0
- package/dist/modules/stock/productImage.js.map +1 -0
- package/dist/modules/stock/promotion.d.ts +1 -0
- package/dist/modules/stock/promotion.d.ts.map +1 -0
- package/dist/modules/stock/promotion.js +59 -0
- package/dist/modules/stock/promotion.js.map +1 -0
- package/dist/modules/stock/promotionAssoc.d.ts +1 -0
- package/dist/modules/stock/promotionAssoc.d.ts.map +1 -0
- package/dist/modules/stock/promotionAssoc.js +38 -0
- package/dist/modules/stock/promotionAssoc.js.map +1 -0
- package/dist/modules/stock/queryList.d.ts +1 -0
- package/dist/modules/stock/queryList.d.ts.map +1 -0
- package/dist/modules/stock/queryList.js +50 -0
- package/dist/modules/stock/queryList.js.map +1 -0
- package/dist/modules/stock/queryParameter.d.ts +1 -0
- package/dist/modules/stock/queryParameter.d.ts.map +1 -0
- package/dist/modules/stock/queryParameter.js +34 -0
- package/dist/modules/stock/queryParameter.js.map +1 -0
- package/dist/modules/stock/recurrentTasks.d.ts +1 -0
- package/dist/modules/stock/recurrentTasks.d.ts.map +1 -0
- package/dist/modules/stock/recurrentTasks.js +14 -0
- package/dist/modules/stock/recurrentTasks.js.map +1 -0
- package/dist/modules/stock/returnReason.d.ts +1 -0
- package/dist/modules/stock/returnReason.d.ts.map +1 -0
- package/dist/modules/stock/returnReason.js +24 -0
- package/dist/modules/stock/returnReason.js.map +1 -0
- package/dist/modules/stock/savedEmPicking.d.ts +1 -0
- package/dist/modules/stock/savedEmPicking.d.ts.map +1 -0
- package/dist/modules/stock/savedEmPicking.js +22 -0
- package/dist/modules/stock/savedEmPicking.js.map +1 -0
- package/dist/modules/stock/savedProviderProposal.d.ts +1 -0
- package/dist/modules/stock/savedProviderProposal.d.ts.map +1 -0
- package/dist/modules/stock/savedProviderProposal.js +24 -0
- package/dist/modules/stock/savedProviderProposal.js.map +1 -0
- package/dist/modules/stock/schedule.d.ts +1 -0
- package/dist/modules/stock/schedule.d.ts.map +1 -0
- package/dist/modules/stock/schedule.js +13 -0
- package/dist/modules/stock/schedule.js.map +1 -0
- package/dist/modules/stock/sideMenu.d.ts +1 -0
- package/dist/modules/stock/sideMenu.d.ts.map +1 -0
- package/dist/modules/stock/sideMenu.js +28 -0
- package/dist/modules/stock/sideMenu.js.map +1 -0
- package/dist/modules/stock/stockMovement.d.ts +1 -0
- package/dist/modules/stock/stockMovement.d.ts.map +1 -0
- package/dist/modules/stock/stockMovement.js +37 -0
- package/dist/modules/stock/stockMovement.js.map +1 -0
- package/dist/modules/stock/task.d.ts +1 -0
- package/dist/modules/stock/task.d.ts.map +1 -0
- package/dist/modules/stock/task.js +30 -0
- package/dist/modules/stock/task.js.map +1 -0
- package/dist/modules/stock/taskMessage.d.ts +1 -0
- package/dist/modules/stock/taskMessage.d.ts.map +1 -0
- package/dist/modules/stock/taskMessage.js +18 -0
- package/dist/modules/stock/taskMessage.js.map +1 -0
- package/dist/modules/stock/taskRead.d.ts +1 -0
- package/dist/modules/stock/taskRead.d.ts.map +1 -0
- package/dist/modules/stock/taskRead.js +14 -0
- package/dist/modules/stock/taskRead.js.map +1 -0
- package/dist/modules/stock/typeOfLocation.d.ts +1 -0
- package/dist/modules/stock/typeOfLocation.d.ts.map +1 -0
- package/dist/modules/stock/typeOfLocation.js +44 -0
- package/dist/modules/stock/typeOfLocation.js.map +1 -0
- package/dist/modules/stock/unitOfMeasure.d.ts +1 -0
- package/dist/modules/stock/unitOfMeasure.d.ts.map +1 -0
- package/dist/modules/stock/unitOfMeasure.js +44 -0
- package/dist/modules/stock/unitOfMeasure.js.map +1 -0
- package/dist/modules/stock/vatTax.d.ts +1 -0
- package/dist/modules/stock/vatTax.d.ts.map +1 -0
- package/dist/modules/stock/vatTax.js +44 -0
- package/dist/modules/stock/vatTax.js.map +1 -0
- package/dist/modules/stock/vatTaxZone.d.ts +1 -0
- package/dist/modules/stock/vatTaxZone.d.ts.map +1 -0
- package/dist/modules/stock/vatTaxZone.js +44 -0
- package/dist/modules/stock/vatTaxZone.js.map +1 -0
- package/dist/modules/supply/clientCurrentAccount.d.ts +1 -0
- package/dist/modules/supply/clientCurrentAccount.d.ts.map +1 -0
- package/dist/modules/supply/clientCurrentAccount.js +43 -0
- package/dist/modules/supply/clientCurrentAccount.js.map +1 -0
- package/dist/modules/supply/documentHeader.d.ts +1 -0
- package/dist/modules/supply/documentHeader.d.ts.map +1 -0
- package/dist/modules/supply/documentHeader.js +117 -0
- package/dist/modules/supply/documentHeader.js.map +1 -0
- package/dist/modules/supply/documentLine.d.ts +1 -0
- package/dist/modules/supply/documentLine.d.ts.map +1 -0
- package/dist/modules/supply/documentLine.js +42 -0
- package/dist/modules/supply/documentLine.js.map +1 -0
- package/dist/modules/supply/documentLineAssoc.d.ts +1 -0
- package/dist/modules/supply/documentLineAssoc.d.ts.map +1 -0
- package/dist/modules/supply/documentLineAssoc.js +32 -0
- package/dist/modules/supply/documentLineAssoc.js.map +1 -0
- package/dist/modules/supply/documentLineMt.d.ts +1 -0
- package/dist/modules/supply/documentLineMt.d.ts.map +1 -0
- package/dist/modules/supply/documentLineMt.js +15 -0
- package/dist/modules/supply/documentLineMt.js.map +1 -0
- package/dist/modules/supply/documentLineNote.d.ts +1 -0
- package/dist/modules/supply/documentLineNote.d.ts.map +1 -0
- package/dist/modules/supply/documentLineNote.js +20 -0
- package/dist/modules/supply/documentLineNote.js.map +1 -0
- package/dist/modules/supply/documentLineRm.d.ts +1 -0
- package/dist/modules/supply/documentLineRm.d.ts.map +1 -0
- package/dist/modules/supply/documentLineRm.js +15 -0
- package/dist/modules/supply/documentLineRm.js.map +1 -0
- package/dist/modules/supply/documentSet.d.ts +1 -0
- package/dist/modules/supply/documentSet.d.ts.map +1 -0
- package/dist/modules/supply/documentSet.js +32 -0
- package/dist/modules/supply/documentSet.js.map +1 -0
- package/dist/modules/supply/documentType.d.ts +1 -0
- package/dist/modules/supply/documentType.d.ts.map +1 -0
- package/dist/modules/supply/documentType.js +35 -0
- package/dist/modules/supply/documentType.js.map +1 -0
- package/dist/modules/supply/externalDocumentHeader.d.ts +1 -0
- package/dist/modules/supply/externalDocumentHeader.d.ts.map +1 -0
- package/dist/modules/supply/externalDocumentHeader.js +53 -0
- package/dist/modules/supply/externalDocumentHeader.js.map +1 -0
- package/dist/modules/supply/externalDocumentType.d.ts +1 -0
- package/dist/modules/supply/externalDocumentType.d.ts.map +1 -0
- package/dist/modules/supply/externalDocumentType.js +16 -0
- package/dist/modules/supply/externalDocumentType.js.map +1 -0
- package/dist/modules/supply/orderManagement.d.ts +1 -0
- package/dist/modules/supply/orderManagement.d.ts.map +1 -0
- package/dist/modules/supply/orderManagement.js +18 -0
- package/dist/modules/supply/orderManagement.js.map +1 -0
- package/dist/modules/supply/payment.d.ts +1 -0
- package/dist/modules/supply/payment.d.ts.map +1 -0
- package/dist/modules/supply/payment.js +101 -0
- package/dist/modules/supply/payment.js.map +1 -0
- package/dist/modules/supply/preSale.d.ts +1 -0
- package/dist/modules/supply/preSale.d.ts.map +1 -0
- package/dist/modules/supply/preSale.js +40 -0
- package/dist/modules/supply/preSale.js.map +1 -0
- package/dist/modules/supply/preSaleProduct.d.ts +1 -0
- package/dist/modules/supply/preSaleProduct.d.ts.map +1 -0
- package/dist/modules/supply/preSaleProduct.js +16 -0
- package/dist/modules/supply/preSaleProduct.js.map +1 -0
- package/dist/modules/supply/providerCurrentAccount.d.ts +1 -0
- package/dist/modules/supply/providerCurrentAccount.d.ts.map +1 -0
- package/dist/modules/supply/providerCurrentAccount.js +14 -0
- package/dist/modules/supply/providerCurrentAccount.js.map +1 -0
- package/dist/modules/supply/startDocumentHeaderLastUpdate.d.ts +1 -0
- package/dist/modules/supply/startDocumentHeaderLastUpdate.d.ts.map +1 -0
- package/dist/modules/supply/startDocumentHeaderLastUpdate.js +12 -0
- package/dist/modules/supply/startDocumentHeaderLastUpdate.js.map +1 -0
- package/dist/modules/supply/vatValidation.d.ts +1 -0
- package/dist/modules/supply/vatValidation.d.ts.map +1 -0
- package/dist/modules/supply/vatValidation.js +16 -0
- package/dist/modules/supply/vatValidation.js.map +1 -0
- package/dist/modules/supply/workflow.d.ts +1 -0
- package/dist/modules/supply/workflow.d.ts.map +1 -0
- package/dist/modules/supply/workflow.js +28 -0
- package/dist/modules/supply/workflow.js.map +1 -0
- package/dist/modules/tickets/channel.d.ts +1 -0
- package/dist/modules/tickets/channel.d.ts.map +1 -0
- package/dist/modules/tickets/channel.js +32 -0
- package/dist/modules/tickets/channel.js.map +1 -0
- package/dist/modules/tickets/clt.d.ts +1 -0
- package/dist/modules/tickets/clt.d.ts.map +1 -0
- package/dist/modules/tickets/clt.js +32 -0
- package/dist/modules/tickets/clt.js.map +1 -0
- package/dist/modules/tickets/language.d.ts +1 -0
- package/dist/modules/tickets/language.d.ts.map +1 -0
- package/dist/modules/tickets/language.js +32 -0
- package/dist/modules/tickets/language.js.map +1 -0
- package/dist/modules/tickets/tickets.d.ts +1 -0
- package/dist/modules/tickets/tickets.d.ts.map +1 -0
- package/dist/modules/tickets/tickets.js +24 -0
- package/dist/modules/tickets/tickets.js.map +1 -0
- package/dist/modules/user/bankData.d.ts +1 -0
- package/dist/modules/user/bankData.d.ts.map +1 -0
- package/dist/modules/user/bankData.js +38 -0
- package/dist/modules/user/bankData.js.map +1 -0
- package/dist/modules/user/chatSubscriber.d.ts +1 -0
- package/dist/modules/user/chatSubscriber.d.ts.map +1 -0
- package/dist/modules/user/chatSubscriber.js +27 -0
- package/dist/modules/user/chatSubscriber.js.map +1 -0
- package/dist/modules/user/clientType.d.ts +1 -0
- package/dist/modules/user/clientType.d.ts.map +1 -0
- package/dist/modules/user/clientType.js +38 -0
- package/dist/modules/user/clientType.js.map +1 -0
- package/dist/modules/user/clients.d.ts +1 -0
- package/dist/modules/user/clients.d.ts.map +1 -0
- package/dist/modules/user/clients.js +52 -0
- package/dist/modules/user/clients.js.map +1 -0
- package/dist/modules/user/commissioner.d.ts +1 -0
- package/dist/modules/user/commissioner.d.ts.map +1 -0
- package/dist/modules/user/commissioner.js +44 -0
- package/dist/modules/user/commissioner.js.map +1 -0
- package/dist/modules/user/country.d.ts +1 -0
- package/dist/modules/user/country.d.ts.map +1 -0
- package/dist/modules/user/country.js +44 -0
- package/dist/modules/user/country.js.map +1 -0
- package/dist/modules/user/deliveryMethods.d.ts +1 -0
- package/dist/modules/user/deliveryMethods.d.ts.map +1 -0
- package/dist/modules/user/deliveryMethods.js +34 -0
- package/dist/modules/user/deliveryMethods.js.map +1 -0
- package/dist/modules/user/favorites.d.ts +1 -0
- package/dist/modules/user/favorites.d.ts.map +1 -0
- package/dist/modules/user/favorites.js +24 -0
- package/dist/modules/user/favorites.js.map +1 -0
- package/dist/modules/user/groupPermission.d.ts +1 -0
- package/dist/modules/user/groupPermission.d.ts.map +1 -0
- package/dist/modules/user/groupPermission.js +26 -0
- package/dist/modules/user/groupPermission.js.map +1 -0
- package/dist/modules/user/language.d.ts +1 -0
- package/dist/modules/user/language.d.ts.map +1 -0
- package/dist/modules/user/language.js +38 -0
- package/dist/modules/user/language.js.map +1 -0
- package/dist/modules/user/logout.d.ts +1 -0
- package/dist/modules/user/logout.d.ts.map +1 -0
- package/dist/modules/user/logout.js +11 -0
- package/dist/modules/user/logout.js.map +1 -0
- package/dist/modules/user/maturityDates.d.ts +1 -0
- package/dist/modules/user/maturityDates.d.ts.map +1 -0
- package/dist/modules/user/maturityDates.js +34 -0
- package/dist/modules/user/maturityDates.js.map +1 -0
- package/dist/modules/user/password.d.ts +1 -0
- package/dist/modules/user/password.d.ts.map +1 -0
- package/dist/modules/user/password.js +14 -0
- package/dist/modules/user/password.js.map +1 -0
- package/dist/modules/user/paymentMethods.d.ts +1 -0
- package/dist/modules/user/paymentMethods.d.ts.map +1 -0
- package/dist/modules/user/paymentMethods.js +34 -0
- package/dist/modules/user/paymentMethods.js.map +1 -0
- package/dist/modules/user/permission.d.ts +1 -0
- package/dist/modules/user/permission.d.ts.map +1 -0
- package/dist/modules/user/permission.js +26 -0
- package/dist/modules/user/permission.js.map +1 -0
- package/dist/modules/user/persona.d.ts +1 -0
- package/dist/modules/user/persona.d.ts.map +1 -0
- package/dist/modules/user/persona.js +52 -0
- package/dist/modules/user/persona.js.map +1 -0
- package/dist/modules/user/provider.d.ts +1 -0
- package/dist/modules/user/provider.d.ts.map +1 -0
- package/dist/modules/user/provider.js +54 -0
- package/dist/modules/user/provider.js.map +1 -0
- package/dist/modules/user/providerType.d.ts +1 -0
- package/dist/modules/user/providerType.d.ts.map +1 -0
- package/dist/modules/user/providerType.js +38 -0
- package/dist/modules/user/providerType.js.map +1 -0
- package/dist/modules/user/purchaseCondition.d.ts +1 -0
- package/dist/modules/user/purchaseCondition.d.ts.map +1 -0
- package/dist/modules/user/purchaseCondition.js +38 -0
- package/dist/modules/user/purchaseCondition.js.map +1 -0
- package/dist/modules/user/reasonForExemption.d.ts +1 -0
- package/dist/modules/user/reasonForExemption.d.ts.map +1 -0
- package/dist/modules/user/reasonForExemption.js +38 -0
- package/dist/modules/user/reasonForExemption.js.map +1 -0
- package/dist/modules/user/refreshToken.d.ts +1 -0
- package/dist/modules/user/refreshToken.d.ts.map +1 -0
- package/dist/modules/user/refreshToken.js +12 -0
- package/dist/modules/user/refreshToken.js.map +1 -0
- package/dist/modules/user/segmentsArea.d.ts +1 -0
- package/dist/modules/user/segmentsArea.d.ts.map +1 -0
- package/dist/modules/user/segmentsArea.js +38 -0
- package/dist/modules/user/segmentsArea.js.map +1 -0
- package/dist/modules/user/sessions.d.ts +1 -0
- package/dist/modules/user/sessions.d.ts.map +1 -0
- package/dist/modules/user/sessions.js +12 -0
- package/dist/modules/user/sessions.js.map +1 -0
- package/dist/modules/user/shippings.d.ts +1 -0
- package/dist/modules/user/shippings.d.ts.map +1 -0
- package/dist/modules/user/shippings.js +38 -0
- package/dist/modules/user/shippings.js.map +1 -0
- package/dist/modules/user/storeOperator.d.ts +1 -0
- package/dist/modules/user/storeOperator.d.ts.map +1 -0
- package/dist/modules/user/storeOperator.js +51 -0
- package/dist/modules/user/storeOperator.js.map +1 -0
- package/dist/modules/user/swift.d.ts +1 -0
- package/dist/modules/user/swift.d.ts.map +1 -0
- package/dist/modules/user/swift.js +38 -0
- package/dist/modules/user/swift.js.map +1 -0
- package/dist/modules/user/tenant.d.ts +1 -0
- package/dist/modules/user/tenant.d.ts.map +1 -0
- package/dist/modules/user/tenant.js +24 -0
- package/dist/modules/user/tenant.js.map +1 -0
- package/dist/modules/user/theme.d.ts +1 -0
- package/dist/modules/user/theme.d.ts.map +1 -0
- package/dist/modules/user/theme.js +11 -0
- package/dist/modules/user/theme.js.map +1 -0
- package/dist/modules/user/user.d.ts +1 -0
- package/dist/modules/user/user.d.ts.map +1 -0
- package/dist/modules/user/user.js +46 -0
- package/dist/modules/user/user.js.map +1 -0
- package/dist/modules/user/userPermission.d.ts +1 -0
- package/dist/modules/user/userPermission.d.ts.map +1 -0
- package/dist/modules/user/userPermission.js +22 -0
- package/dist/modules/user/userPermission.js.map +1 -0
- package/dist/modules/user/userPositions.d.ts +1 -0
- package/dist/modules/user/userPositions.d.ts.map +1 -0
- package/dist/modules/user/userPositions.js +38 -0
- package/dist/modules/user/userPositions.js.map +1 -0
- package/dist/modules/user/vehicles.d.ts +1 -0
- package/dist/modules/user/vehicles.d.ts.map +1 -0
- package/dist/modules/user/vehicles.js +24 -0
- package/dist/modules/user/vehicles.js.map +1 -0
- package/dist/modules/user/zipCode.d.ts +1 -0
- package/dist/modules/user/zipCode.d.ts.map +1 -0
- package/dist/modules/user/zipCode.js +15 -0
- package/dist/modules/user/zipCode.js.map +1 -0
- package/dist/modules/view/adminPanel.d.ts +1 -0
- package/dist/modules/view/adminPanel.d.ts.map +1 -0
- package/dist/modules/view/adminPanel.js +12 -0
- package/dist/modules/view/adminPanel.js.map +1 -0
- package/dist/modules/view/errorLog.d.ts +1 -0
- package/dist/modules/view/errorLog.d.ts.map +1 -0
- package/dist/modules/view/errorLog.js +11 -0
- package/dist/modules/view/errorLog.js.map +1 -0
- package/eslint.config.mjs +38 -0
- package/package-lock.json +2606 -0
- package/package.json +19 -18
- package/src/index.ts +3 -0
- package/src/main.ts +791 -0
- package/src/modules/document/billOfLading.ts +24 -0
- package/src/modules/document/inventario.ts +23 -0
- package/src/modules/document/materialEntrance.ts +117 -0
- package/src/modules/document/order.ts +88 -0
- package/src/modules/document/productionOrder.ts +23 -0
- package/src/modules/document/proforma.ts +22 -0
- package/src/modules/document/propostaFornecedor.ts +24 -0
- package/src/modules/document/propostaSheets.ts +102 -0
- package/src/modules/document/providerCreditNoteFromReturn.ts +32 -0
- package/src/modules/document/providerFinancialCreditNote.ts +32 -0
- package/src/modules/document/providerServiceInvoice.ts +23 -0
- package/src/modules/document/purchase.ts +48 -0
- package/src/modules/document/quebra.ts +47 -0
- package/src/modules/document/returnToProvider.ts +43 -0
- package/src/modules/document/transformado.ts +26 -0
- package/src/modules/document/upfrontReturn.ts +24 -0
- package/src/modules/documentManagement/multimedia.ts +41 -0
- package/src/modules/integration/emailLog.ts +47 -0
- package/src/modules/integration/emailTemplate.ts +50 -0
- package/src/modules/integration/emailTemplateAttachment.ts +30 -0
- package/src/modules/integration/emailVerification.ts +34 -0
- package/src/modules/integration/googleFilePermission.ts +40 -0
- package/src/modules/integration/googleSheets.ts +56 -0
- package/src/modules/integration/observation.ts +57 -0
- package/src/modules/integration/observationType.ts +55 -0
- package/src/modules/integration/projectInfo.ts +23 -0
- package/src/modules/integration/settings.ts +49 -0
- package/src/modules/print/npc.ts +43 -0
- package/src/modules/print/printer.ts +52 -0
- package/src/modules/print/schedulePrintJob.ts +45 -0
- package/src/modules/stock/chat.ts +54 -0
- package/src/modules/stock/chatRapidMessage.ts +48 -0
- package/src/modules/stock/dashboard.ts +24 -0
- package/src/modules/stock/file.ts +45 -0
- package/src/modules/stock/location.ts +80 -0
- package/src/modules/stock/prison.ts +61 -0
- package/src/modules/stock/productGoogleSheets.ts +176 -0
- package/src/modules/stock/productImage.ts +78 -0
- package/src/modules/stock/promotion.ts +114 -0
- package/src/modules/stock/promotionAssoc.ts +75 -0
- package/src/modules/stock/queryList.ts +83 -0
- package/src/modules/stock/queryParameter.ts +63 -0
- package/src/modules/stock/recurrentTasks.ts +25 -0
- package/src/modules/stock/returnReason.ts +46 -0
- package/src/modules/stock/savedEmPicking.ts +35 -0
- package/src/modules/stock/savedProviderProposal.ts +44 -0
- package/src/modules/stock/schedule.ts +27 -0
- package/src/modules/stock/sideMenu.ts +49 -0
- package/src/modules/stock/stockMovement.ts +63 -0
- package/src/modules/stock/task.ts +50 -0
- package/src/modules/stock/taskMessage.ts +33 -0
- package/src/modules/stock/taskRead.ts +25 -0
- package/src/modules/stock/typeOfLocation.ts +81 -0
- package/src/modules/stock/unitOfMeasure.ts +81 -0
- package/src/modules/stock/vatTax.ts +81 -0
- package/src/modules/stock/vatTaxZone.ts +83 -0
- package/src/modules/supply/clientCurrentAccount.ts +83 -0
- package/src/modules/supply/documentHeader.ts +221 -0
- package/src/modules/supply/documentLine.ts +87 -0
- package/src/modules/supply/documentLineAssoc.ts +63 -0
- package/src/modules/supply/documentLineMt.ts +28 -0
- package/src/modules/supply/documentLineNote.ts +37 -0
- package/src/modules/supply/documentLineRm.ts +28 -0
- package/src/modules/supply/documentSet.ts +59 -0
- package/src/modules/supply/documentType.ts +74 -0
- package/src/modules/supply/externalDocumentHeader.ts +99 -0
- package/src/modules/supply/externalDocumentType.ts +32 -0
- package/src/modules/supply/orderManagement.ts +35 -0
- package/src/modules/supply/payment.ts +182 -0
- package/src/modules/supply/preSale.ts +86 -0
- package/src/modules/supply/preSaleProduct.ts +29 -0
- package/src/modules/supply/providerCurrentAccount.ts +28 -0
- package/src/modules/supply/startDocumentHeaderLastUpdate.ts +24 -0
- package/src/modules/supply/vatValidation.ts +28 -0
- package/src/modules/supply/workflow.ts +61 -0
- package/src/modules/tickets/channel.ts +55 -0
- package/src/modules/tickets/clt.ts +53 -0
- package/src/modules/tickets/language.ts +53 -0
- package/src/modules/tickets/tickets.ts +49 -0
- package/src/modules/user/bankData.ts +75 -0
- package/src/modules/user/chatSubscriber.ts +53 -0
- package/src/modules/user/clientType.ts +72 -0
- package/src/modules/user/clients.ts +98 -0
- package/src/modules/user/commissioner.ts +85 -0
- package/src/modules/user/country.ts +79 -0
- package/src/modules/user/deliveryMethods.ts +61 -0
- package/src/modules/user/favorites.ts +44 -0
- package/src/modules/user/groupPermission.ts +45 -0
- package/src/modules/user/language.ts +72 -0
- package/src/modules/user/logout.ts +20 -0
- package/src/modules/user/maturityDates.ts +61 -0
- package/src/modules/user/password.ts +29 -0
- package/src/modules/user/paymentMethods.ts +61 -0
- package/src/modules/user/permission.ts +45 -0
- package/src/modules/user/persona.ts +92 -0
- package/src/modules/user/provider.ts +99 -0
- package/src/modules/user/providerType.ts +72 -0
- package/src/modules/user/purchaseCondition.ts +71 -0
- package/src/modules/user/reasonForExemption.ts +72 -0
- package/src/modules/user/refreshToken.ts +25 -0
- package/src/modules/user/segmentsArea.ts +72 -0
- package/src/modules/user/sessions.ts +25 -0
- package/src/modules/user/shippings.ts +71 -0
- package/src/modules/user/storeOperator.ts +99 -0
- package/src/modules/user/swift.ts +71 -0
- package/src/modules/user/tenant.ts +45 -0
- package/src/modules/user/theme.ts +25 -0
- package/src/modules/user/user.ts +93 -0
- package/src/modules/user/userPermission.ts +43 -0
- package/src/modules/user/userPositions.ts +72 -0
- package/src/modules/user/vehicles.ts +46 -0
- package/src/modules/user/zipCode.ts +31 -0
- package/src/modules/view/adminPanel.ts +24 -0
- package/src/modules/view/errorLog.ts +21 -0
- package/tsconfig.json +18 -0
- package/dist/index.min.js +0 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IFindRequest = Nomalism.PromotionAssoc.IFindRequest;
|
|
6
|
+
export import IFindResponse = Nomalism.PromotionAssoc.IFindResponse;
|
|
7
|
+
|
|
8
|
+
export import IFindPaginatedRequest = Nomalism.PromotionAssoc.IFindPaginatedRequest;
|
|
9
|
+
|
|
10
|
+
export import IFindByOwnerIdRequest = Nomalism.shared.IFindByOwnerIdRequest;
|
|
11
|
+
export import IFindByOwnerIdResponse = Nomalism.PromotionAssoc.IFindByOwnerIdResponse;
|
|
12
|
+
|
|
13
|
+
export import ICreateRequest = Nomalism.PromotionAssoc.ICreateRequest;
|
|
14
|
+
|
|
15
|
+
export import IEntity = Nomalism.PromotionAssoc.Entity;
|
|
16
|
+
|
|
17
|
+
export import IUpdateRequest = Nomalism.PromotionAssoc.IUpdateRequest;
|
|
18
|
+
export type IPaginationResponse =
|
|
19
|
+
Nomalism.shared.IPaginationResponse<Nomalism.PromotionAssoc.IFindResponse>;
|
|
20
|
+
|
|
21
|
+
export default class Repository implements Nomalism.PromotionAssoc.IRepository {
|
|
22
|
+
public route: string;
|
|
23
|
+
|
|
24
|
+
public publicRoute: string;
|
|
25
|
+
|
|
26
|
+
private api: AxiosInstance;
|
|
27
|
+
|
|
28
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
29
|
+
this.api = api;
|
|
30
|
+
this.route = route;
|
|
31
|
+
this.publicRoute = publicRoute;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
async find(params: IFindRequest): Promise<IFindResponse[]> {
|
|
35
|
+
const response = await this.api.get(`${this.route}`, { params });
|
|
36
|
+
return response.data;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
async findPaginated(params: IFindPaginatedRequest): Promise<IPaginationResponse> {
|
|
40
|
+
const response = await this.api.get(`${this.route}paginated`, { params });
|
|
41
|
+
return response.data;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
async findByOwnerId(params: IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]> {
|
|
45
|
+
const response = await this.api.get(`${this.route}by_owner`, {
|
|
46
|
+
params,
|
|
47
|
+
});
|
|
48
|
+
return response.data;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
async findById(selector: Nomalism.shared.IFindByIdRequest): Promise<IFindResponse | null> {
|
|
52
|
+
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
53
|
+
return response.data;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async create(body: ICreateRequest): Promise<IFindByOwnerIdResponse> {
|
|
57
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
58
|
+
return response.data;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
async update(
|
|
62
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
63
|
+
body: IUpdateRequest,
|
|
64
|
+
): Promise<IFindByOwnerIdResponse | null> {
|
|
65
|
+
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
66
|
+
return response.data;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
async deleteOne(
|
|
70
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
71
|
+
): Promise<IFindByOwnerIdResponse | null> {
|
|
72
|
+
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
73
|
+
return response.data;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IFindResponse = Nomalism.QueryList.IFindResponse;
|
|
6
|
+
export import ICreateRequest = Nomalism.QueryList.ICreateRequest;
|
|
7
|
+
|
|
8
|
+
export import IEntity = Nomalism.QueryList.Entity;
|
|
9
|
+
|
|
10
|
+
export import IUpdateRequest = Nomalism.QueryList.IUpdateRequest;
|
|
11
|
+
|
|
12
|
+
export import IExecuteRequest = Nomalism.QueryList.IExecuteRequest;
|
|
13
|
+
|
|
14
|
+
export import IExecuteResponse = Nomalism.QueryList.IExecuteResponse;
|
|
15
|
+
|
|
16
|
+
export import IExecuteOutput = Nomalism.QueryList.IExecuteOutput;
|
|
17
|
+
|
|
18
|
+
export const { executeOutput } = Nomalism.QueryList;
|
|
19
|
+
|
|
20
|
+
export default class Repository implements Nomalism.QueryList.IRepository {
|
|
21
|
+
public route: string;
|
|
22
|
+
|
|
23
|
+
public publicRoute: string;
|
|
24
|
+
|
|
25
|
+
private api: AxiosInstance;
|
|
26
|
+
|
|
27
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
28
|
+
this.api = api;
|
|
29
|
+
this.route = route;
|
|
30
|
+
this.publicRoute = publicRoute;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
async find(): Promise<IFindResponse[]> {
|
|
34
|
+
const response = await this.api.get(`${this.route}`);
|
|
35
|
+
return response.data;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
async findById(selector: Nomalism.shared.IFindByIdRequest): Promise<IFindResponse | null> {
|
|
39
|
+
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
40
|
+
return response.data;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async create(body: ICreateRequest): Promise<IFindResponse> {
|
|
44
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
45
|
+
return response.data;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
async update(
|
|
49
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
50
|
+
body: IUpdateRequest,
|
|
51
|
+
): Promise<IFindResponse | null> {
|
|
52
|
+
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
53
|
+
return response.data;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<void> {
|
|
57
|
+
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
58
|
+
return response.data;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
async execute(params: IExecuteRequest): Promise<IExecuteResponse> {
|
|
62
|
+
const response = await this.api.get(`${this.route}execute`, { params });
|
|
63
|
+
return response.data;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
getQueryExecuteUrl({ query_id, output, token, ...data }: IExecuteRequest) {
|
|
67
|
+
const qs = new URLSearchParams();
|
|
68
|
+
|
|
69
|
+
qs.set('query_id', query_id);
|
|
70
|
+
qs.set('output', output);
|
|
71
|
+
if (token) {
|
|
72
|
+
qs.set('token', token);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
Object.entries(data).forEach(([key, value]) => {
|
|
76
|
+
if (typeof value === 'undefined') return;
|
|
77
|
+
if (value === null) return;
|
|
78
|
+
qs.set(key, value.toString());
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
return `${this.route}execute?${qs.toString()}`;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import ICreateRequest = Nomalism.QueryParameter.ICreateRequest;
|
|
6
|
+
|
|
7
|
+
export import IEntity = Nomalism.QueryParameter.Entity;
|
|
8
|
+
|
|
9
|
+
export import IUpdateRequest = Nomalism.QueryParameter.IUpdateRequest;
|
|
10
|
+
|
|
11
|
+
export import QueryParameterDatatypeEnum = Nomalism.QueryParameter.QueryParameterDatatypeEnum;
|
|
12
|
+
|
|
13
|
+
export import IQueryParameterDatatype = Nomalism.QueryParameter.IQueryParameterDatatype;
|
|
14
|
+
export import IFindByOwnerIdResponse = Nomalism.QueryParameter.IFindByOwnerIdResponse;
|
|
15
|
+
|
|
16
|
+
export default class Repository implements Nomalism.QueryParameter.IRepository {
|
|
17
|
+
public route: string;
|
|
18
|
+
|
|
19
|
+
public publicRoute: string;
|
|
20
|
+
|
|
21
|
+
private api: AxiosInstance;
|
|
22
|
+
|
|
23
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
24
|
+
this.api = api;
|
|
25
|
+
this.route = route;
|
|
26
|
+
this.publicRoute = publicRoute;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
async find(): Promise<IEntity[]> {
|
|
30
|
+
const response = await this.api.get(`${this.route}`);
|
|
31
|
+
return response.data;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
async findById(selector: Nomalism.shared.IFindByIdRequest): Promise<IEntity | null> {
|
|
35
|
+
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
36
|
+
return response.data;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
async create(body: ICreateRequest): Promise<IEntity> {
|
|
40
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
41
|
+
return response.data;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
async update(
|
|
45
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
46
|
+
body: IUpdateRequest,
|
|
47
|
+
): Promise<IEntity | null> {
|
|
48
|
+
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
49
|
+
return response.data;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
async deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<void> {
|
|
53
|
+
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
54
|
+
return response.data;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async findByOwnerId(
|
|
58
|
+
params: Nomalism.shared.IFindByOwnerIdRequest,
|
|
59
|
+
): Promise<IFindByOwnerIdResponse[]> {
|
|
60
|
+
const response = await this.api.get(`${this.route}by_owner`, { params });
|
|
61
|
+
return response.data;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export default class Repository implements Nomalism.RecurrentTasks.IRepository {
|
|
6
|
+
public route: string;
|
|
7
|
+
|
|
8
|
+
public publicRoute: string;
|
|
9
|
+
|
|
10
|
+
private api: AxiosInstance;
|
|
11
|
+
|
|
12
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
13
|
+
this.api = api;
|
|
14
|
+
this.route = route;
|
|
15
|
+
this.publicRoute = publicRoute;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
async from_master(): Promise<string> {
|
|
19
|
+
return this.api.post(`${this.route}from_master`);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async from_master_checked(): Promise<string> {
|
|
23
|
+
return this.api.post(`${this.route}from_master`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IEntity = Nomalism.ReturnReason.Entity;
|
|
6
|
+
|
|
7
|
+
export import ICreateRequest = Nomalism.ReturnReason.ICreateRequest;
|
|
8
|
+
|
|
9
|
+
export import IUpdateRequest = Nomalism.ReturnReason.IUpdateRequest;
|
|
10
|
+
|
|
11
|
+
export default class Repository implements Nomalism.ReturnReason.IRepository {
|
|
12
|
+
public route: string;
|
|
13
|
+
|
|
14
|
+
public publicRoute: string;
|
|
15
|
+
|
|
16
|
+
private api: AxiosInstance;
|
|
17
|
+
|
|
18
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
19
|
+
this.api = api;
|
|
20
|
+
this.route = route;
|
|
21
|
+
this.publicRoute = publicRoute;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
async create(body: ICreateRequest): Promise<IEntity> {
|
|
25
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
26
|
+
return response.data;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
async update(
|
|
30
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
31
|
+
body: IUpdateRequest,
|
|
32
|
+
): Promise<IEntity | null> {
|
|
33
|
+
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
34
|
+
return response.data;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async find(): Promise<IEntity[]> {
|
|
38
|
+
const response = await this.api.get(`${this.route}`);
|
|
39
|
+
return response.data;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
async deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<IEntity | null> {
|
|
43
|
+
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
44
|
+
return response.data;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export default class Repository implements Nomalism.SavedEmPicking.IRepository {
|
|
6
|
+
public route: string;
|
|
7
|
+
|
|
8
|
+
public publicRoute: string;
|
|
9
|
+
|
|
10
|
+
private api: AxiosInstance;
|
|
11
|
+
|
|
12
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
13
|
+
this.api = api;
|
|
14
|
+
this.route = route;
|
|
15
|
+
this.publicRoute = publicRoute;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
async create(body: Nomalism.SavedEmPicking.ICreateRequest): Promise<string> {
|
|
19
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
20
|
+
return response.data;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
async createMany(body: Nomalism.SavedEmPicking.ICreateManyRequest): Promise<string[]> {
|
|
24
|
+
const response = await this.api.post(`${this.route}many`, body);
|
|
25
|
+
return response.data;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
async deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<void> {
|
|
29
|
+
await this.api.delete(`${this.route}${selector.id}`);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
async deleteMany(body: Nomalism.SavedEmPicking.IDeleteManyRequest): Promise<void> {
|
|
33
|
+
await this.api.post(`${this.route}delete_many`, body);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IEntity = Nomalism.SavedProviderProposal.Entity;
|
|
6
|
+
|
|
7
|
+
export import ICreateRequest = Nomalism.SavedProviderProposal.ICreateRequest;
|
|
8
|
+
export import IUpdateRequest = Nomalism.SavedProviderProposal.IUpdateRequest;
|
|
9
|
+
|
|
10
|
+
export default class Repository implements Nomalism.SavedProviderProposal.IRepository {
|
|
11
|
+
public route: string;
|
|
12
|
+
|
|
13
|
+
public publicRoute: string;
|
|
14
|
+
|
|
15
|
+
private api: AxiosInstance;
|
|
16
|
+
|
|
17
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
18
|
+
this.api = api;
|
|
19
|
+
this.route = route;
|
|
20
|
+
this.publicRoute = publicRoute;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
async findByProviderId(
|
|
24
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
25
|
+
): Promise<Nomalism.SavedProviderProposal.IFindManyResponse[]> {
|
|
26
|
+
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
27
|
+
return response.data;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
async create(body: ICreateRequest): Promise<void> {
|
|
31
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
32
|
+
return response.data;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
async update(selector: Nomalism.shared.IFindByIdRequest, body: IUpdateRequest): Promise<void> {
|
|
36
|
+
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
37
|
+
return response.data;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
async deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<void> {
|
|
41
|
+
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
42
|
+
return response.data;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IScheduleType = Nomalism.Schedule.IScheduleType;
|
|
6
|
+
|
|
7
|
+
export import IRunImmediatelyRequest = Nomalism.Schedule.IRunImmediatelyRequest;
|
|
8
|
+
|
|
9
|
+
export const { ScheduleTypeEnum, scheduleTypes, ScheduleTypeLabel } = Nomalism.Schedule;
|
|
10
|
+
|
|
11
|
+
export default class Repository implements Nomalism.Schedule.IRepository {
|
|
12
|
+
public route: string;
|
|
13
|
+
|
|
14
|
+
public publicRoute: string;
|
|
15
|
+
|
|
16
|
+
private api: AxiosInstance;
|
|
17
|
+
|
|
18
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
19
|
+
this.api = api;
|
|
20
|
+
this.route = route;
|
|
21
|
+
this.publicRoute = publicRoute;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
async runImmediately(selector: IRunImmediatelyRequest): Promise<void> {
|
|
25
|
+
await this.api.post(`${this.route}${selector.scheduleType}`);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IFindByDocumentLineStateRequest = Nomalism.SideMenu.IFindByDocumentLineStateRequest;
|
|
6
|
+
export import IFindByDocumentLineStateResponse = Nomalism.SideMenu.IFindByDocumentLineStateResponse;
|
|
7
|
+
export import IFindByStateRequest = Nomalism.SideMenu.IFindByStateRequest;
|
|
8
|
+
export import IFindByStateResponse = Nomalism.SideMenu.IFindByStateResponse;
|
|
9
|
+
export import IFindSideMenuCountersResponse = Nomalism.SideMenu.IFindSideMenuCountersResponse;
|
|
10
|
+
|
|
11
|
+
export default class Repository implements Nomalism.SideMenu.IController {
|
|
12
|
+
public route: string;
|
|
13
|
+
|
|
14
|
+
public publicRoute: string;
|
|
15
|
+
|
|
16
|
+
private api: AxiosInstance;
|
|
17
|
+
|
|
18
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
19
|
+
this.api = api;
|
|
20
|
+
this.route = route;
|
|
21
|
+
this.publicRoute = publicRoute;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
async findSideMenuStoreOperators(): Promise<string[]> {
|
|
25
|
+
const response = await this.api.get(`${this.route}side_menu_store_operators`);
|
|
26
|
+
return response.data;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
async findByDocumentLineState(
|
|
30
|
+
params: IFindByDocumentLineStateRequest,
|
|
31
|
+
): Promise<IFindByDocumentLineStateResponse[]> {
|
|
32
|
+
const response = await this.api.get(`${this.route}by_document_line_state`, {
|
|
33
|
+
params,
|
|
34
|
+
});
|
|
35
|
+
return response.data;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
async findByState(params: IFindByStateRequest): Promise<IFindByStateResponse[]> {
|
|
39
|
+
const response = await this.api.get(`${this.route}find_by_state`, {
|
|
40
|
+
params,
|
|
41
|
+
});
|
|
42
|
+
return response.data;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
async findSideMenuCounters(): Promise<IFindSideMenuCountersResponse> {
|
|
46
|
+
const response = await this.api.get(`${this.route}counters`);
|
|
47
|
+
return response.data;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IFindByIdNumberRequest = Nomalism.shared.IFindByIdNumberRequest;
|
|
6
|
+
export import IFindByProviderResponse = Nomalism.StockMovement.IFindByProviderResponse;
|
|
7
|
+
|
|
8
|
+
export import IFindByOwnerIdRequest = Nomalism.shared.IFindByOwnerIdRequest;
|
|
9
|
+
export import IFindByOwnerIdResponse = Nomalism.StockMovement.IFindByOwnerIdResponse;
|
|
10
|
+
|
|
11
|
+
export import ExportFormatEnum = Nomalism.StockMovement.ExportFormatEnum;
|
|
12
|
+
export import IExportFormat = Nomalism.StockMovement.IExportFormat;
|
|
13
|
+
export import exportFormats = Nomalism.StockMovement.exportFormats;
|
|
14
|
+
export import ExportVersionEnum = Nomalism.StockMovement.ExportVersionEnum;
|
|
15
|
+
export import IExportVersion = Nomalism.StockMovement.IExportVersion;
|
|
16
|
+
export import exportVersions = Nomalism.StockMovement.exportVersions;
|
|
17
|
+
export import IExportRequest = Nomalism.StockMovement.IExportRequest;
|
|
18
|
+
export import IExportCsvResponse = Nomalism.StockMovement.IExportCsvResponse;
|
|
19
|
+
|
|
20
|
+
export default class Repository implements Nomalism.StockMovement.IRepository {
|
|
21
|
+
public route: string;
|
|
22
|
+
|
|
23
|
+
public publicRoute: string;
|
|
24
|
+
|
|
25
|
+
private api: AxiosInstance;
|
|
26
|
+
|
|
27
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
28
|
+
this.api = api;
|
|
29
|
+
this.route = route;
|
|
30
|
+
this.publicRoute = publicRoute;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
async findByProvider({ id }: IFindByIdNumberRequest): Promise<IFindByProviderResponse[]> {
|
|
34
|
+
const response = await this.api.get(`${this.route}${id}`);
|
|
35
|
+
return response.data;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
async findByOwnerId(params: IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]> {
|
|
39
|
+
const response = await this.api.get(`${this.route}by_owner`, { params });
|
|
40
|
+
return response.data;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async exportCsv(params: IExportRequest): Promise<IExportCsvResponse[]> {
|
|
44
|
+
const response = await this.api.get(`${this.route}csv`, { params });
|
|
45
|
+
return response.data;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
getStockCsvUrl({ date, version, format, token }: IExportRequest): string {
|
|
49
|
+
const qs = new URLSearchParams();
|
|
50
|
+
qs.set('date', date.toISOString());
|
|
51
|
+
qs.set('version', version);
|
|
52
|
+
qs.set('format', format);
|
|
53
|
+
qs.set('token', token);
|
|
54
|
+
return `${this.publicRoute}csv?${qs.toString()}`;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async findStockMovementPaginated(
|
|
58
|
+
params: Nomalism.StockMovement.IFindStockMovementPaginatedRequest,
|
|
59
|
+
): Promise<Nomalism.shared.IPaginationResponse<IFindByOwnerIdResponse>> {
|
|
60
|
+
const response = await this.api.get(`${this.route}stock_movement_paginated`, { params });
|
|
61
|
+
return response.data;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export default class Repository implements Nomalism.Task.IRepository {
|
|
6
|
+
public route: string;
|
|
7
|
+
|
|
8
|
+
public publicRoute: string;
|
|
9
|
+
|
|
10
|
+
private api: AxiosInstance;
|
|
11
|
+
|
|
12
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
13
|
+
this.api = api;
|
|
14
|
+
this.route = route;
|
|
15
|
+
this.publicRoute = publicRoute;
|
|
16
|
+
}
|
|
17
|
+
async find(selector: Nomalism.Task.IFindTasksRequest): Promise<Nomalism.Task.IFindResponse[]> {
|
|
18
|
+
return this.api.get(`${this.route}${selector}`);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
async findWithMessages(
|
|
22
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
23
|
+
): Promise<Nomalism.Task.IFindWithMessagesResponse> {
|
|
24
|
+
return this.api.get(`${this.route}with_messages`, {
|
|
25
|
+
params: selector,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
async create(body: Nomalism.Task.ICreateRequest): Promise<Nomalism.Task.Entity> {
|
|
30
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
31
|
+
return response.data;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
async update(
|
|
35
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
36
|
+
body: Nomalism.Task.IUpdateRequest,
|
|
37
|
+
): Promise<void> {
|
|
38
|
+
await this.api.put(`${this.route}${selector.id}`, body);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
async delete(selector: Nomalism.shared.IFindByIdRequest): Promise<void> {
|
|
42
|
+
await this.api.delete(`${this.route}${selector.id}`);
|
|
43
|
+
}
|
|
44
|
+
async findByOwnerId(
|
|
45
|
+
selector: Nomalism.shared.IFindByOwnerIdRequest,
|
|
46
|
+
): Promise<Nomalism.Task.IFindByOwnerResponse[]> {
|
|
47
|
+
const response = await this.api.delete(`${this.route}by_owner/${selector.owner_id}`);
|
|
48
|
+
return response.data;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export default class Repository implements Nomalism.TaskMessage.IRepository {
|
|
6
|
+
public route: string;
|
|
7
|
+
|
|
8
|
+
public publicRoute: string;
|
|
9
|
+
|
|
10
|
+
private api: AxiosInstance;
|
|
11
|
+
|
|
12
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
13
|
+
this.api = api;
|
|
14
|
+
this.route = route;
|
|
15
|
+
this.publicRoute = publicRoute;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
async create(body: Nomalism.TaskMessage.ICreateRequest): Promise<Nomalism.TaskMessage.Entity> {
|
|
19
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
20
|
+
return response.data;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
async update(
|
|
24
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
25
|
+
body: Nomalism.TaskMessage.IUpdateRequest,
|
|
26
|
+
): Promise<void> {
|
|
27
|
+
await this.api.put(`${this.route}${selector.id}`, body);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
async delete(selector: Nomalism.shared.IFindByIdRequest): Promise<void> {
|
|
31
|
+
await this.api.delete(`${this.route}${selector.id}`);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export default class Repository implements Nomalism.TaskRead.IRepository {
|
|
6
|
+
public route: string;
|
|
7
|
+
|
|
8
|
+
public publicRoute: string;
|
|
9
|
+
|
|
10
|
+
private api: AxiosInstance;
|
|
11
|
+
|
|
12
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
13
|
+
this.api = api;
|
|
14
|
+
this.route = route;
|
|
15
|
+
this.publicRoute = publicRoute;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
async create(body: Nomalism.TaskRead.ICreateRequest): Promise<void> {
|
|
19
|
+
await this.api.post(`${this.route}`, body);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async delete(params: Nomalism.TaskRead.IDeleteRequest): Promise<void> {
|
|
23
|
+
await this.api.delete(`${this.route}`, { data: params });
|
|
24
|
+
}
|
|
25
|
+
}
|