@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,20 +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 ICloneRequest = Nomalism.GoogleSheets.ICloneRequest;
|
|
6
|
-
export import ICloneResponse = Nomalism.GoogleSheets.ICloneResponse;
|
|
7
|
-
export import IUpdateRequest = Nomalism.GoogleSheets.IUpdateRequest;
|
|
8
|
-
export import IGetDataResponse = Nomalism.GoogleSheets.IGetDataResponse;
|
|
9
|
-
|
|
10
|
-
export import IGetUserData = Nomalism.GoogleSheets.IGetUserData;
|
|
11
|
-
|
|
12
|
-
export import IGetProduct = Nomalism.GoogleSheets.IGetProduct;
|
|
13
|
-
|
|
14
|
-
export import IGetProductGroup = Nomalism.GoogleSheets.IGetProductGroup;
|
|
15
|
-
|
|
16
|
-
export import IGetProductType = Nomalism.GoogleSheets.IGetProductType;
|
|
17
|
-
export import IExportRequest = Nomalism.GoogleSheets.IExportRequest;
|
|
18
|
-
|
|
19
5
|
export default class Repository implements Nomalism.GoogleSheets.IController {
|
|
20
6
|
public route: string;
|
|
21
7
|
|
|
@@ -31,8 +17,8 @@ export default class Repository implements Nomalism.GoogleSheets.IController {
|
|
|
31
17
|
|
|
32
18
|
async clone(
|
|
33
19
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
34
|
-
params?: ICloneRequest,
|
|
35
|
-
): Promise<ICloneResponse> {
|
|
20
|
+
params?: Nomalism.GoogleSheets.ICloneRequest,
|
|
21
|
+
): Promise<Nomalism.GoogleSheets.ICloneResponse> {
|
|
36
22
|
const response = await this.api.get(`${this.route}clone/${selector.id}`, {
|
|
37
23
|
params,
|
|
38
24
|
});
|
|
@@ -40,17 +26,22 @@ export default class Repository implements Nomalism.GoogleSheets.IController {
|
|
|
40
26
|
return response.data;
|
|
41
27
|
}
|
|
42
28
|
|
|
43
|
-
async export(params: IExportRequest): Promise<string> {
|
|
29
|
+
async export(params: Nomalism.GoogleSheets.IExportRequest): Promise<string> {
|
|
44
30
|
const response = await this.api.get(`${this.route}export`, { params });
|
|
45
31
|
return response.data;
|
|
46
32
|
}
|
|
47
33
|
|
|
48
|
-
async getData(
|
|
34
|
+
async getData(
|
|
35
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
36
|
+
): Promise<Nomalism.GoogleSheets.IGetDataResponse> {
|
|
49
37
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
50
38
|
return response.data;
|
|
51
39
|
}
|
|
52
40
|
|
|
53
|
-
async update(
|
|
41
|
+
async update(
|
|
42
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
43
|
+
data: Nomalism.GoogleSheets.IUpdateRequest,
|
|
44
|
+
): Promise<void> {
|
|
54
45
|
await this.api.put(`${this.route}${selector.id}`, data);
|
|
55
46
|
}
|
|
56
47
|
}
|
|
@@ -2,16 +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 IFindByOwnerRequest = Nomalism.Observation.IFindByOwnerRequest;
|
|
6
|
-
|
|
7
|
-
export import IFindByOwnersRequest = Nomalism.Observation.IFindByOwnersRequest;
|
|
8
|
-
export import IFindByOwnerResponse = Nomalism.Observation.IFindByOwnerResponse;
|
|
9
|
-
|
|
10
|
-
export import ICreateRequest = Nomalism.Observation.ICreateRequest;
|
|
11
|
-
export import IEntity = Nomalism.Observation.Entity;
|
|
12
|
-
|
|
13
|
-
export import IUpdateRequest = Nomalism.Observation.IUpdateRequest;
|
|
14
|
-
|
|
15
5
|
export default class Repository implements Nomalism.Observation.IApi {
|
|
16
6
|
public route: string;
|
|
17
7
|
|
|
@@ -25,32 +15,40 @@ export default class Repository implements Nomalism.Observation.IApi {
|
|
|
25
15
|
this.publicRoute = publicRoute;
|
|
26
16
|
}
|
|
27
17
|
|
|
28
|
-
async findByOwnerId(
|
|
18
|
+
async findByOwnerId(
|
|
19
|
+
params: Nomalism.Observation.IFindByOwnerRequest,
|
|
20
|
+
): Promise<Nomalism.Observation.IFindByOwnerResponse[]> {
|
|
29
21
|
const response = await this.api.get(`${this.route}`, {
|
|
30
22
|
params,
|
|
31
23
|
});
|
|
32
24
|
return response.data;
|
|
33
25
|
}
|
|
34
26
|
|
|
35
|
-
async findByOwnerIds(
|
|
27
|
+
async findByOwnerIds(
|
|
28
|
+
body: Nomalism.Observation.IFindByOwnersRequest,
|
|
29
|
+
): Promise<Nomalism.Observation.IFindByOwnerResponse[]> {
|
|
36
30
|
const response = await this.api.post(`${this.route}by_owners`, body);
|
|
37
31
|
return response.data;
|
|
38
32
|
}
|
|
39
33
|
|
|
40
|
-
async create(
|
|
34
|
+
async create(
|
|
35
|
+
body: Nomalism.Observation.ICreateRequest,
|
|
36
|
+
): Promise<Nomalism.Observation.IFindByOwnerResponse> {
|
|
41
37
|
const response = await this.api.post(`${this.route}`, body);
|
|
42
38
|
return response.data;
|
|
43
39
|
}
|
|
44
40
|
|
|
45
41
|
async update(
|
|
46
42
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
47
|
-
body: IUpdateRequest,
|
|
48
|
-
): Promise<IFindByOwnerResponse | null> {
|
|
43
|
+
body: Nomalism.Observation.IUpdateRequest,
|
|
44
|
+
): Promise<Nomalism.Observation.IFindByOwnerResponse | null> {
|
|
49
45
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
50
46
|
return response.data;
|
|
51
47
|
}
|
|
52
48
|
|
|
53
|
-
async deleteOne(
|
|
49
|
+
async deleteOne(
|
|
50
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
51
|
+
): Promise<Nomalism.Observation.Entity | null> {
|
|
54
52
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
55
53
|
return response.data;
|
|
56
54
|
}
|
|
@@ -2,14 +2,6 @@ import Nomalism from '@nomalism-com/types';
|
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
import { IModuleConstructor } from '../../main';
|
|
4
4
|
|
|
5
|
-
export import IFindMinifiedRequest = Nomalism.shared.IFindMinifiedRequest;
|
|
6
|
-
export import IFindMinifiedResponse = Nomalism.shared.IFindMinifiedResponse;
|
|
7
|
-
|
|
8
|
-
export import ICreateRequest = Nomalism.ObservationType.ICreateRequest;
|
|
9
|
-
export import IEntity = Nomalism.ObservationType.Entity;
|
|
10
|
-
|
|
11
|
-
export import IUpdateRequest = Nomalism.ObservationType.IUpdateRequest;
|
|
12
|
-
|
|
13
5
|
export default class Repository implements Nomalism.ObservationType.IApi {
|
|
14
6
|
public route: string;
|
|
15
7
|
|
|
@@ -23,32 +15,38 @@ export default class Repository implements Nomalism.ObservationType.IApi {
|
|
|
23
15
|
this.publicRoute = publicRoute;
|
|
24
16
|
}
|
|
25
17
|
|
|
26
|
-
async find(): Promise<
|
|
18
|
+
async find(): Promise<Nomalism.ObservationType.Entity[]> {
|
|
27
19
|
const response = await this.api.get(`${this.route}`);
|
|
28
20
|
return response.data;
|
|
29
21
|
}
|
|
30
22
|
|
|
31
|
-
async findMinified(
|
|
23
|
+
async findMinified(
|
|
24
|
+
params?: Nomalism.shared.IFindMinifiedRequest,
|
|
25
|
+
): Promise<Nomalism.shared.IFindMinifiedResponse[]> {
|
|
32
26
|
const response = await this.api.get(`${this.route}minified`, {
|
|
33
27
|
params,
|
|
34
28
|
});
|
|
35
29
|
return response.data;
|
|
36
30
|
}
|
|
37
31
|
|
|
38
|
-
async create(
|
|
32
|
+
async create(
|
|
33
|
+
body: Nomalism.ObservationType.ICreateRequest,
|
|
34
|
+
): Promise<Nomalism.ObservationType.Entity> {
|
|
39
35
|
const response = await this.api.post(`${this.route}`, body);
|
|
40
36
|
return response.data;
|
|
41
37
|
}
|
|
42
38
|
|
|
43
39
|
async update(
|
|
44
40
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
45
|
-
body: IUpdateRequest,
|
|
46
|
-
): Promise<
|
|
41
|
+
body: Nomalism.ObservationType.IUpdateRequest,
|
|
42
|
+
): Promise<Nomalism.ObservationType.Entity | null> {
|
|
47
43
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
48
44
|
return response.data;
|
|
49
45
|
}
|
|
50
46
|
|
|
51
|
-
async deleteOne(
|
|
47
|
+
async deleteOne(
|
|
48
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
49
|
+
): Promise<Nomalism.ObservationType.Entity | null> {
|
|
52
50
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
53
51
|
return response.data;
|
|
54
52
|
}
|
|
@@ -2,8 +2,6 @@ import Nomalism from '@nomalism-com/types';
|
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
import { IModuleConstructor } from '../../main';
|
|
4
4
|
|
|
5
|
-
export import ISendEmail = Nomalism.ProjectInfo.ISendEmail;
|
|
6
|
-
|
|
7
5
|
export default class Repository implements Nomalism.ProjectInfo.IController {
|
|
8
6
|
public route: string;
|
|
9
7
|
|
|
@@ -17,7 +15,7 @@ export default class Repository implements Nomalism.ProjectInfo.IController {
|
|
|
17
15
|
this.publicRoute = publicRoute;
|
|
18
16
|
}
|
|
19
17
|
|
|
20
|
-
async sendEmail(body: ISendEmail): Promise<void> {
|
|
18
|
+
async sendEmail(body: Nomalism.ProjectInfo.ISendEmail): Promise<void> {
|
|
21
19
|
await this.api.post(`${this.route}sendEmail`, body);
|
|
22
20
|
}
|
|
23
21
|
}
|
|
@@ -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.Settings.Entity;
|
|
6
|
-
export import ICreateRequest = Nomalism.Settings.ICreateRequest;
|
|
7
|
-
export import IUpdateRequest = Nomalism.Settings.IUpdateRequest;
|
|
8
|
-
export import IFindByKeyRequest = Nomalism.Settings.IFindByKeyRequest;
|
|
9
|
-
|
|
10
5
|
export default class Repository implements Nomalism.Settings.IRepository {
|
|
11
6
|
public route: string;
|
|
12
7
|
|
|
@@ -20,29 +15,33 @@ export default class Repository implements Nomalism.Settings.IRepository {
|
|
|
20
15
|
this.publicRoute = publicRoute;
|
|
21
16
|
}
|
|
22
17
|
|
|
23
|
-
async create(body: ICreateRequest): Promise<
|
|
18
|
+
async create(body: Nomalism.Settings.ICreateRequest): Promise<Nomalism.Settings.Entity> {
|
|
24
19
|
const response = await this.api.post(`${this.route}`, body);
|
|
25
20
|
return response.data;
|
|
26
21
|
}
|
|
27
22
|
|
|
28
|
-
async findByKey(
|
|
23
|
+
async findByKey(
|
|
24
|
+
params: Nomalism.Settings.IFindByKeyRequest,
|
|
25
|
+
): Promise<Nomalism.Settings.Entity | null> {
|
|
29
26
|
const response = await this.api.get(`${this.publicRoute}by_key`, {
|
|
30
27
|
params,
|
|
31
28
|
});
|
|
32
29
|
return response.data;
|
|
33
30
|
}
|
|
34
31
|
|
|
35
|
-
async update(body: IUpdateRequest): Promise<
|
|
32
|
+
async update(body: Nomalism.Settings.IUpdateRequest): Promise<Nomalism.Settings.Entity | null> {
|
|
36
33
|
const response = await this.api.put(`${this.route}`, body);
|
|
37
34
|
return response.data;
|
|
38
35
|
}
|
|
39
36
|
|
|
40
|
-
async deleteOne(
|
|
37
|
+
async deleteOne(
|
|
38
|
+
selector: Nomalism.shared.IFindByIdNumberRequest,
|
|
39
|
+
): Promise<Nomalism.Settings.Entity | null> {
|
|
41
40
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
42
41
|
return response.data;
|
|
43
42
|
}
|
|
44
43
|
|
|
45
|
-
async find(): Promise<
|
|
44
|
+
async find(): Promise<Nomalism.Settings.Entity[]> {
|
|
46
45
|
const response = await this.api.get(`${this.route}`);
|
|
47
46
|
return response.data;
|
|
48
47
|
}
|
package/src/modules/print/npc.ts
CHANGED
|
@@ -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.Npc.Entity;
|
|
6
|
-
export import IUpdateRequest = Nomalism.Npc.IUpdateRequest;
|
|
7
|
-
export import IFindPrintJobsForComputerIdResponse = Nomalism.Npc.IFindPrintJobsForComputerIdResponse;
|
|
8
|
-
export import IFindPrintJobsForComputerIdRequest = Nomalism.Npc.IFindPrintJobsForComputerIdRequest;
|
|
9
5
|
export default class Repository implements Nomalism.Npc.IRepository {
|
|
10
6
|
public route: string;
|
|
11
7
|
|
|
@@ -19,22 +15,22 @@ export default class Repository implements Nomalism.Npc.IRepository {
|
|
|
19
15
|
this.publicRoute = publicRoute;
|
|
20
16
|
}
|
|
21
17
|
|
|
22
|
-
async find(): Promise<
|
|
18
|
+
async find(): Promise<Nomalism.Npc.Entity[]> {
|
|
23
19
|
const response = await this.api.get(`${this.route}`);
|
|
24
20
|
return response.data;
|
|
25
21
|
}
|
|
26
22
|
|
|
27
23
|
async update(
|
|
28
24
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
29
|
-
body: IUpdateRequest,
|
|
30
|
-
): Promise<
|
|
25
|
+
body: Nomalism.Npc.IUpdateRequest,
|
|
26
|
+
): Promise<Nomalism.Npc.Entity | null> {
|
|
31
27
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
32
28
|
return response.data;
|
|
33
29
|
}
|
|
34
30
|
|
|
35
31
|
async findPrintJobsForComputerId(
|
|
36
|
-
selector: IFindPrintJobsForComputerIdRequest,
|
|
37
|
-
): Promise<IFindPrintJobsForComputerIdResponse> {
|
|
32
|
+
selector: Nomalism.Npc.IFindPrintJobsForComputerIdRequest,
|
|
33
|
+
): Promise<Nomalism.Npc.IFindPrintJobsForComputerIdResponse> {
|
|
38
34
|
const response = await this.api.get(
|
|
39
35
|
`${this.route}find_print_jobs_for_computer_id/${selector.computer_id}`,
|
|
40
36
|
);
|
|
@@ -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.Printer.Entity;
|
|
6
|
-
export import IUpdateRequest = Nomalism.Printer.IUpdateRequest;
|
|
7
|
-
export import IUpdateManyRequest = Nomalism.Printer.IUpdateManyRequest;
|
|
8
|
-
|
|
9
|
-
export type IFindDetailedResponse = Nomalism.Printer.IFindDetailedResponse;
|
|
10
|
-
|
|
11
5
|
export default class Repository implements Nomalism.Printer.IRepository {
|
|
12
6
|
public route: string;
|
|
13
7
|
|
|
@@ -21,25 +15,27 @@ export default class Repository implements Nomalism.Printer.IRepository {
|
|
|
21
15
|
this.publicRoute = publicRoute;
|
|
22
16
|
}
|
|
23
17
|
|
|
24
|
-
async find(): Promise<IFindDetailedResponse[]> {
|
|
18
|
+
async find(): Promise<Nomalism.Printer.IFindDetailedResponse[]> {
|
|
25
19
|
const response = await this.api.get(`${this.route}`);
|
|
26
20
|
return response.data;
|
|
27
21
|
}
|
|
28
22
|
|
|
29
|
-
async findByOwnerId(
|
|
23
|
+
async findByOwnerId(
|
|
24
|
+
params: Nomalism.shared.IFindByOwnerIdRequest,
|
|
25
|
+
): Promise<Nomalism.Printer.Entity[]> {
|
|
30
26
|
const response = await this.api.get(`${this.route}by_owner`, { params });
|
|
31
27
|
return response.data;
|
|
32
28
|
}
|
|
33
29
|
|
|
34
30
|
async update(
|
|
35
31
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
36
|
-
body: IUpdateRequest,
|
|
37
|
-
): Promise<
|
|
32
|
+
body: Nomalism.Printer.IUpdateRequest,
|
|
33
|
+
): Promise<Nomalism.Printer.Entity | null> {
|
|
38
34
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
39
35
|
return response.data;
|
|
40
36
|
}
|
|
41
37
|
|
|
42
|
-
async updateMany(body: IUpdateManyRequest[]): Promise<void> {
|
|
38
|
+
async updateMany(body: Nomalism.Printer.IUpdateManyRequest[]): Promise<void> {
|
|
43
39
|
await this.api.put(`${this.route}update_many`, body);
|
|
44
40
|
}
|
|
45
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 IFindByOwnerIdRequest = Nomalism.File.IFindByOwnerRequest;
|
|
6
|
-
export import IEntity = Nomalism.File.Entity;
|
|
7
|
-
export import ICreateRequest = Nomalism.File.ICreateRequest;
|
|
8
|
-
|
|
9
5
|
export default class Repository implements Nomalism.File.IRepository {
|
|
10
6
|
public route: string;
|
|
11
7
|
|
|
@@ -19,14 +15,16 @@ export default class Repository implements Nomalism.File.IRepository {
|
|
|
19
15
|
this.publicRoute = publicRoute;
|
|
20
16
|
}
|
|
21
17
|
|
|
22
|
-
async findByOwnerId(
|
|
18
|
+
async findByOwnerId(
|
|
19
|
+
params: Nomalism.shared.IFindByOwnerIdRequest,
|
|
20
|
+
): Promise<Nomalism.File.Entity[]> {
|
|
23
21
|
const response = await this.api.get(`${this.route}by_owner`, {
|
|
24
22
|
params,
|
|
25
23
|
});
|
|
26
24
|
return response.data;
|
|
27
25
|
}
|
|
28
26
|
|
|
29
|
-
async create(body: ICreateRequest): Promise<
|
|
27
|
+
async create(body: Nomalism.File.ICreateRequest): Promise<Nomalism.File.Entity> {
|
|
30
28
|
const response = await this.api.post(`${this.publicRoute}`, body);
|
|
31
29
|
return response.data;
|
|
32
30
|
}
|
|
@@ -38,7 +36,9 @@ export default class Repository implements Nomalism.File.IRepository {
|
|
|
38
36
|
await this.api.put(`${this.publicRoute}${id}`, body);
|
|
39
37
|
}
|
|
40
38
|
|
|
41
|
-
async deleteOne(
|
|
39
|
+
async deleteOne(
|
|
40
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
41
|
+
): Promise<Nomalism.File.Entity | null> {
|
|
42
42
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
43
43
|
return response.data;
|
|
44
44
|
}
|
|
@@ -2,22 +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.Location.IFindRequest;
|
|
6
|
-
export import IFindResponse = Nomalism.Location.IFindResponse;
|
|
7
|
-
|
|
8
|
-
export import IFindPaginatedRequest = Nomalism.Location.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
|
-
|
|
15
|
-
export import ICreateRequest = Nomalism.Location.ICreateRequest;
|
|
16
|
-
|
|
17
|
-
export import IUpdateRequest = Nomalism.Location.IUpdateRequest;
|
|
18
|
-
export type IPaginationResponse =
|
|
19
|
-
Nomalism.shared.IPaginationResponse<Nomalism.Location.IFindResponse>;
|
|
20
|
-
|
|
21
5
|
export default class Repository implements Nomalism.Location.IRepository {
|
|
22
6
|
public route: string;
|
|
23
7
|
|
|
@@ -31,49 +15,59 @@ export default class Repository implements Nomalism.Location.IRepository {
|
|
|
31
15
|
this.publicRoute = publicRoute;
|
|
32
16
|
}
|
|
33
17
|
|
|
34
|
-
async find(params: IFindRequest): Promise<IFindResponse[]> {
|
|
18
|
+
async find(params: Nomalism.Location.IFindRequest): Promise<Nomalism.Location.IFindResponse[]> {
|
|
35
19
|
const response = await this.api.get(`${this.route}`, { params });
|
|
36
20
|
return response.data;
|
|
37
21
|
}
|
|
38
22
|
|
|
39
|
-
async findPaginated(
|
|
23
|
+
async findPaginated(
|
|
24
|
+
params: Nomalism.Location.IFindPaginatedRequest,
|
|
25
|
+
): Promise<Nomalism.shared.IPaginationResponse<Nomalism.Location.IFindResponse>> {
|
|
40
26
|
const response = await this.api.get(`${this.route}paginated`, { params });
|
|
41
27
|
return response.data;
|
|
42
28
|
}
|
|
43
29
|
|
|
44
|
-
async findMinified(
|
|
30
|
+
async findMinified(
|
|
31
|
+
params?: Nomalism.shared.IFindMinifiedRequest,
|
|
32
|
+
): Promise<Nomalism.shared.IFindMinifiedResponse[]> {
|
|
45
33
|
const response = await this.api.get(`${this.route}minified`, {
|
|
46
34
|
params,
|
|
47
35
|
});
|
|
48
36
|
return response.data;
|
|
49
37
|
}
|
|
50
38
|
|
|
51
|
-
async findByOwnerId(
|
|
39
|
+
async findByOwnerId(
|
|
40
|
+
params: Nomalism.shared.IFindByOwnerIdRequest,
|
|
41
|
+
): Promise<Nomalism.Location.IFindResponse[]> {
|
|
52
42
|
const response = await this.api.get(`${this.route}by_owner`, {
|
|
53
43
|
params,
|
|
54
44
|
});
|
|
55
45
|
return response.data;
|
|
56
46
|
}
|
|
57
47
|
|
|
58
|
-
async findById(
|
|
48
|
+
async findById(
|
|
49
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
50
|
+
): Promise<Nomalism.Location.IFindResponse | null> {
|
|
59
51
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
60
52
|
return response.data;
|
|
61
53
|
}
|
|
62
54
|
|
|
63
|
-
async create(body: ICreateRequest): Promise<IFindResponse> {
|
|
55
|
+
async create(body: Nomalism.Location.ICreateRequest): Promise<Nomalism.Location.IFindResponse> {
|
|
64
56
|
const response = await this.api.post(`${this.route}`, body);
|
|
65
57
|
return response.data;
|
|
66
58
|
}
|
|
67
59
|
|
|
68
60
|
async update(
|
|
69
61
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
70
|
-
body: IUpdateRequest,
|
|
71
|
-
): Promise<IFindResponse | null> {
|
|
62
|
+
body: Nomalism.Location.IUpdateRequest,
|
|
63
|
+
): Promise<Nomalism.Location.IFindResponse | null> {
|
|
72
64
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
73
65
|
return response.data;
|
|
74
66
|
}
|
|
75
67
|
|
|
76
|
-
async deleteOne(
|
|
68
|
+
async deleteOne(
|
|
69
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
70
|
+
): Promise<Nomalism.Location.IFindResponse | null> {
|
|
77
71
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
78
72
|
return response.data;
|
|
79
73
|
}
|
|
@@ -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 IFindByOwnerIdRequest = Nomalism.shared.IFindByOwnerIdRequest;
|
|
6
|
-
|
|
7
|
-
export import IFindByIdRequest = Nomalism.shared.IFindByIdRequest;
|
|
8
|
-
|
|
9
|
-
export import IFindLinesInPrisonResponse = Nomalism.Prison.IFindLinesInPrisonResponse;
|
|
10
|
-
|
|
11
|
-
export import ICheckLineInPrisonOptions = Nomalism.Prison.ICheckLineInPrisonOptions;
|
|
12
|
-
|
|
13
|
-
export import ICheckLinesInPrisonLinesRequest = Nomalism.Prison.ICheckLinesInPrisonLinesRequest;
|
|
14
|
-
export import ICheckLinesInPrisonRequest = Nomalism.Prison.ICheckLinesInPrisonRequest;
|
|
15
|
-
|
|
16
|
-
export import ICreateLinesInPrisonRequest = Nomalism.Prison.ICreateLinesInPrisonRequest;
|
|
17
|
-
|
|
18
|
-
export const { checkLineInPrisonOptions } = Nomalism.Prison;
|
|
19
|
-
|
|
20
5
|
export default class Repository implements Nomalism.Prison.IApi {
|
|
21
6
|
public route: string;
|
|
22
7
|
|
|
@@ -30,17 +15,17 @@ export default class Repository implements Nomalism.Prison.IApi {
|
|
|
30
15
|
this.publicRoute = publicRoute;
|
|
31
16
|
}
|
|
32
17
|
|
|
33
|
-
async putLineInPrison(data: IFindByIdRequest): Promise<void> {
|
|
18
|
+
async putLineInPrison(data: Nomalism.shared.IFindByIdRequest): Promise<void> {
|
|
34
19
|
const response = await this.api.post(`${this.route}put_in_prison`, data);
|
|
35
20
|
return response.data;
|
|
36
21
|
}
|
|
37
22
|
|
|
38
|
-
async removeLineFromPrison(data: IFindByIdRequest): Promise<void> {
|
|
23
|
+
async removeLineFromPrison(data: Nomalism.shared.IFindByIdRequest): Promise<void> {
|
|
39
24
|
const response = await this.api.post(`${this.route}remove_from_prison`, data);
|
|
40
25
|
return response.data;
|
|
41
26
|
}
|
|
42
27
|
|
|
43
|
-
async findLinesInPrison(): Promise<IFindLinesInPrisonResponse[]> {
|
|
28
|
+
async findLinesInPrison(): Promise<Nomalism.Prison.IFindLinesInPrisonResponse[]> {
|
|
44
29
|
const response = await this.api.get(`${this.route}in_prison`, {});
|
|
45
30
|
return response.data;
|
|
46
31
|
}
|
|
@@ -50,11 +35,11 @@ export default class Repository implements Nomalism.Prison.IApi {
|
|
|
50
35
|
return response.data;
|
|
51
36
|
}
|
|
52
37
|
|
|
53
|
-
async checkLinesInPrison(data: ICheckLinesInPrisonRequest): Promise<void> {
|
|
38
|
+
async checkLinesInPrison(data: Nomalism.Prison.ICheckLinesInPrisonRequest): Promise<void> {
|
|
54
39
|
await this.api.post(`${this.route}check_in_prison`, data);
|
|
55
40
|
}
|
|
56
41
|
|
|
57
|
-
async createLinesInPrison(data: ICreateLinesInPrisonRequest): Promise<string[]> {
|
|
42
|
+
async createLinesInPrison(data: Nomalism.Prison.ICreateLinesInPrisonRequest): Promise<string[]> {
|
|
58
43
|
const response = await this.api.post(`${this.route}create_lines`, data);
|
|
59
44
|
return response.data;
|
|
60
45
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import Nomalism from '@nomalism-com/types';
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
import { IModuleConstructor } from '../../main';
|
|
4
|
-
import { IProductLocation } from '@nomalism-com/types/dist/modules/stock/productGoogleSheets/interface';
|
|
5
4
|
|
|
6
5
|
export default class Repository implements Nomalism.ProductGoogleSheets.IRepository {
|
|
7
6
|
public route: string;
|
|
@@ -166,11 +165,11 @@ export default class Repository implements Nomalism.ProductGoogleSheets.IReposit
|
|
|
166
165
|
await this.api.post(`${this.route}update_db_from_sheets`);
|
|
167
166
|
}
|
|
168
167
|
|
|
169
|
-
async partialLocation(body: IProductLocation): Promise<void> {
|
|
168
|
+
async partialLocation(body: Nomalism.ProductGoogleSheets.IProductLocation): Promise<void> {
|
|
170
169
|
await this.api.post(`${this.route}partial_location`, body);
|
|
171
170
|
}
|
|
172
171
|
|
|
173
|
-
async fullLocation(body: IProductLocation): Promise<void> {
|
|
172
|
+
async fullLocation(body: Nomalism.ProductGoogleSheets.IProductLocation): Promise<void> {
|
|
174
173
|
await this.api.post(`${this.route}full_location`, body);
|
|
175
174
|
}
|
|
176
175
|
}
|
|
@@ -2,27 +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.ProductImage.Entity;
|
|
6
|
-
|
|
7
|
-
export import ImageTypeEnum = Nomalism.ProductImage.ImageTypeEnum;
|
|
8
|
-
|
|
9
|
-
export import IImageType = Nomalism.ProductImage.IImageType;
|
|
10
|
-
|
|
11
|
-
export import imageTypes = Nomalism.ProductImage.imageTypes;
|
|
12
|
-
|
|
13
|
-
export import IFindRequest = Nomalism.ProductImage.IFindRequest;
|
|
14
|
-
export import IFindResponse = Nomalism.ProductImage.IFindResponse;
|
|
15
|
-
|
|
16
|
-
export import IFindPaginatedRequest = Nomalism.ProductImage.IFindPaginatedRequest;
|
|
17
|
-
|
|
18
|
-
export import IFindByOwnerIdRequest = Nomalism.shared.IFindByOwnerIdRequest;
|
|
19
|
-
|
|
20
|
-
export import ICreateRequest = Nomalism.ProductImage.ICreateRequest;
|
|
21
|
-
|
|
22
|
-
export import IUpdateRequest = Nomalism.ProductImage.IUpdateRequest;
|
|
23
|
-
export type IPaginationResponse =
|
|
24
|
-
Nomalism.shared.IPaginationResponse<Nomalism.ProductImage.IFindResponse>;
|
|
25
|
-
|
|
26
5
|
export default class Repository implements Nomalism.ProductImage.IRepository {
|
|
27
6
|
public route: string;
|
|
28
7
|
|
|
@@ -36,42 +15,52 @@ export default class Repository implements Nomalism.ProductImage.IRepository {
|
|
|
36
15
|
this.publicRoute = publicRoute;
|
|
37
16
|
}
|
|
38
17
|
|
|
39
|
-
async find(
|
|
18
|
+
async find(
|
|
19
|
+
params: Nomalism.ProductImage.IFindRequest,
|
|
20
|
+
): Promise<Nomalism.ProductImage.IFindResponse[]> {
|
|
40
21
|
const response = await this.api.get(`${this.route}`, { params });
|
|
41
22
|
return response.data;
|
|
42
23
|
}
|
|
43
24
|
|
|
44
|
-
async findPaginated(
|
|
25
|
+
async findPaginated(
|
|
26
|
+
params: Nomalism.ProductImage.IFindPaginatedRequest,
|
|
27
|
+
): Promise<Nomalism.shared.IPaginationResponse<Nomalism.ProductImage.IFindResponse>> {
|
|
45
28
|
const response = await this.api.get(`${this.route}paginated`, { params });
|
|
46
29
|
return response.data;
|
|
47
30
|
}
|
|
48
31
|
|
|
49
|
-
async findByOwnerId(
|
|
32
|
+
async findByOwnerId(
|
|
33
|
+
params: Nomalism.shared.IFindByOwnerIdRequest,
|
|
34
|
+
): Promise<Nomalism.ProductImage.IFindResponse[]> {
|
|
50
35
|
const response = await this.api.get(`${this.route}by_owner`, {
|
|
51
36
|
params,
|
|
52
37
|
});
|
|
53
38
|
return response.data;
|
|
54
39
|
}
|
|
55
40
|
|
|
56
|
-
async findById(
|
|
41
|
+
async findById(
|
|
42
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
43
|
+
): Promise<Nomalism.ProductImage.IFindResponse | null> {
|
|
57
44
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
58
45
|
return response.data;
|
|
59
46
|
}
|
|
60
47
|
|
|
61
|
-
async create(body: ICreateRequest): Promise<
|
|
48
|
+
async create(body: Nomalism.ProductImage.ICreateRequest): Promise<Nomalism.ProductImage.Entity> {
|
|
62
49
|
const response = await this.api.post(`${this.route}`, body);
|
|
63
50
|
return response.data;
|
|
64
51
|
}
|
|
65
52
|
|
|
66
53
|
async update(
|
|
67
54
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
68
|
-
body: IUpdateRequest,
|
|
69
|
-
): Promise<
|
|
55
|
+
body: Nomalism.ProductImage.IUpdateRequest,
|
|
56
|
+
): Promise<Nomalism.ProductImage.Entity | null> {
|
|
70
57
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
71
58
|
return response.data;
|
|
72
59
|
}
|
|
73
60
|
|
|
74
|
-
async deleteOne(
|
|
61
|
+
async deleteOne(
|
|
62
|
+
selector: Nomalism.shared.IFindByIdRequest,
|
|
63
|
+
): Promise<Nomalism.ProductImage.Entity | null> {
|
|
75
64
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
76
65
|
return response.data;
|
|
77
66
|
}
|