From 8e1ed91700b471995e3128b34b98f65777c4976e Mon Sep 17 00:00:00 2001 From: Vins Date: Mon, 19 Feb 2024 13:47:20 +0100 Subject: [PATCH] v2.116 --- dist/Customer/DeedType.d.ts | 2 +- dist/Customer/DeedType.js | 3 ++- src/Customer/DeedType.ts | 6 ++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/dist/Customer/DeedType.d.ts b/dist/Customer/DeedType.d.ts index fd98da6..647e5c0 100644 --- a/dist/Customer/DeedType.d.ts +++ b/dist/Customer/DeedType.d.ts @@ -5,7 +5,7 @@ import DocumentType from "./DocumentType"; export default class DeedType extends Resource { uid?: string; name: string; - description: string; + description?: string | null; archived_at: Date | null; office?: Office; created_at: Date | null; diff --git a/dist/Customer/DeedType.js b/dist/Customer/DeedType.js index 0faa94f..d37198a 100644 --- a/dist/Customer/DeedType.js +++ b/dist/Customer/DeedType.js @@ -21,6 +21,7 @@ const DocumentType_1 = __importDefault(require("./DocumentType")); class DeedType extends Resource_1.default { constructor() { super(...arguments); + this.description = null; this.archived_at = null; this.created_at = null; this.updated_at = null; @@ -36,7 +37,7 @@ __decorate([ ], DeedType.prototype, "name", void 0); __decorate([ (0, class_transformer_1.Expose)(), - __metadata("design:type", String) + __metadata("design:type", Object) ], DeedType.prototype, "description", void 0); __decorate([ (0, class_transformer_1.Expose)(), diff --git a/src/Customer/DeedType.ts b/src/Customer/DeedType.ts index dfb9bbd..55ba456 100644 --- a/src/Customer/DeedType.ts +++ b/src/Customer/DeedType.ts @@ -1,6 +1,4 @@ -import { - IsDate, -} from "class-validator"; +import { IsDate } from "class-validator"; import Deed from "./Deed"; import Office from "./Office"; import Resource from "../Resource"; @@ -15,7 +13,7 @@ export default class DeedType extends Resource { public name!: string; @Expose() - public description!: string; + public description?: string | null = null; @Expose() @IsDate()