@nomalism-com/api 0.33.82 → 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 +24 -23
- 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,20 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { IModuleConstructor } from '../../main';
|
|
3
|
+
|
|
4
|
+
export default class Repository {
|
|
5
|
+
public route: string;
|
|
6
|
+
|
|
7
|
+
public publicRoute: string;
|
|
8
|
+
|
|
9
|
+
private api: AxiosInstance;
|
|
10
|
+
|
|
11
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
12
|
+
this.api = api;
|
|
13
|
+
this.route = route;
|
|
14
|
+
this.publicRoute = publicRoute;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
async logout(): Promise<void> {
|
|
18
|
+
await this.api.post(`${this.route}`);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -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.MaturityDates.Entity;
|
|
6
|
+
|
|
7
|
+
export import ICreateRequest = Nomalism.MaturityDates.ICreateRequest;
|
|
8
|
+
|
|
9
|
+
export import IUpdateRequest = Nomalism.MaturityDates.IUpdateRequest;
|
|
10
|
+
|
|
11
|
+
export import IFindMinifiedRequest = Nomalism.shared.IFindMinifiedRequest;
|
|
12
|
+
export import IFindMinifiedResponse = Nomalism.shared.IFindMinifiedResponse;
|
|
13
|
+
|
|
14
|
+
export default class Repository implements Nomalism.MaturityDates.IRepository {
|
|
15
|
+
public route: string;
|
|
16
|
+
|
|
17
|
+
public publicRoute: string;
|
|
18
|
+
|
|
19
|
+
private api: AxiosInstance;
|
|
20
|
+
|
|
21
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
22
|
+
this.api = api;
|
|
23
|
+
this.route = route;
|
|
24
|
+
this.publicRoute = publicRoute;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
async find(): Promise<IEntity[]> {
|
|
28
|
+
const response = await this.api.get(`${this.route}`);
|
|
29
|
+
return response.data;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
async findById(selector: Nomalism.shared.IFindByIdRequest): Promise<IEntity | null> {
|
|
33
|
+
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
34
|
+
return response.data;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async findMinified(params?: IFindMinifiedRequest): Promise<IFindMinifiedResponse[]> {
|
|
38
|
+
const response = await this.api.get(`${this.route}minified`, {
|
|
39
|
+
params,
|
|
40
|
+
});
|
|
41
|
+
return response.data;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
async create(body: ICreateRequest): Promise<IEntity> {
|
|
45
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
46
|
+
return response.data;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
async update(
|
|
50
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
51
|
+
body: IUpdateRequest,
|
|
52
|
+
): Promise<IEntity | null> {
|
|
53
|
+
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
54
|
+
return response.data;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<IEntity | null> {
|
|
58
|
+
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
59
|
+
return response.data;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -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 IForgotPassword = Nomalism.Password.IForgotPassword;
|
|
6
|
+
|
|
7
|
+
export import IResetPassword = Nomalism.Password.IResetPassword;
|
|
8
|
+
|
|
9
|
+
export default class Repository implements Nomalism.Password.IRepository {
|
|
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 forgotPassword(body: IForgotPassword): Promise<void> {
|
|
23
|
+
await this.api.post(`${this.publicRoute}forgot`, body);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
async resetPassword(body: IResetPassword): Promise<void> {
|
|
27
|
+
await this.api.post(`${this.publicRoute}reset`, body);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -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.PaymentMethods.Entity;
|
|
6
|
+
|
|
7
|
+
export import ICreateRequest = Nomalism.PaymentMethods.ICreateRequest;
|
|
8
|
+
|
|
9
|
+
export import IUpdateRequest = Nomalism.PaymentMethods.IUpdateRequest;
|
|
10
|
+
|
|
11
|
+
export import IFindMinifiedRequest = Nomalism.shared.IFindMinifiedRequest;
|
|
12
|
+
export import IFindMinifiedResponse = Nomalism.shared.IFindMinifiedResponse;
|
|
13
|
+
|
|
14
|
+
export default class Repository implements Nomalism.PaymentMethods.IRepository {
|
|
15
|
+
public route: string;
|
|
16
|
+
|
|
17
|
+
public publicRoute: string;
|
|
18
|
+
|
|
19
|
+
private api: AxiosInstance;
|
|
20
|
+
|
|
21
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
22
|
+
this.api = api;
|
|
23
|
+
this.route = route;
|
|
24
|
+
this.publicRoute = publicRoute;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
async find(): Promise<IEntity[]> {
|
|
28
|
+
const response = await this.api.get(`${this.route}`);
|
|
29
|
+
return response.data;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
async findById(selector: Nomalism.shared.IFindByIdRequest): Promise<IEntity | null> {
|
|
33
|
+
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
34
|
+
return response.data;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async findMinified(params?: IFindMinifiedRequest): Promise<IFindMinifiedResponse[]> {
|
|
38
|
+
const response = await this.api.get(`${this.route}minified`, {
|
|
39
|
+
params,
|
|
40
|
+
});
|
|
41
|
+
return response.data;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
async create(body: ICreateRequest): Promise<IEntity> {
|
|
45
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
46
|
+
return response.data;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
async update(
|
|
50
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
51
|
+
body: IUpdateRequest,
|
|
52
|
+
): Promise<IEntity | null> {
|
|
53
|
+
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
54
|
+
return response.data;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<IEntity | null> {
|
|
58
|
+
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
59
|
+
return response.data;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IFindMinifiedRequest = Nomalism.shared.IFindMinifiedRequest;
|
|
6
|
+
export import IFindMinifiedResponse = Nomalism.shared.IFindMinifiedResponse;
|
|
7
|
+
|
|
8
|
+
export import ICreateRequest = Nomalism.Permissions.ICreateRequest;
|
|
9
|
+
export import IEntity = Nomalism.Permissions.Entity;
|
|
10
|
+
|
|
11
|
+
export default class Repository implements Nomalism.Permissions.IApi {
|
|
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 find(): Promise<Nomalism.Permissions.Entity[]> {
|
|
25
|
+
const response = await this.api.get(`${this.route}`);
|
|
26
|
+
return response.data;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
async findMinified(params?: IFindMinifiedRequest): Promise<IFindMinifiedResponse[]> {
|
|
30
|
+
const response = await this.api.get(`${this.route}minified`, {
|
|
31
|
+
params,
|
|
32
|
+
});
|
|
33
|
+
return response.data;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
async create(body: ICreateRequest): Promise<IEntity> {
|
|
37
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
38
|
+
return response.data;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
async deleteOne(selector: Nomalism.shared.IFindByIdNumberRequest): Promise<IEntity | null> {
|
|
42
|
+
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
43
|
+
return response.data;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IEntityExtended = Nomalism.Persona.IEntityExtended;
|
|
6
|
+
export import IFindByOwnerIdRequest = Nomalism.shared.IFindByOwnerIdRequest;
|
|
7
|
+
export import ICreateRequest = Nomalism.Persona.ICreateRequest;
|
|
8
|
+
export import IUpdateRequest = Nomalism.Persona.IUpdateRequest;
|
|
9
|
+
|
|
10
|
+
export import IBasicSearchRequest = Nomalism.Persona.IBasicSearchRequest;
|
|
11
|
+
export import IBasicSearchResponse = Nomalism.Persona.IBasicSearchResponse;
|
|
12
|
+
|
|
13
|
+
export import IFindByOwnerIdResponse = Nomalism.Persona.IFindByOwnerIdResponse;
|
|
14
|
+
|
|
15
|
+
export import IFindRequest = Nomalism.Persona.IFindRequest;
|
|
16
|
+
export import IFindResponse = Nomalism.Persona.IFindResponse;
|
|
17
|
+
|
|
18
|
+
export default class Repository implements Nomalism.Persona.IRepository {
|
|
19
|
+
public route: string;
|
|
20
|
+
|
|
21
|
+
public publicRoute: string;
|
|
22
|
+
|
|
23
|
+
private api: AxiosInstance;
|
|
24
|
+
|
|
25
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
26
|
+
this.api = api;
|
|
27
|
+
this.route = route;
|
|
28
|
+
this.publicRoute = publicRoute;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
async findByOwnerId(params: IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]> {
|
|
32
|
+
const response = await this.api.get(`${this.route}by_owner`, {
|
|
33
|
+
params,
|
|
34
|
+
});
|
|
35
|
+
return response.data;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
async findById(selector: Nomalism.shared.IFindByIdRequest): Promise<IEntityExtended | null> {
|
|
39
|
+
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
40
|
+
return response.data;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async findContactPersonaByOwnerId(
|
|
44
|
+
params: Nomalism.shared.IFindByOwnerIdRequest,
|
|
45
|
+
): Promise<Nomalism.Persona.IFindContactPersonaByOwnerId> {
|
|
46
|
+
const response = await this.api.get(`${this.route}contact`, { params });
|
|
47
|
+
return response.data;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async create(body: ICreateRequest): Promise<IEntityExtended> {
|
|
51
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
52
|
+
return response.data;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async update(
|
|
56
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
57
|
+
body: IUpdateRequest,
|
|
58
|
+
): Promise<IEntityExtended | null> {
|
|
59
|
+
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
60
|
+
return response.data;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
async deleteOne(params: Nomalism.Persona.IDeletePersonaRequest): Promise<IEntityExtended | null> {
|
|
64
|
+
const response = await this.api.delete(`${this.route}`, { params });
|
|
65
|
+
return response.data;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
async findByBasic(
|
|
69
|
+
params: IBasicSearchRequest,
|
|
70
|
+
): Promise<Nomalism.shared.IPaginationResponse<IBasicSearchResponse>> {
|
|
71
|
+
const response = await this.api.get(`${this.route}basic_search`, {
|
|
72
|
+
params,
|
|
73
|
+
});
|
|
74
|
+
return response.data;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
async find(data: IFindRequest): Promise<IFindResponse[]> {
|
|
78
|
+
const response = await this.api.get(`${this.route}`, {
|
|
79
|
+
data,
|
|
80
|
+
});
|
|
81
|
+
return response.data;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
async findByEmail(
|
|
85
|
+
data: Nomalism.Persona.IFindByEmailRequest,
|
|
86
|
+
): Promise<Nomalism.Persona.IFindByEmailResponse[]> {
|
|
87
|
+
const response = await this.api.get(`${this.route}by_email`, {
|
|
88
|
+
data,
|
|
89
|
+
});
|
|
90
|
+
return response.data;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IFindByQueryRequest = Nomalism.Providers.IFindByQueryRequest;
|
|
6
|
+
|
|
7
|
+
export import IFindRequest = Nomalism.Providers.IFindRequest;
|
|
8
|
+
export import IFindResponse = Nomalism.Providers.IFindResponse;
|
|
9
|
+
|
|
10
|
+
export import IFindPaginatedRequest = Nomalism.Providers.IFindPaginatedRequest;
|
|
11
|
+
|
|
12
|
+
export import IFindMinifiedRequest = Nomalism.shared.IFindMinifiedRequest;
|
|
13
|
+
export import IFindMinifiedResponse = Nomalism.shared.IFindMinifiedResponse;
|
|
14
|
+
|
|
15
|
+
export import IFindByOwnerIdRequest = Nomalism.shared.IFindByOwnerIdRequest;
|
|
16
|
+
export import IFindByOwnerIdResponse = Nomalism.Providers.IFindByOwnerIdResponse;
|
|
17
|
+
|
|
18
|
+
export import IFindByIdResponse = Nomalism.Providers.IFindByIdResponse;
|
|
19
|
+
|
|
20
|
+
export import ICreateRequest = Nomalism.Providers.ICreateRequest;
|
|
21
|
+
|
|
22
|
+
export import IEntity = Nomalism.Providers.Entity;
|
|
23
|
+
|
|
24
|
+
export import IUpdateRequest = Nomalism.Providers.IUpdateRequest;
|
|
25
|
+
export type IPaginationResponse =
|
|
26
|
+
Nomalism.shared.IPaginationResponse<Nomalism.Providers.IFindResponse>;
|
|
27
|
+
|
|
28
|
+
export default class Repository implements Nomalism.Providers.IRepository {
|
|
29
|
+
public route: string;
|
|
30
|
+
|
|
31
|
+
public publicRoute: string;
|
|
32
|
+
|
|
33
|
+
private api: AxiosInstance;
|
|
34
|
+
|
|
35
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
36
|
+
this.api = api;
|
|
37
|
+
this.route = route;
|
|
38
|
+
this.publicRoute = publicRoute;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
async findByQuery(data: IFindRequest): Promise<IFindResponse[]> {
|
|
42
|
+
const response = await this.api.post(`${this.route}query`, data);
|
|
43
|
+
return response.data;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
async find(params: IFindRequest): Promise<IFindResponse[]> {
|
|
47
|
+
const response = await this.api.get(`${this.route}`, { params });
|
|
48
|
+
return response.data;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
async findPaginated(params: IFindPaginatedRequest): Promise<IPaginationResponse> {
|
|
52
|
+
const response = await this.api.get(`${this.route}paginated`, { params });
|
|
53
|
+
return response.data;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async findMinified(params?: IFindMinifiedRequest): Promise<IFindMinifiedResponse[]> {
|
|
57
|
+
const response = await this.api.get(`${this.route}minified`, {
|
|
58
|
+
params,
|
|
59
|
+
});
|
|
60
|
+
return response.data;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
async findMinifiedManufacturer(params?: IFindMinifiedRequest): Promise<IFindMinifiedResponse[]> {
|
|
64
|
+
const response = await this.api.get(`${this.route}minified_manufacturer`, {
|
|
65
|
+
params,
|
|
66
|
+
});
|
|
67
|
+
return response.data;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
async findByOwnerId(params: IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]> {
|
|
71
|
+
const response = await this.api.get(`${this.route}by_owner`, {
|
|
72
|
+
params,
|
|
73
|
+
});
|
|
74
|
+
return response.data;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
async findById(selector: Nomalism.shared.IFindByIdRequest): Promise<IFindByIdResponse | null> {
|
|
78
|
+
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
79
|
+
return response.data;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
async create(body: ICreateRequest): Promise<IFindResponse> {
|
|
83
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
84
|
+
return response.data;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
async update(
|
|
88
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
89
|
+
body: IUpdateRequest,
|
|
90
|
+
): Promise<IFindResponse | null> {
|
|
91
|
+
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
92
|
+
return response.data;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
async deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<IFindResponse | null> {
|
|
96
|
+
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
97
|
+
return response.data;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IFindRequest = Nomalism.ProviderType.IFindRequest;
|
|
6
|
+
export import IFindResponse = Nomalism.ProviderType.IFindResponse;
|
|
7
|
+
|
|
8
|
+
export import IFindPaginatedRequest = Nomalism.ProviderType.IFindPaginatedRequest;
|
|
9
|
+
|
|
10
|
+
export import IFindMinifiedRequest = Nomalism.shared.IFindMinifiedRequest;
|
|
11
|
+
export import IFindMinifiedResponse = Nomalism.shared.IFindMinifiedResponse;
|
|
12
|
+
|
|
13
|
+
export import ICreateRequest = Nomalism.ProviderType.ICreateRequest;
|
|
14
|
+
export import IEntity = Nomalism.ProviderType.Entity;
|
|
15
|
+
|
|
16
|
+
export import IUpdateRequest = Nomalism.ProviderType.IUpdateRequest;
|
|
17
|
+
export type IPaginationResponse =
|
|
18
|
+
Nomalism.shared.IPaginationResponse<Nomalism.ProviderType.IFindResponse>;
|
|
19
|
+
|
|
20
|
+
export default class Repository implements Nomalism.ProviderType.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(params: IFindRequest): Promise<IFindResponse[]> {
|
|
34
|
+
const response = await this.api.get(`${this.route}`, { params });
|
|
35
|
+
return response.data;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
async findPaginated(params: IFindPaginatedRequest): Promise<IPaginationResponse> {
|
|
39
|
+
const response = await this.api.get(`${this.route}paginated`, { params });
|
|
40
|
+
return response.data;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async findMinified(params?: IFindMinifiedRequest): Promise<IFindMinifiedResponse[]> {
|
|
44
|
+
const response = await this.api.get(`${this.route}minified`, {
|
|
45
|
+
params,
|
|
46
|
+
});
|
|
47
|
+
return response.data;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async findById(selector: Nomalism.shared.IFindByIdRequest): Promise<IFindResponse | null> {
|
|
51
|
+
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
52
|
+
return response.data;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async create(body: ICreateRequest): Promise<IEntity> {
|
|
56
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
57
|
+
return response.data;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async update(
|
|
61
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
62
|
+
body: IUpdateRequest,
|
|
63
|
+
): Promise<IEntity | null> {
|
|
64
|
+
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
65
|
+
return response.data;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
async deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<IEntity | null> {
|
|
69
|
+
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
70
|
+
return response.data;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IEntity = Nomalism.PurchaseConditions.Entity;
|
|
6
|
+
|
|
7
|
+
export import IFindRequest = Nomalism.PurchaseConditions.IFindRequest;
|
|
8
|
+
|
|
9
|
+
export import IFindByOwnerIdRequest = Nomalism.shared.IFindByOwnerIdRequest;
|
|
10
|
+
|
|
11
|
+
export import ICreateRequest = Nomalism.PurchaseConditions.ICreateRequest;
|
|
12
|
+
|
|
13
|
+
export import IUpdateRequest = Nomalism.PurchaseConditions.IUpdateRequest;
|
|
14
|
+
|
|
15
|
+
export import IFindPaginatedRequest = Nomalism.PurchaseConditions.IFindPaginatedRequest;
|
|
16
|
+
export type IPaginationResponse =
|
|
17
|
+
Nomalism.shared.IPaginationResponse<Nomalism.PurchaseConditions.Entity>;
|
|
18
|
+
|
|
19
|
+
export default class Repository implements Nomalism.PurchaseConditions.IRepository {
|
|
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<IEntity[]> {
|
|
33
|
+
const response = await this.api.get(`${this.route}`, { params });
|
|
34
|
+
return response.data;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async findPaginated(params: IFindPaginatedRequest): Promise<IPaginationResponse> {
|
|
38
|
+
const response = await this.api.get(`${this.route}paginated`, { params });
|
|
39
|
+
return response.data;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
async findByOwnerId(params: IFindByOwnerIdRequest): Promise<IEntity[]> {
|
|
43
|
+
const response = await this.api.get(`${this.route}by_owner`, {
|
|
44
|
+
params,
|
|
45
|
+
});
|
|
46
|
+
return response.data;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
async findById(selector: Nomalism.shared.IFindByIdRequest): Promise<IEntity | null> {
|
|
50
|
+
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
51
|
+
return response.data;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
async create(body: ICreateRequest): Promise<IEntity> {
|
|
55
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
56
|
+
return response.data;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async update(
|
|
60
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
61
|
+
body: IUpdateRequest,
|
|
62
|
+
): Promise<IEntity | null> {
|
|
63
|
+
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
64
|
+
return response.data;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
async deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<IEntity | null> {
|
|
68
|
+
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
69
|
+
return response.data;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import IFindRequest = Nomalism.ReasonForExemption.IFindRequest;
|
|
6
|
+
export import IFindResponse = Nomalism.ReasonForExemption.IFindResponse;
|
|
7
|
+
|
|
8
|
+
export import IFindPaginatedRequest = Nomalism.ReasonForExemption.IFindPaginatedRequest;
|
|
9
|
+
|
|
10
|
+
export import IFindMinifiedRequest = Nomalism.shared.IFindMinifiedRequest;
|
|
11
|
+
export import IFindMinifiedResponse = Nomalism.shared.IFindMinifiedResponse;
|
|
12
|
+
|
|
13
|
+
export import ICreateRequest = Nomalism.ReasonForExemption.ICreateRequest;
|
|
14
|
+
export import IEntity = Nomalism.ReasonForExemption.Entity;
|
|
15
|
+
|
|
16
|
+
export import IUpdateRequest = Nomalism.ReasonForExemption.IUpdateRequest;
|
|
17
|
+
export type IPaginationResponse =
|
|
18
|
+
Nomalism.shared.IPaginationResponse<Nomalism.ReasonForExemption.IFindResponse>;
|
|
19
|
+
|
|
20
|
+
export default class Repository implements Nomalism.ReasonForExemption.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(params: IFindRequest): Promise<IFindResponse[]> {
|
|
34
|
+
const response = await this.api.get(`${this.route}`, { params });
|
|
35
|
+
return response.data;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
async findPaginated(params: IFindPaginatedRequest): Promise<IPaginationResponse> {
|
|
39
|
+
const response = await this.api.get(`${this.route}paginated`, { params });
|
|
40
|
+
return response.data;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async findMinified(params?: IFindMinifiedRequest): Promise<IFindMinifiedResponse[]> {
|
|
44
|
+
const response = await this.api.get(`${this.route}minified`, {
|
|
45
|
+
params,
|
|
46
|
+
});
|
|
47
|
+
return response.data;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async findById(selector: Nomalism.shared.IFindByIdRequest): Promise<IFindResponse | null> {
|
|
51
|
+
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
52
|
+
return response.data;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async create(body: ICreateRequest): Promise<IEntity> {
|
|
56
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
57
|
+
return response.data;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async update(
|
|
61
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
62
|
+
body: IUpdateRequest,
|
|
63
|
+
): Promise<IEntity | null> {
|
|
64
|
+
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
65
|
+
return response.data;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
async deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<IEntity | null> {
|
|
69
|
+
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
70
|
+
return response.data;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { IModuleConstructor } from '../../main';
|
|
4
|
+
|
|
5
|
+
export import ICreateRequest = Nomalism.RefreshToken.ICreateRequest;
|
|
6
|
+
export import ICreateResponse = Nomalism.RefreshToken.ICreateResponse;
|
|
7
|
+
|
|
8
|
+
export default class Repository implements Nomalism.RefreshToken.IRepository {
|
|
9
|
+
public route: string;
|
|
10
|
+
|
|
11
|
+
public publicRoute: string;
|
|
12
|
+
|
|
13
|
+
private api: AxiosInstance;
|
|
14
|
+
|
|
15
|
+
constructor({ api, route, publicRoute }: IModuleConstructor) {
|
|
16
|
+
this.api = api;
|
|
17
|
+
this.route = route;
|
|
18
|
+
this.publicRoute = publicRoute;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
async create(body: ICreateRequest): Promise<ICreateResponse> {
|
|
22
|
+
const response = await this.api.post(`${this.publicRoute}`, body);
|
|
23
|
+
return response.data;
|
|
24
|
+
}
|
|
25
|
+
}
|