@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
|
@@ -2,29 +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.StoreOperator.IFindRequest;
|
|
6
|
-
export import IFindResponse = Nomalism.StoreOperator.IFindResponse;
|
|
7
|
-
|
|
8
|
-
export import IFindPaginatedRequest = Nomalism.StoreOperator.IFindPaginatedRequest;
|
|
9
|
-
|
|
10
|
-
export import IFindMinifiedRequest = Nomalism.shared.IFindMinifiedRequest;
|
|
11
|
-
export import IFindMinifiedResponse = Nomalism.shared.IFindMinifiedResponse;
|
|
12
|
-
|
|
13
|
-
export import IFindByOwnerIdRequest = Nomalism.shared.IFindByOwnerIdRequest;
|
|
14
|
-
export import IFindByOwnerIdResponse = Nomalism.StoreOperator.IFindByOwnerIdResponse;
|
|
15
|
-
|
|
16
|
-
export import IFindByIdResponse = Nomalism.StoreOperator.IFindByIdResponse;
|
|
17
|
-
|
|
18
|
-
export import ICreateRequest = Nomalism.StoreOperator.ICreateRequest;
|
|
19
|
-
|
|
20
|
-
export import IEntity = Nomalism.StoreOperator.Entity;
|
|
21
|
-
|
|
22
|
-
export import IUpdateRequest = Nomalism.StoreOperator.IUpdateRequest;
|
|
23
|
-
|
|
24
|
-
export import ICheckPinRequest = Nomalism.StoreOperator.ICheckPinRequest;
|
|
25
|
-
export type IPaginationResponse =
|
|
26
|
-
Nomalism.shared.IPaginationResponse<Nomalism.StoreOperator.IFindResponse>;
|
|
27
|
-
|
|
28
5
|
export default class Repository implements Nomalism.StoreOperator.IApi {
|
|
29
6
|
public route: string;
|
|
30
7
|
|
|
@@ -38,54 +15,70 @@ export default class Repository implements Nomalism.StoreOperator.IApi {
|
|
|
38
15
|
this.publicRoute = publicRoute;
|
|
39
16
|
}
|
|
40
17
|
|
|
41
|
-
async find(
|
|
18
|
+
async find(
|
|
19
|
+
params: Nomalism.StoreOperator.IFindRequest,
|
|
20
|
+
): Promise<Nomalism.StoreOperator.IFindResponse[]> {
|
|
42
21
|
const response = await this.api.get(`${this.route}`, { params });
|
|
43
22
|
return response.data;
|
|
44
23
|
}
|
|
45
24
|
|
|
46
|
-
async findPaginated(
|
|
25
|
+
async findPaginated(
|
|
26
|
+
params: Nomalism.StoreOperator.IFindPaginatedRequest,
|
|
27
|
+
): Promise<Nomalism.shared.IPaginationResponse<Nomalism.StoreOperator.IFindResponse>> {
|
|
47
28
|
const response = await this.api.get(`${this.route}paginated`, { params });
|
|
48
29
|
return response.data;
|
|
49
30
|
}
|
|
50
31
|
|
|
51
|
-
async findMinified(
|
|
32
|
+
async findMinified(
|
|
33
|
+
params?: Nomalism.shared.IFindMinifiedRequest,
|
|
34
|
+
): Promise<Nomalism.shared.IFindMinifiedResponse[]> {
|
|
52
35
|
const response = await this.api.get(`${this.route}minified`, {
|
|
53
36
|
params,
|
|
54
37
|
});
|
|
55
38
|
return response.data;
|
|
56
39
|
}
|
|
57
40
|
|
|
58
|
-
async findByOwnerId(
|
|
41
|
+
async findByOwnerId(
|
|
42
|
+
params: Nomalism.shared.IFindByOwnerIdRequest,
|
|
43
|
+
): Promise<Nomalism.StoreOperator.IFindByOwnerIdResponse[]> {
|
|
59
44
|
const response = await this.api.get(`${this.route}by_owner`, {
|
|
60
45
|
params,
|
|
61
46
|
});
|
|
62
47
|
return response.data;
|
|
63
48
|
}
|
|
64
49
|
|
|
65
|
-
async findById(
|
|
50
|
+
async findById(
|
|
51
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
52
|
+
): Promise<Nomalism.StoreOperator.IFindByIdResponse | null> {
|
|
66
53
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
67
54
|
return response.data;
|
|
68
55
|
}
|
|
69
56
|
|
|
70
|
-
async create(
|
|
57
|
+
async create(
|
|
58
|
+
body: Nomalism.StoreOperator.ICreateRequest,
|
|
59
|
+
): Promise<Nomalism.StoreOperator.IFindResponse> {
|
|
71
60
|
const response = await this.api.post(`${this.route}`, body);
|
|
72
61
|
return response.data;
|
|
73
62
|
}
|
|
74
63
|
|
|
75
64
|
async update(
|
|
76
65
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
77
|
-
body: IUpdateRequest,
|
|
78
|
-
): Promise<IFindResponse | null> {
|
|
66
|
+
body: Nomalism.StoreOperator.IUpdateRequest,
|
|
67
|
+
): Promise<Nomalism.StoreOperator.IFindResponse | null> {
|
|
79
68
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
80
69
|
return response.data;
|
|
81
70
|
}
|
|
82
71
|
|
|
83
|
-
async deleteOne(
|
|
72
|
+
async deleteOne(
|
|
73
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
74
|
+
): Promise<Nomalism.StoreOperator.IFindResponse | null> {
|
|
84
75
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
85
76
|
return response.data;
|
|
86
77
|
}
|
|
87
78
|
|
|
88
|
-
async checkPin(
|
|
79
|
+
async checkPin(
|
|
80
|
+
data: Nomalism.StoreOperator.ICheckPinRequest,
|
|
81
|
+
): Promise<Nomalism.StoreOperator.IFindResponse> {
|
|
89
82
|
const response = await this.api.post(`${this.route}pin`, data);
|
|
90
83
|
return response.data;
|
|
91
84
|
}
|
|
@@ -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 IFindRequest = Nomalism.Swift.IFindRequest;
|
|
6
|
-
export import IFindResponse = Nomalism.Swift.IFindResponse;
|
|
7
|
-
|
|
8
|
-
export import IFindPaginatedRequest = Nomalism.Swift.IFindPaginatedRequest;
|
|
9
|
-
|
|
10
|
-
export import IFindMinifiedRequest = Nomalism.shared.IFindMinifiedRequest;
|
|
11
|
-
export import IFindMinifiedResponse = Nomalism.shared.IFindMinifiedResponse;
|
|
12
|
-
|
|
13
|
-
export import ICreateRequest = Nomalism.Swift.ICreateRequest;
|
|
14
|
-
export import IEntity = Nomalism.Swift.Entity;
|
|
15
|
-
|
|
16
|
-
export import IUpdateRequest = Nomalism.Swift.IUpdateRequest;
|
|
17
5
|
export type IPaginationResponse = Nomalism.shared.IPaginationResponse<Nomalism.Swift.IFindResponse>;
|
|
18
6
|
|
|
19
7
|
export default class Repository implements Nomalism.Swift.IRepository {
|
|
@@ -29,42 +17,48 @@ export default class Repository implements Nomalism.Swift.IRepository {
|
|
|
29
17
|
this.publicRoute = publicRoute;
|
|
30
18
|
}
|
|
31
19
|
|
|
32
|
-
async find(params: IFindRequest): Promise<IFindResponse[]> {
|
|
20
|
+
async find(params: Nomalism.Swift.IFindRequest): Promise<Nomalism.Swift.IFindResponse[]> {
|
|
33
21
|
const response = await this.api.get(`${this.route}`, { params });
|
|
34
22
|
return response.data;
|
|
35
23
|
}
|
|
36
24
|
|
|
37
|
-
async findPaginated(params: IFindPaginatedRequest): Promise<IPaginationResponse> {
|
|
25
|
+
async findPaginated(params: Nomalism.Swift.IFindPaginatedRequest): Promise<IPaginationResponse> {
|
|
38
26
|
const response = await this.api.get(`${this.route}paginated`, { params });
|
|
39
27
|
return response.data;
|
|
40
28
|
}
|
|
41
29
|
|
|
42
|
-
async findMinified(
|
|
30
|
+
async findMinified(
|
|
31
|
+
params?: Nomalism.shared.IFindMinifiedRequest,
|
|
32
|
+
): Promise<Nomalism.shared.IFindMinifiedResponse[]> {
|
|
43
33
|
const response = await this.api.get(`${this.route}minified`, {
|
|
44
34
|
params,
|
|
45
35
|
});
|
|
46
36
|
return response.data;
|
|
47
37
|
}
|
|
48
38
|
|
|
49
|
-
async findById(
|
|
39
|
+
async findById(
|
|
40
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
41
|
+
): Promise<Nomalism.Swift.IFindResponse | null> {
|
|
50
42
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
51
43
|
return response.data;
|
|
52
44
|
}
|
|
53
45
|
|
|
54
|
-
async create(body: ICreateRequest): Promise<
|
|
46
|
+
async create(body: Nomalism.Swift.ICreateRequest): Promise<Nomalism.Swift.Entity> {
|
|
55
47
|
const response = await this.api.post(`${this.route}`, body);
|
|
56
48
|
return response.data;
|
|
57
49
|
}
|
|
58
50
|
|
|
59
51
|
async update(
|
|
60
52
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
61
|
-
body: IUpdateRequest,
|
|
62
|
-
): Promise<
|
|
53
|
+
body: Nomalism.Swift.IUpdateRequest,
|
|
54
|
+
): Promise<Nomalism.Swift.Entity | null> {
|
|
63
55
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
64
56
|
return response.data;
|
|
65
57
|
}
|
|
66
58
|
|
|
67
|
-
async deleteOne(
|
|
59
|
+
async deleteOne(
|
|
60
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
61
|
+
): Promise<Nomalism.Swift.Entity | null> {
|
|
68
62
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
69
63
|
return response.data;
|
|
70
64
|
}
|
|
@@ -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.Tenant.Entity;
|
|
6
|
-
|
|
7
|
-
export import ICreateRequest = Nomalism.Tenant.ICreateRequest;
|
|
8
|
-
export import IUpdateRequest = Nomalism.Tenant.IUpdateRequest;
|
|
9
|
-
|
|
10
5
|
export default class Repository implements Nomalism.Tenant.IRepository {
|
|
11
6
|
public route: string;
|
|
12
7
|
|
|
@@ -20,25 +15,27 @@ export default class Repository implements Nomalism.Tenant.IRepository {
|
|
|
20
15
|
this.publicRoute = publicRoute;
|
|
21
16
|
}
|
|
22
17
|
|
|
23
|
-
async create(body: ICreateRequest): Promise<
|
|
18
|
+
async create(body: Nomalism.Tenant.ICreateRequest): Promise<Nomalism.Tenant.Entity> {
|
|
24
19
|
const response = await this.api.post(`${this.route}`, body);
|
|
25
20
|
return response.data;
|
|
26
21
|
}
|
|
27
22
|
|
|
28
|
-
async find(): Promise<
|
|
23
|
+
async find(): Promise<Nomalism.Tenant.Entity[]> {
|
|
29
24
|
const response = await this.api.get(`${this.route}`);
|
|
30
25
|
return response.data;
|
|
31
26
|
}
|
|
32
27
|
|
|
33
|
-
async findById(
|
|
28
|
+
async findById(
|
|
29
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
30
|
+
): Promise<Nomalism.Tenant.Entity | null> {
|
|
34
31
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
35
32
|
return response.data;
|
|
36
33
|
}
|
|
37
34
|
|
|
38
35
|
async update(
|
|
39
36
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
40
|
-
body: IUpdateRequest,
|
|
41
|
-
): Promise<
|
|
37
|
+
body: Nomalism.Tenant.IUpdateRequest,
|
|
38
|
+
): Promise<Nomalism.Tenant.Entity | null> {
|
|
42
39
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
43
40
|
return response.data;
|
|
44
41
|
}
|
|
@@ -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.Theme.Entity;
|
|
6
|
-
|
|
7
|
-
export import createOrUpdate = Nomalism.Theme.ICreateOrUpdateRequest;
|
|
8
|
-
|
|
9
5
|
export default class Repository implements Nomalism.Theme.IRepository {
|
|
10
6
|
public route: string;
|
|
11
7
|
|
|
@@ -19,7 +15,7 @@ export default class Repository implements Nomalism.Theme.IRepository {
|
|
|
19
15
|
this.publicRoute = publicRoute;
|
|
20
16
|
}
|
|
21
17
|
|
|
22
|
-
async createOrUpdate(body:
|
|
18
|
+
async createOrUpdate(body: Nomalism.Theme.ICreateOrUpdateRequest): Promise<void> {
|
|
23
19
|
await this.api.post(`${this.route}`, body);
|
|
24
20
|
}
|
|
25
21
|
}
|
package/src/modules/user/user.ts
CHANGED
|
@@ -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 IFindRequest = Nomalism.Users.IFindRequest;
|
|
6
|
-
export import IFindResponse = Nomalism.Users.IFindResponse;
|
|
7
|
-
|
|
8
|
-
export import IFindPaginatedRequest = Nomalism.Users.IFindPaginatedRequest;
|
|
9
|
-
|
|
10
|
-
export import IFindMinifiedRequest = Nomalism.shared.IFindMinifiedRequest;
|
|
11
|
-
export import IFindMinifiedResponse = Nomalism.shared.IFindMinifiedResponse;
|
|
12
|
-
|
|
13
|
-
export import IFindByIdResponse = Nomalism.Users.IFindByIdResponse;
|
|
14
|
-
|
|
15
|
-
export import IFindProvidersWithClientIdRequest = Nomalism.Users.IFindProvidersWithClientIdRequest;
|
|
16
|
-
export import IFindProvidersWithClientIdResponse = Nomalism.Users.IFindProvidersWithClientIdResponse;
|
|
17
|
-
|
|
18
|
-
export import ICreateRequest = Nomalism.Users.ICreateRequest;
|
|
19
|
-
|
|
20
|
-
export import IEntity = Nomalism.Users.Entity;
|
|
21
|
-
|
|
22
|
-
export import IUpdateRequest = Nomalism.Users.IUpdateRequest;
|
|
23
|
-
export import IFindFromClientOrProviderRequest = Nomalism.Users.IFindFromClientOrProviderRequest;
|
|
24
|
-
export import IFindFromClientOrProviderResponse = Nomalism.Users.IFindFromClientOrProviderResponse;
|
|
25
|
-
export type IPaginationResponse = Nomalism.shared.IPaginationResponse<Nomalism.Users.IFindResponse>;
|
|
26
|
-
|
|
27
5
|
export default class Repository implements Nomalism.Users.IApi {
|
|
28
6
|
public route: string;
|
|
29
7
|
|
|
@@ -37,56 +15,64 @@ export default class Repository implements Nomalism.Users.IApi {
|
|
|
37
15
|
this.publicRoute = publicRoute;
|
|
38
16
|
}
|
|
39
17
|
|
|
40
|
-
async find(params: IFindRequest): Promise<IFindResponse[]> {
|
|
18
|
+
async find(params: Nomalism.Users.IFindRequest): Promise<Nomalism.Users.IFindResponse[]> {
|
|
41
19
|
const response = await this.api.get(`${this.route}`, { params });
|
|
42
20
|
return response.data;
|
|
43
21
|
}
|
|
44
22
|
|
|
45
|
-
async findPaginated(
|
|
23
|
+
async findPaginated(
|
|
24
|
+
params: Nomalism.Users.IFindPaginatedRequest,
|
|
25
|
+
): Promise<Nomalism.shared.IPaginationResponse<Nomalism.Users.IFindResponse>> {
|
|
46
26
|
const response = await this.api.get(`${this.route}paginated`, { params });
|
|
47
27
|
return response.data;
|
|
48
28
|
}
|
|
49
29
|
|
|
50
|
-
async findMinified(
|
|
30
|
+
async findMinified(
|
|
31
|
+
params?: Nomalism.shared.IFindMinifiedRequest,
|
|
32
|
+
): Promise<Nomalism.shared.IFindMinifiedResponse[]> {
|
|
51
33
|
const response = await this.api.get(`${this.route}minified`, {
|
|
52
34
|
params,
|
|
53
35
|
});
|
|
54
36
|
return response.data;
|
|
55
37
|
}
|
|
56
38
|
|
|
57
|
-
async findById(
|
|
39
|
+
async findById(
|
|
40
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
41
|
+
): Promise<Nomalism.Users.IFindByIdResponse | null> {
|
|
58
42
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
59
43
|
return response.data;
|
|
60
44
|
}
|
|
61
45
|
|
|
62
|
-
async create(body: ICreateRequest): Promise<IFindResponse> {
|
|
46
|
+
async create(body: Nomalism.Users.ICreateRequest): Promise<Nomalism.Users.IFindResponse> {
|
|
63
47
|
const response = await this.api.post(`${this.route}`, body);
|
|
64
48
|
return response.data;
|
|
65
49
|
}
|
|
66
50
|
|
|
67
51
|
async update(
|
|
68
52
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
69
|
-
body: IUpdateRequest,
|
|
70
|
-
): Promise<IFindResponse | null> {
|
|
53
|
+
body: Nomalism.Users.IUpdateRequest,
|
|
54
|
+
): Promise<Nomalism.Users.IFindResponse | null> {
|
|
71
55
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
72
56
|
return response.data;
|
|
73
57
|
}
|
|
74
58
|
|
|
75
|
-
async deleteOne(
|
|
59
|
+
async deleteOne(
|
|
60
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
61
|
+
): Promise<Nomalism.Users.IFindResponse | null> {
|
|
76
62
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
77
63
|
return response.data;
|
|
78
64
|
}
|
|
79
65
|
|
|
80
66
|
async findProvidersWithClientId(
|
|
81
|
-
body: IFindProvidersWithClientIdRequest,
|
|
82
|
-
): Promise<IFindProvidersWithClientIdResponse[]> {
|
|
67
|
+
body: Nomalism.Users.IFindProvidersWithClientIdRequest,
|
|
68
|
+
): Promise<Nomalism.Users.IFindProvidersWithClientIdResponse[]> {
|
|
83
69
|
const response = await this.api.post(`${this.route}providers`, body);
|
|
84
70
|
return response.data;
|
|
85
71
|
}
|
|
86
72
|
|
|
87
73
|
async findFromClientOrProviderId(
|
|
88
|
-
body: IFindFromClientOrProviderRequest,
|
|
89
|
-
): Promise<IFindFromClientOrProviderResponse[]> {
|
|
74
|
+
body: Nomalism.Users.IFindFromClientOrProviderRequest,
|
|
75
|
+
): Promise<Nomalism.Users.IFindFromClientOrProviderResponse[]> {
|
|
90
76
|
const response = await this.api.post(`${this.route}from_client_or_provider_id`, body);
|
|
91
77
|
return response.data;
|
|
92
78
|
}
|
|
@@ -2,13 +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 IFindByOwnerIdRequest = Nomalism.shared.IFindByOwnerIdRequest;
|
|
6
|
-
export import IFindByOwnerIdResponse = Nomalism.UserPermissions.IFindByOwnerIdResponse;
|
|
7
|
-
|
|
8
|
-
export import ICreateRequest = Nomalism.UserPermissions.ICreateRequest;
|
|
9
|
-
|
|
10
|
-
export import IEntity = Nomalism.UserPermissions.Entity;
|
|
11
|
-
|
|
12
5
|
export default class Repository implements Nomalism.UserPermissions.IRepository {
|
|
13
6
|
public route: string;
|
|
14
7
|
|
|
@@ -22,21 +15,25 @@ export default class Repository implements Nomalism.UserPermissions.IRepository
|
|
|
22
15
|
this.publicRoute = publicRoute;
|
|
23
16
|
}
|
|
24
17
|
|
|
25
|
-
async findByOwnerId(
|
|
18
|
+
async findByOwnerId(
|
|
19
|
+
params: Nomalism.shared.IFindByOwnerIdRequest,
|
|
20
|
+
): Promise<Nomalism.UserPermissions.IFindByOwnerIdResponse[]> {
|
|
26
21
|
const response = await this.api.get(`${this.route}by_owner`, {
|
|
27
22
|
params,
|
|
28
23
|
});
|
|
29
24
|
return response.data;
|
|
30
25
|
}
|
|
31
26
|
|
|
32
|
-
async create(
|
|
27
|
+
async create(
|
|
28
|
+
body: Nomalism.UserPermissions.ICreateRequest,
|
|
29
|
+
): Promise<Nomalism.UserPermissions.IFindByOwnerIdResponse> {
|
|
33
30
|
const response = await this.api.post(`${this.route}`, body);
|
|
34
31
|
return response.data;
|
|
35
32
|
}
|
|
36
33
|
|
|
37
34
|
async deleteOne(
|
|
38
35
|
selector: Nomalism.shared.IFindByIdNumberRequest,
|
|
39
|
-
): Promise<IFindByOwnerIdResponse | null> {
|
|
36
|
+
): Promise<Nomalism.UserPermissions.IFindByOwnerIdResponse | null> {
|
|
40
37
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
41
38
|
return response.data;
|
|
42
39
|
}
|
|
@@ -2,21 +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.UserPositions.IFindRequest;
|
|
6
|
-
export import IFindResponse = Nomalism.UserPositions.IFindResponse;
|
|
7
|
-
|
|
8
|
-
export import IFindPaginatedRequest = Nomalism.UserPositions.IFindPaginatedRequest;
|
|
9
|
-
|
|
10
|
-
export import IFindMinifiedRequest = Nomalism.shared.IFindMinifiedRequest;
|
|
11
|
-
export import IFindMinifiedResponse = Nomalism.shared.IFindMinifiedResponse;
|
|
12
|
-
|
|
13
|
-
export import ICreateRequest = Nomalism.UserPositions.ICreateRequest;
|
|
14
|
-
export import IEntity = Nomalism.UserPositions.Entity;
|
|
15
|
-
|
|
16
|
-
export import IUpdateRequest = Nomalism.UserPositions.IUpdateRequest;
|
|
17
|
-
export type IPaginationResponse =
|
|
18
|
-
Nomalism.shared.IPaginationResponse<Nomalism.UserPositions.IFindResponse>;
|
|
19
|
-
|
|
20
5
|
export default class Repository implements Nomalism.UserPositions.IRepository {
|
|
21
6
|
public route: string;
|
|
22
7
|
|
|
@@ -30,42 +15,54 @@ export default class Repository implements Nomalism.UserPositions.IRepository {
|
|
|
30
15
|
this.publicRoute = publicRoute;
|
|
31
16
|
}
|
|
32
17
|
|
|
33
|
-
async find(
|
|
18
|
+
async find(
|
|
19
|
+
params: Nomalism.UserPositions.IFindRequest,
|
|
20
|
+
): Promise<Nomalism.UserPositions.IFindResponse[]> {
|
|
34
21
|
const response = await this.api.get(`${this.route}`, { params });
|
|
35
22
|
return response.data;
|
|
36
23
|
}
|
|
37
24
|
|
|
38
|
-
async findPaginated(
|
|
25
|
+
async findPaginated(
|
|
26
|
+
params: Nomalism.UserPositions.IFindPaginatedRequest,
|
|
27
|
+
): Promise<Nomalism.shared.IPaginationResponse<Nomalism.UserPositions.IFindResponse>> {
|
|
39
28
|
const response = await this.api.get(`${this.route}paginated`, { params });
|
|
40
29
|
return response.data;
|
|
41
30
|
}
|
|
42
31
|
|
|
43
|
-
async findMinified(
|
|
32
|
+
async findMinified(
|
|
33
|
+
params?: Nomalism.shared.IFindMinifiedRequest,
|
|
34
|
+
): Promise<Nomalism.shared.IFindMinifiedResponse[]> {
|
|
44
35
|
const response = await this.api.get(`${this.route}minified`, {
|
|
45
36
|
params,
|
|
46
37
|
});
|
|
47
38
|
return response.data;
|
|
48
39
|
}
|
|
49
40
|
|
|
50
|
-
async findById(
|
|
41
|
+
async findById(
|
|
42
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
43
|
+
): Promise<Nomalism.UserPositions.IFindResponse | null> {
|
|
51
44
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
52
45
|
return response.data;
|
|
53
46
|
}
|
|
54
47
|
|
|
55
|
-
async create(
|
|
48
|
+
async create(
|
|
49
|
+
body: Nomalism.UserPositions.ICreateRequest,
|
|
50
|
+
): Promise<Nomalism.UserPositions.Entity> {
|
|
56
51
|
const response = await this.api.post(`${this.route}`, body);
|
|
57
52
|
return response.data;
|
|
58
53
|
}
|
|
59
54
|
|
|
60
55
|
async update(
|
|
61
56
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
62
|
-
body: IUpdateRequest,
|
|
63
|
-
): Promise<
|
|
57
|
+
body: Nomalism.UserPositions.IUpdateRequest,
|
|
58
|
+
): Promise<Nomalism.UserPositions.Entity | null> {
|
|
64
59
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
65
60
|
return response.data;
|
|
66
61
|
}
|
|
67
62
|
|
|
68
|
-
async deleteOne(
|
|
63
|
+
async deleteOne(
|
|
64
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
65
|
+
): Promise<Nomalism.UserPositions.Entity | null> {
|
|
69
66
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
70
67
|
return response.data;
|
|
71
68
|
}
|
|
@@ -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 IEntity = Nomalism.Vehicles.Entity;
|
|
6
|
-
|
|
7
|
-
export import ICreateRequest = Nomalism.Vehicles.ICreateRequest;
|
|
8
|
-
|
|
9
|
-
export import IUpdateRequest = Nomalism.Vehicles.IUpdateRequest;
|
|
10
|
-
|
|
11
5
|
export default class Repository implements Nomalism.Vehicles.IApi {
|
|
12
6
|
public route: string;
|
|
13
7
|
|
|
@@ -21,25 +15,27 @@ export default class Repository implements Nomalism.Vehicles.IApi {
|
|
|
21
15
|
this.publicRoute = publicRoute;
|
|
22
16
|
}
|
|
23
17
|
|
|
24
|
-
async find(): Promise<
|
|
18
|
+
async find(): Promise<Nomalism.Vehicles.Entity[]> {
|
|
25
19
|
const response = await this.api.get(`${this.route}`);
|
|
26
20
|
return response.data;
|
|
27
21
|
}
|
|
28
22
|
|
|
29
|
-
async create(body: ICreateRequest): Promise<
|
|
23
|
+
async create(body: Nomalism.Vehicles.ICreateRequest): Promise<Nomalism.Vehicles.Entity> {
|
|
30
24
|
const response = await this.api.post(`${this.route}`, body);
|
|
31
25
|
return response.data;
|
|
32
26
|
}
|
|
33
27
|
|
|
34
28
|
async update(
|
|
35
29
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
36
|
-
body: IUpdateRequest,
|
|
37
|
-
): Promise<
|
|
30
|
+
body: Nomalism.Vehicles.IUpdateRequest,
|
|
31
|
+
): Promise<Nomalism.Vehicles.Entity | null> {
|
|
38
32
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
39
33
|
return response.data;
|
|
40
34
|
}
|
|
41
35
|
|
|
42
|
-
async deleteOne(
|
|
36
|
+
async deleteOne(
|
|
37
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
38
|
+
): Promise<Nomalism.Vehicles.Entity | null> {
|
|
43
39
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
44
40
|
return response.data;
|
|
45
41
|
}
|
|
@@ -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.ZipCode.Entity;
|
|
6
|
-
|
|
7
|
-
export import ICreateRequest = Nomalism.ZipCode.ICreateRequest;
|
|
8
|
-
export import IFindByPostalCode = Nomalism.ZipCode.IFindByPostalCode;
|
|
9
|
-
|
|
10
5
|
export default class Repository implements Nomalism.ZipCode.IRepository {
|
|
11
6
|
public route: string;
|
|
12
7
|
|
|
@@ -20,11 +15,13 @@ export default class Repository implements Nomalism.ZipCode.IRepository {
|
|
|
20
15
|
this.publicRoute = publicRoute;
|
|
21
16
|
}
|
|
22
17
|
|
|
23
|
-
async create(body: ICreateRequest[]): Promise<void> {
|
|
18
|
+
async create(body: Nomalism.ZipCode.ICreateRequest[]): Promise<void> {
|
|
24
19
|
await this.api.post(`${this.route}`, body);
|
|
25
20
|
}
|
|
26
21
|
|
|
27
|
-
async findByPostalCode(
|
|
22
|
+
async findByPostalCode(
|
|
23
|
+
params: Nomalism.ZipCode.IFindByPostalCode,
|
|
24
|
+
): Promise<Nomalism.ZipCode.Entity[]> {
|
|
28
25
|
const response = await this.api.get(`${this.route}`, { params });
|
|
29
26
|
return response.data;
|
|
30
27
|
}
|
package/tsconfig.json
CHANGED
package/tsup.config.ts
ADDED
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,QAAQ,CAAC;AAEnC,eAAe,QAAQ,CAAC"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,QAAQ,CAAC;AAEnC,eAAe,QAAQ,CAAC"}
|