Refactor DocumentNotary class to remove document_status property and remove unused import in index.ts
This commit is contained in:
parent
7154ed56cb
commit
0f3acff51f
@ -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",
|
||||
}
|
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user