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";
@ -23,6 +21,9 @@ export default class OfficeFolder extends Resource {
@Expose() @Expose()
public archived_description: string | null = null; public archived_description: string | null = null;
@Expose()
public notes: string | null = null;
@Expose() @Expose()
public status: EFolderStatus | string = EFolderStatus.LIVE; public status: EFolderStatus | string = EFolderStatus.LIVE;