2023-03-23 15:41:07 +01:00

59 lines
2.5 KiB
JavaScript

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.User = void 0;
const class_validator_1 = require("class-validator");
const Contact_1 = require("./Contact");
const Document_1 = require("./Document");
const Office_1 = require("./Office");
var User;
(function (User) {
class IUser {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IUser.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IUser.prototype, "idNot", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Contact_1.Contact.IContact)
], IUser.prototype, "contact", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Office_1.Office.IOffice)
], IUser.prototype, "office_membership", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IUser.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IUser.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IUser.prototype, "office_folder_has_stakeholders", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Document_1.Document.IDocument)
], IUser.prototype, "documents", void 0);
User.IUser = IUser;
})(User = exports.User || (exports.User = {}));