From 996cf4ceb440c0733dc852148af9baaaf6195d03 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 20 May 2026 19:02:31 +0200 Subject: [PATCH] . --- .../proformas/services/proforma-finder.ts | 14 -------------- .../proformas/get-proforma-by-id.request.dto.ts | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/modules/customer-invoices/src/api/application/proformas/services/proforma-finder.ts b/modules/customer-invoices/src/api/application/proformas/services/proforma-finder.ts index 39a3e048..3bbe2aae 100644 --- a/modules/customer-invoices/src/api/application/proformas/services/proforma-finder.ts +++ b/modules/customer-invoices/src/api/application/proformas/services/proforma-finder.ts @@ -13,12 +13,6 @@ export interface IProformaFinder { transaction?: unknown ): Promise>; - findProformaByFactuGESId( - companyId: UniqueID, - factugesId: string, - transaction?: unknown - ): Promise>; - proformaExists( companyId: UniqueID, invoiceId: UniqueID, @@ -43,14 +37,6 @@ export class ProformaFinder implements IProformaFinder { return this.repository.getByIdInCompany(companyId, proformaId, transaction); } - async findProformaByFactuGESId( - companyId: UniqueID, - factugesId: string, - transaction?: unknown - ): Promise> { - return this.repository.getByFactuGESIdInCompany(companyId, factugesId, transaction); - } - async proformaExists( companyId: UniqueID, proformaId: UniqueID, diff --git a/modules/customer-invoices/src/common/dto/request/proformas/get-proforma-by-id.request.dto.ts b/modules/customer-invoices/src/common/dto/request/proformas/get-proforma-by-id.request.dto.ts index fb74d29d..db223070 100644 --- a/modules/customer-invoices/src/common/dto/request/proformas/get-proforma-by-id.request.dto.ts +++ b/modules/customer-invoices/src/common/dto/request/proformas/get-proforma-by-id.request.dto.ts @@ -1,7 +1,7 @@ import { z } from "zod/v4"; export const GetProformaByIdRequestSchema = z.object({ - proforma_id: z.string(), + proforma_id: z.uuid(), }); export type GetProformaByIdRequestDTO = z.infer;