.
This commit is contained in:
parent
00627096ed
commit
996cf4ceb4
@ -13,12 +13,6 @@ export interface IProformaFinder {
|
|||||||
transaction?: unknown
|
transaction?: unknown
|
||||||
): Promise<Result<Proforma, Error>>;
|
): Promise<Result<Proforma, Error>>;
|
||||||
|
|
||||||
findProformaByFactuGESId(
|
|
||||||
companyId: UniqueID,
|
|
||||||
factugesId: string,
|
|
||||||
transaction?: unknown
|
|
||||||
): Promise<Result<Proforma, Error>>;
|
|
||||||
|
|
||||||
proformaExists(
|
proformaExists(
|
||||||
companyId: UniqueID,
|
companyId: UniqueID,
|
||||||
invoiceId: UniqueID,
|
invoiceId: UniqueID,
|
||||||
@ -43,14 +37,6 @@ export class ProformaFinder implements IProformaFinder {
|
|||||||
return this.repository.getByIdInCompany(companyId, proformaId, transaction);
|
return this.repository.getByIdInCompany(companyId, proformaId, transaction);
|
||||||
}
|
}
|
||||||
|
|
||||||
async findProformaByFactuGESId(
|
|
||||||
companyId: UniqueID,
|
|
||||||
factugesId: string,
|
|
||||||
transaction?: unknown
|
|
||||||
): Promise<Result<Proforma, Error>> {
|
|
||||||
return this.repository.getByFactuGESIdInCompany(companyId, factugesId, transaction);
|
|
||||||
}
|
|
||||||
|
|
||||||
async proformaExists(
|
async proformaExists(
|
||||||
companyId: UniqueID,
|
companyId: UniqueID,
|
||||||
proformaId: UniqueID,
|
proformaId: UniqueID,
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { z } from "zod/v4";
|
import { z } from "zod/v4";
|
||||||
|
|
||||||
export const GetProformaByIdRequestSchema = z.object({
|
export const GetProformaByIdRequestSchema = z.object({
|
||||||
proforma_id: z.string(),
|
proforma_id: z.uuid(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export type GetProformaByIdRequestDTO = z.infer<typeof GetProformaByIdRequestSchema>;
|
export type GetProformaByIdRequestDTO = z.infer<typeof GetProformaByIdRequestSchema>;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user