diff --git a/dist/Notary/DeedType.d.ts b/dist/Notary/DeedType.d.ts index 2bcb273..9a743d9 100644 --- a/dist/Notary/DeedType.d.ts +++ b/dist/Notary/DeedType.d.ts @@ -6,7 +6,7 @@ import Office from "./Office"; export default class DeedType extends DeedTypeCustomer { uid?: string; name: string; - description: string; + description: string | null; archived_at: Date | null; office?: Office; deed?: Deed[]; diff --git a/dist/Notary/DeedType.js b/dist/Notary/DeedType.js index ea520b0..d8abd2d 100644 --- a/dist/Notary/DeedType.js +++ b/dist/Notary/DeedType.js @@ -36,6 +36,7 @@ const Office_1 = __importDefault(require("./Office")); class DeedType extends DeedType_1.default { constructor() { super(...arguments); + this.description = null; this.archived_at = null; } } @@ -60,7 +61,7 @@ __decorate([ (0, class_transformer_1.Expose)(), (0, class_validator_1.IsOptional)({ groups: ["updateDeedType"] }), (0, class_validator_1.IsOptional)({ groups: ["createDeedType"] }), - __metadata("design:type", String) + __metadata("design:type", Object) ], DeedType.prototype, "description", void 0); __decorate([ (0, class_transformer_1.Expose)(), diff --git a/src/Notary/DeedType.ts b/src/Notary/DeedType.ts index 227b8f7..521018b 100644 --- a/src/Notary/DeedType.ts +++ b/src/Notary/DeedType.ts @@ -31,7 +31,7 @@ export default class DeedType extends DeedTypeCustomer { @Expose() @IsOptional({ groups: ["updateDeedType"] }) @IsOptional({ groups: ["createDeedType"] }) - public override description!: string; + public override description: string | null = null; @Expose() @IsDate()