From 467b34a484adbd6dfa3fd6082bb7677f6178da51 Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Thu, 11 May 2023 11:03:39 +0200 Subject: [PATCH] add archived files --- dist/Customer/File.d.ts | 1 + dist/Customer/File.js | 6 ++++++ src/Customer/File.ts | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/dist/Customer/File.d.ts b/dist/Customer/File.d.ts index eab3294..8f52482 100644 --- a/dist/Customer/File.d.ts +++ b/dist/Customer/File.d.ts @@ -5,6 +5,7 @@ export default class File extends Resource { document?: Document; file_name: string; file_path: string; + archived_at: Date | null; created_at: Date | null; updated_at: Date | null; } diff --git a/dist/Customer/File.js b/dist/Customer/File.js index 56866ad..763de36 100644 --- a/dist/Customer/File.js +++ b/dist/Customer/File.js @@ -19,6 +19,7 @@ const class_transformer_1 = require("class-transformer"); class File extends Resource_1.default { constructor() { super(...arguments); + this.archived_at = null; this.created_at = null; this.updated_at = null; } @@ -42,6 +43,11 @@ __decorate([ (0, class_transformer_1.Expose)(), __metadata("design:type", String) ], File.prototype, "file_path", void 0); +__decorate([ + (0, class_transformer_1.Expose)(), + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], File.prototype, "archived_at", void 0); __decorate([ (0, class_transformer_1.Expose)(), (0, class_validator_1.IsDate)(), diff --git a/src/Customer/File.ts b/src/Customer/File.ts index c613cb8..cdcadab 100644 --- a/src/Customer/File.ts +++ b/src/Customer/File.ts @@ -19,6 +19,10 @@ export default class File extends Resource { @Expose() public file_path!: string; + @Expose() + @IsDate() + public archived_at: Date | null = null; + @Expose() @IsDate() public created_at: Date | null = null;