@nomalism-com/types 0.18.1 → 0.18.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/package.json +3 -2
- package/dist/index.js +0 -545
- package/dist/modules/document/inventario/interface.d.ts +0 -16
- package/dist/modules/document/inventario/interface.js +0 -6
- package/dist/modules/document/inventario/route.schema.d.ts +0 -2
- package/dist/modules/document/inventario/route.schema.js +0 -20
- package/dist/modules/document/materialEntrance/interfaces.d.ts +0 -116
- package/dist/modules/document/materialEntrance/interfaces.js +0 -23
- package/dist/modules/document/materialEntrance/route.schema.d.ts +0 -5
- package/dist/modules/document/materialEntrance/route.schema.js +0 -48
- package/dist/modules/document/order/interfaces.d.ts +0 -79
- package/dist/modules/document/order/interfaces.js +0 -33
- package/dist/modules/document/order/route.schema.d.ts +0 -6
- package/dist/modules/document/order/route.schema.js +0 -56
- package/dist/modules/document/propostaSheets/interface.d.ts +0 -44
- package/dist/modules/document/propostaSheets/interface.js +0 -11
- package/dist/modules/document/propostaSheets/route.schema.d.ts +0 -2
- package/dist/modules/document/propostaSheets/route.schema.js +0 -15
- package/dist/modules/document/purchase/interfaces.d.ts +0 -67
- package/dist/modules/document/purchase/interfaces.js +0 -6
- package/dist/modules/document/purchase/route.schema.d.ts +0 -2
- package/dist/modules/document/purchase/route.schema.js +0 -33
- package/dist/modules/document/quebra/interfaces.d.ts +0 -33
- package/dist/modules/document/quebra/interfaces.js +0 -6
- package/dist/modules/document/quebra/route.schema.d.ts +0 -2
- package/dist/modules/document/quebra/route.schema.js +0 -24
- package/dist/modules/document/returnToProvider/interface.d.ts +0 -42
- package/dist/modules/document/returnToProvider/interface.js +0 -13
- package/dist/modules/document/returnToProvider/route.schema.d.ts +0 -2
- package/dist/modules/document/returnToProvider/route.schema.js +0 -27
- package/dist/modules/document/transformado/interfaces.d.ts +0 -19
- package/dist/modules/document/transformado/interfaces.js +0 -6
- package/dist/modules/document/transformado/route.schema.d.ts +0 -2
- package/dist/modules/document/transformado/route.schema.js +0 -26
- package/dist/modules/document/upfrontReturn/interfaces.d.ts +0 -12
- package/dist/modules/document/upfrontReturn/interfaces.js +0 -6
- package/dist/modules/document/upfrontReturn/route.schema.d.ts +0 -2
- package/dist/modules/document/upfrontReturn/route.schema.js +0 -12
- package/dist/modules/documentManagement/multimedia/interfaces.d.ts +0 -16
- package/dist/modules/documentManagement/multimedia/interfaces.js +0 -6
- package/dist/modules/documentManagement/multimedia/route.schema.d.ts +0 -2
- package/dist/modules/documentManagement/multimedia/route.schema.js +0 -15
- package/dist/modules/integration/emailLog/interfaces.d.ts +0 -54
- package/dist/modules/integration/emailLog/interfaces.js +0 -6
- package/dist/modules/integration/emailLog/route.schema.d.ts +0 -3
- package/dist/modules/integration/emailLog/route.schema.js +0 -15
- package/dist/modules/integration/emailTemplate/interfaces.d.ts +0 -45
- package/dist/modules/integration/emailTemplate/interfaces.js +0 -6
- package/dist/modules/integration/emailTemplate/route.schema.d.ts +0 -4
- package/dist/modules/integration/emailTemplate/route.schema.js +0 -81
- package/dist/modules/integration/emailTemplateAttachment/interfaces.d.ts +0 -17
- package/dist/modules/integration/emailTemplateAttachment/interfaces.js +0 -6
- package/dist/modules/integration/emailTemplateAttachment/route.schema.d.ts +0 -2
- package/dist/modules/integration/emailTemplateAttachment/route.schema.js +0 -14
- package/dist/modules/integration/errorHandler/interfaces.d.ts +0 -22
- package/dist/modules/integration/errorHandler/interfaces.js +0 -6
- package/dist/modules/integration/errorHandler/route.schema.d.ts +0 -2
- package/dist/modules/integration/errorHandler/route.schema.js +0 -23
- package/dist/modules/integration/field/interfaces.d.ts +0 -50
- package/dist/modules/integration/field/interfaces.js +0 -26
- package/dist/modules/integration/field/route.schema.d.ts +0 -3
- package/dist/modules/integration/field/route.schema.js +0 -31
- package/dist/modules/integration/fieldGroup/interfaces.d.ts +0 -41
- package/dist/modules/integration/fieldGroup/interfaces.js +0 -12
- package/dist/modules/integration/fieldGroup/route.schema.d.ts +0 -8
- package/dist/modules/integration/fieldGroup/route.schema.js +0 -30
- package/dist/modules/integration/file/interface.d.ts +0 -18
- package/dist/modules/integration/file/interface.js +0 -6
- package/dist/modules/integration/file/route.schema.d.ts +0 -2
- package/dist/modules/integration/file/route.schema.js +0 -15
- package/dist/modules/integration/googleFilePermission/interfaces.d.ts +0 -26
- package/dist/modules/integration/googleFilePermission/interfaces.js +0 -6
- package/dist/modules/integration/googleFilePermission/route.schema.d.ts +0 -5
- package/dist/modules/integration/googleFilePermission/route.schema.js +0 -16
- package/dist/modules/integration/googleSheets/interfaces.d.ts +0 -50
- package/dist/modules/integration/googleSheets/interfaces.js +0 -6
- package/dist/modules/integration/googleSheets/route.schema.d.ts +0 -4
- package/dist/modules/integration/googleSheets/route.schema.js +0 -63
- package/dist/modules/integration/history/interfaces.d.ts +0 -40
- package/dist/modules/integration/history/interfaces.js +0 -24
- package/dist/modules/integration/history/route.schema.d.ts +0 -5
- package/dist/modules/integration/history/route.schema.js +0 -18
- package/dist/modules/integration/observation/interfaces.d.ts +0 -40
- package/dist/modules/integration/observation/interfaces.js +0 -6
- package/dist/modules/integration/observation/route.schema.d.ts +0 -9
- package/dist/modules/integration/observation/route.schema.js +0 -29
- package/dist/modules/integration/observationType/interfaces.d.ts +0 -27
- package/dist/modules/integration/observationType/interfaces.js +0 -6
- package/dist/modules/integration/observationType/route.schema.d.ts +0 -7
- package/dist/modules/integration/observationType/route.schema.js +0 -16
- package/dist/modules/integration/projectInfo/interfaces.d.ts +0 -16
- package/dist/modules/integration/projectInfo/interfaces.js +0 -12
- package/dist/modules/integration/projectInfo/route.schema.d.ts +0 -2
- package/dist/modules/integration/projectInfo/route.schema.js +0 -23
- package/dist/modules/integration/settings/interfaces.d.ts +0 -25
- package/dist/modules/integration/settings/interfaces.js +0 -6
- package/dist/modules/integration/settings/route.schema.d.ts +0 -4
- package/dist/modules/integration/settings/route.schema.js +0 -22
- package/dist/modules/print/npc/interfaces.d.ts +0 -15
- package/dist/modules/print/npc/interfaces.js +0 -6
- package/dist/modules/print/npc/route.schema.d.ts +0 -2
- package/dist/modules/print/npc/route.schema.js +0 -13
- package/dist/modules/print/printer/interfaces.d.ts +0 -29
- package/dist/modules/print/printer/interfaces.js +0 -6
- package/dist/modules/print/printer/route.schema.d.ts +0 -2
- package/dist/modules/print/printer/route.schema.js +0 -23
- package/dist/modules/print/schedulePrintJob/interfaces.d.ts +0 -38
- package/dist/modules/print/schedulePrintJob/interfaces.js +0 -6
- package/dist/modules/print/schedulePrintJob/route.schema.d.ts +0 -3
- package/dist/modules/print/schedulePrintJob/route.schema.js +0 -30
- package/dist/modules/stock/attribute/interfaces.d.ts +0 -51
- package/dist/modules/stock/attribute/interfaces.js +0 -14
- package/dist/modules/stock/attribute/route.schema.d.ts +0 -5
- package/dist/modules/stock/attribute/route.schema.js +0 -40
- package/dist/modules/stock/attributeValue/interfaces.d.ts +0 -36
- package/dist/modules/stock/attributeValue/interfaces.js +0 -6
- package/dist/modules/stock/attributeValue/route.schema.d.ts +0 -5
- package/dist/modules/stock/attributeValue/route.schema.js +0 -28
- package/dist/modules/stock/color/interfaces.d.ts +0 -36
- package/dist/modules/stock/color/interfaces.js +0 -6
- package/dist/modules/stock/color/route.schema.d.ts +0 -5
- package/dist/modules/stock/color/route.schema.js +0 -28
- package/dist/modules/stock/composition/interfaces.d.ts +0 -36
- package/dist/modules/stock/composition/interfaces.js +0 -6
- package/dist/modules/stock/composition/route.schema.d.ts +0 -5
- package/dist/modules/stock/composition/route.schema.js +0 -30
- package/dist/modules/stock/compositionMaterial/interfaces.d.ts +0 -32
- package/dist/modules/stock/compositionMaterial/interfaces.js +0 -6
- package/dist/modules/stock/compositionMaterial/route.schema.d.ts +0 -5
- package/dist/modules/stock/compositionMaterial/route.schema.js +0 -26
- package/dist/modules/stock/location/interface.d.ts +0 -58
- package/dist/modules/stock/location/interface.js +0 -6
- package/dist/modules/stock/location/route.schema.d.ts +0 -5
- package/dist/modules/stock/location/route.schema.js +0 -54
- package/dist/modules/stock/maintenance/interface.d.ts +0 -37
- package/dist/modules/stock/maintenance/interface.js +0 -6
- package/dist/modules/stock/maintenance/route.schema.d.ts +0 -5
- package/dist/modules/stock/maintenance/route.schema.js +0 -30
- package/dist/modules/stock/maintenanceAssoc/interface.d.ts +0 -35
- package/dist/modules/stock/maintenanceAssoc/interface.js +0 -6
- package/dist/modules/stock/maintenanceAssoc/route.schema.d.ts +0 -5
- package/dist/modules/stock/maintenanceAssoc/route.schema.js +0 -28
- package/dist/modules/stock/maintenancePreset/interfaces.d.ts +0 -28
- package/dist/modules/stock/maintenancePreset/interfaces.js +0 -6
- package/dist/modules/stock/maintenancePreset/route.schema.d.ts +0 -5
- package/dist/modules/stock/maintenancePreset/route.schema.js +0 -24
- package/dist/modules/stock/maintenancePresetAssoc/interfaces.d.ts +0 -31
- package/dist/modules/stock/maintenancePresetAssoc/interfaces.js +0 -6
- package/dist/modules/stock/maintenancePresetAssoc/route.schema.d.ts +0 -4
- package/dist/modules/stock/maintenancePresetAssoc/route.schema.js +0 -22
- package/dist/modules/stock/maintenanceType/interface.d.ts +0 -32
- package/dist/modules/stock/maintenanceType/interface.js +0 -6
- package/dist/modules/stock/maintenanceType/route.schema.d.ts +0 -5
- package/dist/modules/stock/maintenanceType/route.schema.js +0 -26
- package/dist/modules/stock/primaryColor/interface.d.ts +0 -32
- package/dist/modules/stock/primaryColor/interface.js +0 -6
- package/dist/modules/stock/primaryColor/route.schema.d.ts +0 -5
- package/dist/modules/stock/primaryColor/route.schema.js +0 -26
- package/dist/modules/stock/prison/interface.d.ts +0 -52
- package/dist/modules/stock/prison/interface.js +0 -12
- package/dist/modules/stock/prison/route.schema.d.ts +0 -4
- package/dist/modules/stock/prison/route.schema.js +0 -43
- package/dist/modules/stock/product/interface.d.ts +0 -243
- package/dist/modules/stock/product/interface.js +0 -16
- package/dist/modules/stock/product/route.schema.d.ts +0 -13
- package/dist/modules/stock/product/route.schema.js +0 -171
- package/dist/modules/stock/productAttribute/interface.d.ts +0 -36
- package/dist/modules/stock/productAttribute/interface.js +0 -6
- package/dist/modules/stock/productAttribute/route.schema.d.ts +0 -5
- package/dist/modules/stock/productAttribute/route.schema.js +0 -30
- package/dist/modules/stock/productCategory/interface.d.ts +0 -32
- package/dist/modules/stock/productCategory/interface.js +0 -6
- package/dist/modules/stock/productCategory/route.schema.d.ts +0 -5
- package/dist/modules/stock/productCategory/route.schema.js +0 -26
- package/dist/modules/stock/productColor/interface.d.ts +0 -36
- package/dist/modules/stock/productColor/interface.js +0 -6
- package/dist/modules/stock/productColor/route.schema.d.ts +0 -5
- package/dist/modules/stock/productColor/route.schema.js +0 -29
- package/dist/modules/stock/productImage/interface.d.ts +0 -43
- package/dist/modules/stock/productImage/interface.js +0 -11
- package/dist/modules/stock/productImage/route.schema.d.ts +0 -5
- package/dist/modules/stock/productImage/route.schema.js +0 -38
- package/dist/modules/stock/productName/interface.d.ts +0 -32
- package/dist/modules/stock/productName/interface.js +0 -6
- package/dist/modules/stock/productName/route.schema.d.ts +0 -5
- package/dist/modules/stock/productName/route.schema.js +0 -26
- package/dist/modules/stock/productNamePreset/interface.d.ts +0 -32
- package/dist/modules/stock/productNamePreset/interface.js +0 -6
- package/dist/modules/stock/productNamePreset/route.schema.d.ts +0 -5
- package/dist/modules/stock/productNamePreset/route.schema.js +0 -26
- package/dist/modules/stock/productPart/interface.d.ts +0 -40
- package/dist/modules/stock/productPart/interface.js +0 -6
- package/dist/modules/stock/productPart/route.schema.d.ts +0 -5
- package/dist/modules/stock/productPart/route.schema.js +0 -28
- package/dist/modules/stock/productSubCategory/interface.d.ts +0 -38
- package/dist/modules/stock/productSubCategory/interface.js +0 -6
- package/dist/modules/stock/productSubCategory/route.schema.d.ts +0 -5
- package/dist/modules/stock/productSubCategory/route.schema.js +0 -30
- package/dist/modules/stock/productUse/interface.d.ts +0 -32
- package/dist/modules/stock/productUse/interface.js +0 -6
- package/dist/modules/stock/productUse/route.schema.d.ts +0 -5
- package/dist/modules/stock/productUse/route.schema.js +0 -26
- package/dist/modules/stock/productUseAssoc/interface.d.ts +0 -34
- package/dist/modules/stock/productUseAssoc/interface.js +0 -6
- package/dist/modules/stock/productUseAssoc/route.schema.d.ts +0 -5
- package/dist/modules/stock/productUseAssoc/route.schema.js +0 -27
- package/dist/modules/stock/promotion/interface.d.ts +0 -42
- package/dist/modules/stock/promotion/interface.js +0 -6
- package/dist/modules/stock/promotion/route.schema.d.ts +0 -5
- package/dist/modules/stock/promotion/route.schema.js +0 -56
- package/dist/modules/stock/promotionAssoc/interface.d.ts +0 -40
- package/dist/modules/stock/promotionAssoc/interface.js +0 -6
- package/dist/modules/stock/promotionAssoc/route.schema.d.ts +0 -5
- package/dist/modules/stock/promotionAssoc/route.schema.js +0 -32
- package/dist/modules/stock/queryList/interfaces.d.ts +0 -44
- package/dist/modules/stock/queryList/interfaces.js +0 -7
- package/dist/modules/stock/queryList/route.schema.d.ts +0 -7
- package/dist/modules/stock/queryList/route.schema.js +0 -35
- package/dist/modules/stock/queryParameter/interfaces.d.ts +0 -49
- package/dist/modules/stock/queryParameter/interfaces.js +0 -17
- package/dist/modules/stock/queryParameter/route.schema.d.ts +0 -3
- package/dist/modules/stock/queryParameter/route.schema.js +0 -35
- package/dist/modules/stock/returnReason/interfaces.d.ts +0 -19
- package/dist/modules/stock/returnReason/interfaces.js +0 -6
- package/dist/modules/stock/returnReason/route.schema.d.ts +0 -3
- package/dist/modules/stock/returnReason/route.schema.js +0 -16
- package/dist/modules/stock/savedEmPicking/interfaces.d.ts +0 -19
- package/dist/modules/stock/savedEmPicking/interfaces.js +0 -6
- package/dist/modules/stock/savedEmPicking/route.schema.d.ts +0 -2
- package/dist/modules/stock/savedEmPicking/route.schema.js +0 -85
- package/dist/modules/stock/savedProviderProposal/interfaces.d.ts +0 -23
- package/dist/modules/stock/savedProviderProposal/interfaces.js +0 -6
- package/dist/modules/stock/savedProviderProposal/route.schema.d.ts +0 -3
- package/dist/modules/stock/savedProviderProposal/route.schema.js +0 -18
- package/dist/modules/stock/similarProduct/interface.d.ts +0 -38
- package/dist/modules/stock/similarProduct/interface.js +0 -6
- package/dist/modules/stock/similarProduct/route.schema.d.ts +0 -5
- package/dist/modules/stock/similarProduct/route.schema.js +0 -28
- package/dist/modules/stock/stockMovement/interface.d.ts +0 -46
- package/dist/modules/stock/stockMovement/interface.js +0 -16
- package/dist/modules/stock/stockMovement/route.schema.d.ts +0 -2
- package/dist/modules/stock/stockMovement/route.schema.js +0 -24
- package/dist/modules/stock/typeOfInventory/interface.d.ts +0 -34
- package/dist/modules/stock/typeOfInventory/interface.js +0 -6
- package/dist/modules/stock/typeOfInventory/route.schema.d.ts +0 -5
- package/dist/modules/stock/typeOfInventory/route.schema.js +0 -28
- package/dist/modules/stock/typeOfLocation/interface.d.ts +0 -32
- package/dist/modules/stock/typeOfLocation/interface.js +0 -6
- package/dist/modules/stock/typeOfLocation/route.schema.d.ts +0 -5
- package/dist/modules/stock/typeOfLocation/route.schema.js +0 -26
- package/dist/modules/stock/unitOfMeasure/interface.d.ts +0 -46
- package/dist/modules/stock/unitOfMeasure/interface.js +0 -6
- package/dist/modules/stock/unitOfMeasure/route.schema.d.ts +0 -5
- package/dist/modules/stock/unitOfMeasure/route.schema.js +0 -40
- package/dist/modules/stock/vatTax/interface.d.ts +0 -34
- package/dist/modules/stock/vatTax/interface.js +0 -6
- package/dist/modules/stock/vatTax/route.schema.d.ts +0 -5
- package/dist/modules/stock/vatTax/route.schema.js +0 -28
- package/dist/modules/stock/vatTaxZone/interface.d.ts +0 -42
- package/dist/modules/stock/vatTaxZone/interface.js +0 -6
- package/dist/modules/stock/vatTaxZone/route.schema.d.ts +0 -5
- package/dist/modules/stock/vatTaxZone/route.schema.js +0 -37
- package/dist/modules/stock/vatValidation/interfaces.d.ts +0 -8
- package/dist/modules/stock/vatValidation/interfaces.js +0 -6
- package/dist/modules/stock/vatValidation/route.schema.d.ts +0 -2
- package/dist/modules/stock/vatValidation/route.schema.js +0 -15
- package/dist/modules/stock/workflow/interfaces.d.ts +0 -45
- package/dist/modules/stock/workflow/interfaces.js +0 -6
- package/dist/modules/stock/workflow/route.schema.d.ts +0 -4
- package/dist/modules/stock/workflow/route.schema.js +0 -39
- package/dist/modules/supply/cabide/interface.d.ts +0 -85
- package/dist/modules/supply/cabide/interface.js +0 -18
- package/dist/modules/supply/cabide/route.schema.d.ts +0 -8
- package/dist/modules/supply/cabide/route.schema.js +0 -77
- package/dist/modules/supply/cabideProduct/interface.d.ts +0 -97
- package/dist/modules/supply/cabideProduct/interface.js +0 -6
- package/dist/modules/supply/cabideProduct/route.schema.d.ts +0 -5
- package/dist/modules/supply/cabideProduct/route.schema.js +0 -69
- package/dist/modules/supply/clientCurrentAccount/interfaces.d.ts +0 -88
- package/dist/modules/supply/clientCurrentAccount/interfaces.js +0 -25
- package/dist/modules/supply/clientCurrentAccount/route.schema.d.ts +0 -5
- package/dist/modules/supply/clientCurrentAccount/route.schema.js +0 -48
- package/dist/modules/supply/counter/interfaces.d.ts +0 -27
- package/dist/modules/supply/counter/interfaces.js +0 -6
- package/dist/modules/supply/counter/route.schema.d.ts +0 -4
- package/dist/modules/supply/counter/route.schema.js +0 -27
- package/dist/modules/supply/documentHeader/interfaces.d.ts +0 -411
- package/dist/modules/supply/documentHeader/interfaces.js +0 -6
- package/dist/modules/supply/documentHeader/route.schema.d.ts +0 -23
- package/dist/modules/supply/documentHeader/route.schema.js +0 -479
- package/dist/modules/supply/documentLine/interfaces.d.ts +0 -222
- package/dist/modules/supply/documentLine/interfaces.js +0 -18
- package/dist/modules/supply/documentLine/route.schema.d.ts +0 -10
- package/dist/modules/supply/documentLine/route.schema.js +0 -123
- package/dist/modules/supply/documentLineAssoc/interfaces.d.ts +0 -36
- package/dist/modules/supply/documentLineAssoc/interfaces.js +0 -6
- package/dist/modules/supply/documentLineAssoc/route.schema.d.ts +0 -4
- package/dist/modules/supply/documentLineAssoc/route.schema.js +0 -31
- package/dist/modules/supply/documentLineFolder/interfaces.d.ts +0 -24
- package/dist/modules/supply/documentLineFolder/interfaces.js +0 -6
- package/dist/modules/supply/documentLineFolder/route.schema.d.ts +0 -3
- package/dist/modules/supply/documentLineFolder/route.schema.js +0 -19
- package/dist/modules/supply/documentLineNote/interfaces.d.ts +0 -31
- package/dist/modules/supply/documentLineNote/interfaces.js +0 -16
- package/dist/modules/supply/documentLineNote/route.schema.d.ts +0 -6
- package/dist/modules/supply/documentLineNote/route.schema.js +0 -22
- package/dist/modules/supply/documentSet/interface.d.ts +0 -31
- package/dist/modules/supply/documentSet/interface.js +0 -6
- package/dist/modules/supply/documentSet/route.schema.d.ts +0 -3
- package/dist/modules/supply/documentSet/route.schema.js +0 -26
- package/dist/modules/supply/documentType/interfaces.d.ts +0 -127
- package/dist/modules/supply/documentType/interfaces.js +0 -56
- package/dist/modules/supply/documentType/route.schema.d.ts +0 -3
- package/dist/modules/supply/documentType/route.schema.js +0 -69
- package/dist/modules/supply/externalDocumentHeader/interface.d.ts +0 -65
- package/dist/modules/supply/externalDocumentHeader/interface.js +0 -6
- package/dist/modules/supply/externalDocumentHeader/route.schema.d.ts +0 -6
- package/dist/modules/supply/externalDocumentHeader/route.schema.js +0 -47
- package/dist/modules/supply/externalDocumentType/interface.d.ts +0 -11
- package/dist/modules/supply/externalDocumentType/interface.js +0 -6
- package/dist/modules/supply/moloniRequest/interface.d.ts +0 -18
- package/dist/modules/supply/moloniRequest/interface.js +0 -6
- package/dist/modules/supply/moloniRequest/route.schema.d.ts +0 -2
- package/dist/modules/supply/moloniRequest/route.schema.js +0 -17
- package/dist/modules/supply/orderManagement/interface.d.ts +0 -77
- package/dist/modules/supply/orderManagement/interface.js +0 -6
- package/dist/modules/supply/orderManagement/route.schema.d.ts +0 -0
- package/dist/modules/supply/orderManagement/route.schema.js +0 -1
- package/dist/modules/supply/payment/interface.d.ts +0 -152
- package/dist/modules/supply/payment/interface.js +0 -11
- package/dist/modules/supply/payment/route.schema.d.ts +0 -8
- package/dist/modules/supply/payment/route.schema.js +0 -81
- package/dist/modules/supply/preSale/interface.d.ts +0 -60
- package/dist/modules/supply/preSale/interface.js +0 -6
- package/dist/modules/supply/preSale/route.schema.d.ts +0 -8
- package/dist/modules/supply/preSale/route.schema.js +0 -58
- package/dist/modules/supply/preSaleProduct/interface.d.ts +0 -12
- package/dist/modules/supply/preSaleProduct/interface.js +0 -6
- package/dist/modules/supply/preSaleProduct/route.schema.d.ts +0 -2
- package/dist/modules/supply/preSaleProduct/route.schema.js +0 -10
- package/dist/modules/supply/providerCurrentAccount/interfaces.d.ts +0 -13
- package/dist/modules/supply/providerCurrentAccount/interfaces.js +0 -6
- package/dist/modules/supply/providerCurrentAccount/route.schema.d.ts +0 -2
- package/dist/modules/supply/providerCurrentAccount/route.schema.js +0 -17
- package/dist/modules/supply/schedule/interface.d.ts +0 -22
- package/dist/modules/supply/schedule/interface.js +0 -19
- package/dist/modules/supply/schedule/route.schema.d.ts +0 -2
- package/dist/modules/supply/schedule/route.schema.js +0 -19
- package/dist/modules/supply/startDocumentHeaderLastUpdate/interface.d.ts +0 -10
- package/dist/modules/supply/startDocumentHeaderLastUpdate/interface.js +0 -6
- package/dist/modules/tickets/channel/interfaces.d.ts +0 -30
- package/dist/modules/tickets/channel/interfaces.js +0 -6
- package/dist/modules/tickets/channel/route.schema.d.ts +0 -3
- package/dist/modules/tickets/channel/route.schema.js +0 -28
- package/dist/modules/tickets/clt/interfaces.d.ts +0 -20
- package/dist/modules/tickets/clt/interfaces.js +0 -6
- package/dist/modules/tickets/clt/route.schema.d.ts +0 -3
- package/dist/modules/tickets/clt/route.schema.js +0 -22
- package/dist/modules/tickets/language/interfaces.d.ts +0 -20
- package/dist/modules/tickets/language/interfaces.js +0 -6
- package/dist/modules/tickets/language/route.schema.d.ts +0 -3
- package/dist/modules/tickets/language/route.schema.js +0 -28
- package/dist/modules/tickets/tickets/interfaces.d.ts +0 -44
- package/dist/modules/tickets/tickets/interfaces.js +0 -6
- package/dist/modules/tickets/tickets/route.schema.d.ts +0 -3
- package/dist/modules/tickets/tickets/route.schema.js +0 -18
- package/dist/modules/user/bankData/interface.d.ts +0 -42
- package/dist/modules/user/bankData/interface.js +0 -6
- package/dist/modules/user/bankData/route.schema.d.ts +0 -5
- package/dist/modules/user/bankData/route.schema.js +0 -38
- package/dist/modules/user/clientType/interface.d.ts +0 -30
- package/dist/modules/user/clientType/interface.js +0 -6
- package/dist/modules/user/clientType/route.schema.d.ts +0 -6
- package/dist/modules/user/clientType/route.schema.js +0 -29
- package/dist/modules/user/clients/interface.d.ts +0 -84
- package/dist/modules/user/clients/interface.js +0 -6
- package/dist/modules/user/clients/route.schema.d.ts +0 -5
- package/dist/modules/user/clients/route.schema.js +0 -83
- package/dist/modules/user/commissioner/interface.d.ts +0 -59
- package/dist/modules/user/commissioner/interface.js +0 -6
- package/dist/modules/user/commissioner/route.schema.d.ts +0 -5
- package/dist/modules/user/commissioner/route.schema.js +0 -50
- package/dist/modules/user/country/interface.d.ts +0 -37
- package/dist/modules/user/country/interface.js +0 -6
- package/dist/modules/user/country/route.schema.d.ts +0 -12
- package/dist/modules/user/country/route.schema.js +0 -104
- package/dist/modules/user/deliveryMethods/interfaces.d.ts +0 -23
- package/dist/modules/user/deliveryMethods/interfaces.js +0 -6
- package/dist/modules/user/deliveryMethods/route.schema.d.ts +0 -3
- package/dist/modules/user/deliveryMethods/route.schema.js +0 -18
- package/dist/modules/user/favorites/interfaces.d.ts +0 -22
- package/dist/modules/user/favorites/interfaces.js +0 -6
- package/dist/modules/user/favorites/route.schema.d.ts +0 -8
- package/dist/modules/user/favorites/route.schema.js +0 -26
- package/dist/modules/user/groupPermissions/interface.d.ts +0 -25
- package/dist/modules/user/groupPermissions/interface.js +0 -6
- package/dist/modules/user/groupPermissions/route.schema.d.ts +0 -2
- package/dist/modules/user/groupPermissions/route.schema.js +0 -13
- package/dist/modules/user/language/interface.d.ts +0 -30
- package/dist/modules/user/language/interface.js +0 -6
- package/dist/modules/user/language/route.schema.d.ts +0 -5
- package/dist/modules/user/language/route.schema.js +0 -26
- package/dist/modules/user/maturityDates/interfaces.d.ts +0 -25
- package/dist/modules/user/maturityDates/interfaces.js +0 -6
- package/dist/modules/user/maturityDates/route.schema.d.ts +0 -3
- package/dist/modules/user/maturityDates/route.schema.js +0 -20
- package/dist/modules/user/password/interfaces.d.ts +0 -15
- package/dist/modules/user/password/interfaces.js +0 -4
- package/dist/modules/user/password/route.schema.d.ts +0 -3
- package/dist/modules/user/password/route.schema.js +0 -21
- package/dist/modules/user/paymentConditions/interface.d.ts +0 -35
- package/dist/modules/user/paymentConditions/interface.js +0 -6
- package/dist/modules/user/paymentConditions/route.schema.d.ts +0 -5
- package/dist/modules/user/paymentConditions/route.schema.js +0 -30
- package/dist/modules/user/paymentMethods/interfaces.d.ts +0 -31
- package/dist/modules/user/paymentMethods/interfaces.js +0 -6
- package/dist/modules/user/paymentMethods/route.schema.d.ts +0 -3
- package/dist/modules/user/paymentMethods/route.schema.js +0 -26
- package/dist/modules/user/permissions/interface.d.ts +0 -25
- package/dist/modules/user/permissions/interface.js +0 -6
- package/dist/modules/user/permissions/route.schema.d.ts +0 -2
- package/dist/modules/user/permissions/route.schema.js +0 -13
- package/dist/modules/user/persona/interface.d.ts +0 -64
- package/dist/modules/user/persona/interface.js +0 -6
- package/dist/modules/user/persona/route.schema.d.ts +0 -4
- package/dist/modules/user/persona/route.schema.js +0 -59
- package/dist/modules/user/providerType/interface.d.ts +0 -30
- package/dist/modules/user/providerType/interface.js +0 -6
- package/dist/modules/user/providerType/route.schema.d.ts +0 -5
- package/dist/modules/user/providerType/route.schema.js +0 -26
- package/dist/modules/user/providers/interface.d.ts +0 -80
- package/dist/modules/user/providers/interface.js +0 -6
- package/dist/modules/user/providers/route.schema.d.ts +0 -5
- package/dist/modules/user/providers/route.schema.js +0 -81
- package/dist/modules/user/purchaseConditions/interface.d.ts +0 -40
- package/dist/modules/user/purchaseConditions/interface.js +0 -6
- package/dist/modules/user/purchaseConditions/route.schema.d.ts +0 -5
- package/dist/modules/user/purchaseConditions/route.schema.js +0 -33
- package/dist/modules/user/reasonForExemption/interface.d.ts +0 -36
- package/dist/modules/user/reasonForExemption/interface.js +0 -6
- package/dist/modules/user/reasonForExemption/route.schema.d.ts +0 -5
- package/dist/modules/user/reasonForExemption/route.schema.js +0 -32
- package/dist/modules/user/refreshToken/interface.d.ts +0 -15
- package/dist/modules/user/refreshToken/interface.js +0 -2
- package/dist/modules/user/refreshToken/route.schema.d.ts +0 -2
- package/dist/modules/user/refreshToken/route.schema.js +0 -16
- package/dist/modules/user/segmentsArea/interface.d.ts +0 -32
- package/dist/modules/user/segmentsArea/interface.js +0 -6
- package/dist/modules/user/segmentsArea/route.schema.d.ts +0 -5
- package/dist/modules/user/segmentsArea/route.schema.js +0 -28
- package/dist/modules/user/sessions/interface.d.ts +0 -18
- package/dist/modules/user/sessions/interface.js +0 -2
- package/dist/modules/user/sessions/route.schema.d.ts +0 -2
- package/dist/modules/user/sessions/route.schema.js +0 -19
- package/dist/modules/user/shippings/interface.d.ts +0 -39
- package/dist/modules/user/shippings/interface.js +0 -6
- package/dist/modules/user/shippings/route.schema.d.ts +0 -5
- package/dist/modules/user/shippings/route.schema.js +0 -34
- package/dist/modules/user/socialMedia/interface.d.ts +0 -35
- package/dist/modules/user/socialMedia/interface.js +0 -6
- package/dist/modules/user/socialMedia/route.schema.d.ts +0 -5
- package/dist/modules/user/socialMedia/route.schema.js +0 -34
- package/dist/modules/user/storeOperator/interface.d.ts +0 -55
- package/dist/modules/user/storeOperator/interface.js +0 -6
- package/dist/modules/user/storeOperator/route.schema.d.ts +0 -6
- package/dist/modules/user/storeOperator/route.schema.js +0 -54
- package/dist/modules/user/swift/interface.d.ts +0 -38
- package/dist/modules/user/swift/interface.js +0 -6
- package/dist/modules/user/swift/route.schema.d.ts +0 -5
- package/dist/modules/user/swift/route.schema.js +0 -34
- package/dist/modules/user/tenant/interface.d.ts +0 -49
- package/dist/modules/user/tenant/interface.js +0 -6
- package/dist/modules/user/tenant/route.schema.d.ts +0 -3
- package/dist/modules/user/tenant/route.schema.js +0 -46
- package/dist/modules/user/userPermissions/interface.d.ts +0 -23
- package/dist/modules/user/userPermissions/interface.js +0 -6
- package/dist/modules/user/userPermissions/route.schema.d.ts +0 -2
- package/dist/modules/user/userPermissions/route.schema.js +0 -14
- package/dist/modules/user/userPositions/interface.d.ts +0 -30
- package/dist/modules/user/userPositions/interface.js +0 -6
- package/dist/modules/user/userPositions/route.schema.d.ts +0 -5
- package/dist/modules/user/userPositions/route.schema.js +0 -26
- package/dist/modules/user/userTokens/interface.d.ts +0 -30
- package/dist/modules/user/userTokens/interface.js +0 -6
- package/dist/modules/user/userTokens/route.schema.d.ts +0 -3
- package/dist/modules/user/userTokens/route.schema.js +0 -18
- package/dist/modules/user/users/interface.d.ts +0 -126
- package/dist/modules/user/users/interface.js +0 -6
- package/dist/modules/user/users/route.schema.d.ts +0 -7
- package/dist/modules/user/users/route.schema.js +0 -57
- package/dist/modules/user/vehicles/interfaces.d.ts +0 -25
- package/dist/modules/user/vehicles/interfaces.js +0 -6
- package/dist/modules/user/vehicles/route.schema.d.ts +0 -3
- package/dist/modules/user/vehicles/route.schema.js +0 -20
- package/dist/modules/user/zipCode/interfaces.d.ts +0 -23
- package/dist/modules/user/zipCode/interfaces.js +0 -6
- package/dist/modules/user/zipCode/route.schema.d.ts +0 -3
- package/dist/modules/user/zipCode/route.schema.js +0 -30
- package/dist/modules/view/channels/interface.d.ts +0 -20
- package/dist/modules/view/channels/interface.js +0 -6
- package/dist/modules/view/channels/route.schema.d.ts +0 -0
- package/dist/modules/view/channels/route.schema.js +0 -1
- package/dist/modules/view/connections/interface.d.ts +0 -25
- package/dist/modules/view/connections/interface.js +0 -6
- package/dist/modules/view/connections/route.schema.d.ts +0 -0
- package/dist/modules/view/connections/route.schema.js +0 -1
- package/dist/modules/view/eventHistory/interface.d.ts +0 -7
- package/dist/modules/view/eventHistory/interface.js +0 -2
- package/dist/modules/view/eventHistory/route.schema.d.ts +0 -2
- package/dist/modules/view/eventHistory/route.schema.js +0 -13
- package/dist/shared/entities/documentManagement.d.ts +0 -12
- package/dist/shared/entities/documentManagement.js +0 -2
- package/dist/shared/entities/index.d.ts +0 -135
- package/dist/shared/entities/index.js +0 -2
- package/dist/shared/entities/integration.d.ts +0 -195
- package/dist/shared/entities/integration.js +0 -2
- package/dist/shared/entities/print.d.ts +0 -36
- package/dist/shared/entities/print.js +0 -2
- package/dist/shared/entities/stock.d.ts +0 -1104
- package/dist/shared/entities/stock.js +0 -2
- package/dist/shared/entities/tickets.d.ts +0 -59
- package/dist/shared/entities/tickets.js +0 -2
- package/dist/shared/entities/user.d.ts +0 -399
- package/dist/shared/entities/user.js +0 -2
- package/dist/shared/entities/view.d.ts +0 -10
- package/dist/shared/entities/view.js +0 -2
- package/dist/shared/errors/documentManagementErrors.d.ts +0 -14
- package/dist/shared/errors/documentManagementErrors.js +0 -15
- package/dist/shared/errors/integrationErrors.d.ts +0 -45
- package/dist/shared/errors/integrationErrors.js +0 -46
- package/dist/shared/errors/stockErrors.d.ts +0 -273
- package/dist/shared/errors/stockErrors.js +0 -274
- package/dist/shared/errors/userErrors.d.ts +0 -104
- package/dist/shared/errors/userErrors.js +0 -105
- package/dist/shared/errors/viewErrors.d.ts +0 -7
- package/dist/shared/errors/viewErrors.js +0 -8
- package/dist/shared/interface.d.ts +0 -220
- package/dist/shared/interface.js +0 -79
- package/dist/shared/messages.d.ts +0 -2
- package/dist/shared/messages.js +0 -119
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getBasicSearchParamsValidate = exports.updateBody = exports.createBody = void 0;
|
|
7
|
-
var joi_1 = __importDefault(require("joi"));
|
|
8
|
-
var messages_1 = require("../../../shared/messages");
|
|
9
|
-
var createBodyKeys = {
|
|
10
|
-
name: joi_1.default.string().allow(null, '').optional(),
|
|
11
|
-
nif: joi_1.default.string().allow(null, '').optional(),
|
|
12
|
-
street: joi_1.default.string().allow(null, '').optional(),
|
|
13
|
-
locality: joi_1.default.string().allow(null, '').optional(),
|
|
14
|
-
postal_code: joi_1.default.string().trim(true).lowercase().allow(null, '').optional(),
|
|
15
|
-
country_id: joi_1.default.string().allow(null, '').optional(),
|
|
16
|
-
telephone: joi_1.default.string().allow(null, '').optional(),
|
|
17
|
-
email: joi_1.default
|
|
18
|
-
.string()
|
|
19
|
-
.email({ tlds: { allow: false } })
|
|
20
|
-
.allow(null, '')
|
|
21
|
-
.optional(),
|
|
22
|
-
observations: joi_1.default.string().allow(null, '').optional(),
|
|
23
|
-
provider_id: joi_1.default.string().allow(null, ''),
|
|
24
|
-
client_id: joi_1.default.string().allow(null, ''),
|
|
25
|
-
commissioner_id: joi_1.default.string().allow(null, ''),
|
|
26
|
-
main: joi_1.default.boolean().default(false).optional(),
|
|
27
|
-
};
|
|
28
|
-
exports.createBody = joi_1.default
|
|
29
|
-
.object()
|
|
30
|
-
.keys(createBodyKeys)
|
|
31
|
-
.xor('provider_id', 'client_id', 'commissioner_id')
|
|
32
|
-
.messages(messages_1.messages);
|
|
33
|
-
var updateBodyKeys = {
|
|
34
|
-
name: joi_1.default.string().allow(null, '').optional(),
|
|
35
|
-
nif: joi_1.default.string().allow(null, '').optional(),
|
|
36
|
-
street: joi_1.default.string().allow(null, '').optional(),
|
|
37
|
-
locality: joi_1.default.string().allow(null, '').optional(),
|
|
38
|
-
postal_code: joi_1.default.string().trim(true).lowercase().allow(null, '').optional(),
|
|
39
|
-
country_id: joi_1.default.string().allow(null, '').optional(),
|
|
40
|
-
telephone: joi_1.default.string().allow(null, '').optional(),
|
|
41
|
-
email: joi_1.default
|
|
42
|
-
.string()
|
|
43
|
-
.email({ tlds: { allow: false } })
|
|
44
|
-
.allow(null, '')
|
|
45
|
-
.optional(),
|
|
46
|
-
observations: joi_1.default.string().allow(null, '').optional(),
|
|
47
|
-
main: joi_1.default.boolean().optional(),
|
|
48
|
-
};
|
|
49
|
-
exports.updateBody = joi_1.default.object().keys(updateBodyKeys).messages(messages_1.messages);
|
|
50
|
-
var getBasicSearchQueryKeys = {
|
|
51
|
-
per_page: joi_1.default.number().integer().positive().default(10).optional(),
|
|
52
|
-
current_page: joi_1.default.number().integer().positive().default(1).optional(),
|
|
53
|
-
inactive: joi_1.default.boolean().default(false).optional(),
|
|
54
|
-
search_value: joi_1.default.string().allow('', null).optional(),
|
|
55
|
-
};
|
|
56
|
-
exports.getBasicSearchParamsValidate = joi_1.default
|
|
57
|
-
.object()
|
|
58
|
-
.keys(getBasicSearchQueryKeys)
|
|
59
|
-
.messages(messages_1.messages);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { ProviderType } from '../../../shared/entities';
|
|
3
|
-
export type Entity = ProviderType;
|
|
4
|
-
export declare const Route = "provider_type";
|
|
5
|
-
export declare const UpperName = "ProviderType";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
type IFindDetailedResponse = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
|
-
export type IFindRequest = Record<string, unknown>;
|
|
10
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
11
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
12
|
-
}
|
|
13
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
14
|
-
export interface ICreateRequest {
|
|
15
|
-
name: string;
|
|
16
|
-
}
|
|
17
|
-
export interface IUpdateRequest {
|
|
18
|
-
name?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface IRepository {
|
|
21
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
22
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
23
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
24
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
25
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
26
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
27
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
28
|
-
}
|
|
29
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
30
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LowerName = exports.UpperName = exports.Route = void 0;
|
|
4
|
-
exports.Route = 'provider_type';
|
|
5
|
-
exports.UpperName = 'ProviderType';
|
|
6
|
-
exports.LowerName = exports.UpperName[0].toLowerCase() + exports.UpperName.substring(1);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.findWithPaginationQuery = exports.findQuery = exports.updateBody = exports.createBody = void 0;
|
|
7
|
-
var joi_1 = __importDefault(require("joi"));
|
|
8
|
-
var messages_1 = require("../../../shared/messages");
|
|
9
|
-
var createBodyKeys = {
|
|
10
|
-
name: joi_1.default.string().required(),
|
|
11
|
-
};
|
|
12
|
-
exports.createBody = joi_1.default.object().keys(createBodyKeys).messages(messages_1.messages);
|
|
13
|
-
var updateBodyKeys = {
|
|
14
|
-
name: joi_1.default.string().required(),
|
|
15
|
-
};
|
|
16
|
-
exports.updateBody = joi_1.default.object().keys(updateBodyKeys).messages(messages_1.messages);
|
|
17
|
-
var findQueryKeys = {};
|
|
18
|
-
exports.findQuery = joi_1.default.object().keys(findQueryKeys).messages(messages_1.messages);
|
|
19
|
-
var findWithPaginationQueryKeys = {
|
|
20
|
-
per_page: joi_1.default.number().integer().positive().default(10).optional(),
|
|
21
|
-
current_page: joi_1.default.number().integer().positive().default(1).optional(),
|
|
22
|
-
};
|
|
23
|
-
exports.findWithPaginationQuery = joi_1.default
|
|
24
|
-
.object()
|
|
25
|
-
.keys(findWithPaginationQueryKeys)
|
|
26
|
-
.messages(messages_1.messages);
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { Providers, Users, Country, ReasonForExemption, Language, ProviderType, PaymentMethods, MaturityDates, DeliveryMethods, Vehicles, Persona } from '../../../shared/entities';
|
|
3
|
-
export type Entity = Providers;
|
|
4
|
-
export declare const Route = "provider";
|
|
5
|
-
export declare const UpperName = "Providers";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
interface IFindDetailedResponse extends Entity {
|
|
8
|
-
user: Users;
|
|
9
|
-
main_persona: Persona & {
|
|
10
|
-
country: Country | null;
|
|
11
|
-
};
|
|
12
|
-
exemption_reason: ReasonForExemption | null;
|
|
13
|
-
country: Country | null;
|
|
14
|
-
language: Language | null;
|
|
15
|
-
support_language: Language | null;
|
|
16
|
-
provider_type: ProviderType | null;
|
|
17
|
-
default_payment_method: PaymentMethods | null;
|
|
18
|
-
default_maturity_date: MaturityDates | null;
|
|
19
|
-
default_delivery_method: DeliveryMethods | null;
|
|
20
|
-
default_vehicle: Vehicles | null;
|
|
21
|
-
}
|
|
22
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
23
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, 'user' | 'main_persona' | 'exemption_reason' | 'country' | 'language' | 'support_language' | 'provider_type' | 'default_payment_method' | 'default_maturity_date' | 'default_delivery_method' | 'default_vehicle'>;
|
|
24
|
-
export interface IFindByQueryRequest {
|
|
25
|
-
number?: number[];
|
|
26
|
-
id?: string[];
|
|
27
|
-
}
|
|
28
|
-
export interface IFindRequest {
|
|
29
|
-
}
|
|
30
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
31
|
-
export type IFindPaginatedRequest = IShared.IPaginationRequest;
|
|
32
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
33
|
-
export type ICreateUser = Pick<Users, 'email' | 'name'>;
|
|
34
|
-
export type ICreateMainPersona = Pick<Persona, 'nif' | 'name' | 'email' | 'telephone'>;
|
|
35
|
-
export interface ICreateRequest {
|
|
36
|
-
user_id?: string;
|
|
37
|
-
user?: ICreateUser;
|
|
38
|
-
manufacturer?: boolean;
|
|
39
|
-
inactive?: boolean;
|
|
40
|
-
default_discount?: number;
|
|
41
|
-
exemption_reason_id?: string | null;
|
|
42
|
-
main_persona: ICreateMainPersona;
|
|
43
|
-
provider_type_id?: string | null;
|
|
44
|
-
country_id?: string | null;
|
|
45
|
-
language_id?: string | null;
|
|
46
|
-
support_language_id?: string | null;
|
|
47
|
-
default_payment_method_id?: string | null;
|
|
48
|
-
default_maturity_date_id?: string | null;
|
|
49
|
-
default_delivery_method_id?: string | null;
|
|
50
|
-
default_vehicle_id?: string | null;
|
|
51
|
-
}
|
|
52
|
-
export interface IUpdateRequest {
|
|
53
|
-
manufacturer?: boolean;
|
|
54
|
-
inactive?: boolean;
|
|
55
|
-
default_discount?: number;
|
|
56
|
-
exemption_reason_id?: string | null;
|
|
57
|
-
main_persona_id?: string;
|
|
58
|
-
country_id?: string;
|
|
59
|
-
language_id?: string;
|
|
60
|
-
support_language_id?: string | null;
|
|
61
|
-
provider_type_id?: string;
|
|
62
|
-
default_payment_method_id?: string;
|
|
63
|
-
default_maturity_date_id?: string;
|
|
64
|
-
default_delivery_method_id?: string;
|
|
65
|
-
default_vehicle_id?: string | null;
|
|
66
|
-
}
|
|
67
|
-
export interface IRepository {
|
|
68
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
69
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
70
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
71
|
-
findMinifiedManufacturer(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
72
|
-
findByQuery(params: IFindByQueryRequest): Promise<IFindResponse[]>;
|
|
73
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
74
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
75
|
-
create(data: ICreateRequest): Promise<IFindResponse>;
|
|
76
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindResponse | null>;
|
|
77
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindResponse | null>;
|
|
78
|
-
}
|
|
79
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
80
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LowerName = exports.UpperName = exports.Route = void 0;
|
|
4
|
-
exports.Route = 'provider';
|
|
5
|
-
exports.UpperName = 'Providers';
|
|
6
|
-
exports.LowerName = exports.UpperName[0].toLowerCase() + exports.UpperName.substring(1);
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.findWithPaginationQuery = exports.findQuery = exports.updateBody = exports.createBody = void 0;
|
|
7
|
-
var joi_1 = __importDefault(require("joi"));
|
|
8
|
-
var messages_1 = require("../../../shared/messages");
|
|
9
|
-
var createUserKeys = {
|
|
10
|
-
name: joi_1.default.string().required(),
|
|
11
|
-
email: joi_1.default
|
|
12
|
-
.string()
|
|
13
|
-
.email({ tlds: { allow: false } })
|
|
14
|
-
.allow(null)
|
|
15
|
-
.optional(),
|
|
16
|
-
};
|
|
17
|
-
var createMainPersonaKeys = {
|
|
18
|
-
name: joi_1.default.string().optional(),
|
|
19
|
-
nif: joi_1.default.string().allow(null).optional(),
|
|
20
|
-
email: joi_1.default
|
|
21
|
-
.string()
|
|
22
|
-
.email({ tlds: { allow: false } })
|
|
23
|
-
.optional(),
|
|
24
|
-
telephone: joi_1.default.string().optional(),
|
|
25
|
-
};
|
|
26
|
-
var createBodyKeys = {
|
|
27
|
-
user_id: joi_1.default.string().uuid().optional(),
|
|
28
|
-
user: joi_1.default.object().keys(createUserKeys).optional(),
|
|
29
|
-
manufacturer: joi_1.default.boolean().default(false).optional(),
|
|
30
|
-
inactive: joi_1.default.boolean().default(false).optional(),
|
|
31
|
-
default_discount: joi_1.default
|
|
32
|
-
.number()
|
|
33
|
-
.positive()
|
|
34
|
-
.allow(0)
|
|
35
|
-
.default(0)
|
|
36
|
-
.max(99)
|
|
37
|
-
.optional(),
|
|
38
|
-
exemption_reason_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
39
|
-
main_persona: joi_1.default.object().keys(createMainPersonaKeys).required(),
|
|
40
|
-
provider_type_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
41
|
-
country_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
42
|
-
language_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
43
|
-
support_language_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
44
|
-
default_payment_method_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
45
|
-
default_maturity_date_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
46
|
-
default_delivery_method_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
47
|
-
default_vehicle_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
48
|
-
};
|
|
49
|
-
exports.createBody = joi_1.default.object().keys(createBodyKeys).messages(messages_1.messages);
|
|
50
|
-
var updateBodyKeys = {
|
|
51
|
-
manufacturer: joi_1.default.boolean().optional(),
|
|
52
|
-
inactive: joi_1.default.boolean().optional(),
|
|
53
|
-
default_discount: joi_1.default.number().positive().allow(0).max(99).optional(),
|
|
54
|
-
exemption_reason_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
55
|
-
provider_type_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
56
|
-
country_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
57
|
-
language_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
58
|
-
support_language_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
59
|
-
main_persona_id: joi_1.default.string().uuid().optional(),
|
|
60
|
-
default_payment_method_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
61
|
-
default_maturity_date_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
62
|
-
default_delivery_method_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
63
|
-
default_vehicle_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
64
|
-
};
|
|
65
|
-
exports.updateBody = joi_1.default.object().keys(updateBodyKeys).messages(messages_1.messages);
|
|
66
|
-
var findQueryKeys = {
|
|
67
|
-
number: joi_1.default
|
|
68
|
-
.array()
|
|
69
|
-
.items(joi_1.default.number().positive().allow(0).required())
|
|
70
|
-
.optional(),
|
|
71
|
-
id: joi_1.default.array().items(joi_1.default.string().uuid().required()).optional(),
|
|
72
|
-
};
|
|
73
|
-
exports.findQuery = joi_1.default.object().keys(findQueryKeys).messages(messages_1.messages);
|
|
74
|
-
var findWithPaginationQueryKeys = {
|
|
75
|
-
per_page: joi_1.default.number().integer().positive().default(10).optional(),
|
|
76
|
-
current_page: joi_1.default.number().integer().positive().default(1).optional(),
|
|
77
|
-
};
|
|
78
|
-
exports.findWithPaginationQuery = joi_1.default
|
|
79
|
-
.object()
|
|
80
|
-
.keys(findWithPaginationQueryKeys)
|
|
81
|
-
.messages(messages_1.messages);
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { PurchaseConditions, ProductCategory } from '../../../shared/entities';
|
|
3
|
-
export type Entity = PurchaseConditions;
|
|
4
|
-
export declare const Route = "purchase_conditions";
|
|
5
|
-
export declare const UpperName = "PurchaseConditions";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
interface IFindDetailedResponse extends Entity {
|
|
8
|
-
product_category: ProductCategory | null;
|
|
9
|
-
}
|
|
10
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, 'product_category'>;
|
|
11
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
12
|
-
export type IFindRequest = Record<string, unknown>;
|
|
13
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
14
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
15
|
-
}
|
|
16
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
17
|
-
export interface ICreateRequest {
|
|
18
|
-
provider_id: string;
|
|
19
|
-
discount: string;
|
|
20
|
-
deadline: string;
|
|
21
|
-
minimum_quantity: string;
|
|
22
|
-
product_category_id?: string | null;
|
|
23
|
-
}
|
|
24
|
-
export interface IUpdateRequest {
|
|
25
|
-
discount?: string;
|
|
26
|
-
deadline?: string;
|
|
27
|
-
minimum_quantity?: string;
|
|
28
|
-
product_category_id?: string | null;
|
|
29
|
-
}
|
|
30
|
-
export interface IRepository {
|
|
31
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
32
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
33
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
34
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
35
|
-
create(data: ICreateRequest): Promise<IFindByOwnerIdResponse>;
|
|
36
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
37
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
38
|
-
}
|
|
39
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
40
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LowerName = exports.UpperName = exports.Route = void 0;
|
|
4
|
-
exports.Route = 'purchase_conditions';
|
|
5
|
-
exports.UpperName = 'PurchaseConditions';
|
|
6
|
-
exports.LowerName = exports.UpperName[0].toLowerCase() + exports.UpperName.substring(1);
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.findWithPaginationQuery = exports.findQuery = exports.updateBody = exports.createBody = void 0;
|
|
7
|
-
var joi_1 = __importDefault(require("joi"));
|
|
8
|
-
var messages_1 = require("../../../shared/messages");
|
|
9
|
-
var createBodyKeys = {
|
|
10
|
-
provider_id: joi_1.default.string().uuid().required(),
|
|
11
|
-
deadline: joi_1.default.string().required(),
|
|
12
|
-
discount: joi_1.default.string().required(),
|
|
13
|
-
minimum_quantity: joi_1.default.string().required(),
|
|
14
|
-
product_category_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
15
|
-
};
|
|
16
|
-
exports.createBody = joi_1.default.object().keys(createBodyKeys).messages(messages_1.messages);
|
|
17
|
-
var updateBodyKeys = {
|
|
18
|
-
deadline: joi_1.default.string().optional(),
|
|
19
|
-
discount: joi_1.default.string().optional(),
|
|
20
|
-
minimum_quantity: joi_1.default.string().optional(),
|
|
21
|
-
product_category_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
22
|
-
};
|
|
23
|
-
exports.updateBody = joi_1.default.object().keys(updateBodyKeys).messages(messages_1.messages);
|
|
24
|
-
var findQueryKeys = {};
|
|
25
|
-
exports.findQuery = joi_1.default.object().keys(findQueryKeys).messages(messages_1.messages);
|
|
26
|
-
var findWithPaginationQueryKeys = {
|
|
27
|
-
per_page: joi_1.default.number().integer().positive().default(10).optional(),
|
|
28
|
-
current_page: joi_1.default.number().integer().positive().default(1).optional(),
|
|
29
|
-
};
|
|
30
|
-
exports.findWithPaginationQuery = joi_1.default
|
|
31
|
-
.object()
|
|
32
|
-
.keys(findWithPaginationQueryKeys)
|
|
33
|
-
.messages(messages_1.messages);
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { ReasonForExemption } from '../../../shared/entities';
|
|
3
|
-
export type Entity = ReasonForExemption;
|
|
4
|
-
export declare const Route = "reason_for_exemption";
|
|
5
|
-
export declare const UpperName = "ReasonForExemption";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
type IFindDetailedResponse = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
|
-
export type IFindRequest = Record<string, unknown>;
|
|
10
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
11
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
12
|
-
}
|
|
13
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
14
|
-
export interface ICreateRequest {
|
|
15
|
-
name: string;
|
|
16
|
-
description: string;
|
|
17
|
-
saft_code: string;
|
|
18
|
-
external_id: string;
|
|
19
|
-
}
|
|
20
|
-
export interface IUpdateRequest {
|
|
21
|
-
name?: string;
|
|
22
|
-
description?: string;
|
|
23
|
-
saft_code?: string;
|
|
24
|
-
external_id?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface IRepository {
|
|
27
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
28
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
29
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
30
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
31
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
32
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
33
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
34
|
-
}
|
|
35
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
36
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LowerName = exports.UpperName = exports.Route = void 0;
|
|
4
|
-
exports.Route = 'reason_for_exemption';
|
|
5
|
-
exports.UpperName = 'ReasonForExemption';
|
|
6
|
-
exports.LowerName = exports.UpperName[0].toLowerCase() + exports.UpperName.substring(1);
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.findWithPaginationQuery = exports.findQuery = exports.updateBody = exports.createBody = void 0;
|
|
7
|
-
var joi_1 = __importDefault(require("joi"));
|
|
8
|
-
var messages_1 = require("../../../shared/messages");
|
|
9
|
-
var createBodyKeys = {
|
|
10
|
-
name: joi_1.default.string().required(),
|
|
11
|
-
description: joi_1.default.string().required(),
|
|
12
|
-
saft_code: joi_1.default.string().required(),
|
|
13
|
-
external_id: joi_1.default.string().required(),
|
|
14
|
-
};
|
|
15
|
-
exports.createBody = joi_1.default.object().keys(createBodyKeys).messages(messages_1.messages);
|
|
16
|
-
var updateBodyKeys = {
|
|
17
|
-
name: joi_1.default.string().optional(),
|
|
18
|
-
description: joi_1.default.string().optional(),
|
|
19
|
-
saft_code: joi_1.default.string().optional(),
|
|
20
|
-
external_id: joi_1.default.string().optional(),
|
|
21
|
-
};
|
|
22
|
-
exports.updateBody = joi_1.default.object().keys(updateBodyKeys).messages(messages_1.messages);
|
|
23
|
-
var findQueryKeys = {};
|
|
24
|
-
exports.findQuery = joi_1.default.object().keys(findQueryKeys).messages(messages_1.messages);
|
|
25
|
-
var findWithPaginationQueryKeys = {
|
|
26
|
-
per_page: joi_1.default.number().integer().positive().default(10).optional(),
|
|
27
|
-
current_page: joi_1.default.number().integer().positive().default(1).optional(),
|
|
28
|
-
};
|
|
29
|
-
exports.findWithPaginationQuery = joi_1.default
|
|
30
|
-
.object()
|
|
31
|
-
.keys(findWithPaginationQueryKeys)
|
|
32
|
-
.messages(messages_1.messages);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
export interface ICreateRequest {
|
|
3
|
-
token: string;
|
|
4
|
-
ip?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ICreateResponse {
|
|
7
|
-
access_token: string;
|
|
8
|
-
refresh_token: string;
|
|
9
|
-
expiresInToken: number;
|
|
10
|
-
expiresInRefreshToken: number;
|
|
11
|
-
}
|
|
12
|
-
export interface IRepository {
|
|
13
|
-
create(data: ICreateRequest): Promise<ICreateResponse>;
|
|
14
|
-
}
|
|
15
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.refreshTokenBody = void 0;
|
|
7
|
-
var joi_1 = __importDefault(require("joi"));
|
|
8
|
-
var messages_1 = require("../../../shared/messages");
|
|
9
|
-
var refreshTokenBodyKeys = {
|
|
10
|
-
token: joi_1.default.string(),
|
|
11
|
-
ip: joi_1.default.string(),
|
|
12
|
-
};
|
|
13
|
-
exports.refreshTokenBody = joi_1.default
|
|
14
|
-
.object()
|
|
15
|
-
.keys(refreshTokenBodyKeys)
|
|
16
|
-
.messages(messages_1.messages);
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { SegmentsArea } from '../../../shared/entities';
|
|
3
|
-
export type Entity = SegmentsArea;
|
|
4
|
-
export declare const Route = "segments_area";
|
|
5
|
-
export declare const UpperName = "SegmentsArea";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
type IFindDetailedResponse = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
|
-
export type IFindRequest = Record<string, unknown>;
|
|
10
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
11
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
12
|
-
}
|
|
13
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
14
|
-
export interface ICreateRequest {
|
|
15
|
-
type: string;
|
|
16
|
-
name: string;
|
|
17
|
-
}
|
|
18
|
-
export interface IUpdateRequest {
|
|
19
|
-
type?: string;
|
|
20
|
-
name?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface IRepository {
|
|
23
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
24
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
25
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
26
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
27
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
28
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
29
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
30
|
-
}
|
|
31
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
32
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LowerName = exports.UpperName = exports.Route = void 0;
|
|
4
|
-
exports.Route = 'segments_area';
|
|
5
|
-
exports.UpperName = 'SegmentsArea';
|
|
6
|
-
exports.LowerName = exports.UpperName[0].toLowerCase() + exports.UpperName.substring(1);
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.findWithPaginationQuery = exports.findQuery = exports.updateBody = exports.createBody = void 0;
|
|
7
|
-
var joi_1 = __importDefault(require("joi"));
|
|
8
|
-
var messages_1 = require("../../../shared/messages");
|
|
9
|
-
var createBodyKeys = {
|
|
10
|
-
name: joi_1.default.string().required(),
|
|
11
|
-
type: joi_1.default.string().required(),
|
|
12
|
-
};
|
|
13
|
-
exports.createBody = joi_1.default.object().keys(createBodyKeys).messages(messages_1.messages);
|
|
14
|
-
var updateBodyKeys = {
|
|
15
|
-
name: joi_1.default.string().required(),
|
|
16
|
-
type: joi_1.default.string().required(),
|
|
17
|
-
};
|
|
18
|
-
exports.updateBody = joi_1.default.object().keys(updateBodyKeys).messages(messages_1.messages);
|
|
19
|
-
var findQueryKeys = {};
|
|
20
|
-
exports.findQuery = joi_1.default.object().keys(findQueryKeys).messages(messages_1.messages);
|
|
21
|
-
var findWithPaginationQueryKeys = {
|
|
22
|
-
per_page: joi_1.default.number().integer().positive().default(10).optional(),
|
|
23
|
-
current_page: joi_1.default.number().integer().positive().default(1).optional(),
|
|
24
|
-
};
|
|
25
|
-
exports.findWithPaginationQuery = joi_1.default
|
|
26
|
-
.object()
|
|
27
|
-
.keys(findWithPaginationQueryKeys)
|
|
28
|
-
.messages(messages_1.messages);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import * as Users from '../users/interface';
|
|
3
|
-
export interface ICreateRequest {
|
|
4
|
-
email: string;
|
|
5
|
-
password: string;
|
|
6
|
-
}
|
|
7
|
-
export interface ICreateResponse {
|
|
8
|
-
access_token: string;
|
|
9
|
-
user: Users.IFindByEmailResponse;
|
|
10
|
-
refresh_token: string;
|
|
11
|
-
roles: string[];
|
|
12
|
-
expiresInToken: number;
|
|
13
|
-
expiresInRefreshToken: number;
|
|
14
|
-
}
|
|
15
|
-
export interface IRepository {
|
|
16
|
-
create(data: ICreateRequest): Promise<ICreateResponse>;
|
|
17
|
-
}
|
|
18
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|