@nomalism-com/api 0.34.1 → 0.34.3
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 +2199 -289
- 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
|
@@ -2,18 +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.DocumentLineAssoc.Entity;
|
|
6
|
-
|
|
7
|
-
export import IEntityWithDocumentLine = Nomalism.DocumentLineAssoc.IEntityWithDocumentLine;
|
|
8
|
-
|
|
9
|
-
export import IFindByOwnerIdRequest = Nomalism.shared.IFindByOwnerIdRequest;
|
|
10
|
-
export import IEntityExtended = Nomalism.DocumentLineAssoc.IEntityExtended;
|
|
11
|
-
|
|
12
|
-
export import ICreateRequest = Nomalism.DocumentLineAssoc.ICreateRequest;
|
|
13
|
-
|
|
14
|
-
export import IUpdateRequest = Nomalism.DocumentLineAssoc.IUpdateRequest;
|
|
15
|
-
export import IFindByIdRequest = Nomalism.shared.IFindByIdRequest;
|
|
16
|
-
|
|
17
5
|
export default class Repository implements Nomalism.DocumentLineAssoc.IApi {
|
|
18
6
|
public route: string;
|
|
19
7
|
|
|
@@ -27,13 +15,15 @@ export default class Repository implements Nomalism.DocumentLineAssoc.IApi {
|
|
|
27
15
|
this.publicRoute = publicRoute;
|
|
28
16
|
}
|
|
29
17
|
|
|
30
|
-
async findByOwnerId(
|
|
18
|
+
async findByOwnerId(
|
|
19
|
+
params?: Nomalism.shared.IFindByOwnerIdRequest,
|
|
20
|
+
): Promise<Nomalism.DocumentLineAssoc.IEntityExtended[]> {
|
|
31
21
|
const response = await this.api.get(`${this.route}by_owner`, { params });
|
|
32
22
|
return response.data;
|
|
33
23
|
}
|
|
34
24
|
|
|
35
25
|
async findVirtualsByOwnerId(
|
|
36
|
-
params?: IFindByOwnerIdRequest,
|
|
26
|
+
params?: Nomalism.shared.IFindByOwnerIdRequest,
|
|
37
27
|
): Promise<Nomalism.DocumentLine.IDocumentLineVirtuals[]> {
|
|
38
28
|
const response = await this.api.get(`${this.route}virtuals_by_owner`, {
|
|
39
29
|
params,
|
|
@@ -41,22 +31,26 @@ export default class Repository implements Nomalism.DocumentLineAssoc.IApi {
|
|
|
41
31
|
return response.data;
|
|
42
32
|
}
|
|
43
33
|
|
|
44
|
-
async findHistoryByLineId(
|
|
34
|
+
async findHistoryByLineId(
|
|
35
|
+
params: Nomalism.shared.IFindByIdRequest,
|
|
36
|
+
): Promise<Nomalism.DocumentLine.IHistory[]> {
|
|
45
37
|
const response = await this.api.get(`${this.route}history_by_line_id`, {
|
|
46
38
|
params,
|
|
47
39
|
});
|
|
48
40
|
return response.data;
|
|
49
41
|
}
|
|
50
42
|
|
|
51
|
-
async create(
|
|
43
|
+
async create(
|
|
44
|
+
body: Nomalism.DocumentLineAssoc.ICreateRequest[],
|
|
45
|
+
): Promise<Nomalism.DocumentLineAssoc.IEntityWithDocumentLine[]> {
|
|
52
46
|
const response = await this.api.post(`${this.route}`, body);
|
|
53
47
|
return response.data;
|
|
54
48
|
}
|
|
55
49
|
|
|
56
50
|
async update(
|
|
57
51
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
58
|
-
body: IUpdateRequest,
|
|
59
|
-
): Promise<IEntityWithDocumentLine> {
|
|
52
|
+
body: Nomalism.DocumentLineAssoc.IUpdateRequest,
|
|
53
|
+
): Promise<Nomalism.DocumentLineAssoc.IEntityWithDocumentLine> {
|
|
60
54
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
61
55
|
return response.data;
|
|
62
56
|
}
|
|
@@ -2,11 +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 ICreateRequest = Nomalism.DocumentLineNote.ICreateRequest;
|
|
6
|
-
|
|
7
|
-
export import IUpdateRequest = Nomalism.DocumentLineNote.IUpdateRequest;
|
|
8
|
-
export import IEntity = Nomalism.DocumentLineNote.Entity;
|
|
9
|
-
|
|
10
5
|
export default class Repository implements Nomalism.DocumentLineNote.IRepository {
|
|
11
6
|
public route: string;
|
|
12
7
|
|
|
@@ -20,12 +15,15 @@ export default class Repository implements Nomalism.DocumentLineNote.IRepository
|
|
|
20
15
|
this.publicRoute = publicRoute;
|
|
21
16
|
}
|
|
22
17
|
|
|
23
|
-
async create(body: ICreateRequest): Promise<string> {
|
|
18
|
+
async create(body: Nomalism.DocumentLineNote.ICreateRequest): Promise<string> {
|
|
24
19
|
const response = await this.api.post(`${this.route}`, body);
|
|
25
20
|
return response.data;
|
|
26
21
|
}
|
|
27
22
|
|
|
28
|
-
async update(
|
|
23
|
+
async update(
|
|
24
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
25
|
+
body: Nomalism.DocumentLineNote.IUpdateRequest,
|
|
26
|
+
): Promise<void> {
|
|
29
27
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
30
28
|
return response.data;
|
|
31
29
|
}
|
|
@@ -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.DocumentSet.Entity;
|
|
6
|
-
|
|
7
|
-
export import IFindMinifiedRequest = Nomalism.shared.IFindMinifiedRequest;
|
|
8
|
-
export import IFindMinifiedResponse = Nomalism.shared.IFindMinifiedResponse;
|
|
9
|
-
|
|
10
|
-
export import ICreateRequest = Nomalism.DocumentSet.ICreateRequest;
|
|
11
|
-
|
|
12
|
-
export import IUpdateRequest = Nomalism.DocumentSet.IUpdateRequest;
|
|
13
|
-
|
|
14
5
|
export default class Repository implements Nomalism.DocumentSet.IRepository {
|
|
15
6
|
public route: string;
|
|
16
7
|
|
|
@@ -24,35 +15,41 @@ export default class Repository implements Nomalism.DocumentSet.IRepository {
|
|
|
24
15
|
this.publicRoute = publicRoute;
|
|
25
16
|
}
|
|
26
17
|
|
|
27
|
-
async find(): Promise<
|
|
18
|
+
async find(): Promise<Nomalism.DocumentSet.Entity[]> {
|
|
28
19
|
const response = await this.api.get(`${this.route}`);
|
|
29
20
|
return response.data;
|
|
30
21
|
}
|
|
31
22
|
|
|
32
|
-
async findById(
|
|
23
|
+
async findById(
|
|
24
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
25
|
+
): Promise<Nomalism.DocumentSet.Entity | null> {
|
|
33
26
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
34
27
|
return response.data;
|
|
35
28
|
}
|
|
36
29
|
|
|
37
|
-
async findMinified(
|
|
30
|
+
async findMinified(
|
|
31
|
+
params?: Nomalism.shared.IFindMinifiedRequest,
|
|
32
|
+
): Promise<Nomalism.shared.IFindMinifiedResponse[]> {
|
|
38
33
|
const response = await this.api.get(`${this.route}minified`, { params });
|
|
39
34
|
return response.data;
|
|
40
35
|
}
|
|
41
36
|
|
|
42
|
-
async create(body: ICreateRequest): Promise<
|
|
37
|
+
async create(body: Nomalism.DocumentSet.ICreateRequest): Promise<Nomalism.DocumentSet.Entity> {
|
|
43
38
|
const response = await this.api.post(`${this.route}`, body);
|
|
44
39
|
return response.data;
|
|
45
40
|
}
|
|
46
41
|
|
|
47
42
|
async update(
|
|
48
43
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
49
|
-
body: IUpdateRequest,
|
|
50
|
-
): Promise<
|
|
44
|
+
body: Nomalism.DocumentSet.IUpdateRequest,
|
|
45
|
+
): Promise<Nomalism.DocumentSet.Entity | null> {
|
|
51
46
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
52
47
|
return response.data;
|
|
53
48
|
}
|
|
54
49
|
|
|
55
|
-
async deleteOne(
|
|
50
|
+
async deleteOne(
|
|
51
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
52
|
+
): Promise<Nomalism.DocumentSet.Entity | null> {
|
|
56
53
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
57
54
|
return response.data;
|
|
58
55
|
}
|
|
@@ -2,28 +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 IDocumentTypeUserType = Nomalism.DocumentType.IDocumentTypeUserType;
|
|
6
|
-
|
|
7
|
-
export import IDocumentTypeCodeType = Nomalism.DocumentType.IDocumentTypeCodeType;
|
|
8
|
-
|
|
9
|
-
export import DocumentTypeUserTypeEnum = Nomalism.DocumentType.DocumentTypeUserTypeEnum;
|
|
10
|
-
|
|
11
|
-
export import documentTypeUserTypes = Nomalism.DocumentType.documentTypeUserTypes;
|
|
12
|
-
|
|
13
|
-
export import IFindRequest = Nomalism.DocumentType.IFindRequest;
|
|
14
|
-
export import IFindResponse = Nomalism.DocumentType.IFindResponse;
|
|
15
|
-
|
|
16
|
-
export import IFindMinifiedRequest = Nomalism.shared.IFindMinifiedRequest;
|
|
17
|
-
export import IFindMinifiedResponse = Nomalism.shared.IFindMinifiedResponse;
|
|
18
|
-
|
|
19
|
-
export import IEntityExtended = Nomalism.DocumentType.IEntityExtended;
|
|
20
|
-
|
|
21
|
-
export import ICreateRequest = Nomalism.DocumentType.ICreateRequest;
|
|
22
|
-
|
|
23
|
-
export import IEntity = Nomalism.DocumentType.Entity;
|
|
24
|
-
|
|
25
|
-
export import IUpdateRequest = Nomalism.DocumentType.IUpdateRequest;
|
|
26
|
-
|
|
27
5
|
export default class Repository implements Nomalism.DocumentType.IApi {
|
|
28
6
|
public route: string;
|
|
29
7
|
|
|
@@ -37,37 +15,45 @@ export default class Repository implements Nomalism.DocumentType.IApi {
|
|
|
37
15
|
this.publicRoute = publicRoute;
|
|
38
16
|
}
|
|
39
17
|
|
|
40
|
-
async find(
|
|
18
|
+
async find(
|
|
19
|
+
params?: Nomalism.DocumentType.IFindRequest,
|
|
20
|
+
): Promise<Nomalism.DocumentType.IFindResponse[]> {
|
|
41
21
|
const response = await this.api.get(`${this.route}`, { params });
|
|
42
22
|
return response.data;
|
|
43
23
|
}
|
|
44
24
|
|
|
45
|
-
async findMinified(
|
|
25
|
+
async findMinified(
|
|
26
|
+
params?: Nomalism.shared.IFindMinifiedRequest,
|
|
27
|
+
): Promise<Nomalism.shared.IFindMinifiedResponse[]> {
|
|
46
28
|
const response = await this.api.get(`${this.route}minified`, { params });
|
|
47
29
|
return response.data;
|
|
48
30
|
}
|
|
49
31
|
|
|
50
|
-
async findDetailed(
|
|
32
|
+
async findDetailed(
|
|
33
|
+
params?: Nomalism.DocumentType.IFindRequest,
|
|
34
|
+
): Promise<Nomalism.DocumentType.IEntityExtended[]> {
|
|
51
35
|
const response = await this.api.get(`${this.route}detailed`, { params });
|
|
52
36
|
return response.data;
|
|
53
37
|
}
|
|
54
38
|
|
|
55
|
-
async create(
|
|
39
|
+
async create(
|
|
40
|
+
body: Nomalism.DocumentType.ICreateRequest,
|
|
41
|
+
): Promise<Nomalism.DocumentType.IEntityExtended> {
|
|
56
42
|
const response = await this.api.post(`${this.route}`, body);
|
|
57
43
|
return response.data;
|
|
58
44
|
}
|
|
59
45
|
|
|
60
46
|
async update(
|
|
61
47
|
selector: Nomalism.shared.IFindByIdNumberRequest,
|
|
62
|
-
body: IUpdateRequest,
|
|
63
|
-
): Promise<IEntityExtended | null> {
|
|
48
|
+
body: Nomalism.DocumentType.IUpdateRequest,
|
|
49
|
+
): Promise<Nomalism.DocumentType.IEntityExtended | null> {
|
|
64
50
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
65
51
|
return response.data;
|
|
66
52
|
}
|
|
67
53
|
|
|
68
54
|
async deleteOne(
|
|
69
55
|
selector: Nomalism.shared.IFindByIdNumberRequest,
|
|
70
|
-
): Promise<IEntityExtended | null> {
|
|
56
|
+
): Promise<Nomalism.DocumentType.IEntityExtended | null> {
|
|
71
57
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
72
58
|
return response.data;
|
|
73
59
|
}
|
|
@@ -2,24 +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.ExternalDocumentHeader.Entity;
|
|
6
|
-
|
|
7
|
-
export import ICreateRequest = Nomalism.ExternalDocumentHeader.ICreateRequest;
|
|
8
|
-
export import IUpdateRequest = Nomalism.ExternalDocumentHeader.IUpdateRequest;
|
|
9
|
-
|
|
10
|
-
export import IFindRequest = Nomalism.ExternalDocumentHeader.IFindRequest;
|
|
11
|
-
export import IFindResponse = Nomalism.ExternalDocumentHeader.IFindResponse;
|
|
12
|
-
|
|
13
|
-
export import IFindPaginatedRequest = Nomalism.ExternalDocumentHeader.IFindPaginatedRequest;
|
|
14
|
-
export import IFindWithPaginationResponse = Nomalism.ExternalDocumentHeader.IFindWithPaginationResponse;
|
|
15
|
-
|
|
16
|
-
export import IFindByIdRequest = Nomalism.shared.IFindByIdRequest;
|
|
17
|
-
export import IFindByIdResponse = Nomalism.ExternalDocumentHeader.IFindByIdResponse;
|
|
18
|
-
|
|
19
|
-
export import IFindByOwnerIdRequest = Nomalism.shared.IFindByOwnerIdRequest;
|
|
20
|
-
|
|
21
|
-
export import ISendEmailDocumentRequest = Nomalism.ExternalDocumentHeader.ISendEmailDocumentRequest;
|
|
22
|
-
|
|
23
5
|
export default class Repository implements Nomalism.ExternalDocumentHeader.IRepository {
|
|
24
6
|
public route: string;
|
|
25
7
|
|
|
@@ -33,23 +15,30 @@ export default class Repository implements Nomalism.ExternalDocumentHeader.IRepo
|
|
|
33
15
|
this.publicRoute = publicRoute;
|
|
34
16
|
}
|
|
35
17
|
|
|
36
|
-
async create(
|
|
18
|
+
async create(
|
|
19
|
+
body: Nomalism.ExternalDocumentHeader.ICreateRequest,
|
|
20
|
+
): Promise<Nomalism.ExternalDocumentHeader.Entity> {
|
|
37
21
|
const response = await this.api.post(`${this.route}`, body);
|
|
38
22
|
return response.data;
|
|
39
23
|
}
|
|
40
24
|
|
|
41
|
-
async update(
|
|
25
|
+
async update(
|
|
26
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
27
|
+
body: Nomalism.ExternalDocumentHeader.IUpdateRequest,
|
|
28
|
+
): Promise<Nomalism.ExternalDocumentHeader.Entity | null> {
|
|
42
29
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
43
30
|
return response.data;
|
|
44
31
|
}
|
|
45
32
|
|
|
46
|
-
async findById(
|
|
33
|
+
async findById(
|
|
34
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
35
|
+
): Promise<Nomalism.ExternalDocumentHeader.IFindByIdResponse | null> {
|
|
47
36
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
48
37
|
return response.data;
|
|
49
38
|
}
|
|
50
39
|
|
|
51
40
|
async findByOwnerId(
|
|
52
|
-
params?: IFindByOwnerIdRequest,
|
|
41
|
+
params?: Nomalism.shared.IFindByOwnerIdRequest,
|
|
53
42
|
): Promise<Nomalism.ExternalDocumentHeader.IFindByOwnerIdItemWithVersions[]> {
|
|
54
43
|
const response = await this.api.get(`${this.route}by_owner`, { params });
|
|
55
44
|
return response.data;
|
|
@@ -64,22 +53,30 @@ export default class Repository implements Nomalism.ExternalDocumentHeader.IRepo
|
|
|
64
53
|
return response.data;
|
|
65
54
|
}
|
|
66
55
|
|
|
67
|
-
async find(
|
|
56
|
+
async find(
|
|
57
|
+
params?: Nomalism.ExternalDocumentHeader.IFindRequest,
|
|
58
|
+
): Promise<Nomalism.ExternalDocumentHeader.IFindResponse[]> {
|
|
68
59
|
const response = await this.api.get(`${this.route}`, { params });
|
|
69
60
|
return response.data;
|
|
70
61
|
}
|
|
71
62
|
|
|
72
|
-
async findPaginated(
|
|
63
|
+
async findPaginated(
|
|
64
|
+
params: Nomalism.ExternalDocumentHeader.IFindPaginatedRequest,
|
|
65
|
+
): Promise<Nomalism.ExternalDocumentHeader.IFindWithPaginationResponse> {
|
|
73
66
|
const response = await this.api.get(`${this.route}paginated`, { params });
|
|
74
67
|
return response.data;
|
|
75
68
|
}
|
|
76
69
|
|
|
77
|
-
async deleteOne(
|
|
70
|
+
async deleteOne(
|
|
71
|
+
params?: Nomalism.shared.IFindByIdRequest,
|
|
72
|
+
): Promise<Nomalism.ExternalDocumentHeader.Entity | null> {
|
|
78
73
|
const response = await this.api.get(`${this.route}`, { params });
|
|
79
74
|
return response.data;
|
|
80
75
|
}
|
|
81
76
|
|
|
82
|
-
async sendEmailDocument(
|
|
77
|
+
async sendEmailDocument(
|
|
78
|
+
body: Nomalism.ExternalDocumentHeader.ISendEmailDocumentRequest,
|
|
79
|
+
): Promise<void> {
|
|
83
80
|
await this.api.post(`${this.route}sendEmail`, body);
|
|
84
81
|
}
|
|
85
82
|
|
|
@@ -2,11 +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.ExternalDocumentType.Entity;
|
|
6
|
-
|
|
7
|
-
export import IFindMinifiedRequest = Nomalism.shared.IFindMinifiedRequest;
|
|
8
|
-
export import IFindMinifiedResponse = Nomalism.shared.IFindMinifiedResponse;
|
|
9
|
-
|
|
10
5
|
export default class Repository implements Nomalism.ExternalDocumentType.IRepository {
|
|
11
6
|
public route: string;
|
|
12
7
|
|
|
@@ -20,12 +15,14 @@ export default class Repository implements Nomalism.ExternalDocumentType.IReposi
|
|
|
20
15
|
this.publicRoute = publicRoute;
|
|
21
16
|
}
|
|
22
17
|
|
|
23
|
-
async find(): Promise<
|
|
18
|
+
async find(): Promise<Nomalism.ExternalDocumentType.Entity[]> {
|
|
24
19
|
const response = await this.api.get(`${this.route}`);
|
|
25
20
|
return response.data;
|
|
26
21
|
}
|
|
27
22
|
|
|
28
|
-
async findMinified(
|
|
23
|
+
async findMinified(
|
|
24
|
+
params?: Nomalism.shared.IFindMinifiedRequest,
|
|
25
|
+
): Promise<Nomalism.shared.IFindMinifiedResponse[]> {
|
|
29
26
|
const response = await this.api.get(`${this.route}minified`, { params });
|
|
30
27
|
return response.data;
|
|
31
28
|
}
|
|
@@ -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 IFindProviderProductsRequest = Nomalism.OrderManagement.IFindProviderProductsRequest;
|
|
6
|
-
export import IFindProviderProductsResponse = Nomalism.OrderManagement.IFindProviderProductsResponse;
|
|
7
|
-
export import IFindAllProviderProductsResponse = Nomalism.OrderManagement.IFindAllProviderProductsResponse;
|
|
8
|
-
|
|
9
5
|
export default class Repository implements Nomalism.OrderManagement.IRepository {
|
|
10
6
|
public route: string;
|
|
11
7
|
|
|
@@ -20,15 +16,17 @@ export default class Repository implements Nomalism.OrderManagement.IRepository
|
|
|
20
16
|
}
|
|
21
17
|
|
|
22
18
|
async findProviderProducts(
|
|
23
|
-
params: IFindProviderProductsRequest,
|
|
24
|
-
): Promise<IFindProviderProductsResponse[]> {
|
|
19
|
+
params: Nomalism.OrderManagement.IFindProviderProductsRequest,
|
|
20
|
+
): Promise<Nomalism.OrderManagement.IFindProviderProductsResponse[]> {
|
|
25
21
|
const response = await this.api.get(`${this.route}provider_products`, {
|
|
26
22
|
params,
|
|
27
23
|
});
|
|
28
24
|
return response.data;
|
|
29
25
|
}
|
|
30
26
|
|
|
31
|
-
async findAllProviderProducts(): Promise<
|
|
27
|
+
async findAllProviderProducts(): Promise<
|
|
28
|
+
Nomalism.OrderManagement.IFindAllProviderProductsResponse[]
|
|
29
|
+
> {
|
|
32
30
|
const response = await this.api.get(`${this.route}all_provider_products`);
|
|
33
31
|
return response.data;
|
|
34
32
|
}
|
|
@@ -2,42 +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 IFindRequest = Nomalism.Payment.IFindRequest;
|
|
6
|
-
export import IFindResponse = Nomalism.Payment.IFindResponse;
|
|
7
|
-
|
|
8
|
-
export import IFindPaginatedRequest = Nomalism.Payment.IFindPaginatedRequest;
|
|
9
|
-
|
|
10
|
-
export import IFindByOwnerIdRequest = Nomalism.shared.IFindByOwnerIdRequest;
|
|
11
|
-
export import IFindByIdRequest = Nomalism.shared.IFindByIdRequest;
|
|
12
|
-
|
|
13
|
-
export import ICurrentAccountNotes = Nomalism.Payment.ICurrentAccountNotes;
|
|
14
|
-
export import IFindCurrentAccountByOwnerIdResponse = Nomalism.Payment.IFindCurrentAccountByOwnerIdResponse;
|
|
15
|
-
|
|
16
|
-
export import ICreateForThisDocumentHeaderRequest = Nomalism.Payment.ICreateForThisDocumentHeaderRequest;
|
|
17
|
-
|
|
18
|
-
export import ICreateRequest = Nomalism.Payment.ICreateRequest;
|
|
19
|
-
|
|
20
|
-
export import IEntity = Nomalism.Payment.Entity;
|
|
21
|
-
|
|
22
|
-
export import IExportPaymentsRequest = Nomalism.Payment.IExportPaymentsRequest;
|
|
23
|
-
export import IPaymentsBatchResponse = Nomalism.Payment.IPaymentsBatchResponse;
|
|
24
|
-
|
|
25
|
-
export import IUnpaidPurchasesRequest = Nomalism.Payment.IUnpaidPurchasesRequest;
|
|
26
|
-
export import IUnpaidPurchasesResponse = Nomalism.Payment.IUnpaidPurchasesResponse;
|
|
27
|
-
export import IUnpaidByDatePurchasesRequest = Nomalism.Payment.IUnpaidByDatePurchasesRequest;
|
|
28
|
-
export import IFindProvidersWithClientIdResponse = Nomalism.Payment.IFindProvidersWithClientIdResponse;
|
|
29
|
-
|
|
30
|
-
export import IProviderPaymentDocument = Nomalism.Payment.IProviderPaymentDocument;
|
|
31
|
-
export import IProviderPaymentRequest = Nomalism.Payment.IProviderPaymentRequest;
|
|
32
|
-
|
|
33
|
-
export import IPaymentsNotExportedRequest = Nomalism.Payment.IPaymentsNotExportedRequest;
|
|
34
|
-
export import IPaymentsNotExportedResponse = Nomalism.Payment.IPaymentsNotExportedResponse;
|
|
35
|
-
|
|
36
|
-
export import IExportCurrentAccountRequest = Nomalism.Payment.IExportCurrentAccountRequest;
|
|
37
|
-
|
|
38
|
-
export type IPaginationResponse =
|
|
39
|
-
Nomalism.shared.IPaginationResponse<Nomalism.Payment.IFindResponse>;
|
|
40
|
-
|
|
41
5
|
export default class Repository implements Nomalism.Payment.IRepository {
|
|
42
6
|
public route: string;
|
|
43
7
|
|
|
@@ -51,36 +15,42 @@ export default class Repository implements Nomalism.Payment.IRepository {
|
|
|
51
15
|
this.publicRoute = publicRoute;
|
|
52
16
|
}
|
|
53
17
|
|
|
54
|
-
async find(params: IFindRequest): Promise<IFindResponse[]> {
|
|
18
|
+
async find(params: Nomalism.Payment.IFindRequest): Promise<Nomalism.Payment.IFindResponse[]> {
|
|
55
19
|
const response = await this.api.get(`${this.route}`, { params });
|
|
56
20
|
return response.data;
|
|
57
21
|
}
|
|
58
22
|
|
|
59
|
-
async findPaginated(
|
|
23
|
+
async findPaginated(
|
|
24
|
+
params: Nomalism.Payment.IFindPaginatedRequest,
|
|
25
|
+
): Promise<Nomalism.shared.IPaginationResponse<Nomalism.Payment.IFindResponse>> {
|
|
60
26
|
const response = await this.api.get(`${this.route}paginated`, { params });
|
|
61
27
|
return response.data;
|
|
62
28
|
}
|
|
63
29
|
|
|
64
|
-
async findByOwnerId(
|
|
30
|
+
async findByOwnerId(
|
|
31
|
+
params: Nomalism.shared.IFindByOwnerIdRequest,
|
|
32
|
+
): Promise<Nomalism.Payment.IFindResponse[]> {
|
|
65
33
|
const response = await this.api.get(`${this.route}by_owner`, {
|
|
66
34
|
params,
|
|
67
35
|
});
|
|
68
36
|
return response.data;
|
|
69
37
|
}
|
|
70
38
|
|
|
71
|
-
async findById(
|
|
39
|
+
async findById(
|
|
40
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
41
|
+
): Promise<Nomalism.Payment.Entity | null> {
|
|
72
42
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
73
43
|
return response.data;
|
|
74
44
|
}
|
|
75
45
|
|
|
76
|
-
async deleteBatch(selector: IFindByIdRequest): Promise<void> {
|
|
46
|
+
async deleteBatch(selector: Nomalism.shared.IFindByIdRequest): Promise<void> {
|
|
77
47
|
const response = await this.api.delete(`${this.route}delete_batch${selector.id}`);
|
|
78
48
|
return response.data;
|
|
79
49
|
}
|
|
80
50
|
|
|
81
51
|
async findCurrentAccountByOwnerId(
|
|
82
52
|
params: Nomalism.shared.IFindByOwnerIdRequest,
|
|
83
|
-
): Promise<IFindCurrentAccountByOwnerIdResponse[]> {
|
|
53
|
+
): Promise<Nomalism.Payment.IFindCurrentAccountByOwnerIdResponse[]> {
|
|
84
54
|
const response = await this.api.get(`${this.route}current_account`, {
|
|
85
55
|
params,
|
|
86
56
|
});
|
|
@@ -95,34 +65,38 @@ export default class Repository implements Nomalism.Payment.IRepository {
|
|
|
95
65
|
}
|
|
96
66
|
|
|
97
67
|
async findSettledMaterialEntrance(
|
|
98
|
-
params: IUnpaidPurchasesRequest,
|
|
99
|
-
): Promise<IUnpaidPurchasesResponse[]> {
|
|
68
|
+
params: Nomalism.Payment.IUnpaidPurchasesRequest,
|
|
69
|
+
): Promise<Nomalism.Payment.IUnpaidPurchasesResponse[]> {
|
|
100
70
|
const response = await this.api.get(`${this.route}settled_material_entrance`, {
|
|
101
71
|
params,
|
|
102
72
|
});
|
|
103
73
|
return response.data;
|
|
104
74
|
}
|
|
105
75
|
|
|
106
|
-
async findSettledMaterialEntranceProviders(): Promise<
|
|
76
|
+
async findSettledMaterialEntranceProviders(): Promise<
|
|
77
|
+
Nomalism.Users.IFindProvidersWithClientIdResponse[]
|
|
78
|
+
> {
|
|
107
79
|
const response = await this.api.get(`${this.route}settled_material_entrance_providers`);
|
|
108
80
|
return response.data;
|
|
109
81
|
}
|
|
110
82
|
|
|
111
|
-
async createProvidersPayments(
|
|
83
|
+
async createProvidersPayments(
|
|
84
|
+
body: Nomalism.Payment.IProviderPaymentRequest[],
|
|
85
|
+
): Promise<string[]> {
|
|
112
86
|
const response = await this.api.post(`${this.route}provider`, body);
|
|
113
87
|
return response.data;
|
|
114
88
|
}
|
|
115
89
|
|
|
116
90
|
async findPaymentsNotExported(
|
|
117
|
-
params: IPaymentsNotExportedRequest,
|
|
118
|
-
): Promise<IPaymentsNotExportedResponse[]> {
|
|
91
|
+
params: Nomalism.Payment.IPaymentsNotExportedRequest,
|
|
92
|
+
): Promise<Nomalism.Payment.IPaymentsNotExportedResponse[]> {
|
|
119
93
|
const response = await this.api.get(`${this.route}not_exported`, {
|
|
120
94
|
params,
|
|
121
95
|
});
|
|
122
96
|
return response.data;
|
|
123
97
|
}
|
|
124
98
|
|
|
125
|
-
async findPaymentBatches(): Promise<IPaymentsBatchResponse[]> {
|
|
99
|
+
async findPaymentBatches(): Promise<Nomalism.Payment.IPaymentsBatchResponse[]> {
|
|
126
100
|
const response = await this.api.get(`${this.route}batches`);
|
|
127
101
|
return response.data;
|
|
128
102
|
}
|
|
@@ -132,8 +106,8 @@ export default class Repository implements Nomalism.Payment.IRepository {
|
|
|
132
106
|
}
|
|
133
107
|
|
|
134
108
|
async exportCurrentAccount(
|
|
135
|
-
params: IExportCurrentAccountRequest,
|
|
136
|
-
): Promise<IFindCurrentAccountByOwnerIdResponse[]> {
|
|
109
|
+
params: Nomalism.Payment.IExportCurrentAccountRequest,
|
|
110
|
+
): Promise<Nomalism.Payment.IFindCurrentAccountByOwnerIdResponse[]> {
|
|
137
111
|
const response = await this.api.get(`${this.publicRoute}export_current_account`, {
|
|
138
112
|
params,
|
|
139
113
|
});
|
|
@@ -141,15 +115,15 @@ export default class Repository implements Nomalism.Payment.IRepository {
|
|
|
141
115
|
}
|
|
142
116
|
|
|
143
117
|
async findSettledMaterialEntranceByDate(
|
|
144
|
-
params: IUnpaidByDatePurchasesRequest,
|
|
145
|
-
): Promise<IUnpaidPurchasesResponse[]> {
|
|
118
|
+
params: Nomalism.Payment.IUnpaidByDatePurchasesRequest,
|
|
119
|
+
): Promise<Nomalism.Payment.IUnpaidPurchasesResponse[]> {
|
|
146
120
|
const response = await this.api.get(`${this.route}settled_material_entrance_by_date`, {
|
|
147
121
|
params,
|
|
148
122
|
});
|
|
149
123
|
return response.data;
|
|
150
124
|
}
|
|
151
125
|
|
|
152
|
-
async exportPayments(body: IExportPaymentsRequest[]): Promise<void> {
|
|
126
|
+
async exportPayments(body: Nomalism.Payment.IExportPaymentsRequest[]): Promise<void> {
|
|
153
127
|
await this.api.post(`${this.route}export_payments`, body);
|
|
154
128
|
}
|
|
155
129
|
|
|
@@ -159,7 +133,7 @@ export default class Repository implements Nomalism.Payment.IRepository {
|
|
|
159
133
|
end_date,
|
|
160
134
|
output,
|
|
161
135
|
token,
|
|
162
|
-
}: IExportCurrentAccountRequest): string {
|
|
136
|
+
}: Nomalism.Payment.IExportCurrentAccountRequest): string {
|
|
163
137
|
const qs = new URLSearchParams();
|
|
164
138
|
qs.set('owner_id', owner_id);
|
|
165
139
|
qs.set('output', output);
|
|
@@ -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 IFindResponse = Nomalism.PreSale.IFindResponse;
|
|
6
|
-
export import IFindResponseWithCount = Nomalism.PreSale.IFindResponseWithCount;
|
|
7
|
-
|
|
8
|
-
export import ICreateRequest = Nomalism.PreSale.ICreateRequest;
|
|
9
|
-
|
|
10
|
-
export import IProductMinified = Nomalism.PreSale.IPreSaleProduct;
|
|
11
|
-
export import IEntityExtended = Nomalism.PreSale.IEntityExtended;
|
|
12
|
-
|
|
13
|
-
export import IUpdateRequest = Nomalism.PreSale.IUpdateRequest;
|
|
14
|
-
export import IUpdatePreSaleQuantityRequest = Nomalism.PreSale.IUpdatePreSaleQuantityRequest;
|
|
15
|
-
|
|
16
|
-
export import IRemovePreSaleProductRequest = Nomalism.PreSale.IRemovePreSaleProductRequest;
|
|
17
|
-
|
|
18
|
-
export import IImportToClientProposalRequest = Nomalism.PreSale.IImportToClientProposalRequest;
|
|
19
|
-
|
|
20
|
-
export import IPreSaleFindByUser = Nomalism.PreSale.IPreSaleFindByUser;
|
|
21
|
-
|
|
22
|
-
export type IPaginationResponse =
|
|
23
|
-
Nomalism.shared.IPaginationResponse<Nomalism.PreSale.IFindResponse>;
|
|
24
|
-
|
|
25
5
|
export default class Repository implements Nomalism.PreSale.IRepository {
|
|
26
6
|
public route: string;
|
|
27
7
|
|
|
@@ -35,51 +15,57 @@ export default class Repository implements Nomalism.PreSale.IRepository {
|
|
|
35
15
|
this.publicRoute = publicRoute;
|
|
36
16
|
}
|
|
37
17
|
|
|
38
|
-
async find(
|
|
18
|
+
async find(
|
|
19
|
+
selector: Nomalism.PreSale.IPreSaleFindByUser,
|
|
20
|
+
): Promise<Nomalism.PreSale.IFindResponseWithCount[]> {
|
|
39
21
|
const response = await this.api.get(`${this.route}by_user/${selector.created_by}`);
|
|
40
22
|
return response.data;
|
|
41
23
|
}
|
|
42
24
|
|
|
43
|
-
async findById(
|
|
25
|
+
async findById(
|
|
26
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
27
|
+
): Promise<Nomalism.PreSale.IEntityExtended | null> {
|
|
44
28
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
45
29
|
return response.data;
|
|
46
30
|
}
|
|
47
31
|
|
|
48
|
-
async findPending(): Promise<IEntityExtended[]> {
|
|
32
|
+
async findPending(): Promise<Nomalism.PreSale.IEntityExtended[]> {
|
|
49
33
|
const response = await this.api.get(`${this.route}pending`);
|
|
50
34
|
return response.data;
|
|
51
35
|
}
|
|
52
36
|
|
|
53
|
-
async create(body: ICreateRequest): Promise<IFindResponse> {
|
|
37
|
+
async create(body: Nomalism.PreSale.ICreateRequest): Promise<Nomalism.PreSale.IFindResponse> {
|
|
54
38
|
const response = await this.api.post(`${this.route}`, body);
|
|
55
39
|
return response.data;
|
|
56
40
|
}
|
|
57
41
|
|
|
58
42
|
async update(
|
|
59
43
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
60
|
-
body: IUpdateRequest,
|
|
61
|
-
): Promise<IFindResponse | null> {
|
|
44
|
+
body: Nomalism.PreSale.IUpdateRequest,
|
|
45
|
+
): Promise<Nomalism.PreSale.IFindResponse | null> {
|
|
62
46
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
63
47
|
return response.data;
|
|
64
48
|
}
|
|
65
49
|
|
|
66
50
|
async updatePreSaleQuantity(
|
|
67
51
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
68
|
-
body: IUpdatePreSaleQuantityRequest,
|
|
69
|
-
): Promise<IFindResponse | null> {
|
|
52
|
+
body: Nomalism.PreSale.IUpdatePreSaleQuantityRequest,
|
|
53
|
+
): Promise<Nomalism.PreSale.IFindResponse | null> {
|
|
70
54
|
const response = await this.api.put(`${this.route}${selector.id}/quantity`, body);
|
|
71
55
|
return response.data;
|
|
72
56
|
}
|
|
73
57
|
|
|
74
58
|
async removeProduct(
|
|
75
59
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
76
|
-
body: IRemovePreSaleProductRequest,
|
|
60
|
+
body: Nomalism.PreSale.IRemovePreSaleProductRequest,
|
|
77
61
|
): Promise<void> {
|
|
78
62
|
const response = await this.api.put(`${this.route}product/${selector.id}`, body);
|
|
79
63
|
return response.data;
|
|
80
64
|
}
|
|
81
65
|
|
|
82
|
-
async importToClientProposal(
|
|
66
|
+
async importToClientProposal(
|
|
67
|
+
data: Nomalism.PreSale.IImportToClientProposalRequest,
|
|
68
|
+
): Promise<void> {
|
|
83
69
|
const response = await this.api.post(`${this.route}client_proposal`, data);
|
|
84
70
|
return response.data;
|
|
85
71
|
}
|