@nomalism-com/api 0.34.2 → 0.34.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4333 -3
- package/dist/index.d.ts +1964 -3
- package/dist/index.js +4333 -3
- package/package-lock.json +2163 -253
- package/package.json +12 -10
- package/src/modules/document/inventario.ts +1 -3
- package/src/modules/document/materialEntrance.ts +17 -53
- package/src/modules/document/order.ts +9 -27
- package/src/modules/document/propostaSheets.ts +10 -25
- package/src/modules/document/purchase.ts +2 -10
- package/src/modules/document/quebra.ts +4 -10
- package/src/modules/document/returnToProvider.ts +5 -11
- package/src/modules/document/transformado.ts +1 -5
- package/src/modules/document/upfrontReturn.ts +4 -3
- package/src/modules/documentManagement/multimedia.ts +0 -2
- package/src/modules/integration/emailLog.ts +8 -12
- package/src/modules/integration/emailTemplate.ts +6 -12
- package/src/modules/integration/emailTemplateAttachment.ts +1 -5
- package/src/modules/integration/googleFilePermission.ts +10 -7
- package/src/modules/integration/googleSheets.ts +10 -19
- package/src/modules/integration/observation.ts +14 -16
- package/src/modules/integration/observationType.ts +12 -14
- package/src/modules/integration/projectInfo.ts +1 -3
- package/src/modules/integration/settings.ts +9 -10
- package/src/modules/print/npc.ts +5 -9
- package/src/modules/print/printer.ts +7 -11
- package/src/modules/stock/file.ts +7 -7
- package/src/modules/stock/location.ts +19 -25
- package/src/modules/stock/prison.ts +5 -20
- package/src/modules/stock/productGoogleSheets.ts +2 -3
- package/src/modules/stock/productImage.ts +18 -29
- package/src/modules/stock/promotion.ts +19 -26
- package/src/modules/stock/promotionAssoc.ts +18 -24
- package/src/modules/stock/queryList.ts +11 -22
- package/src/modules/stock/queryParameter.ts +10 -17
- package/src/modules/stock/returnReason.ts +7 -11
- package/src/modules/stock/savedProviderProposal.ts +5 -7
- package/src/modules/stock/schedule.ts +1 -7
- package/src/modules/stock/sideMenu.ts +6 -10
- package/src/modules/stock/stockMovement.ts +13 -20
- package/src/modules/stock/typeOfLocation.ts +23 -26
- package/src/modules/stock/unitOfMeasure.ts +23 -26
- package/src/modules/stock/vatTax.ts +19 -26
- package/src/modules/stock/vatTaxZone.ts +23 -28
- package/src/modules/supply/clientCurrentAccount.ts +14 -26
- package/src/modules/supply/documentHeader.ts +41 -67
- package/src/modules/supply/documentLine.ts +17 -29
- package/src/modules/supply/documentLineAssoc.ts +12 -18
- package/src/modules/supply/documentLineNote.ts +5 -7
- package/src/modules/supply/documentSet.ts +13 -16
- package/src/modules/supply/documentType.ts +15 -29
- package/src/modules/supply/externalDocumentHeader.ts +23 -26
- package/src/modules/supply/externalDocumentType.ts +4 -7
- package/src/modules/supply/orderManagement.ts +5 -7
- package/src/modules/supply/payment.ts +29 -55
- package/src/modules/supply/preSale.ts +16 -30
- package/src/modules/supply/preSaleProduct.ts +4 -4
- package/src/modules/supply/providerCurrentAccount.ts +3 -5
- package/src/modules/supply/startDocumentHeaderLastUpdate.ts +3 -3
- package/src/modules/supply/vatValidation.ts +1 -3
- package/src/modules/supply/workflow.ts +12 -20
- package/src/modules/tickets/channel.ts +12 -13
- package/src/modules/tickets/clt.ts +8 -11
- package/src/modules/tickets/language.ts +14 -11
- package/src/modules/tickets/tickets.ts +8 -16
- package/src/modules/user/bankData.ts +16 -24
- package/src/modules/user/chatSubscriber.ts +0 -4
- package/src/modules/user/clientType.ts +18 -23
- package/src/modules/user/clients.ts +23 -32
- package/src/modules/user/commissioner.ts +23 -27
- package/src/modules/user/country.ts +19 -21
- package/src/modules/user/deliveryMethods.ts +15 -16
- package/src/modules/user/favorites.ts +6 -11
- package/src/modules/user/groupPermission.ts +9 -9
- package/src/modules/user/language.ts +16 -20
- package/src/modules/user/maturityDates.ts +15 -16
- package/src/modules/user/password.ts +2 -6
- package/src/modules/user/paymentMethods.ts +15 -16
- package/src/modules/user/permission.ts +7 -9
- package/src/modules/user/persona.ts +15 -22
- package/src/modules/user/provider.ts +25 -34
- package/src/modules/user/providerType.ts +18 -20
- package/src/modules/user/purchaseCondition.ts +20 -22
- package/src/modules/user/reasonForExemption.ts +20 -23
- package/src/modules/user/refreshToken.ts +3 -4
- package/src/modules/user/segmentsArea.ts +18 -23
- package/src/modules/user/sessions.ts +1 -4
- package/src/modules/user/shippings.ts +16 -22
- package/src/modules/user/storeOperator.ts +26 -33
- package/src/modules/user/swift.ts +14 -20
- package/src/modules/user/tenant.ts +7 -10
- package/src/modules/user/theme.ts +1 -5
- package/src/modules/user/user.ts +20 -34
- package/src/modules/user/userPermission.ts +7 -10
- package/src/modules/user/userPositions.ts +20 -23
- package/src/modules/user/vehicles.ts +7 -11
- package/src/modules/user/zipCode.ts +4 -7
- package/tsconfig.json +1 -1
- package/tsup.config.ts +13 -0
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/main.d.ts +0 -356
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js +0 -371
- package/dist/main.js.map +0 -1
- package/dist/modules/document/billOfLading.d.ts +0 -10
- package/dist/modules/document/billOfLading.d.ts.map +0 -1
- package/dist/modules/document/billOfLading.js +0 -12
- package/dist/modules/document/billOfLading.js.map +0 -1
- package/dist/modules/document/inventario.d.ts +0 -11
- package/dist/modules/document/inventario.d.ts.map +0 -1
- package/dist/modules/document/inventario.js +0 -11
- package/dist/modules/document/inventario.js.map +0 -1
- package/dist/modules/document/materialEntrance.d.ts +0 -39
- package/dist/modules/document/materialEntrance.d.ts.map +0 -1
- package/dist/modules/document/materialEntrance.js +0 -51
- package/dist/modules/document/materialEntrance.js.map +0 -1
- package/dist/modules/document/order.d.ts +0 -67
- package/dist/modules/document/order.d.ts.map +0 -1
- package/dist/modules/document/order.js +0 -49
- package/dist/modules/document/order.js.map +0 -1
- package/dist/modules/document/productionOrder.d.ts +0 -10
- package/dist/modules/document/productionOrder.d.ts.map +0 -1
- package/dist/modules/document/productionOrder.js +0 -11
- package/dist/modules/document/productionOrder.js.map +0 -1
- package/dist/modules/document/proforma.d.ts +0 -10
- package/dist/modules/document/proforma.d.ts.map +0 -1
- package/dist/modules/document/proforma.js +0 -12
- package/dist/modules/document/proforma.js.map +0 -1
- package/dist/modules/document/propostaFornecedor.d.ts +0 -10
- package/dist/modules/document/propostaFornecedor.d.ts.map +0 -1
- package/dist/modules/document/propostaFornecedor.js +0 -12
- package/dist/modules/document/propostaFornecedor.js.map +0 -1
- package/dist/modules/document/propostaSheets.d.ts +0 -28
- package/dist/modules/document/propostaSheets.d.ts.map +0 -1
- package/dist/modules/document/propostaSheets.js +0 -51
- package/dist/modules/document/propostaSheets.js.map +0 -1
- package/dist/modules/document/providerCreditNoteFromReturn.d.ts +0 -11
- package/dist/modules/document/providerCreditNoteFromReturn.d.ts.map +0 -1
- package/dist/modules/document/providerCreditNoteFromReturn.js +0 -17
- package/dist/modules/document/providerCreditNoteFromReturn.js.map +0 -1
- package/dist/modules/document/providerFinancialCreditNote.d.ts +0 -11
- package/dist/modules/document/providerFinancialCreditNote.d.ts.map +0 -1
- package/dist/modules/document/providerFinancialCreditNote.js +0 -17
- package/dist/modules/document/providerFinancialCreditNote.js.map +0 -1
- package/dist/modules/document/providerServiceInvoice.d.ts +0 -10
- package/dist/modules/document/providerServiceInvoice.d.ts.map +0 -1
- package/dist/modules/document/providerServiceInvoice.js +0 -11
- package/dist/modules/document/providerServiceInvoice.js.map +0 -1
- package/dist/modules/document/purchase.d.ts +0 -18
- package/dist/modules/document/purchase.d.ts.map +0 -1
- package/dist/modules/document/purchase.js +0 -25
- package/dist/modules/document/purchase.js.map +0 -1
- package/dist/modules/document/quebra.d.ts +0 -17
- package/dist/modules/document/quebra.d.ts.map +0 -1
- package/dist/modules/document/quebra.js +0 -27
- package/dist/modules/document/quebra.js.map +0 -1
- package/dist/modules/document/returnToProvider.d.ts +0 -17
- package/dist/modules/document/returnToProvider.d.ts.map +0 -1
- package/dist/modules/document/returnToProvider.js +0 -21
- package/dist/modules/document/returnToProvider.js.map +0 -1
- package/dist/modules/document/transformado.d.ts +0 -12
- package/dist/modules/document/transformado.d.ts.map +0 -1
- package/dist/modules/document/transformado.js +0 -12
- package/dist/modules/document/transformado.js.map +0 -1
- package/dist/modules/document/upfrontReturn.d.ts +0 -11
- package/dist/modules/document/upfrontReturn.d.ts.map +0 -1
- package/dist/modules/document/upfrontReturn.js +0 -12
- package/dist/modules/document/upfrontReturn.js.map +0 -1
- package/dist/modules/documentManagement/multimedia.d.ts +0 -13
- package/dist/modules/documentManagement/multimedia.d.ts.map +0 -1
- package/dist/modules/documentManagement/multimedia.js +0 -27
- package/dist/modules/documentManagement/multimedia.js.map +0 -1
- package/dist/modules/integration/emailLog.d.ts +0 -19
- package/dist/modules/integration/emailLog.d.ts.map +0 -1
- package/dist/modules/integration/emailLog.js +0 -24
- package/dist/modules/integration/emailLog.js.map +0 -1
- package/dist/modules/integration/emailTemplate.d.ts +0 -19
- package/dist/modules/integration/emailTemplate.d.ts.map +0 -1
- package/dist/modules/integration/emailTemplate.js +0 -27
- package/dist/modules/integration/emailTemplate.js.map +0 -1
- package/dist/modules/integration/emailTemplateAttachment.d.ts +0 -13
- package/dist/modules/integration/emailTemplateAttachment.d.ts.map +0 -1
- package/dist/modules/integration/emailTemplateAttachment.js +0 -15
- package/dist/modules/integration/emailTemplateAttachment.js.map +0 -1
- package/dist/modules/integration/emailVerification.d.ts +0 -12
- package/dist/modules/integration/emailVerification.d.ts.map +0 -1
- package/dist/modules/integration/emailVerification.js +0 -20
- package/dist/modules/integration/emailVerification.js.map +0 -1
- package/dist/modules/integration/googleFilePermission.d.ts +0 -15
- package/dist/modules/integration/googleFilePermission.d.ts.map +0 -1
- package/dist/modules/integration/googleFilePermission.js +0 -24
- package/dist/modules/integration/googleFilePermission.js.map +0 -1
- package/dist/modules/integration/googleSheets.d.ts +0 -22
- package/dist/modules/integration/googleSheets.d.ts.map +0 -1
- package/dist/modules/integration/googleSheets.js +0 -25
- package/dist/modules/integration/googleSheets.js.map +0 -1
- package/dist/modules/integration/observation.d.ts +0 -20
- package/dist/modules/integration/observation.d.ts.map +0 -1
- package/dist/modules/integration/observation.js +0 -30
- package/dist/modules/integration/observation.js.map +0 -1
- package/dist/modules/integration/observationType.d.ts +0 -19
- package/dist/modules/integration/observationType.d.ts.map +0 -1
- package/dist/modules/integration/observationType.js +0 -30
- package/dist/modules/integration/observationType.js.map +0 -1
- package/dist/modules/integration/projectInfo.d.ts +0 -11
- package/dist/modules/integration/projectInfo.d.ts.map +0 -1
- package/dist/modules/integration/projectInfo.js +0 -11
- package/dist/modules/integration/projectInfo.js.map +0 -1
- package/dist/modules/integration/settings.d.ts +0 -18
- package/dist/modules/integration/settings.d.ts.map +0 -1
- package/dist/modules/integration/settings.js +0 -30
- package/dist/modules/integration/settings.js.map +0 -1
- package/dist/modules/print/npc.d.ts +0 -16
- package/dist/modules/print/npc.d.ts.map +0 -1
- package/dist/modules/print/npc.js +0 -20
- package/dist/modules/print/npc.js.map +0 -1
- package/dist/modules/print/printer.d.ts +0 -18
- package/dist/modules/print/printer.d.ts.map +0 -1
- package/dist/modules/print/printer.js +0 -27
- package/dist/modules/print/printer.js.map +0 -1
- package/dist/modules/print/schedulePrintJob.d.ts +0 -14
- package/dist/modules/print/schedulePrintJob.d.ts.map +0 -1
- package/dist/modules/print/schedulePrintJob.js +0 -25
- package/dist/modules/print/schedulePrintJob.js.map +0 -1
- package/dist/modules/stock/chat.d.ts +0 -16
- package/dist/modules/stock/chat.d.ts.map +0 -1
- package/dist/modules/stock/chat.js +0 -33
- package/dist/modules/stock/chat.js.map +0 -1
- package/dist/modules/stock/chatRapidMessage.d.ts +0 -14
- package/dist/modules/stock/chatRapidMessage.d.ts.map +0 -1
- package/dist/modules/stock/chatRapidMessage.js +0 -27
- package/dist/modules/stock/chatRapidMessage.js.map +0 -1
- package/dist/modules/stock/dashboard.d.ts +0 -10
- package/dist/modules/stock/dashboard.d.ts.map +0 -1
- package/dist/modules/stock/dashboard.js +0 -12
- package/dist/modules/stock/dashboard.js.map +0 -1
- package/dist/modules/stock/file.d.ts +0 -16
- package/dist/modules/stock/file.d.ts.map +0 -1
- package/dist/modules/stock/file.js +0 -25
- package/dist/modules/stock/file.js.map +0 -1
- package/dist/modules/stock/location.d.ts +0 -26
- package/dist/modules/stock/location.d.ts.map +0 -1
- package/dist/modules/stock/location.js +0 -44
- package/dist/modules/stock/location.js.map +0 -1
- package/dist/modules/stock/prison.d.ts +0 -23
- package/dist/modules/stock/prison.d.ts.map +0 -1
- package/dist/modules/stock/prison.js +0 -33
- package/dist/modules/stock/prison.js.map +0 -1
- package/dist/modules/stock/productGoogleSheets.d.ts +0 -33
- package/dist/modules/stock/productGoogleSheets.d.ts.map +0 -1
- package/dist/modules/stock/productGoogleSheets.js +0 -109
- package/dist/modules/stock/productGoogleSheets.js.map +0 -1
- package/dist/modules/stock/productImage.d.ts +0 -27
- package/dist/modules/stock/productImage.d.ts.map +0 -1
- package/dist/modules/stock/productImage.js +0 -41
- package/dist/modules/stock/productImage.js.map +0 -1
- package/dist/modules/stock/promotion.d.ts +0 -28
- package/dist/modules/stock/promotion.d.ts.map +0 -1
- package/dist/modules/stock/promotion.js +0 -59
- package/dist/modules/stock/promotion.js.map +0 -1
- package/dist/modules/stock/promotionAssoc.d.ts +0 -25
- package/dist/modules/stock/promotionAssoc.d.ts.map +0 -1
- package/dist/modules/stock/promotionAssoc.js +0 -38
- package/dist/modules/stock/promotionAssoc.js.map +0 -1
- package/dist/modules/stock/queryList.d.ts +0 -24
- package/dist/modules/stock/queryList.d.ts.map +0 -1
- package/dist/modules/stock/queryList.js +0 -50
- package/dist/modules/stock/queryList.js.map +0 -1
- package/dist/modules/stock/queryParameter.d.ts +0 -21
- package/dist/modules/stock/queryParameter.d.ts.map +0 -1
- package/dist/modules/stock/queryParameter.js +0 -34
- package/dist/modules/stock/queryParameter.js.map +0 -1
- package/dist/modules/stock/recurrentTasks.d.ts +0 -11
- package/dist/modules/stock/recurrentTasks.d.ts.map +0 -1
- package/dist/modules/stock/recurrentTasks.js +0 -14
- package/dist/modules/stock/recurrentTasks.js.map +0 -1
- package/dist/modules/stock/returnReason.d.ts +0 -16
- package/dist/modules/stock/returnReason.d.ts.map +0 -1
- package/dist/modules/stock/returnReason.js +0 -24
- package/dist/modules/stock/returnReason.js.map +0 -1
- package/dist/modules/stock/savedEmPicking.d.ts +0 -13
- package/dist/modules/stock/savedEmPicking.d.ts.map +0 -1
- package/dist/modules/stock/savedEmPicking.js +0 -22
- package/dist/modules/stock/savedEmPicking.js.map +0 -1
- package/dist/modules/stock/savedProviderProposal.d.ts +0 -16
- package/dist/modules/stock/savedProviderProposal.d.ts.map +0 -1
- package/dist/modules/stock/savedProviderProposal.js +0 -24
- package/dist/modules/stock/savedProviderProposal.js.map +0 -1
- package/dist/modules/stock/schedule.d.ts +0 -21
- package/dist/modules/stock/schedule.d.ts.map +0 -1
- package/dist/modules/stock/schedule.js +0 -13
- package/dist/modules/stock/schedule.js.map +0 -1
- package/dist/modules/stock/sideMenu.d.ts +0 -18
- package/dist/modules/stock/sideMenu.d.ts.map +0 -1
- package/dist/modules/stock/sideMenu.js +0 -28
- package/dist/modules/stock/sideMenu.js.map +0 -1
- package/dist/modules/stock/stockMovement.d.ts +0 -26
- package/dist/modules/stock/stockMovement.d.ts.map +0 -1
- package/dist/modules/stock/stockMovement.js +0 -37
- package/dist/modules/stock/stockMovement.js.map +0 -1
- package/dist/modules/stock/task.d.ts +0 -15
- package/dist/modules/stock/task.d.ts.map +0 -1
- package/dist/modules/stock/task.js +0 -30
- package/dist/modules/stock/task.js.map +0 -1
- package/dist/modules/stock/taskMessage.d.ts +0 -12
- package/dist/modules/stock/taskMessage.d.ts.map +0 -1
- package/dist/modules/stock/taskMessage.js +0 -18
- package/dist/modules/stock/taskMessage.js.map +0 -1
- package/dist/modules/stock/taskRead.d.ts +0 -11
- package/dist/modules/stock/taskRead.d.ts.map +0 -1
- package/dist/modules/stock/taskRead.js +0 -14
- package/dist/modules/stock/taskRead.js.map +0 -1
- package/dist/modules/stock/typeOfLocation.d.ts +0 -27
- package/dist/modules/stock/typeOfLocation.d.ts.map +0 -1
- package/dist/modules/stock/typeOfLocation.js +0 -44
- package/dist/modules/stock/typeOfLocation.js.map +0 -1
- package/dist/modules/stock/unitOfMeasure.d.ts +0 -27
- package/dist/modules/stock/unitOfMeasure.d.ts.map +0 -1
- package/dist/modules/stock/unitOfMeasure.js +0 -44
- package/dist/modules/stock/unitOfMeasure.js.map +0 -1
- package/dist/modules/stock/vatTax.d.ts +0 -27
- package/dist/modules/stock/vatTax.d.ts.map +0 -1
- package/dist/modules/stock/vatTax.js +0 -44
- package/dist/modules/stock/vatTax.js.map +0 -1
- package/dist/modules/stock/vatTaxZone.d.ts +0 -28
- package/dist/modules/stock/vatTaxZone.d.ts.map +0 -1
- package/dist/modules/stock/vatTaxZone.js +0 -44
- package/dist/modules/stock/vatTaxZone.js.map +0 -1
- package/dist/modules/supply/clientCurrentAccount.d.ts +0 -26
- package/dist/modules/supply/clientCurrentAccount.d.ts.map +0 -1
- package/dist/modules/supply/clientCurrentAccount.js +0 -43
- package/dist/modules/supply/clientCurrentAccount.js.map +0 -1
- package/dist/modules/supply/documentHeader.d.ts +0 -60
- package/dist/modules/supply/documentHeader.d.ts.map +0 -1
- package/dist/modules/supply/documentHeader.js +0 -117
- package/dist/modules/supply/documentHeader.js.map +0 -1
- package/dist/modules/supply/documentLine.d.ts +0 -30
- package/dist/modules/supply/documentLine.d.ts.map +0 -1
- package/dist/modules/supply/documentLine.js +0 -42
- package/dist/modules/supply/documentLine.js.map +0 -1
- package/dist/modules/supply/documentLineAssoc.d.ts +0 -21
- package/dist/modules/supply/documentLineAssoc.d.ts.map +0 -1
- package/dist/modules/supply/documentLineAssoc.js +0 -32
- package/dist/modules/supply/documentLineAssoc.js.map +0 -1
- package/dist/modules/supply/documentLineMt.d.ts +0 -11
- package/dist/modules/supply/documentLineMt.d.ts.map +0 -1
- package/dist/modules/supply/documentLineMt.js +0 -15
- package/dist/modules/supply/documentLineMt.js.map +0 -1
- package/dist/modules/supply/documentLineNote.d.ts +0 -15
- package/dist/modules/supply/documentLineNote.d.ts.map +0 -1
- package/dist/modules/supply/documentLineNote.js +0 -20
- package/dist/modules/supply/documentLineNote.js.map +0 -1
- package/dist/modules/supply/documentLineRm.d.ts +0 -11
- package/dist/modules/supply/documentLineRm.d.ts.map +0 -1
- package/dist/modules/supply/documentLineRm.js +0 -15
- package/dist/modules/supply/documentLineRm.js.map +0 -1
- package/dist/modules/supply/documentSet.d.ts +0 -20
- package/dist/modules/supply/documentSet.d.ts.map +0 -1
- package/dist/modules/supply/documentSet.js +0 -32
- package/dist/modules/supply/documentSet.js.map +0 -1
- package/dist/modules/supply/documentType.d.ts +0 -27
- package/dist/modules/supply/documentType.d.ts.map +0 -1
- package/dist/modules/supply/documentType.js +0 -35
- package/dist/modules/supply/documentType.js.map +0 -1
- package/dist/modules/supply/externalDocumentHeader.d.ts +0 -31
- package/dist/modules/supply/externalDocumentHeader.d.ts.map +0 -1
- package/dist/modules/supply/externalDocumentHeader.js +0 -53
- package/dist/modules/supply/externalDocumentHeader.js.map +0 -1
- package/dist/modules/supply/externalDocumentType.d.ts +0 -14
- package/dist/modules/supply/externalDocumentType.d.ts.map +0 -1
- package/dist/modules/supply/externalDocumentType.js +0 -16
- package/dist/modules/supply/externalDocumentType.js.map +0 -1
- package/dist/modules/supply/orderManagement.d.ts +0 -14
- package/dist/modules/supply/orderManagement.d.ts.map +0 -1
- package/dist/modules/supply/orderManagement.js +0 -18
- package/dist/modules/supply/orderManagement.js.map +0 -1
- package/dist/modules/supply/payment.d.ts +0 -49
- package/dist/modules/supply/payment.d.ts.map +0 -1
- package/dist/modules/supply/payment.js +0 -101
- package/dist/modules/supply/payment.js.map +0 -1
- package/dist/modules/supply/preSale.d.ts +0 -28
- package/dist/modules/supply/preSale.d.ts.map +0 -1
- package/dist/modules/supply/preSale.js +0 -40
- package/dist/modules/supply/preSale.js.map +0 -1
- package/dist/modules/supply/preSaleProduct.d.ts +0 -12
- package/dist/modules/supply/preSaleProduct.d.ts.map +0 -1
- package/dist/modules/supply/preSaleProduct.js +0 -16
- package/dist/modules/supply/preSaleProduct.js.map +0 -1
- package/dist/modules/supply/providerCurrentAccount.d.ts +0 -12
- package/dist/modules/supply/providerCurrentAccount.d.ts.map +0 -1
- package/dist/modules/supply/providerCurrentAccount.js +0 -14
- package/dist/modules/supply/providerCurrentAccount.js.map +0 -1
- package/dist/modules/supply/startDocumentHeaderLastUpdate.d.ts +0 -11
- package/dist/modules/supply/startDocumentHeaderLastUpdate.d.ts.map +0 -1
- package/dist/modules/supply/startDocumentHeaderLastUpdate.js +0 -12
- package/dist/modules/supply/startDocumentHeaderLastUpdate.js.map +0 -1
- package/dist/modules/supply/vatValidation.d.ts +0 -11
- package/dist/modules/supply/vatValidation.d.ts.map +0 -1
- package/dist/modules/supply/vatValidation.js +0 -16
- package/dist/modules/supply/vatValidation.js.map +0 -1
- package/dist/modules/supply/workflow.d.ts +0 -22
- package/dist/modules/supply/workflow.d.ts.map +0 -1
- package/dist/modules/supply/workflow.js +0 -28
- package/dist/modules/supply/workflow.js.map +0 -1
- package/dist/modules/tickets/channel.d.ts +0 -20
- package/dist/modules/tickets/channel.d.ts.map +0 -1
- package/dist/modules/tickets/channel.js +0 -32
- package/dist/modules/tickets/channel.js.map +0 -1
- package/dist/modules/tickets/clt.d.ts +0 -19
- package/dist/modules/tickets/clt.d.ts.map +0 -1
- package/dist/modules/tickets/clt.js +0 -32
- package/dist/modules/tickets/clt.js.map +0 -1
- package/dist/modules/tickets/language.d.ts +0 -19
- package/dist/modules/tickets/language.d.ts.map +0 -1
- package/dist/modules/tickets/language.js +0 -32
- package/dist/modules/tickets/language.js.map +0 -1
- package/dist/modules/tickets/tickets.d.ts +0 -20
- package/dist/modules/tickets/tickets.d.ts.map +0 -1
- package/dist/modules/tickets/tickets.js +0 -24
- package/dist/modules/tickets/tickets.js.map +0 -1
- package/dist/modules/user/bankData.d.ts +0 -25
- package/dist/modules/user/bankData.d.ts.map +0 -1
- package/dist/modules/user/bankData.js +0 -38
- package/dist/modules/user/bankData.js.map +0 -1
- package/dist/modules/user/chatSubscriber.d.ts +0 -16
- package/dist/modules/user/chatSubscriber.d.ts.map +0 -1
- package/dist/modules/user/chatSubscriber.js +0 -27
- package/dist/modules/user/chatSubscriber.js.map +0 -1
- package/dist/modules/user/clientType.d.ts +0 -25
- package/dist/modules/user/clientType.d.ts.map +0 -1
- package/dist/modules/user/clientType.js +0 -38
- package/dist/modules/user/clientType.js.map +0 -1
- package/dist/modules/user/clients.d.ts +0 -33
- package/dist/modules/user/clients.d.ts.map +0 -1
- package/dist/modules/user/clients.js +0 -52
- package/dist/modules/user/clients.js.map +0 -1
- package/dist/modules/user/commissioner.d.ts +0 -29
- package/dist/modules/user/commissioner.d.ts.map +0 -1
- package/dist/modules/user/commissioner.js +0 -44
- package/dist/modules/user/commissioner.js.map +0 -1
- package/dist/modules/user/country.d.ts +0 -26
- package/dist/modules/user/country.d.ts.map +0 -1
- package/dist/modules/user/country.js +0 -44
- package/dist/modules/user/country.js.map +0 -1
- package/dist/modules/user/deliveryMethods.d.ts +0 -20
- package/dist/modules/user/deliveryMethods.d.ts.map +0 -1
- package/dist/modules/user/deliveryMethods.js +0 -34
- package/dist/modules/user/deliveryMethods.js.map +0 -1
- package/dist/modules/user/favorites.d.ts +0 -17
- package/dist/modules/user/favorites.d.ts.map +0 -1
- package/dist/modules/user/favorites.js +0 -24
- package/dist/modules/user/favorites.js.map +0 -1
- package/dist/modules/user/groupPermission.d.ts +0 -17
- package/dist/modules/user/groupPermission.d.ts.map +0 -1
- package/dist/modules/user/groupPermission.js +0 -26
- package/dist/modules/user/groupPermission.js.map +0 -1
- package/dist/modules/user/language.d.ts +0 -25
- package/dist/modules/user/language.d.ts.map +0 -1
- package/dist/modules/user/language.js +0 -38
- package/dist/modules/user/language.js.map +0 -1
- package/dist/modules/user/logout.d.ts +0 -9
- package/dist/modules/user/logout.d.ts.map +0 -1
- package/dist/modules/user/logout.js +0 -11
- package/dist/modules/user/logout.js.map +0 -1
- package/dist/modules/user/maturityDates.d.ts +0 -20
- package/dist/modules/user/maturityDates.d.ts.map +0 -1
- package/dist/modules/user/maturityDates.js +0 -34
- package/dist/modules/user/maturityDates.js.map +0 -1
- package/dist/modules/user/password.d.ts +0 -13
- package/dist/modules/user/password.d.ts.map +0 -1
- package/dist/modules/user/password.js +0 -14
- package/dist/modules/user/password.js.map +0 -1
- package/dist/modules/user/paymentMethods.d.ts +0 -20
- package/dist/modules/user/paymentMethods.d.ts.map +0 -1
- package/dist/modules/user/paymentMethods.js +0 -34
- package/dist/modules/user/paymentMethods.js.map +0 -1
- package/dist/modules/user/permission.d.ts +0 -17
- package/dist/modules/user/permission.d.ts.map +0 -1
- package/dist/modules/user/permission.js +0 -26
- package/dist/modules/user/permission.js.map +0 -1
- package/dist/modules/user/persona.d.ts +0 -27
- package/dist/modules/user/persona.d.ts.map +0 -1
- package/dist/modules/user/persona.js +0 -52
- package/dist/modules/user/persona.js.map +0 -1
- package/dist/modules/user/provider.d.ts +0 -32
- package/dist/modules/user/provider.d.ts.map +0 -1
- package/dist/modules/user/provider.js +0 -54
- package/dist/modules/user/provider.js.map +0 -1
- package/dist/modules/user/providerType.d.ts +0 -25
- package/dist/modules/user/providerType.d.ts.map +0 -1
- package/dist/modules/user/providerType.js +0 -38
- package/dist/modules/user/providerType.js.map +0 -1
- package/dist/modules/user/purchaseCondition.d.ts +0 -23
- package/dist/modules/user/purchaseCondition.d.ts.map +0 -1
- package/dist/modules/user/purchaseCondition.js +0 -38
- package/dist/modules/user/purchaseCondition.js.map +0 -1
- package/dist/modules/user/reasonForExemption.d.ts +0 -25
- package/dist/modules/user/reasonForExemption.d.ts.map +0 -1
- package/dist/modules/user/reasonForExemption.js +0 -38
- package/dist/modules/user/reasonForExemption.js.map +0 -1
- package/dist/modules/user/refreshToken.d.ts +0 -12
- package/dist/modules/user/refreshToken.d.ts.map +0 -1
- package/dist/modules/user/refreshToken.js +0 -12
- package/dist/modules/user/refreshToken.js.map +0 -1
- package/dist/modules/user/segmentsArea.d.ts +0 -25
- package/dist/modules/user/segmentsArea.d.ts.map +0 -1
- package/dist/modules/user/segmentsArea.js +0 -38
- package/dist/modules/user/segmentsArea.js.map +0 -1
- package/dist/modules/user/sessions.d.ts +0 -12
- package/dist/modules/user/sessions.d.ts.map +0 -1
- package/dist/modules/user/sessions.js +0 -12
- package/dist/modules/user/sessions.js.map +0 -1
- package/dist/modules/user/shippings.d.ts +0 -24
- package/dist/modules/user/shippings.d.ts.map +0 -1
- package/dist/modules/user/shippings.js +0 -38
- package/dist/modules/user/shippings.js.map +0 -1
- package/dist/modules/user/storeOperator.d.ts +0 -32
- package/dist/modules/user/storeOperator.d.ts.map +0 -1
- package/dist/modules/user/storeOperator.js +0 -51
- package/dist/modules/user/storeOperator.js.map +0 -1
- package/dist/modules/user/swift.d.ts +0 -25
- package/dist/modules/user/swift.d.ts.map +0 -1
- package/dist/modules/user/swift.js +0 -38
- package/dist/modules/user/swift.js.map +0 -1
- package/dist/modules/user/tenant.d.ts +0 -16
- package/dist/modules/user/tenant.d.ts.map +0 -1
- package/dist/modules/user/tenant.js +0 -24
- package/dist/modules/user/tenant.js.map +0 -1
- package/dist/modules/user/theme.d.ts +0 -12
- package/dist/modules/user/theme.d.ts.map +0 -1
- package/dist/modules/user/theme.js +0 -11
- package/dist/modules/user/theme.js.map +0 -1
- package/dist/modules/user/user.d.ts +0 -32
- package/dist/modules/user/user.d.ts.map +0 -1
- package/dist/modules/user/user.js +0 -46
- package/dist/modules/user/user.js.map +0 -1
- package/dist/modules/user/userPermission.d.ts +0 -16
- package/dist/modules/user/userPermission.d.ts.map +0 -1
- package/dist/modules/user/userPermission.js +0 -22
- package/dist/modules/user/userPermission.js.map +0 -1
- package/dist/modules/user/userPositions.d.ts +0 -25
- package/dist/modules/user/userPositions.d.ts.map +0 -1
- package/dist/modules/user/userPositions.js +0 -38
- package/dist/modules/user/userPositions.js.map +0 -1
- package/dist/modules/user/vehicles.d.ts +0 -16
- package/dist/modules/user/vehicles.d.ts.map +0 -1
- package/dist/modules/user/vehicles.js +0 -24
- package/dist/modules/user/vehicles.js.map +0 -1
- package/dist/modules/user/zipCode.d.ts +0 -14
- package/dist/modules/user/zipCode.d.ts.map +0 -1
- package/dist/modules/user/zipCode.js +0 -15
- package/dist/modules/user/zipCode.js.map +0 -1
- package/dist/modules/view/adminPanel.d.ts +0 -10
- package/dist/modules/view/adminPanel.d.ts.map +0 -1
- package/dist/modules/view/adminPanel.js +0 -12
- package/dist/modules/view/adminPanel.js.map +0 -1
- package/dist/modules/view/errorLog.d.ts +0 -10
- package/dist/modules/view/errorLog.d.ts.map +0 -1
- package/dist/modules/view/errorLog.js +0 -11
- package/dist/modules/view/errorLog.js.map +0 -1
package/package.json
CHANGED
|
@@ -9,17 +9,17 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.34.
|
|
13
|
-
"
|
|
14
|
-
"
|
|
12
|
+
"version": "0.34.5",
|
|
13
|
+
"type": "module",
|
|
14
|
+
"main": "./dist/index.cjs",
|
|
15
15
|
"module": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
16
17
|
"exports": {
|
|
17
18
|
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
18
20
|
"import": "./dist/index.js",
|
|
19
|
-
"require": "./dist/index.cjs"
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
"./*": "./dist/*"
|
|
21
|
+
"require": "./dist/index.cjs"
|
|
22
|
+
}
|
|
23
23
|
},
|
|
24
24
|
"browserslist": "> 0.25%, not dead",
|
|
25
25
|
"license": "UNLICENSED",
|
|
@@ -34,15 +34,16 @@
|
|
|
34
34
|
"scripts": {
|
|
35
35
|
"lint": "eslint --fix",
|
|
36
36
|
"prebuild": "rm -rf dist",
|
|
37
|
-
"build": "tsc",
|
|
37
|
+
"build": "tsc --noEmit && tsup",
|
|
38
38
|
"postbuild": "cp dist/index.js dist/index.cjs",
|
|
39
39
|
"prepack": "npm run lint && npm run build"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@nomalism-com/types": "^0.34.
|
|
42
|
+
"@nomalism-com/types": "^0.34.9",
|
|
43
43
|
"axios": "^1.9.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
+
"@swc/core": "^1.11.29",
|
|
46
47
|
"@types/node": "^22.15.21",
|
|
47
48
|
"@typescript-eslint/eslint-plugin": "^8.32.1",
|
|
48
49
|
"@typescript-eslint/parser": "^8.32.1",
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
"eslint-config-prettier": "^10.1.5",
|
|
51
52
|
"eslint-import-resolver-typescript": "^4.3.5",
|
|
52
53
|
"eslint-plugin-prettier": "^5.4.0",
|
|
53
|
-
"prettier": "^3.5.3"
|
|
54
|
+
"prettier": "^3.5.3",
|
|
55
|
+
"tsup": "^8.5.0"
|
|
54
56
|
}
|
|
55
57
|
}
|
|
@@ -2,8 +2,6 @@ import Nomalism from '@nomalism-com/types';
|
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
import { IModuleConstructor } from '../../main';
|
|
4
4
|
|
|
5
|
-
export import ICreateInventoryRequest = Nomalism.Inventario.ICreateInventoryRequest;
|
|
6
|
-
|
|
7
5
|
export default class Repository implements Nomalism.Inventario.IRepository {
|
|
8
6
|
public route: string;
|
|
9
7
|
|
|
@@ -17,7 +15,7 @@ export default class Repository implements Nomalism.Inventario.IRepository {
|
|
|
17
15
|
this.publicRoute = publicRoute;
|
|
18
16
|
}
|
|
19
17
|
|
|
20
|
-
async createInventory(data: ICreateInventoryRequest): Promise<void> {
|
|
18
|
+
async createInventory(data: Nomalism.Inventario.ICreateInventoryRequest): Promise<void> {
|
|
21
19
|
await this.api.post(`${this.route}`, data);
|
|
22
20
|
}
|
|
23
21
|
}
|
|
@@ -2,52 +2,6 @@ import Nomalism from '@nomalism-com/types';
|
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
import { IModuleConstructor } from '../../main';
|
|
4
4
|
|
|
5
|
-
export import IUnfinishedPickingLineGroup = Nomalism.MaterialEntrance.IUnfinishedPickingLineGroup;
|
|
6
|
-
export import IUnfinishedPickingsResponse = Nomalism.MaterialEntrance.IUnfinishedPickingsResponse;
|
|
7
|
-
|
|
8
|
-
export import IPrintLabelParamsRequest = Nomalism.MaterialEntrance.IPrintLabelParamsRequest;
|
|
9
|
-
export import IPrintLabelQueryRequest = Nomalism.MaterialEntrance.IPrintLabelQueryRequest;
|
|
10
|
-
|
|
11
|
-
export import IPrintBulkLabelRequest = Nomalism.MaterialEntrance.IPrintBulkLabelRequest;
|
|
12
|
-
|
|
13
|
-
export import IUnfinishedPickingLineGroupExtended = Nomalism.MaterialEntrance.IUnfinishedPickingLineGroupExtended;
|
|
14
|
-
|
|
15
|
-
export import IGetMaterialEntranceInfoStock = Nomalism.MaterialEntrance.IGetMaterialEntranceInfoStock;
|
|
16
|
-
|
|
17
|
-
export import IGetMaterialEntranceInfoClientOrder = Nomalism.MaterialEntrance.IGetMaterialEntranceInfoClientOrder;
|
|
18
|
-
|
|
19
|
-
export import IGetMaterialEntranceInfoResponse = Nomalism.MaterialEntrance.IGetMaterialEntranceInfoResponse;
|
|
20
|
-
|
|
21
|
-
export import IUndoEntradaDeMaterialRequest = Nomalism.MaterialEntrance.IUndoEntradaDeMaterialRequest;
|
|
22
|
-
|
|
23
|
-
export import ICreateMaterialEntranceClientOrderOptionEnum = Nomalism.MaterialEntrance.ICreateMaterialEntranceClientOrderOptionEnum;
|
|
24
|
-
|
|
25
|
-
export import ICreateMaterialEntranceClientOrderOption = Nomalism.MaterialEntrance.ICreateMaterialEntranceClientOrderOption;
|
|
26
|
-
|
|
27
|
-
export import createMaterialEntranceClientOrderOptions = Nomalism.MaterialEntrance.createMaterialEntranceClientOrderOptions;
|
|
28
|
-
|
|
29
|
-
export import ICreateMaterialEntranceStockOptionEnum = Nomalism.MaterialEntrance.ICreateMaterialEntranceStockOptionEnum;
|
|
30
|
-
|
|
31
|
-
export import ICreateMaterialEntranceStockOption = Nomalism.MaterialEntrance.ICreateMaterialEntranceStockOption;
|
|
32
|
-
|
|
33
|
-
export import createMaterialEntranceStockOptions = Nomalism.MaterialEntrance.createMaterialEntranceStockOptions;
|
|
34
|
-
|
|
35
|
-
export import ICreateMaterialEntranceStockWithoutOrderOptionEnum = Nomalism.MaterialEntrance.ICreateMaterialEntranceStockWithoutOrderOptionEnum;
|
|
36
|
-
|
|
37
|
-
export import ICreateMaterialEntranceStockWithoutOrderOption = Nomalism.MaterialEntrance.ICreateMaterialEntranceStockWithoutOrderOption;
|
|
38
|
-
|
|
39
|
-
export import createMaterialEntranceStockWithoutOrderOptions = Nomalism.MaterialEntrance.createMaterialEntranceStockWithoutOrderOptions;
|
|
40
|
-
|
|
41
|
-
export import IEntradaDeMaterialClientOrder = Nomalism.MaterialEntrance.IEntradaDeMaterialClientOrder;
|
|
42
|
-
|
|
43
|
-
export import IEntradaDeMaterialStock = Nomalism.MaterialEntrance.IEntradaDeMaterialStock;
|
|
44
|
-
|
|
45
|
-
export import IEntradaDeMaterialNC = Nomalism.MaterialEntrance.IEntradaDeMaterialNC;
|
|
46
|
-
|
|
47
|
-
export import IFinalizarEntradaDeMaterialRequest = Nomalism.MaterialEntrance.IFinalizarEntradaDeMaterialRequest;
|
|
48
|
-
|
|
49
|
-
export import IFinalizarEntradaDeMaterialResponse = Nomalism.MaterialEntrance.IFinalizarEntradaDeMaterialResponse;
|
|
50
|
-
|
|
51
5
|
export default class Repository implements Nomalism.MaterialEntrance.IApi {
|
|
52
6
|
public route: string;
|
|
53
7
|
|
|
@@ -68,25 +22,35 @@ export default class Repository implements Nomalism.MaterialEntrance.IApi {
|
|
|
68
22
|
|
|
69
23
|
async findUnfinishedPickings({
|
|
70
24
|
id,
|
|
71
|
-
}: Nomalism.shared.IFindByIdRequest): Promise<
|
|
25
|
+
}: Nomalism.shared.IFindByIdRequest): Promise<
|
|
26
|
+
Nomalism.MaterialEntrance.IUnfinishedPickingsResponse[]
|
|
27
|
+
> {
|
|
72
28
|
const response = await this.api.get(`${this.route}unfinished_pickings/${id}`);
|
|
73
29
|
return response.data;
|
|
74
30
|
}
|
|
75
31
|
|
|
76
32
|
async finalizarEntradaMaterial(
|
|
77
|
-
data: IFinalizarEntradaDeMaterialRequest,
|
|
78
|
-
): Promise<IFinalizarEntradaDeMaterialResponse> {
|
|
33
|
+
data: Nomalism.MaterialEntrance.IFinalizarEntradaDeMaterialRequest,
|
|
34
|
+
): Promise<Nomalism.MaterialEntrance.IFinalizarEntradaDeMaterialResponse> {
|
|
79
35
|
const response = await this.api.post(`${this.route}finalize_material_entrance`, data);
|
|
80
36
|
return response.data;
|
|
81
37
|
}
|
|
82
38
|
|
|
83
|
-
async undoEntradaMaterial(
|
|
39
|
+
async undoEntradaMaterial(
|
|
40
|
+
data: Nomalism.MaterialEntrance.IUndoEntradaDeMaterialRequest,
|
|
41
|
+
): Promise<void> {
|
|
84
42
|
await this.api.post(`${this.route}undo_material_entrance`, data);
|
|
85
43
|
}
|
|
86
44
|
|
|
87
45
|
printLabelToPdfUrl(
|
|
88
|
-
{ product_id }: IPrintLabelParamsRequest,
|
|
89
|
-
{
|
|
46
|
+
{ product_id }: Nomalism.MaterialEntrance.IPrintLabelParamsRequest,
|
|
47
|
+
{
|
|
48
|
+
quantity,
|
|
49
|
+
ef_name,
|
|
50
|
+
pc_document_number,
|
|
51
|
+
prison,
|
|
52
|
+
note,
|
|
53
|
+
}: Nomalism.MaterialEntrance.IPrintLabelQueryRequest,
|
|
90
54
|
token: string,
|
|
91
55
|
): string {
|
|
92
56
|
const qs = new URLSearchParams();
|
|
@@ -107,7 +71,7 @@ export default class Repository implements Nomalism.MaterialEntrance.IApi {
|
|
|
107
71
|
groupLabel,
|
|
108
72
|
saved_em_picking_ids,
|
|
109
73
|
token,
|
|
110
|
-
}: IPrintBulkLabelRequest): string {
|
|
74
|
+
}: Nomalism.MaterialEntrance.IPrintBulkLabelRequest): string {
|
|
111
75
|
const qs = new URLSearchParams();
|
|
112
76
|
qs.set('groupLabel', groupLabel.toString());
|
|
113
77
|
qs.set('saved_em_picking_ids', saved_em_picking_ids);
|
|
@@ -2,26 +2,6 @@ import Nomalism from '@nomalism-com/types';
|
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
import { IModuleConstructor } from '../../main';
|
|
4
4
|
|
|
5
|
-
export import IUndoProviderOrderRequest = Nomalism.Order.IUndoProviderOrderRequest;
|
|
6
|
-
|
|
7
|
-
export import IConferirEncomendaClienteOptions = Nomalism.Order.IConferirEncomendaClienteOptions;
|
|
8
|
-
export import IConferirEncomendaClienteRequest = Nomalism.Order.IConferirEncomendaClienteRequest;
|
|
9
|
-
export import IConferirEncomendaClienteResponse = Nomalism.Order.IConferirEncomendaClienteResponse;
|
|
10
|
-
|
|
11
|
-
export import IFindStockToOrderResponse = Nomalism.Order.IFindStockToOrderResponse;
|
|
12
|
-
export import IFindStockToOrderRequest = Nomalism.Order.IFindStockToOrderRequest;
|
|
13
|
-
|
|
14
|
-
export import ISetProviderRequest = Nomalism.Order.ISetProviderRequest;
|
|
15
|
-
|
|
16
|
-
export import IUnsetCativado = Nomalism.Order.IUnsetCativado;
|
|
17
|
-
|
|
18
|
-
export import IFindRequest = Nomalism.Order.IFindRequest;
|
|
19
|
-
export import IOrderType = Nomalism.Order.IOrderType;
|
|
20
|
-
export import IFindResponse = Nomalism.Order.IFindResponse;
|
|
21
|
-
|
|
22
|
-
export const { ConferirEncomendaClienteOptionsEnum, conferirEncomendaClienteOptions } =
|
|
23
|
-
Nomalism.Order;
|
|
24
|
-
|
|
25
5
|
export default class Repository implements Nomalism.Order.IRepository {
|
|
26
6
|
public route: string;
|
|
27
7
|
|
|
@@ -35,14 +15,16 @@ export default class Repository implements Nomalism.Order.IRepository {
|
|
|
35
15
|
this.publicRoute = publicRoute;
|
|
36
16
|
}
|
|
37
17
|
|
|
38
|
-
async unsetCativado(params: IUnsetCativado): Promise<void> {
|
|
18
|
+
async unsetCativado(params: Nomalism.Order.IUnsetCativado): Promise<void> {
|
|
39
19
|
const response = await this.api.post(`${this.route}unset_cativado`, {
|
|
40
20
|
params,
|
|
41
21
|
});
|
|
42
22
|
return response.data;
|
|
43
23
|
}
|
|
44
24
|
|
|
45
|
-
async findStockToOrder(
|
|
25
|
+
async findStockToOrder(
|
|
26
|
+
params: Nomalism.Order.IFindStockToOrderRequest,
|
|
27
|
+
): Promise<Nomalism.Order.IFindStockToOrderResponse[]> {
|
|
46
28
|
const response = await this.api.get(`${this.route}check_lines_to_order`, {
|
|
47
29
|
params,
|
|
48
30
|
});
|
|
@@ -58,7 +40,7 @@ export default class Repository implements Nomalism.Order.IRepository {
|
|
|
58
40
|
await this.api.post(`${this.route}undo_encomenda_va`, data);
|
|
59
41
|
}
|
|
60
42
|
|
|
61
|
-
async setProvider(data: ISetProviderRequest): Promise<void> {
|
|
43
|
+
async setProvider(data: Nomalism.Order.ISetProviderRequest): Promise<void> {
|
|
62
44
|
await this.api.post(`${this.route}set_provider`, data);
|
|
63
45
|
}
|
|
64
46
|
|
|
@@ -70,18 +52,18 @@ export default class Repository implements Nomalism.Order.IRepository {
|
|
|
70
52
|
await this.api.post(`${this.route}undo_encomenda_stock`, data);
|
|
71
53
|
}
|
|
72
54
|
|
|
73
|
-
async undoProviderOrder(data: IUndoProviderOrderRequest): Promise<void> {
|
|
55
|
+
async undoProviderOrder(data: Nomalism.Order.IUndoProviderOrderRequest): Promise<void> {
|
|
74
56
|
await this.api.post(`${this.route}undo_provider_order`, data);
|
|
75
57
|
}
|
|
76
58
|
|
|
77
59
|
async conferirEncomendaCliente(
|
|
78
|
-
data: IConferirEncomendaClienteRequest,
|
|
79
|
-
): Promise<IConferirEncomendaClienteResponse[]> {
|
|
60
|
+
data: Nomalism.Order.IConferirEncomendaClienteRequest,
|
|
61
|
+
): Promise<Nomalism.Order.IConferirEncomendaClienteResponse[]> {
|
|
80
62
|
const response = await this.api.post(`${this.route}check_client_order`, data);
|
|
81
63
|
return response.data;
|
|
82
64
|
}
|
|
83
65
|
|
|
84
|
-
async find(params: IFindRequest): Promise<IFindResponse[]> {
|
|
66
|
+
async find(params: Nomalism.Order.IFindRequest): Promise<Nomalism.Order.IFindResponse[]> {
|
|
85
67
|
const response = await this.api.get(`${this.route}`, { params });
|
|
86
68
|
return response.data;
|
|
87
69
|
}
|
|
@@ -2,25 +2,6 @@ import Nomalism from '@nomalism-com/types';
|
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
import { IModuleConstructor } from '../../main';
|
|
4
4
|
|
|
5
|
-
export import IConflictEnum = Nomalism.PropostaSheets.IConflictEnum;
|
|
6
|
-
|
|
7
|
-
export import IConflict = Nomalism.PropostaSheets.IConflict;
|
|
8
|
-
|
|
9
|
-
export import IFindByGooglesheetIdResponse = Nomalism.PropostaSheets.IFindByGooglesheetIdResponse;
|
|
10
|
-
|
|
11
|
-
export import IDocumentLinePendingConflict = Nomalism.PropostaSheets.Entity;
|
|
12
|
-
|
|
13
|
-
export import IConflictFindByOwnerIdResponse = Nomalism.PropostaSheets.IConflictFindByOwnerIdResponse;
|
|
14
|
-
|
|
15
|
-
export import ICreateSheetFromDocumentResponse = Nomalism.PropostaSheets.ICreateSheetFromDocumentResponse;
|
|
16
|
-
|
|
17
|
-
export import ICloneSheetToNewDocumentRequest = Nomalism.PropostaSheets.ICloneSheetToNewDocumentRequest;
|
|
18
|
-
export import ICloneSheetToNewDocumentResponse = Nomalism.PropostaSheets.ICloneSheetToNewDocumentResponse;
|
|
19
|
-
|
|
20
|
-
export import IIsProcessingResponse = Nomalism.PropostaSheets.IIsProcessingResponse;
|
|
21
|
-
|
|
22
|
-
export import IImportFromSheetRequest = Nomalism.PropostaSheets.IImportFromSheetRequest;
|
|
23
|
-
|
|
24
5
|
export default class Repository implements Nomalism.PropostaSheets.IRepository {
|
|
25
6
|
public route: string;
|
|
26
7
|
|
|
@@ -34,7 +15,9 @@ export default class Repository implements Nomalism.PropostaSheets.IRepository {
|
|
|
34
15
|
this.publicRoute = publicRoute;
|
|
35
16
|
}
|
|
36
17
|
|
|
37
|
-
async isProcessing(
|
|
18
|
+
async isProcessing(
|
|
19
|
+
params: Nomalism.shared.IFindByIdRequest,
|
|
20
|
+
): Promise<Nomalism.PropostaSheets.IIsProcessingResponse> {
|
|
38
21
|
const response = await this.api.get(`${this.route}is_processing`, {
|
|
39
22
|
params,
|
|
40
23
|
});
|
|
@@ -42,7 +25,9 @@ export default class Repository implements Nomalism.PropostaSheets.IRepository {
|
|
|
42
25
|
return response.data;
|
|
43
26
|
}
|
|
44
27
|
|
|
45
|
-
async importFromSheet(
|
|
28
|
+
async importFromSheet(
|
|
29
|
+
params: Nomalism.PropostaSheets.IImportFromSheetRequest,
|
|
30
|
+
): Promise<Nomalism.PropostaSheets.IFindByGooglesheetIdResponse> {
|
|
46
31
|
const response = await this.api.post(`${this.route}import_from_sheet`, {
|
|
47
32
|
params,
|
|
48
33
|
});
|
|
@@ -52,15 +37,15 @@ export default class Repository implements Nomalism.PropostaSheets.IRepository {
|
|
|
52
37
|
|
|
53
38
|
async createSheetFromDocument(
|
|
54
39
|
params: Nomalism.shared.IFindByIdRequest,
|
|
55
|
-
): Promise<ICreateSheetFromDocumentResponse> {
|
|
40
|
+
): Promise<Nomalism.PropostaSheets.ICreateSheetFromDocumentResponse> {
|
|
56
41
|
const response = await this.api.post(`${this.route}create_sheet_from_document`, params);
|
|
57
42
|
|
|
58
43
|
return response.data;
|
|
59
44
|
}
|
|
60
45
|
|
|
61
46
|
async cloneSheetsToNewDocument(
|
|
62
|
-
params: ICloneSheetToNewDocumentRequest,
|
|
63
|
-
): Promise<ICloneSheetToNewDocumentResponse> {
|
|
47
|
+
params: Nomalism.PropostaSheets.ICloneSheetToNewDocumentRequest,
|
|
48
|
+
): Promise<Nomalism.PropostaSheets.ICloneSheetToNewDocumentResponse> {
|
|
64
49
|
const response = await this.api.post(`${this.route}clone_sheet_to_new_document`, params);
|
|
65
50
|
|
|
66
51
|
return response.data;
|
|
@@ -78,7 +63,7 @@ export default class Repository implements Nomalism.PropostaSheets.IRepository {
|
|
|
78
63
|
|
|
79
64
|
async conflictFindByOwnerId(
|
|
80
65
|
params: Nomalism.shared.IFindByOwnerIdRequest,
|
|
81
|
-
): Promise<IConflictFindByOwnerIdResponse[]> {
|
|
66
|
+
): Promise<Nomalism.PropostaSheets.IConflictFindByOwnerIdResponse[]> {
|
|
82
67
|
const response = await this.api.get(`${this.route}conflict_find_by_owner_id`, {
|
|
83
68
|
params,
|
|
84
69
|
});
|
|
@@ -2,14 +2,6 @@ import Nomalism from '@nomalism-com/types';
|
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
import { IModuleConstructor } from '../../main';
|
|
4
4
|
|
|
5
|
-
export import IUnpaidMaterialEntranceLineType = Nomalism.Purchase.IUnpaidMaterialEntranceLineType;
|
|
6
|
-
|
|
7
|
-
export import IUnpaidMaterialEntranceLineResponse = Nomalism.Purchase.IUnpaidMaterialEntranceLineResponse;
|
|
8
|
-
|
|
9
|
-
export import IUnpaidMaterialEntranceItemResponse = Nomalism.Purchase.IUnpaidMaterialEntranceItemResponse;
|
|
10
|
-
export import IPurchaseFromProviderRequest = Nomalism.Purchase.IPurchaseFromProviderRequest;
|
|
11
|
-
export import IUnpaidMaterialEntranceResponse = Nomalism.Purchase.IUnpaidMaterialEntranceResponse;
|
|
12
|
-
|
|
13
5
|
export default class Repository implements Nomalism.Purchase.IApi {
|
|
14
6
|
public route: string;
|
|
15
7
|
|
|
@@ -23,13 +15,13 @@ export default class Repository implements Nomalism.Purchase.IApi {
|
|
|
23
15
|
this.publicRoute = publicRoute;
|
|
24
16
|
}
|
|
25
17
|
|
|
26
|
-
async purchaseFromProvider(data: IPurchaseFromProviderRequest): Promise<void> {
|
|
18
|
+
async purchaseFromProvider(data: Nomalism.Purchase.IPurchaseFromProviderRequest): Promise<void> {
|
|
27
19
|
await this.api.post(`${this.route}purchase_from_provider`, data);
|
|
28
20
|
}
|
|
29
21
|
|
|
30
22
|
async findUnpaidMaterialEntrance(
|
|
31
23
|
params: Nomalism.shared.IFindByIdRequest,
|
|
32
|
-
): Promise<IUnpaidMaterialEntranceResponse> {
|
|
24
|
+
): Promise<Nomalism.Purchase.IUnpaidMaterialEntranceResponse> {
|
|
33
25
|
const response = await this.api.get(`${this.route}unpaid_material_entrance`, {
|
|
34
26
|
params,
|
|
35
27
|
});
|
|
@@ -2,12 +2,6 @@ import Nomalism from '@nomalism-com/types';
|
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
import { IModuleConstructor } from '../../main';
|
|
4
4
|
|
|
5
|
-
export import IInventoryLossResponse = Nomalism.Quebra.IInventoryLossResponse;
|
|
6
|
-
|
|
7
|
-
export import ICreateManyRequest = Nomalism.Quebra.ICreateManyRequest;
|
|
8
|
-
|
|
9
|
-
export import IDeleteInventoryLossRequest = Nomalism.Quebra.IDeleteInventoryLossRequest;
|
|
10
|
-
|
|
11
5
|
export default class Repository implements Nomalism.Quebra.IRepository {
|
|
12
6
|
public route: string;
|
|
13
7
|
|
|
@@ -21,7 +15,7 @@ export default class Repository implements Nomalism.Quebra.IRepository {
|
|
|
21
15
|
this.publicRoute = publicRoute;
|
|
22
16
|
}
|
|
23
17
|
|
|
24
|
-
async findInventoryLosses(): Promise<IInventoryLossResponse[]> {
|
|
18
|
+
async findInventoryLosses(): Promise<Nomalism.Quebra.IInventoryLossResponse[]> {
|
|
25
19
|
const response = await this.api.get(`${this.route}`);
|
|
26
20
|
return response.data;
|
|
27
21
|
}
|
|
@@ -31,17 +25,17 @@ export default class Repository implements Nomalism.Quebra.IRepository {
|
|
|
31
25
|
return response.data;
|
|
32
26
|
}
|
|
33
27
|
|
|
34
|
-
async create(body: ICreateManyRequest): Promise<string> {
|
|
28
|
+
async create(body: Nomalism.Quebra.ICreateManyRequest): Promise<string> {
|
|
35
29
|
const response = await this.api.post(`${this.route}`, body);
|
|
36
30
|
return response.data;
|
|
37
31
|
}
|
|
38
32
|
|
|
39
|
-
async createMany(body: ICreateManyRequest): Promise<string> {
|
|
33
|
+
async createMany(body: Nomalism.Quebra.ICreateManyRequest): Promise<string> {
|
|
40
34
|
const response = await this.api.post(`${this.route}create_many`, body);
|
|
41
35
|
return response.data;
|
|
42
36
|
}
|
|
43
37
|
|
|
44
|
-
async deleteInventoryLosses(data: IDeleteInventoryLossRequest): Promise<void> {
|
|
38
|
+
async deleteInventoryLosses(data: Nomalism.Quebra.IDeleteInventoryLossRequest): Promise<void> {
|
|
45
39
|
await this.api.delete(`${this.route}inventory_loss`, { data });
|
|
46
40
|
}
|
|
47
41
|
}
|
|
@@ -2,14 +2,6 @@ import Nomalism from '@nomalism-com/types';
|
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
import { IModuleConstructor } from '../../main';
|
|
4
4
|
|
|
5
|
-
export import IFindOptionalByOwnerIdRequest = Nomalism.shared.IFindOptionalByOwnerIdRequest;
|
|
6
|
-
export import IFindLinesToReturnResponse = Nomalism.ReturnToProvider.IFindLinesToReturnResponse;
|
|
7
|
-
|
|
8
|
-
export import ICheckLinesToReturnOptions = Nomalism.ReturnToProvider.ICheckLinesToReturnOptions;
|
|
9
|
-
|
|
10
|
-
export import ICheckLinesToReturnLinesRequest = Nomalism.ReturnToProvider.ICheckLinesToReturnLinesRequest;
|
|
11
|
-
export import ICheckLinesToReturnRequest = Nomalism.ReturnToProvider.ICheckLinesToReturnRequest;
|
|
12
|
-
|
|
13
5
|
export default class Repository implements Nomalism.ReturnToProvider.IRepository {
|
|
14
6
|
public route: string;
|
|
15
7
|
|
|
@@ -24,8 +16,8 @@ export default class Repository implements Nomalism.ReturnToProvider.IRepository
|
|
|
24
16
|
}
|
|
25
17
|
|
|
26
18
|
async findLinesToReturn(
|
|
27
|
-
params: IFindOptionalByOwnerIdRequest,
|
|
28
|
-
): Promise<IFindLinesToReturnResponse[]> {
|
|
19
|
+
params: Nomalism.shared.IFindOptionalByOwnerIdRequest,
|
|
20
|
+
): Promise<Nomalism.ReturnToProvider.IFindLinesToReturnResponse[]> {
|
|
29
21
|
const response = await this.api.get(`${this.route}lines_to_return`, {
|
|
30
22
|
params,
|
|
31
23
|
});
|
|
@@ -37,7 +29,9 @@ export default class Repository implements Nomalism.ReturnToProvider.IRepository
|
|
|
37
29
|
return response.data;
|
|
38
30
|
}
|
|
39
31
|
|
|
40
|
-
async checkLinesToReturn(
|
|
32
|
+
async checkLinesToReturn(
|
|
33
|
+
data: Nomalism.ReturnToProvider.ICheckLinesToReturnRequest,
|
|
34
|
+
): Promise<void> {
|
|
41
35
|
await this.api.post(`${this.route}check_to_return`, data);
|
|
42
36
|
}
|
|
43
37
|
}
|
|
@@ -2,10 +2,6 @@ import Nomalism from '@nomalism-com/types';
|
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
import { IModuleConstructor } from '../../main';
|
|
4
4
|
|
|
5
|
-
export import ICreateTransformado = Nomalism.Transformado.ICreateTransformado;
|
|
6
|
-
|
|
7
|
-
export import IProductsCreateTransformado = Nomalism.Transformado.IProductsCreateTransformado;
|
|
8
|
-
|
|
9
5
|
export default class Repository implements Nomalism.Transformado.IRepository {
|
|
10
6
|
public route: string;
|
|
11
7
|
|
|
@@ -19,7 +15,7 @@ export default class Repository implements Nomalism.Transformado.IRepository {
|
|
|
19
15
|
this.publicRoute = publicRoute;
|
|
20
16
|
}
|
|
21
17
|
|
|
22
|
-
async create(body: ICreateTransformado): Promise<string> {
|
|
18
|
+
async create(body: Nomalism.Transformado.ICreateTransformado): Promise<string> {
|
|
23
19
|
const response = await this.api.post(`${this.route}`, body);
|
|
24
20
|
return response.data;
|
|
25
21
|
}
|
|
@@ -2,8 +2,6 @@ import Nomalism from '@nomalism-com/types';
|
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
import { IModuleConstructor } from '../../main';
|
|
4
4
|
|
|
5
|
-
export type ICreateRequest = Nomalism.UpfrontReturn.ICreateRequest;
|
|
6
|
-
|
|
7
5
|
export default class Repository implements Nomalism.UpfrontReturn.IRepository {
|
|
8
6
|
public route: string;
|
|
9
7
|
|
|
@@ -17,7 +15,10 @@ export default class Repository implements Nomalism.UpfrontReturn.IRepository {
|
|
|
17
15
|
this.publicRoute = publicRoute;
|
|
18
16
|
}
|
|
19
17
|
|
|
20
|
-
async create(
|
|
18
|
+
async create(
|
|
19
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
20
|
+
data: Nomalism.UpfrontReturn.ICreateRequest,
|
|
21
|
+
): Promise<void> {
|
|
21
22
|
const response = await this.api.post(`${this.route}${selector.id}`, data);
|
|
22
23
|
return response.data;
|
|
23
24
|
}
|
|
@@ -2,8 +2,6 @@ import { AxiosRequestHeaders, AxiosInstance } from 'axios';
|
|
|
2
2
|
import Nomalism from '@nomalism-com/types';
|
|
3
3
|
import { IModuleConstructor } from '../../main';
|
|
4
4
|
|
|
5
|
-
export import IEntity = Nomalism.Multimedia.Entity;
|
|
6
|
-
|
|
7
5
|
export default class Repository implements Nomalism.Multimedia.IApi {
|
|
8
6
|
public route: string;
|
|
9
7
|
|
|
@@ -2,14 +2,6 @@ import Nomalism from '@nomalism-com/types';
|
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
import { IModuleConstructor } from '../../main';
|
|
4
4
|
|
|
5
|
-
export import IEmailAttachment = Nomalism.EmailLog.IEmailAttachment;
|
|
6
|
-
export import IEmailAddress = Nomalism.EmailLog.IEmailAddress;
|
|
7
|
-
export import IFindByIdResponse = Nomalism.EmailLog.IFindByIdResponse;
|
|
8
|
-
|
|
9
|
-
export import IFindRequest = Nomalism.EmailLog.IFindRequest;
|
|
10
|
-
export import IFindResponse = Nomalism.EmailLog.IFindResponse;
|
|
11
|
-
export import ICheckSentResponse = Nomalism.EmailLog.ICheckSentResponse;
|
|
12
|
-
|
|
13
5
|
export default class Repository implements Nomalism.EmailLog.IApi {
|
|
14
6
|
public route: string;
|
|
15
7
|
|
|
@@ -23,24 +15,28 @@ export default class Repository implements Nomalism.EmailLog.IApi {
|
|
|
23
15
|
this.publicRoute = publicRoute;
|
|
24
16
|
}
|
|
25
17
|
|
|
26
|
-
async find(params: IFindRequest): Promise<IFindResponse[]> {
|
|
18
|
+
async find(params: Nomalism.EmailLog.IFindRequest): Promise<Nomalism.EmailLog.IFindResponse[]> {
|
|
27
19
|
const response = await this.api.get(`${this.route}`, { params });
|
|
28
20
|
return response.data;
|
|
29
21
|
}
|
|
30
22
|
|
|
31
|
-
async findById({
|
|
23
|
+
async findById({
|
|
24
|
+
id,
|
|
25
|
+
}: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.EmailLog.IFindByIdResponse> {
|
|
32
26
|
const response = await this.api.get(`${this.route}${id}`);
|
|
33
27
|
return response.data;
|
|
34
28
|
}
|
|
35
29
|
|
|
36
30
|
async findByDocumentHeaderId({
|
|
37
31
|
id,
|
|
38
|
-
}: Nomalism.shared.IFindByIdRequest): Promise<IFindByIdResponse[]> {
|
|
32
|
+
}: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.EmailLog.IFindByIdResponse[]> {
|
|
39
33
|
const response = await this.api.get(`${this.route}document_header/${id}`);
|
|
40
34
|
return response.data;
|
|
41
35
|
}
|
|
42
36
|
|
|
43
|
-
async checkSent(
|
|
37
|
+
async checkSent(
|
|
38
|
+
body: Nomalism.EmailLog.ICheckSent,
|
|
39
|
+
): Promise<Nomalism.EmailLog.ICheckSentResponse> {
|
|
44
40
|
const response = await this.api.post(`${this.route}check_sent`, body);
|
|
45
41
|
return response.data;
|
|
46
42
|
}
|
|
@@ -2,15 +2,6 @@ import Nomalism from '@nomalism-com/types';
|
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
import { IModuleConstructor } from '../../main';
|
|
4
4
|
|
|
5
|
-
export import IEntity = Nomalism.EmailTemplate.Entity;
|
|
6
|
-
export import IEntityExtended = Nomalism.EmailTemplate.IEntityExtended;
|
|
7
|
-
|
|
8
|
-
export import ICreateRequest = Nomalism.EmailTemplate.ICreateRequest;
|
|
9
|
-
|
|
10
|
-
export import IUpdateRequest = Nomalism.EmailTemplate.IUpdateRequest;
|
|
11
|
-
|
|
12
|
-
export import ISendRequest = Nomalism.EmailTemplate.ISendRequest;
|
|
13
|
-
|
|
14
5
|
export default class Repository implements Nomalism.EmailTemplate.IRepository {
|
|
15
6
|
public route: string;
|
|
16
7
|
|
|
@@ -29,12 +20,15 @@ export default class Repository implements Nomalism.EmailTemplate.IRepository {
|
|
|
29
20
|
return response.data;
|
|
30
21
|
}
|
|
31
22
|
|
|
32
|
-
async create(data: ICreateRequest): Promise<string> {
|
|
23
|
+
async create(data: Nomalism.EmailTemplate.ICreateRequest): Promise<string> {
|
|
33
24
|
const response = await this.api.post(`${this.route}`, data);
|
|
34
25
|
return response.data;
|
|
35
26
|
}
|
|
36
27
|
|
|
37
|
-
async update(
|
|
28
|
+
async update(
|
|
29
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
30
|
+
data: Nomalism.EmailTemplate.IUpdateRequest,
|
|
31
|
+
): Promise<void> {
|
|
38
32
|
const response = await this.api.put(`${this.route}${selector.id}`, data);
|
|
39
33
|
return response.data;
|
|
40
34
|
}
|
|
@@ -43,7 +37,7 @@ export default class Repository implements Nomalism.EmailTemplate.IRepository {
|
|
|
43
37
|
await this.api.delete(`${this.route}${selector.id}`);
|
|
44
38
|
}
|
|
45
39
|
|
|
46
|
-
async send(data: ISendRequest): Promise<void> {
|
|
40
|
+
async send(data: Nomalism.EmailTemplate.ISendRequest): Promise<void> {
|
|
47
41
|
const response = await this.api.post(`${this.route}send`, data);
|
|
48
42
|
return response.data;
|
|
49
43
|
}
|
|
@@ -2,10 +2,6 @@ import Nomalism from '@nomalism-com/types';
|
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
import { IModuleConstructor } from '../../main';
|
|
4
4
|
|
|
5
|
-
export import IEntity = Nomalism.EmailTemplateAttachment.Entity;
|
|
6
|
-
|
|
7
|
-
export import ICreateRequest = Nomalism.EmailTemplateAttachment.ICreateRequest;
|
|
8
|
-
|
|
9
5
|
export default class Repository implements Nomalism.EmailTemplateAttachment.IRepository {
|
|
10
6
|
public route: string;
|
|
11
7
|
|
|
@@ -19,7 +15,7 @@ export default class Repository implements Nomalism.EmailTemplateAttachment.IRep
|
|
|
19
15
|
this.publicRoute = publicRoute;
|
|
20
16
|
}
|
|
21
17
|
|
|
22
|
-
async create(data: ICreateRequest): Promise<string> {
|
|
18
|
+
async create(data: Nomalism.EmailTemplateAttachment.ICreateRequest): Promise<string> {
|
|
23
19
|
const response = await this.api.post(`${this.route}`, data);
|
|
24
20
|
return response.data;
|
|
25
21
|
}
|
|
@@ -2,9 +2,6 @@ import Nomalism from '@nomalism-com/types';
|
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
import { IModuleConstructor } from '../../main';
|
|
4
4
|
|
|
5
|
-
export import IEntity = Nomalism.GoogleFilePermission.Entity;
|
|
6
|
-
export import ICreateRequest = Nomalism.GoogleFilePermission.ICreateRequest;
|
|
7
|
-
|
|
8
5
|
export default class Repository implements Nomalism.GoogleFilePermission.IRepository {
|
|
9
6
|
public route: string;
|
|
10
7
|
|
|
@@ -18,22 +15,28 @@ export default class Repository implements Nomalism.GoogleFilePermission.IReposi
|
|
|
18
15
|
this.publicRoute = publicRoute;
|
|
19
16
|
}
|
|
20
17
|
|
|
21
|
-
async create(
|
|
18
|
+
async create(
|
|
19
|
+
body: Nomalism.GoogleFilePermission.ICreateRequest,
|
|
20
|
+
): Promise<Nomalism.GoogleFilePermission.Entity> {
|
|
22
21
|
const response = await this.api.post(`${this.route}`, body);
|
|
23
22
|
return response.data;
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
async find(): Promise<
|
|
25
|
+
async find(): Promise<Nomalism.GoogleFilePermission.Entity[]> {
|
|
27
26
|
const response = await this.api.get(`${this.route}`);
|
|
28
27
|
return response.data;
|
|
29
28
|
}
|
|
30
29
|
|
|
31
|
-
async findById(
|
|
30
|
+
async findById(
|
|
31
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
32
|
+
): Promise<Nomalism.GoogleFilePermission.Entity | null> {
|
|
32
33
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
33
34
|
return response.data;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
async deleteOne(
|
|
37
|
+
async deleteOne(
|
|
38
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
39
|
+
): Promise<Nomalism.GoogleFilePermission.Entity | null> {
|
|
37
40
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
38
41
|
return response.data;
|
|
39
42
|
}
|