This commit is contained in:
Vins 2024-02-12 17:48:44 +01:00
parent 9e5840c463
commit 690d234a90
6 changed files with 8 additions and 6 deletions

View File

@ -6,7 +6,7 @@ import DeedType from "./DeedType";
export default class DocumentType extends Resource {
uid?: string;
name: string;
public_description: string;
public_description?: string | null;
archived_at: Date | null;
office?: Office;
created_at: Date | null;

View File

@ -22,6 +22,7 @@ const DeedType_1 = __importDefault(require("./DeedType"));
class DocumentType extends Resource_1.default {
constructor() {
super(...arguments);
this.public_description = null;
this.archived_at = null;
this.created_at = null;
this.updated_at = null;
@ -37,7 +38,7 @@ __decorate([
], DocumentType.prototype, "name", void 0);
__decorate([
(0, class_transformer_1.Expose)(),
__metadata("design:type", String)
__metadata("design:type", Object)
], DocumentType.prototype, "public_description", void 0);
__decorate([
(0, class_transformer_1.Expose)(),

View File

@ -7,7 +7,7 @@ import DeedType from "./DeedType";
export default class DocumentType extends DocumentTypeCustomer {
uid?: string;
name: string;
public_description: string;
public_description?: string | null;
private_description: string | null;
archived_at: Date | null;
office?: Office;

View File

@ -37,6 +37,7 @@ const DeedType_1 = __importDefault(require("./DeedType"));
class DocumentType extends DocumentType_1.default {
constructor() {
super(...arguments);
this.public_description = null;
this.private_description = null;
this.archived_at = null;
}
@ -72,7 +73,7 @@ __decorate([
(0, class_transformer_1.Expose)(),
(0, class_validator_1.IsOptional)({ groups: ["updateDocumentType"] }),
(0, class_validator_1.IsOptional)({ groups: ["createDocumentType"] }),
__metadata("design:type", String)
__metadata("design:type", Object)
], DocumentType.prototype, "public_description", void 0);
__decorate([
(0, class_transformer_1.Expose)(),

View File

@ -14,7 +14,7 @@ export default class DocumentType extends Resource {
public name!: string;
@Expose()
public public_description!: string;
public public_description?: string | null = null;
@Expose()
@IsDate()

View File

@ -42,7 +42,7 @@ export default class DocumentType extends DocumentTypeCustomer {
@Expose()
@IsOptional({ groups: ["updateDocumentType"] })
@IsOptional({ groups: ["createDocumentType"] })
public override public_description!: string;
public override public_description?: string | null = null;
@Expose()
@IsOptional({ groups: ["updateDocumentType"] })