Added nots

This commit is contained in:
Vins 2024-06-03 11:22:03 +02:00
parent f45dc562f3
commit 09d5a9d11c
3 changed files with 34 additions and 27 deletions

View File

@ -8,6 +8,7 @@ export default class OfficeFolder extends Resource {
name: string; name: string;
description: string | null; description: string | null;
archived_description: string | null; archived_description: string | null;
notes: string | null;
status: EFolderStatus | string; status: EFolderStatus | string;
office?: Office; office?: Office;
customers?: Customer[]; customers?: Customer[];

View File

@ -23,6 +23,7 @@ class OfficeFolder extends Resource_1.default {
super(...arguments); super(...arguments);
this.description = null; this.description = null;
this.archived_description = null; this.archived_description = null;
this.notes = null;
this.status = EFolderStatus_1.default.LIVE; this.status = EFolderStatus_1.default.LIVE;
this.created_at = null; this.created_at = null;
this.updated_at = null; this.updated_at = null;
@ -48,6 +49,10 @@ __decorate([
(0, class_transformer_1.Expose)(), (0, class_transformer_1.Expose)(),
__metadata("design:type", Object) __metadata("design:type", Object)
], OfficeFolder.prototype, "archived_description", void 0); ], OfficeFolder.prototype, "archived_description", void 0);
__decorate([
(0, class_transformer_1.Expose)(),
__metadata("design:type", Object)
], OfficeFolder.prototype, "notes", void 0);
__decorate([ __decorate([
(0, class_transformer_1.Expose)(), (0, class_transformer_1.Expose)(),
__metadata("design:type", String) __metadata("design:type", String)

View File

@ -1,6 +1,4 @@
import { import { IsDate } from "class-validator";
IsDate,
} from "class-validator";
import Office from "./Office"; import Office from "./Office";
import Resource from "../Resource"; import Resource from "../Resource";
import { Expose, Type } from "class-transformer"; import { Expose, Type } from "class-transformer";
@ -8,37 +6,40 @@ import EFolderStatus from "./EFolderStatus";
import Customer from "./Customer"; import Customer from "./Customer";
export default class OfficeFolder extends Resource { export default class OfficeFolder extends Resource {
@Expose() @Expose()
public uid?: string; public uid?: string;
@Expose() @Expose()
public folder_number!: string; public folder_number!: string;
@Expose() @Expose()
public name!: string; public name!: string;
@Expose() @Expose()
public description: string | null = null; public description: string | null = null;
@Expose() @Expose()
public archived_description: string | null = null; public archived_description: string | null = null;
@Expose() @Expose()
public status: EFolderStatus | string = EFolderStatus.LIVE; public notes: string | null = null;
@Expose() @Expose()
@Type(() => Office) public status: EFolderStatus | string = EFolderStatus.LIVE;
public office?: Office;
@Expose() @Expose()
@Type(() => Customer) @Type(() => Office)
public customers?: Customer[]; public office?: Office;
@Expose() @Expose()
@IsDate() @Type(() => Customer)
public created_at: Date | null = null; public customers?: Customer[];
@Expose() @Expose()
@IsDate() @IsDate()
public updated_at: Date | null = null; public created_at: Date | null = null;
@Expose()
@IsDate()
public updated_at: Date | null = null;
} }