Peueños errores

This commit is contained in:
David Arranz 2026-04-15 12:23:59 +02:00
parent 71b4dc1d06
commit 7555d3f1ff
11 changed files with 57 additions and 42 deletions

View File

@ -17,7 +17,7 @@
"@types/bcrypt": "^6.0.0", "@types/bcrypt": "^6.0.0",
"@types/cors": "^2.8.19", "@types/cors": "^2.8.19",
"@types/dinero.js": "^2.0.0", "@types/dinero.js": "^2.0.0",
"@types/express": "^5.0.6", "@types/express": "^4.17.21",
"@types/glob": "^9.0.0", "@types/glob": "^9.0.0",
"@types/jsonwebtoken": "^9.0.10", "@types/jsonwebtoken": "^9.0.10",
"@types/luxon": "^3.7.1", "@types/luxon": "^3.7.1",

View File

@ -19,7 +19,7 @@
}, },
"devDependencies": { "devDependencies": {
"@biomejs/biome": "^2.4.11", "@biomejs/biome": "^2.4.11",
"@types/express": "^5.0.6", "@types/express": "^4.17.21",
"@types/react": "^19.2.14", "@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3", "@types/react-dom": "^19.2.3",
"react": "^19.2.5", "react": "^19.2.5",

View File

@ -24,7 +24,7 @@
"devDependencies": { "devDependencies": {
"@hookform/devtools": "^4.4.0", "@hookform/devtools": "^4.4.0",
"@types/dinero.js": "^2.0.0", "@types/dinero.js": "^2.0.0",
"@types/express": "^5.0.6", "@types/express": "^4.17.21",
"@types/mime-types": "^3.0.1", "@types/mime-types": "^3.0.1",
"@types/react": "^19.2.14", "@types/react": "^19.2.14",
"react": "^19.2.5", "react": "^19.2.5",

View File

@ -23,7 +23,7 @@
"devDependencies": { "devDependencies": {
"@hookform/devtools": "^4.4.0", "@hookform/devtools": "^4.4.0",
"@types/dinero.js": "^2.0.0", "@types/dinero.js": "^2.0.0",
"@types/express": "^5.0.6", "@types/express": "^4.17.21",
"@types/react": "^19.2.14", "@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3", "@types/react-dom": "^19.2.3",
"@types/react-router-dom": "^5.3.3", "@types/react-router-dom": "^5.3.3",

View File

@ -68,8 +68,8 @@ export const issuedInvoicesRouter = (params: StartParams) => {
router.get( router.get(
"/:invoice_id/report", "/:invoice_id/report",
//checkTabContext, //checkTabContext,
validateRequest(ReportIssueInvoiceByIdParamsRequestSchema, "params"),
validateRequest(ReportIssueInvoiceByIdQueryRequestSchema, "query"), validateRequest(ReportIssueInvoiceByIdQueryRequestSchema, "query"),
validateRequest(ReportIssueInvoiceByIdParamsRequestSchema, "params"),
(req: Request, res: Response, next: NextFunction) => { (req: Request, res: Response, next: NextFunction) => {
const useCase = deps.useCases.reportIssuedInvoice(); const useCase = deps.useCases.reportIssuedInvoice();

View File

@ -23,7 +23,7 @@
"react-dom": "^19.2.5" "react-dom": "^19.2.5"
}, },
"devDependencies": { "devDependencies": {
"@types/express": "^5.0.6", "@types/express": "^4.17.21",
"@types/react": "^19.2.14", "@types/react": "^19.2.14",
"@types/react-router-dom": "^5.3.3", "@types/react-router-dom": "^5.3.3",
"react": "^19.2.5", "react": "^19.2.5",

View File

@ -4,12 +4,12 @@ import {
requireAuthenticatedGuard, requireAuthenticatedGuard,
requireCompanyContextGuard, requireCompanyContextGuard,
} from "@erp/core/api"; } from "@erp/core/api";
import type { GetCustomerByIdUseCase } from "@erp/customers/api/application";
import type { GetCustomerUseCase } from "../../../application";
import { customersApiErrorMapper } from "../customer-api-error-mapper"; import { customersApiErrorMapper } from "../customer-api-error-mapper";
export class GetCustomerController extends ExpressController { export class GetCustomerController extends ExpressController {
public constructor(private readonly useCase: GetCustomerUseCase) { public constructor(private readonly useCase: GetCustomerByIdUseCase) {
super(); super();
this.errorMapper = customersApiErrorMapper; this.errorMapper = customersApiErrorMapper;

View File

@ -14,7 +14,7 @@
"./api": "./src/api/index.ts" "./api": "./src/api/index.ts"
}, },
"devDependencies": { "devDependencies": {
"@types/express": "^5.0.6", "@types/express": "^4.17.21",
"typescript": "^6.0.2" "typescript": "^6.0.2"
}, },
"dependencies": { "dependencies": {

View File

@ -15,7 +15,7 @@
"./api": "./src/api/index.ts" "./api": "./src/api/index.ts"
}, },
"devDependencies": { "devDependencies": {
"@types/express": "^5.0.6", "@types/express": "^4.17.21",
"typescript": "^6.0.2" "typescript": "^6.0.2"
}, },
"dependencies": { "dependencies": {

View File

@ -23,7 +23,7 @@
"react-dom": "^19.2.5" "react-dom": "^19.2.5"
}, },
"devDependencies": { "devDependencies": {
"@types/express": "^5.0.6", "@types/express": "^4.17.21",
"@types/react": "^19.2.14", "@types/react": "^19.2.14",
"@types/react-router-dom": "^5.3.3", "@types/react-router-dom": "^5.3.3",
"react": "^19.2.5", "react": "^19.2.5",

View File

@ -175,8 +175,8 @@ importers:
specifier: ^2.0.0 specifier: ^2.0.0
version: 2.0.0 version: 2.0.0
'@types/express': '@types/express':
specifier: ^5.0.6 specifier: ^4.17.21
version: 5.0.6 version: 4.17.25
'@types/glob': '@types/glob':
specifier: ^9.0.0 specifier: ^9.0.0
version: 9.0.0 version: 9.0.0
@ -360,8 +360,8 @@ importers:
specifier: ^2.4.11 specifier: ^2.4.11
version: 2.4.11 version: 2.4.11
'@types/express': '@types/express':
specifier: ^5.0.6 specifier: ^4.17.21
version: 5.0.6 version: 4.17.25
'@types/react': '@types/react':
specifier: ^19.2.14 specifier: ^19.2.14
version: 19.2.14 version: 19.2.14
@ -448,8 +448,8 @@ importers:
specifier: ^2.0.0 specifier: ^2.0.0
version: 2.0.0 version: 2.0.0
'@types/express': '@types/express':
specifier: ^5.0.6 specifier: ^4.17.21
version: 5.0.6 version: 4.17.25
'@types/mime-types': '@types/mime-types':
specifier: ^3.0.1 specifier: ^3.0.1
version: 3.0.1 version: 3.0.1
@ -566,8 +566,8 @@ importers:
specifier: ^2.0.0 specifier: ^2.0.0
version: 2.0.0 version: 2.0.0
'@types/express': '@types/express':
specifier: ^5.0.6 specifier: ^4.17.21
version: 5.0.6 version: 4.17.25
'@types/react': '@types/react':
specifier: ^19.2.14 specifier: ^19.2.14
version: 19.2.14 version: 19.2.14
@ -654,8 +654,8 @@ importers:
version: 4.3.6 version: 4.3.6
devDependencies: devDependencies:
'@types/express': '@types/express':
specifier: ^5.0.6 specifier: ^4.17.21
version: 5.0.6 version: 4.17.25
'@types/react': '@types/react':
specifier: ^19.2.14 specifier: ^19.2.14
version: 19.2.14 version: 19.2.14
@ -712,8 +712,8 @@ importers:
version: 4.3.6 version: 4.3.6
devDependencies: devDependencies:
'@types/express': '@types/express':
specifier: ^5.0.6 specifier: ^4.17.21
version: 5.0.6 version: 4.17.25
typescript: typescript:
specifier: ^6.0.2 specifier: ^6.0.2
version: 6.0.2 version: 6.0.2
@ -785,8 +785,8 @@ importers:
version: 4.3.6 version: 4.3.6
devDependencies: devDependencies:
'@types/express': '@types/express':
specifier: ^5.0.6 specifier: ^4.17.21
version: 5.0.6 version: 4.17.25
'@types/react': '@types/react':
specifier: ^19.2.14 specifier: ^19.2.14
version: 19.2.14 version: 19.2.14
@ -837,8 +837,8 @@ importers:
version: 4.3.6 version: 4.3.6
devDependencies: devDependencies:
'@types/express': '@types/express':
specifier: ^5.0.6 specifier: ^4.17.21
version: 5.0.6 version: 4.17.25
typescript: typescript:
specifier: ^6.0.2 specifier: ^6.0.2
version: 6.0.2 version: 6.0.2
@ -3597,11 +3597,11 @@ packages:
'@types/estree@1.0.8': '@types/estree@1.0.8':
resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}
'@types/express-serve-static-core@5.1.1': '@types/express-serve-static-core@4.19.8':
resolution: {integrity: sha512-v4zIMr/cX7/d2BpAEX3KNKL/JrT1s43s96lLvvdTmza1oEvDudCqK9aF/djc/SWgy8Yh0h30TZx5VpzqFCxk5A==} resolution: {integrity: sha512-02S5fmqeoKzVZCHPZid4b8JH2eM5HzQLZWN2FohQEy/0eXTq8VXZfSN6Pcr3F6N9R/vNrj7cpgbhjie6m/1tCA==}
'@types/express@5.0.6': '@types/express@4.17.25':
resolution: {integrity: sha512-sKYVuV7Sv9fbPIt/442koC7+IIwK5olP1KWeD88e/idgoJqDm3JV/YUiPwkoKK92ylff2MGxSz1CSjsXelx0YA==} resolution: {integrity: sha512-dVd04UKsfpINUnK0yBoYHDF3xu7xVH4BuDotC/xGuycx4CgbP48X/KF/586bcObxT0HENHXEU8Nqtu6NR+eKhw==}
'@types/fined@1.1.5': '@types/fined@1.1.5':
resolution: {integrity: sha512-2N93vadEGDFhASTIRbizbl4bNqpMOId5zZfj6hHqYZfEzEfO9onnU4Im8xvzo8uudySDveDHBOOSlTWf38ErfQ==} resolution: {integrity: sha512-2N93vadEGDFhASTIRbizbl4bNqpMOId5zZfj6hHqYZfEzEfO9onnU4Im8xvzo8uudySDveDHBOOSlTWf38ErfQ==}
@ -3637,6 +3637,9 @@ packages:
'@types/mime-types@3.0.1': '@types/mime-types@3.0.1':
resolution: {integrity: sha512-xRMsfuQbnRq1Ef+C+RKaENOxXX87Ygl38W1vDfPHRku02TgQr+Qd8iivLtAMcR0KF5/29xlnFihkTlbqFrGOVQ==} resolution: {integrity: sha512-xRMsfuQbnRq1Ef+C+RKaENOxXX87Ygl38W1vDfPHRku02TgQr+Qd8iivLtAMcR0KF5/29xlnFihkTlbqFrGOVQ==}
'@types/mime@1.3.5':
resolution: {integrity: sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==}
'@types/ms@2.1.0': '@types/ms@2.1.0':
resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==} resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==}
@ -3690,11 +3693,14 @@ packages:
'@types/response-time@2.3.9': '@types/response-time@2.3.9':
resolution: {integrity: sha512-w5i5/y/1N3hkSBru1dat7Pf/YzdFLAANbKR78i2VIPnKw1Ub2ZNXE/n3K4v1BBMIIbAccgxpGZT8lIuLW284Dw==} resolution: {integrity: sha512-w5i5/y/1N3hkSBru1dat7Pf/YzdFLAANbKR78i2VIPnKw1Ub2ZNXE/n3K4v1BBMIIbAccgxpGZT8lIuLW284Dw==}
'@types/send@0.17.6':
resolution: {integrity: sha512-Uqt8rPBE8SY0RK8JB1EzVOIZ32uqy8HwdxCnoCOsYrvnswqmFZ/k+9Ikidlk/ImhsdvBsloHbAlewb2IEBV/Og==}
'@types/send@1.2.1': '@types/send@1.2.1':
resolution: {integrity: sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==} resolution: {integrity: sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==}
'@types/serve-static@2.2.0': '@types/serve-static@1.15.10':
resolution: {integrity: sha512-8mam4H1NHLtu7nmtalF7eyBH14QyOASmcxHhSfEoRyr0nP/YdoesEtU+uSRvMe96TW/HPTtkoKqQLl53N7UXMQ==} resolution: {integrity: sha512-tRs1dB+g8Itk72rlSI2ZrW6vZg0YrLI81iQSTkMmOqnqCaNr/8Ek4VwWcN5vZgCYWbg/JJSGBlUaYGAOP73qBw==}
'@types/statuses@2.0.6': '@types/statuses@2.0.6':
resolution: {integrity: sha512-xMAgYwceFhRA2zY+XbEA7mxYbA093wdiW8Vu6gZPGWy9cmOyU9XesH1tNcEWsKFd5Vzrqx5T3D38PWx1FIIXkA==} resolution: {integrity: sha512-xMAgYwceFhRA2zY+XbEA7mxYbA093wdiW8Vu6gZPGWy9cmOyU9XesH1tNcEWsKFd5Vzrqx5T3D38PWx1FIIXkA==}
@ -9285,18 +9291,19 @@ snapshots:
'@types/estree@1.0.8': {} '@types/estree@1.0.8': {}
'@types/express-serve-static-core@5.1.1': '@types/express-serve-static-core@4.19.8':
dependencies: dependencies:
'@types/node': 25.6.0 '@types/node': 25.6.0
'@types/qs': 6.15.0 '@types/qs': 6.15.0
'@types/range-parser': 1.2.7 '@types/range-parser': 1.2.7
'@types/send': 1.2.1 '@types/send': 1.2.1
'@types/express@5.0.6': '@types/express@4.17.25':
dependencies: dependencies:
'@types/body-parser': 1.19.6 '@types/body-parser': 1.19.6
'@types/express-serve-static-core': 5.1.1 '@types/express-serve-static-core': 4.19.8
'@types/serve-static': 2.2.0 '@types/qs': 6.15.0
'@types/serve-static': 1.15.10
'@types/fined@1.1.5': {} '@types/fined@1.1.5': {}
@ -9331,6 +9338,8 @@ snapshots:
'@types/mime-types@3.0.1': {} '@types/mime-types@3.0.1': {}
'@types/mime@1.3.5': {}
'@types/ms@2.1.0': {} '@types/ms@2.1.0': {}
'@types/node@25.6.0': '@types/node@25.6.0':
@ -9346,18 +9355,18 @@ snapshots:
'@types/passport-local@1.0.38': '@types/passport-local@1.0.38':
dependencies: dependencies:
'@types/express': 5.0.6 '@types/express': 4.17.25
'@types/passport': 1.0.17 '@types/passport': 1.0.17
'@types/passport-strategy': 0.2.38 '@types/passport-strategy': 0.2.38
'@types/passport-strategy@0.2.38': '@types/passport-strategy@0.2.38':
dependencies: dependencies:
'@types/express': 5.0.6 '@types/express': 4.17.25
'@types/passport': 1.0.17 '@types/passport': 1.0.17
'@types/passport@1.0.17': '@types/passport@1.0.17':
dependencies: dependencies:
'@types/express': 5.0.6 '@types/express': 4.17.25
'@types/picomatch@4.0.3': {} '@types/picomatch@4.0.3': {}
@ -9394,17 +9403,23 @@ snapshots:
'@types/response-time@2.3.9': '@types/response-time@2.3.9':
dependencies: dependencies:
'@types/express': 5.0.6 '@types/express': 4.17.25
'@types/node': 25.6.0
'@types/send@0.17.6':
dependencies:
'@types/mime': 1.3.5
'@types/node': 25.6.0 '@types/node': 25.6.0
'@types/send@1.2.1': '@types/send@1.2.1':
dependencies: dependencies:
'@types/node': 25.6.0 '@types/node': 25.6.0
'@types/serve-static@2.2.0': '@types/serve-static@1.15.10':
dependencies: dependencies:
'@types/http-errors': 2.0.5 '@types/http-errors': 2.0.5
'@types/node': 25.6.0 '@types/node': 25.6.0
'@types/send': 0.17.6
'@types/statuses@2.0.6': {} '@types/statuses@2.0.6': {}