@nomalism-com/api 0.33.83 → 0.34.1
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,182 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IFindRequest = Nomalism.Payment.IFindRequest;
|
|
6
|
+
export import IFindResponse = Nomalism.Payment.IFindResponse;
|
|
7
|
+
|
|
8
|
+
export import IFindPaginatedRequest = Nomalism.Payment.IFindPaginatedRequest;
|
|
9
|
+
|
|
10
|
+
export import IFindByOwnerIdRequest = Nomalism.shared.IFindByOwnerIdRequest;
|
|
11
|
+
export import IFindByIdRequest = Nomalism.shared.IFindByIdRequest;
|
|
12
|
+
|
|
13
|
+
export import ICurrentAccountNotes = Nomalism.Payment.ICurrentAccountNotes;
|
|
14
|
+
export import IFindCurrentAccountByOwnerIdResponse = Nomalism.Payment.IFindCurrentAccountByOwnerIdResponse;
|
|
15
|
+
|
|
16
|
+
export import ICreateForThisDocumentHeaderRequest = Nomalism.Payment.ICreateForThisDocumentHeaderRequest;
|
|
17
|
+
|
|
18
|
+
export import ICreateRequest = Nomalism.Payment.ICreateRequest;
|
|
19
|
+
|
|
20
|
+
export import IEntity = Nomalism.Payment.Entity;
|
|
21
|
+
|
|
22
|
+
export import IExportPaymentsRequest = Nomalism.Payment.IExportPaymentsRequest;
|
|
23
|
+
export import IPaymentsBatchResponse = Nomalism.Payment.IPaymentsBatchResponse;
|
|
24
|
+
|
|
25
|
+
export import IUnpaidPurchasesRequest = Nomalism.Payment.IUnpaidPurchasesRequest;
|
|
26
|
+
export import IUnpaidPurchasesResponse = Nomalism.Payment.IUnpaidPurchasesResponse;
|
|
27
|
+
export import IUnpaidByDatePurchasesRequest = Nomalism.Payment.IUnpaidByDatePurchasesRequest;
|
|
28
|
+
export import IFindProvidersWithClientIdResponse = Nomalism.Payment.IFindProvidersWithClientIdResponse;
|
|
29
|
+
|
|
30
|
+
export import IProviderPaymentDocument = Nomalism.Payment.IProviderPaymentDocument;
|
|
31
|
+
export import IProviderPaymentRequest = Nomalism.Payment.IProviderPaymentRequest;
|
|
32
|
+
|
|
33
|
+
export import IPaymentsNotExportedRequest = Nomalism.Payment.IPaymentsNotExportedRequest;
|
|
34
|
+
export import IPaymentsNotExportedResponse = Nomalism.Payment.IPaymentsNotExportedResponse;
|
|
35
|
+
|
|
36
|
+
export import IExportCurrentAccountRequest = Nomalism.Payment.IExportCurrentAccountRequest;
|
|
37
|
+
|
|
38
|
+
export type IPaginationResponse =
|
|
39
|
+
Nomalism.shared.IPaginationResponse<Nomalism.Payment.IFindResponse>;
|
|
40
|
+
|
|
41
|
+
export default class Repository implements Nomalism.Payment.IRepository {
|
|
42
|
+
public route: string;
|
|
43
|
+
|
|
44
|
+
public publicRoute: string;
|
|
45
|
+
|
|
46
|
+
private api: AxiosInstance;
|
|
47
|
+
|
|
48
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
49
|
+
this.api = api;
|
|
50
|
+
this.route = route;
|
|
51
|
+
this.publicRoute = publicRoute;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
async find(params: IFindRequest): Promise<IFindResponse[]> {
|
|
55
|
+
const response = await this.api.get(`${this.route}`, { params });
|
|
56
|
+
return response.data;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async findPaginated(params: IFindPaginatedRequest): Promise<IPaginationResponse> {
|
|
60
|
+
const response = await this.api.get(`${this.route}paginated`, { params });
|
|
61
|
+
return response.data;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
async findByOwnerId(params: IFindByOwnerIdRequest): Promise<IFindResponse[]> {
|
|
65
|
+
const response = await this.api.get(`${this.route}by_owner`, {
|
|
66
|
+
params,
|
|
67
|
+
});
|
|
68
|
+
return response.data;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
async findById(selector: IFindByIdRequest): Promise<IEntity | null> {
|
|
72
|
+
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
73
|
+
return response.data;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
async deleteBatch(selector: IFindByIdRequest): Promise<void> {
|
|
77
|
+
const response = await this.api.delete(`${this.route}delete_batch${selector.id}`);
|
|
78
|
+
return response.data;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
async findCurrentAccountByOwnerId(
|
|
82
|
+
params: Nomalism.shared.IFindByOwnerIdRequest,
|
|
83
|
+
): Promise<IFindCurrentAccountByOwnerIdResponse[]> {
|
|
84
|
+
const response = await this.api.get(`${this.route}current_account`, {
|
|
85
|
+
params,
|
|
86
|
+
});
|
|
87
|
+
return response.data;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
async findBalanceByOwnerId(params: Nomalism.shared.IFindByOwnerIdRequest): Promise<number> {
|
|
91
|
+
const response = await this.api.get(`${this.route}balance`, {
|
|
92
|
+
params,
|
|
93
|
+
});
|
|
94
|
+
return response.data;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
async findSettledMaterialEntrance(
|
|
98
|
+
params: IUnpaidPurchasesRequest,
|
|
99
|
+
): Promise<IUnpaidPurchasesResponse[]> {
|
|
100
|
+
const response = await this.api.get(`${this.route}settled_material_entrance`, {
|
|
101
|
+
params,
|
|
102
|
+
});
|
|
103
|
+
return response.data;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
async findSettledMaterialEntranceProviders(): Promise<IFindProvidersWithClientIdResponse[]> {
|
|
107
|
+
const response = await this.api.get(`${this.route}settled_material_entrance_providers`);
|
|
108
|
+
return response.data;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
async createProvidersPayments(body: IProviderPaymentRequest[]): Promise<string[]> {
|
|
112
|
+
const response = await this.api.post(`${this.route}provider`, body);
|
|
113
|
+
return response.data;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
async findPaymentsNotExported(
|
|
117
|
+
params: IPaymentsNotExportedRequest,
|
|
118
|
+
): Promise<IPaymentsNotExportedResponse[]> {
|
|
119
|
+
const response = await this.api.get(`${this.route}not_exported`, {
|
|
120
|
+
params,
|
|
121
|
+
});
|
|
122
|
+
return response.data;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
async findPaymentBatches(): Promise<IPaymentsBatchResponse[]> {
|
|
126
|
+
const response = await this.api.get(`${this.route}batches`);
|
|
127
|
+
return response.data;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
async updateDownloadedBatchNumber(params: Nomalism.shared.IFindByIdRequest): Promise<void> {
|
|
131
|
+
await this.api.put(`${this.route}downloaded_batch_number/${params}`);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
async exportCurrentAccount(
|
|
135
|
+
params: IExportCurrentAccountRequest,
|
|
136
|
+
): Promise<IFindCurrentAccountByOwnerIdResponse[]> {
|
|
137
|
+
const response = await this.api.get(`${this.publicRoute}export_current_account`, {
|
|
138
|
+
params,
|
|
139
|
+
});
|
|
140
|
+
return response.data;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
async findSettledMaterialEntranceByDate(
|
|
144
|
+
params: IUnpaidByDatePurchasesRequest,
|
|
145
|
+
): Promise<IUnpaidPurchasesResponse[]> {
|
|
146
|
+
const response = await this.api.get(`${this.route}settled_material_entrance_by_date`, {
|
|
147
|
+
params,
|
|
148
|
+
});
|
|
149
|
+
return response.data;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
async exportPayments(body: IExportPaymentsRequest[]): Promise<void> {
|
|
153
|
+
await this.api.post(`${this.route}export_payments`, body);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
getExportCurrentAccountUrl({
|
|
157
|
+
owner_id,
|
|
158
|
+
start_date,
|
|
159
|
+
end_date,
|
|
160
|
+
output,
|
|
161
|
+
token,
|
|
162
|
+
}: IExportCurrentAccountRequest): string {
|
|
163
|
+
const qs = new URLSearchParams();
|
|
164
|
+
qs.set('owner_id', owner_id);
|
|
165
|
+
qs.set('output', output);
|
|
166
|
+
if (start_date) qs.set('start_date', start_date.toISOString());
|
|
167
|
+
if (end_date) qs.set('end_date', end_date.toISOString());
|
|
168
|
+
qs.set('token', token);
|
|
169
|
+
return `${this.publicRoute}export_current_account?${qs.toString()}`;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
async findCurrentAccountPaginated(
|
|
173
|
+
params: Nomalism.Payment.IFindCurrentAccountPaginatedRequest,
|
|
174
|
+
): Promise<
|
|
175
|
+
Nomalism.shared.IPaginationResponse<Nomalism.Payment.IFindCurrentAccountByOwnerIdResponse>
|
|
176
|
+
> {
|
|
177
|
+
const response = await this.api.get(`${this.route}current_account_paginated`, {
|
|
178
|
+
params,
|
|
179
|
+
});
|
|
180
|
+
return response.data;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IFindResponse = Nomalism.PreSale.IFindResponse;
|
|
6
|
+
export import IFindResponseWithCount = Nomalism.PreSale.IFindResponseWithCount;
|
|
7
|
+
|
|
8
|
+
export import ICreateRequest = Nomalism.PreSale.ICreateRequest;
|
|
9
|
+
|
|
10
|
+
export import IProductMinified = Nomalism.PreSale.IPreSaleProduct;
|
|
11
|
+
export import IEntityExtended = Nomalism.PreSale.IEntityExtended;
|
|
12
|
+
|
|
13
|
+
export import IUpdateRequest = Nomalism.PreSale.IUpdateRequest;
|
|
14
|
+
export import IUpdatePreSaleQuantityRequest = Nomalism.PreSale.IUpdatePreSaleQuantityRequest;
|
|
15
|
+
|
|
16
|
+
export import IRemovePreSaleProductRequest = Nomalism.PreSale.IRemovePreSaleProductRequest;
|
|
17
|
+
|
|
18
|
+
export import IImportToClientProposalRequest = Nomalism.PreSale.IImportToClientProposalRequest;
|
|
19
|
+
|
|
20
|
+
export import IPreSaleFindByUser = Nomalism.PreSale.IPreSaleFindByUser;
|
|
21
|
+
|
|
22
|
+
export type IPaginationResponse =
|
|
23
|
+
Nomalism.shared.IPaginationResponse<Nomalism.PreSale.IFindResponse>;
|
|
24
|
+
|
|
25
|
+
export default class Repository implements Nomalism.PreSale.IRepository {
|
|
26
|
+
public route: string;
|
|
27
|
+
|
|
28
|
+
public publicRoute: string;
|
|
29
|
+
|
|
30
|
+
private api: AxiosInstance;
|
|
31
|
+
|
|
32
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
33
|
+
this.api = api;
|
|
34
|
+
this.route = route;
|
|
35
|
+
this.publicRoute = publicRoute;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
async find(selector: Nomalism.PreSale.IPreSaleFindByUser): Promise<IFindResponseWithCount[]> {
|
|
39
|
+
const response = await this.api.get(`${this.route}by_user/${selector.created_by}`);
|
|
40
|
+
return response.data;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async findById(selector: Nomalism.shared.IFindByIdRequest): Promise<IEntityExtended | null> {
|
|
44
|
+
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
45
|
+
return response.data;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
async findPending(): Promise<IEntityExtended[]> {
|
|
49
|
+
const response = await this.api.get(`${this.route}pending`);
|
|
50
|
+
return response.data;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
async create(body: ICreateRequest): Promise<IFindResponse> {
|
|
54
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
55
|
+
return response.data;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async update(
|
|
59
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
60
|
+
body: IUpdateRequest,
|
|
61
|
+
): Promise<IFindResponse | null> {
|
|
62
|
+
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
63
|
+
return response.data;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
async updatePreSaleQuantity(
|
|
67
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
68
|
+
body: IUpdatePreSaleQuantityRequest,
|
|
69
|
+
): Promise<IFindResponse | null> {
|
|
70
|
+
const response = await this.api.put(`${this.route}${selector.id}/quantity`, body);
|
|
71
|
+
return response.data;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
async removeProduct(
|
|
75
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
76
|
+
body: IRemovePreSaleProductRequest,
|
|
77
|
+
): Promise<void> {
|
|
78
|
+
const response = await this.api.put(`${this.route}product/${selector.id}`, body);
|
|
79
|
+
return response.data;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
async importToClientProposal(data: IImportToClientProposalRequest): Promise<void> {
|
|
83
|
+
const response = await this.api.post(`${this.route}client_proposal`, data);
|
|
84
|
+
return response.data;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IFindResponse = Nomalism.PreSaleProduct.Entity;
|
|
6
|
+
|
|
7
|
+
export default class Repository implements Nomalism.PreSaleProduct.IRepository {
|
|
8
|
+
public route: string;
|
|
9
|
+
|
|
10
|
+
public publicRoute: string;
|
|
11
|
+
|
|
12
|
+
private api: AxiosInstance;
|
|
13
|
+
|
|
14
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
15
|
+
this.api = api;
|
|
16
|
+
this.route = route;
|
|
17
|
+
this.publicRoute = publicRoute;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
async find(): Promise<IFindResponse[]> {
|
|
21
|
+
const response = await this.api.get(`${this.route}`);
|
|
22
|
+
return response.data;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
async findById(selector: Nomalism.shared.IFindByIdRequest): Promise<IFindResponse | null> {
|
|
26
|
+
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
27
|
+
return response.data;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IEntity = Nomalism.ProviderCurrentAccount.Entity;
|
|
6
|
+
|
|
7
|
+
export import IFindRequest = Nomalism.ProviderCurrentAccount.IFindRequest;
|
|
8
|
+
|
|
9
|
+
export default class Repository implements Nomalism.ProviderCurrentAccount.IApi {
|
|
10
|
+
public route: string;
|
|
11
|
+
|
|
12
|
+
public publicRoute: string;
|
|
13
|
+
|
|
14
|
+
private api: AxiosInstance;
|
|
15
|
+
|
|
16
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
17
|
+
this.api = api;
|
|
18
|
+
this.route = route;
|
|
19
|
+
this.publicRoute = publicRoute;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async findByOwnerId(params: IFindRequest): Promise<Nomalism.shared.IPaginationResponse<IEntity>> {
|
|
23
|
+
const response = await this.api.get(`${this.route}by_owner`, {
|
|
24
|
+
params,
|
|
25
|
+
});
|
|
26
|
+
return response.data;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export type IEntity = Nomalism.StartDocumentHeaderLastUpdate.Entity;
|
|
6
|
+
|
|
7
|
+
export default class Repository implements Nomalism.StartDocumentHeaderLastUpdate.IController {
|
|
8
|
+
public route: string;
|
|
9
|
+
|
|
10
|
+
public publicRoute: string;
|
|
11
|
+
|
|
12
|
+
private api: AxiosInstance;
|
|
13
|
+
|
|
14
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
15
|
+
this.api = api;
|
|
16
|
+
this.route = route;
|
|
17
|
+
this.publicRoute = publicRoute;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
async findById(selector: Nomalism.shared.IFindByIdRequest): Promise<IEntity | null> {
|
|
21
|
+
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
22
|
+
return response.data;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IEntity = Nomalism.VatValidation.Entity;
|
|
6
|
+
|
|
7
|
+
export default class Repository implements Nomalism.VatValidation.IRepository {
|
|
8
|
+
public route: string;
|
|
9
|
+
|
|
10
|
+
public publicRoute: string;
|
|
11
|
+
|
|
12
|
+
private api: AxiosInstance;
|
|
13
|
+
|
|
14
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
15
|
+
this.api = api;
|
|
16
|
+
this.route = route;
|
|
17
|
+
this.publicRoute = publicRoute;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
async findByLatest(nif: string): Promise<IEntity | null> {
|
|
21
|
+
const response = await this.api.get(`${this.route}`, {
|
|
22
|
+
params: {
|
|
23
|
+
nif,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
return response.data;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IEntity = Nomalism.Workflow.Entity;
|
|
6
|
+
|
|
7
|
+
export import IFindRequest = Nomalism.Workflow.IFindRequest;
|
|
8
|
+
|
|
9
|
+
export import IFindByOwnerIdRequest = Nomalism.Workflow.IFindByOwnerIdRequest;
|
|
10
|
+
export import IFindByOwnerIdResponse = Nomalism.Workflow.IFindByOwnerIdResponse;
|
|
11
|
+
|
|
12
|
+
export import ICreateRequest = Nomalism.Workflow.ICreateRequest;
|
|
13
|
+
|
|
14
|
+
export import IUpdateRequest = Nomalism.Workflow.IUpdateRequest;
|
|
15
|
+
|
|
16
|
+
export import IFindByQueryRequest = Nomalism.Workflow.IFindByQueryRequest;
|
|
17
|
+
export type IFindByQueryResponse = Nomalism.shared.IPaginationResponse<IEntity>;
|
|
18
|
+
|
|
19
|
+
export default class Repository implements Nomalism.Workflow.IApi {
|
|
20
|
+
public route: string;
|
|
21
|
+
|
|
22
|
+
public publicRoute: string;
|
|
23
|
+
|
|
24
|
+
private api: AxiosInstance;
|
|
25
|
+
|
|
26
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
27
|
+
this.api = api;
|
|
28
|
+
this.route = route;
|
|
29
|
+
this.publicRoute = publicRoute;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
async find(params: IFindRequest): Promise<IFindByOwnerIdResponse[]> {
|
|
33
|
+
const response = await this.api.get(`${this.route}`, { params });
|
|
34
|
+
return response.data;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async findByOwnerId(params: IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]> {
|
|
38
|
+
const response = await this.api.get(`${this.route}by_owner`, { params });
|
|
39
|
+
return response.data;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
async create(body: ICreateRequest): Promise<IFindByOwnerIdResponse> {
|
|
43
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
44
|
+
return response.data;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
async update(
|
|
48
|
+
selector: Nomalism.shared.IFindByIdNumberRequest,
|
|
49
|
+
body: IUpdateRequest,
|
|
50
|
+
): Promise<IFindByOwnerIdResponse | null> {
|
|
51
|
+
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
52
|
+
return response.data;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async deleteOne(
|
|
56
|
+
selector: Nomalism.shared.IFindByIdNumberRequest,
|
|
57
|
+
): Promise<IFindByOwnerIdResponse | null> {
|
|
58
|
+
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
59
|
+
return response.data;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IEntity = Nomalism.Channel.Entity;
|
|
6
|
+
|
|
7
|
+
export import IChannel = Nomalism.Channel.IChannel;
|
|
8
|
+
|
|
9
|
+
export import ICreateRequest = Nomalism.Channel.ICreateRequest;
|
|
10
|
+
export import IUpdateRequest = Nomalism.Channel.IUpdateRequest;
|
|
11
|
+
export import IFindMinifiedRequest = Nomalism.Channel.IFindMinifiedRequest;
|
|
12
|
+
|
|
13
|
+
export default class Repository implements Nomalism.Channel.IRepository {
|
|
14
|
+
public route: string;
|
|
15
|
+
|
|
16
|
+
public publicRoute: string;
|
|
17
|
+
|
|
18
|
+
private api: AxiosInstance;
|
|
19
|
+
|
|
20
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
21
|
+
this.api = api;
|
|
22
|
+
this.route = route;
|
|
23
|
+
this.publicRoute = publicRoute;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
async create(body: ICreateRequest): Promise<IEntity> {
|
|
27
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
28
|
+
return response.data;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
async find(): Promise<IEntity[]> {
|
|
32
|
+
const response = await this.api.get(`${this.route}`);
|
|
33
|
+
return response.data;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
async findMinified(params?: IFindMinifiedRequest): Promise<IEntity[]> {
|
|
37
|
+
const response = await this.api.get(`${this.route}minified`, {
|
|
38
|
+
params,
|
|
39
|
+
});
|
|
40
|
+
return response.data;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async findById(id: Nomalism.shared.IFindByIdNumberRequest): Promise<IEntity | null> {
|
|
44
|
+
const response = await this.api.get(`${this.route}${id}`);
|
|
45
|
+
return response.data;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
async update(id: Nomalism.shared.IFindByIdNumberRequest, body: IUpdateRequest): Promise<void> {
|
|
49
|
+
await this.api.post(`${this.route}${id}`, body);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
async deleteOne(id: Nomalism.shared.IFindByIdNumberRequest): Promise<void> {
|
|
53
|
+
await this.api.delete(`${this.route}${id}`);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IEntity = Nomalism.CLT.Entity;
|
|
6
|
+
|
|
7
|
+
export import ICreateRequest = Nomalism.CLT.ICreateRequest;
|
|
8
|
+
export import IUpdateRequest = Nomalism.CLT.IUpdateRequest;
|
|
9
|
+
export import IFindMinifiedRequest = Nomalism.CLT.IFindMinifiedRequest;
|
|
10
|
+
|
|
11
|
+
export default class Repository implements Nomalism.CLT.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 find(): Promise<IEntity[]> {
|
|
30
|
+
const response = await this.api.get(`${this.route}`);
|
|
31
|
+
return response.data;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
async findMinified(params?: IFindMinifiedRequest): Promise<IEntity[]> {
|
|
35
|
+
const response = await this.api.get(`${this.route}minified`, {
|
|
36
|
+
params,
|
|
37
|
+
});
|
|
38
|
+
return response.data;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
async findById(id: Nomalism.shared.IFindByIdNumberRequest): Promise<IEntity | null> {
|
|
42
|
+
const response = await this.api.get(`${this.route}${id}`);
|
|
43
|
+
return response.data;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
async update(id: Nomalism.shared.IFindByIdNumberRequest, body: IUpdateRequest): Promise<void> {
|
|
47
|
+
await this.api.post(`${this.route}${id}`, body);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async deleteOne(id: Nomalism.shared.IFindByIdNumberRequest): Promise<void> {
|
|
51
|
+
await this.api.delete(`${this.route}${id}`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IEntity = Nomalism.TicketsLanguage.Entity;
|
|
6
|
+
|
|
7
|
+
export import ICreateRequest = Nomalism.TicketsLanguage.ICreateRequest;
|
|
8
|
+
export import IUpdateRequest = Nomalism.TicketsLanguage.IUpdateRequest;
|
|
9
|
+
export import IFindMinifiedRequest = Nomalism.TicketsLanguage.IFindMinifiedRequest;
|
|
10
|
+
|
|
11
|
+
export default class Repository implements Nomalism.TicketsLanguage.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 find(): Promise<IEntity[]> {
|
|
30
|
+
const response = await this.api.get(`${this.route}`);
|
|
31
|
+
return response.data;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
async findMinified(params?: IFindMinifiedRequest): Promise<IEntity[]> {
|
|
35
|
+
const response = await this.api.get(`${this.route}minified`, {
|
|
36
|
+
params,
|
|
37
|
+
});
|
|
38
|
+
return response.data;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
async findById(id: Nomalism.shared.IFindByIdNumberRequest): Promise<IEntity | null> {
|
|
42
|
+
const response = await this.api.get(`${this.route}${id}`);
|
|
43
|
+
return response.data;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
async update(id: Nomalism.shared.IFindByIdNumberRequest, body: IUpdateRequest): Promise<void> {
|
|
47
|
+
await this.api.post(`${this.route}${id}`, body);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async deleteOne(id: Nomalism.shared.IFindByIdNumberRequest): Promise<void> {
|
|
51
|
+
await this.api.delete(`${this.route}${id}`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -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 IEntity = Nomalism.Tickets.Entity;
|
|
6
|
+
|
|
7
|
+
export import ITicketCreateRequest = Nomalism.Tickets.ITicketCreateRequest;
|
|
8
|
+
export import ITicketCreateResponse = Nomalism.Tickets.ITicketCreateResponse;
|
|
9
|
+
|
|
10
|
+
export import ITicketUpdateRequest = Nomalism.Tickets.ITicketUpdateRequest;
|
|
11
|
+
export import ITicketUpdateResponse = Nomalism.Tickets.ITicketUpdateResponse;
|
|
12
|
+
|
|
13
|
+
export import ITicketUndoResponse = Nomalism.Tickets.ITicketUndoResponse;
|
|
14
|
+
|
|
15
|
+
export import ITicketsFindTodayResponse = Nomalism.Tickets.ITicketsFindTodayResponse;
|
|
16
|
+
|
|
17
|
+
export default class Repository implements Nomalism.Tickets.IRepository {
|
|
18
|
+
public route: string;
|
|
19
|
+
|
|
20
|
+
public publicRoute: string;
|
|
21
|
+
|
|
22
|
+
private api: AxiosInstance;
|
|
23
|
+
|
|
24
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
25
|
+
this.api = api;
|
|
26
|
+
this.route = route;
|
|
27
|
+
this.publicRoute = publicRoute;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
async create(body: ITicketCreateRequest): Promise<ITicketCreateResponse> {
|
|
31
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
32
|
+
return response.data;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
async findToday(): Promise<ITicketsFindTodayResponse> {
|
|
36
|
+
const response = await this.api.get(`${this.route}find_today`);
|
|
37
|
+
return response.data;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
async update(body: ITicketUpdateRequest): Promise<ITicketUpdateResponse> {
|
|
41
|
+
const response = await this.api.put(`${this.route}`, body);
|
|
42
|
+
return response.data;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
async undoLastCall(): Promise<ITicketUndoResponse> {
|
|
46
|
+
const response = await this.api.put(`${this.route}undo_last_call`);
|
|
47
|
+
return response.data;
|
|
48
|
+
}
|
|
49
|
+
}
|