From 0f3acff51f1ed9ee4b138f8fc12276b4c829df75 Mon Sep 17 00:00:00 2001 From: Max S Date: Fri, 20 Sep 2024 12:44:08 +0200 Subject: [PATCH] Refactor DocumentNotary class to remove document_status property and remove unused import in index.ts --- src/Customer/DocumentNotary.ts | 48 ---------------------------------- src/Customer/index.ts | 1 - 2 files changed, 49 deletions(-) delete mode 100644 src/Customer/DocumentNotary.ts diff --git a/src/Customer/DocumentNotary.ts b/src/Customer/DocumentNotary.ts deleted file mode 100644 index b702225..0000000 --- a/src/Customer/DocumentNotary.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { IsDate, IsNotEmpty } from "class-validator"; -import File from "./File"; -import OfficeFolder from "./OfficeFolder"; -import Resource from "../Resource"; -import { Expose, Type } from "class-transformer"; -import User from "."; -import Customer from "../Customer"; - -export default class DocumentNotary extends Resource { - @Expose() - @IsNotEmpty({ groups: ["createFile"], message: "UID is required" }) - public uid?: string; - - @Expose() - public name!: string; - - @Expose() - @Type(() => OfficeFolder) - public folder?: OfficeFolder; - - @Expose() - @Type(() => User) - public depositor?: User; - - @Expose() - @Type(() => Customer) - public customer?: Customer; - - @Expose() - @IsDate() - public created_at: Date | null = null; - - @Expose() - @IsDate() - public updated_at: Date | null = null; - - @Expose() - @Type(() => File) - public files?: File[]; - - @Expose() - public document_status: EDocumentNotaryStatus = EDocumentNotaryStatus.SENT; -} - -export enum EDocumentNotaryStatus { - SENT = "SENT", - DOWNLOADED = "DOWNLOADED", -} diff --git a/src/Customer/index.ts b/src/Customer/index.ts index 2c2b479..759f0d6 100644 --- a/src/Customer/index.ts +++ b/src/Customer/index.ts @@ -13,4 +13,3 @@ export { default as Office } from "./Office"; export { default as OfficeFolder } from "./OfficeFolder"; export { default as TotpCodes } from "./TotpCodes"; export { default as Note } from "./Note"; -export { default as DocumentNotary } from "./DocumentNotary";