🎨 impove office enumeration

This commit is contained in:
Hugo Lextrait 2023-03-23 15:41:07 +01:00
parent 598eb6261e
commit e199733ec6
151 changed files with 9221 additions and 2 deletions

5
dist/Interfaces/Admin/Address.d.ts vendored Normal file
View File

@ -0,0 +1,5 @@
import { AddressNotary } from "../..";
export declare namespace Address {
class IAddress extends AddressNotary.IAddress {
}
}

10
dist/Interfaces/Admin/Address.js vendored Normal file
View File

@ -0,0 +1,10 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Address = void 0;
const __1 = require("../..");
var Address;
(function (Address) {
class IAddress extends __1.AddressNotary.IAddress {
}
Address.IAddress = IAddress;
})(Address = exports.Address || (exports.Address = {}));

20
dist/Interfaces/Admin/Contact.d.ts vendored Normal file
View File

@ -0,0 +1,20 @@
import { Address } from "./Address";
import { Customer } from "./Customer";
import { User } from "./User";
import { ContactNotary } from "../..";
export declare namespace Contact {
class IContact {
uuid: string;
first_name: string;
last_name: string;
email: string;
phone_number: string;
cell_phone_number: string;
civility: ContactNotary.ECivility;
address: Address.IAddress;
created_at: Date | null;
updated_at: Date | null;
users?: User.IUser;
customers?: Customer.ICustomer;
}
}

75
dist/Interfaces/Admin/Contact.js vendored Normal file
View File

@ -0,0 +1,75 @@
"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.Contact = void 0;
const class_validator_1 = require("class-validator");
const Address_1 = require("./Address");
const Customer_1 = require("./Customer");
const User_1 = require("./User");
const __1 = require("../..");
var Contact;
(function (Contact) {
class IContact {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IContact.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IContact.prototype, "first_name", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IContact.prototype, "last_name", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IContact.prototype, "email", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", String)
], IContact.prototype, "phone_number", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", String)
], IContact.prototype, "cell_phone_number", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IContact.prototype, "civility", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Address_1.Address.IAddress)
], IContact.prototype, "address", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IContact.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IContact.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", User_1.User.IUser)
], IContact.prototype, "users", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Customer_1.Customer.ICustomer)
], IContact.prototype, "customers", void 0);
Contact.IContact = IContact;
})(Contact = exports.Contact || (exports.Contact = {}));

15
dist/Interfaces/Admin/Customer.d.ts vendored Normal file
View File

@ -0,0 +1,15 @@
import { Contact } from "./Contact";
import { Document } from "./Document";
import { OfficeFolderHasCustomer } from "./OfficeFolderHasCustomer";
import { CustomerNotary } from "../..";
export declare namespace Customer {
class ICustomer {
uuid: string;
status: CustomerNotary.ECustomerStatus;
contact: Contact.IContact;
created_at: Date | null;
updated_at: Date | null;
office_folder_has_customers?: OfficeFolderHasCustomer.IOfficeFolderHasCustomer[];
documents?: Document.IDocument[];
}
}

53
dist/Interfaces/Admin/Customer.js vendored Normal file
View File

@ -0,0 +1,53 @@
"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.Customer = void 0;
const class_validator_1 = require("class-validator");
const Contact_1 = require("./Contact");
const __1 = require("../..");
var Customer;
(function (Customer) {
class ICustomer {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], ICustomer.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], ICustomer.prototype, "status", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Contact_1.Contact.IContact)
], ICustomer.prototype, "contact", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], ICustomer.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], ICustomer.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], ICustomer.prototype, "office_folder_has_customers", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], ICustomer.prototype, "documents", void 0);
Customer.ICustomer = ICustomer;
})(Customer = exports.Customer || (exports.Customer = {}));

13
dist/Interfaces/Admin/Deed.d.ts vendored Normal file
View File

@ -0,0 +1,13 @@
import { DeedType } from "./DeedType";
import { DeedHasDocumentType } from "./DeedHasDocumentType";
import { OfficeFolder } from "./OfficeFolder";
export declare namespace Deed {
class IDeed {
uuid: string;
deed_type: DeedType.IDeedType;
created_at: Date | null;
updated_at: Date | null;
deed_has_document_types?: DeedHasDocumentType.IDeedHasDocumentType[];
office_folder?: OfficeFolder.IOfficeFolder;
}
}

49
dist/Interfaces/Admin/Deed.js vendored Normal file
View File

@ -0,0 +1,49 @@
"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.Deed = void 0;
const class_validator_1 = require("class-validator");
const DeedType_1 = require("./DeedType");
const OfficeFolder_1 = require("./OfficeFolder");
var Deed;
(function (Deed) {
class IDeed {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDeed.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", DeedType_1.DeedType.IDeedType)
], IDeed.prototype, "deed_type", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeed.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeed.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDeed.prototype, "deed_has_document_types", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", OfficeFolder_1.OfficeFolder.IOfficeFolder)
], IDeed.prototype, "office_folder", void 0);
Deed.IDeed = IDeed;
})(Deed = exports.Deed || (exports.Deed = {}));

View File

@ -0,0 +1,11 @@
import { Deed } from "./Deed";
import { DocumentType } from "./DocumentType";
export declare namespace DeedHasDocumentType {
class IDeedHasDocumentType {
uuid: string;
document_type: DocumentType.IDocumentType;
deed: Deed.IDeed;
created_at: Date | null;
updated_at: Date | null;
}
}

View File

@ -0,0 +1,45 @@
"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.DeedHasDocumentType = void 0;
const class_validator_1 = require("class-validator");
const Deed_1 = require("./Deed");
const DocumentType_1 = require("./DocumentType");
var DeedHasDocumentType;
(function (DeedHasDocumentType) {
class IDeedHasDocumentType {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDeedHasDocumentType.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", DocumentType_1.DocumentType.IDocumentType)
], IDeedHasDocumentType.prototype, "document_type", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Deed_1.Deed.IDeed)
], IDeedHasDocumentType.prototype, "deed", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedHasDocumentType.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedHasDocumentType.prototype, "updated_at", void 0);
DeedHasDocumentType.IDeedHasDocumentType = IDeedHasDocumentType;
})(DeedHasDocumentType = exports.DeedHasDocumentType || (exports.DeedHasDocumentType = {}));

16
dist/Interfaces/Admin/DeedType.d.ts vendored Normal file
View File

@ -0,0 +1,16 @@
import { Deed } from "./Deed";
import { DeedTypeHasDocumentType } from "./DeedTypeHasDocumentType";
import { Office } from "./Office";
export declare namespace DeedType {
class IDeedType {
uuid: string;
name: string;
description: string;
archived_at: Date | null;
office: Office.IOffice;
created_at: Date | null;
updated_at: Date | null;
deed?: Deed.IDeed[];
deed_type_has_document_types?: DeedTypeHasDocumentType.IDeedTypeHasDocumentType[];
}
}

61
dist/Interfaces/Admin/DeedType.js vendored Normal file
View File

@ -0,0 +1,61 @@
"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.DeedType = void 0;
const class_validator_1 = require("class-validator");
const Office_1 = require("./Office");
var DeedType;
(function (DeedType) {
class IDeedType {
constructor() {
this.archived_at = null;
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDeedType.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IDeedType.prototype, "name", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IDeedType.prototype, "description", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedType.prototype, "archived_at", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Office_1.Office.IOffice)
], IDeedType.prototype, "office", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedType.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedType.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDeedType.prototype, "deed", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDeedType.prototype, "deed_type_has_document_types", void 0);
DeedType.IDeedType = IDeedType;
})(DeedType = exports.DeedType || (exports.DeedType = {}));

View File

@ -0,0 +1,11 @@
import { DeedType } from "./DeedType";
import { DocumentType } from "./DocumentType";
export declare namespace DeedTypeHasDocumentType {
class IDeedTypeHasDocumentType {
uuid: string;
document_type: DocumentType.IDocumentType;
deed_type: DeedType.IDeedType;
created_at: Date | null;
updated_at: Date | null;
}
}

View File

@ -0,0 +1,45 @@
"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.DeedTypeHasDocumentType = void 0;
const class_validator_1 = require("class-validator");
const DeedType_1 = require("./DeedType");
const DocumentType_1 = require("./DocumentType");
var DeedTypeHasDocumentType;
(function (DeedTypeHasDocumentType) {
class IDeedTypeHasDocumentType {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDeedTypeHasDocumentType.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", DocumentType_1.DocumentType.IDocumentType)
], IDeedTypeHasDocumentType.prototype, "document_type", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", DeedType_1.DeedType.IDeedType)
], IDeedTypeHasDocumentType.prototype, "deed_type", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedTypeHasDocumentType.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedTypeHasDocumentType.prototype, "updated_at", void 0);
DeedTypeHasDocumentType.IDeedTypeHasDocumentType = IDeedTypeHasDocumentType;
})(DeedTypeHasDocumentType = exports.DeedTypeHasDocumentType || (exports.DeedTypeHasDocumentType = {}));

19
dist/Interfaces/Admin/Document.d.ts vendored Normal file
View File

@ -0,0 +1,19 @@
import { Customer } from "./Customer";
import { DocumentHistory } from "./DocumentHistory";
import { DocumentType } from "./DocumentType";
import { File } from "./File";
import { OfficeFolder } from "./OfficeFolder";
import { DocumentNotary } from "../..";
export declare namespace Document {
class IDocument {
uuid: string;
document_status: DocumentNotary.EDocumentStatus;
document_type: DocumentType.IDocumentType;
folder: OfficeFolder.IOfficeFolder;
depositor: Customer.ICustomer;
created_at: Date | null;
updated_at: Date | null;
files?: File.IFile[];
document_history?: DocumentHistory.IDocumentHistory[];
}
}

63
dist/Interfaces/Admin/Document.js vendored Normal file
View File

@ -0,0 +1,63 @@
"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.Document = void 0;
const class_validator_1 = require("class-validator");
const Customer_1 = require("./Customer");
const DocumentType_1 = require("./DocumentType");
const OfficeFolder_1 = require("./OfficeFolder");
const __1 = require("../..");
var Document;
(function (Document) {
class IDocument {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDocument.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IDocument.prototype, "document_status", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", DocumentType_1.DocumentType.IDocumentType)
], IDocument.prototype, "document_type", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", OfficeFolder_1.OfficeFolder.IOfficeFolder)
], IDocument.prototype, "folder", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Customer_1.Customer.ICustomer)
], IDocument.prototype, "depositor", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocument.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocument.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDocument.prototype, "files", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDocument.prototype, "document_history", void 0);
Document.IDocument = IDocument;
})(Document = exports.Document || (exports.Document = {}));

View File

@ -0,0 +1,11 @@
import { Document } from "../Notary/Document";
export declare namespace DocumentHistory {
class IDocumentHistory {
uuid: string;
document_status: Document.EDocumentStatus;
document: Document.IDocument;
refused_reason: string | null;
created_at: Date | null;
updated_at: Date | null;
}
}

View File

@ -0,0 +1,49 @@
"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.DocumentHistory = void 0;
const class_validator_1 = require("class-validator");
const Document_1 = require("../Notary/Document");
var DocumentHistory;
(function (DocumentHistory) {
class IDocumentHistory {
constructor() {
this.refused_reason = null;
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDocumentHistory.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IDocumentHistory.prototype, "document_status", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Document_1.Document.IDocument)
], IDocumentHistory.prototype, "document", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], IDocumentHistory.prototype, "refused_reason", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocumentHistory.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocumentHistory.prototype, "updated_at", void 0);
DocumentHistory.IDocumentHistory = IDocumentHistory;
})(DocumentHistory = exports.DocumentHistory || (exports.DocumentHistory = {}));

17
dist/Interfaces/Admin/DocumentType.d.ts vendored Normal file
View File

@ -0,0 +1,17 @@
import { DeedHasDocumentType } from "./DeedHasDocumentType";
import { Document } from "./Document";
import { DeedTypeHasDocumentType } from "./DeedTypeHasDocumentType";
export declare namespace DocumentType {
class IDocumentType {
uuid: string;
name: string;
public_description: string;
private_description: string | null;
archived_at: Date | null;
created_at: Date | null;
updated_at: Date | null;
documents?: Document.IDocument[];
deed_has_document_types?: DeedHasDocumentType.IDeedHasDocumentType[];
deed_type_has_document_types?: DeedTypeHasDocumentType.IDeedTypeHasDocumentType[];
}
}

65
dist/Interfaces/Admin/DocumentType.js vendored Normal file
View File

@ -0,0 +1,65 @@
"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.DocumentType = void 0;
const class_validator_1 = require("class-validator");
var DocumentType;
(function (DocumentType) {
class IDocumentType {
constructor() {
this.private_description = null;
this.archived_at = null;
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDocumentType.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IDocumentType.prototype, "name", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IDocumentType.prototype, "public_description", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], IDocumentType.prototype, "private_description", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocumentType.prototype, "archived_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocumentType.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocumentType.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDocumentType.prototype, "documents", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDocumentType.prototype, "deed_has_document_types", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDocumentType.prototype, "deed_type_has_document_types", void 0);
DocumentType.IDocumentType = IDocumentType;
})(DocumentType = exports.DocumentType || (exports.DocumentType = {}));

10
dist/Interfaces/Admin/File.d.ts vendored Normal file
View File

@ -0,0 +1,10 @@
import { Document } from "./Document";
export declare namespace File {
class IFile {
uuid: string;
document: Document.IDocument;
file_path: string | null;
created_at: Date | null;
updated_at: Date | null;
}
}

45
dist/Interfaces/Admin/File.js vendored Normal file
View File

@ -0,0 +1,45 @@
"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.File = void 0;
const class_validator_1 = require("class-validator");
const Document_1 = require("./Document");
var File;
(function (File) {
class IFile {
constructor() {
this.file_path = null;
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IFile.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Document_1.Document.IDocument)
], IFile.prototype, "document", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], IFile.prototype, "file_path", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IFile.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IFile.prototype, "updated_at", void 0);
File.IFile = IFile;
})(File = exports.File || (exports.File = {}));

11
dist/Interfaces/Admin/Notification.d.ts vendored Normal file
View File

@ -0,0 +1,11 @@
import { UserHasNotification } from "./UserHasNotification";
export declare namespace Notification {
class INotification {
uuid: string;
message: string;
redirection_url: string;
created_at: Date | null;
updated_at: Date | null;
user_has_notifications?: UserHasNotification.IUserHasNotification[];
}
}

48
dist/Interfaces/Admin/Notification.js vendored Normal file
View File

@ -0,0 +1,48 @@
"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.Notification = void 0;
const class_validator_1 = require("class-validator");
var Notification;
(function (Notification) {
class INotification {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], INotification.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], INotification.prototype, "message", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
(0, class_validator_1.IsUrl)(),
__metadata("design:type", String)
], INotification.prototype, "redirection_url", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], INotification.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], INotification.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], INotification.prototype, "user_has_notifications", void 0);
Notification.INotification = INotification;
})(Notification = exports.Notification || (exports.Notification = {}));

20
dist/Interfaces/Admin/Office.d.ts vendored Normal file
View File

@ -0,0 +1,20 @@
import { Address } from "./Address";
import { DeedType } from "./DeedType";
import { OfficeFolder } from "./OfficeFolder";
import { User } from "./User";
import { OfficeNotary } from "../..";
export declare namespace Office {
class IOffice {
uuid: string;
idNot: string;
name: string;
crpcen: string;
address: Address.IAddress;
office_status: OfficeNotary.EOfficeStatus;
created_at: Date | null;
updated_at: Date | null;
deed_types?: DeedType.IDeedType[];
users?: User.IUser[];
office_folders?: OfficeFolder.IOfficeFolder[];
}
}

69
dist/Interfaces/Admin/Office.js vendored Normal file
View File

@ -0,0 +1,69 @@
"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.Office = void 0;
const class_validator_1 = require("class-validator");
const Address_1 = require("./Address");
const __1 = require("../..");
var Office;
(function (Office) {
class IOffice {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IOffice.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOffice.prototype, "idNot", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOffice.prototype, "name", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOffice.prototype, "crpcen", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Address_1.Address.IAddress)
], IOffice.prototype, "address", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOffice.prototype, "office_status", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOffice.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOffice.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IOffice.prototype, "deed_types", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IOffice.prototype, "users", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IOffice.prototype, "office_folders", void 0);
Office.IOffice = IOffice;
})(Office = exports.Office || (exports.Office = {}));

23
dist/Interfaces/Admin/OfficeFolder.d.ts vendored Normal file
View File

@ -0,0 +1,23 @@
import { Deed } from "./Deed";
import { Document } from "./Document";
import { Office } from "./Office";
import { OfficeFolderHasCustomer } from "./OfficeFolderHasCustomer";
import { OfficeFolderHasStakeholder } from "./OfficeFolderHasStakeholder";
import { OfficeFolderNotary } from "../..";
export declare namespace OfficeFolder {
class IOfficeFolder {
uuid: string;
folder_number: string;
name: string;
description: string | null;
archived_description: string | null;
status: OfficeFolderNotary.EFolderStatus;
deed: Deed.IDeed;
office: Office.IOffice;
created_at: Date | null;
updated_at: Date | null;
office_folder_has_customers?: OfficeFolderHasCustomer.IOfficeFolderHasCustomer[];
office_folder_has_stakeholder?: OfficeFolderHasStakeholder.IOfficeFolderHasStakeholder[];
documents?: Document.IDocument[];
}
}

80
dist/Interfaces/Admin/OfficeFolder.js vendored Normal file
View File

@ -0,0 +1,80 @@
"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.OfficeFolder = void 0;
const class_validator_1 = require("class-validator");
const Deed_1 = require("./Deed");
const Office_1 = require("./Office");
const __1 = require("../..");
var OfficeFolder;
(function (OfficeFolder) {
class IOfficeFolder {
constructor() {
this.description = null;
this.archived_description = null;
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IOfficeFolder.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOfficeFolder.prototype, "folder_number", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOfficeFolder.prototype, "name", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], IOfficeFolder.prototype, "description", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], IOfficeFolder.prototype, "archived_description", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOfficeFolder.prototype, "status", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Deed_1.Deed.IDeed)
], IOfficeFolder.prototype, "deed", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Office_1.Office.IOffice)
], IOfficeFolder.prototype, "office", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOfficeFolder.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOfficeFolder.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IOfficeFolder.prototype, "office_folder_has_customers", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IOfficeFolder.prototype, "office_folder_has_stakeholder", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IOfficeFolder.prototype, "documents", void 0);
OfficeFolder.IOfficeFolder = IOfficeFolder;
})(OfficeFolder = exports.OfficeFolder || (exports.OfficeFolder = {}));

View File

@ -0,0 +1,11 @@
import { Customer } from "./Customer";
import { OfficeFolder } from "./OfficeFolder";
export declare namespace OfficeFolderHasCustomer {
class IOfficeFolderHasCustomer {
uuid: string;
customer: Customer.ICustomer;
office_folder: OfficeFolder.IOfficeFolder;
created_at: Date | null;
updated_at: Date | null;
}
}

View File

@ -0,0 +1,45 @@
"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.OfficeFolderHasCustomer = void 0;
const class_validator_1 = require("class-validator");
const Customer_1 = require("./Customer");
const OfficeFolder_1 = require("./OfficeFolder");
var OfficeFolderHasCustomer;
(function (OfficeFolderHasCustomer) {
class IOfficeFolderHasCustomer {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IOfficeFolderHasCustomer.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Customer_1.Customer.ICustomer)
], IOfficeFolderHasCustomer.prototype, "customer", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", OfficeFolder_1.OfficeFolder.IOfficeFolder)
], IOfficeFolderHasCustomer.prototype, "office_folder", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOfficeFolderHasCustomer.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOfficeFolderHasCustomer.prototype, "updated_at", void 0);
OfficeFolderHasCustomer.IOfficeFolderHasCustomer = IOfficeFolderHasCustomer;
})(OfficeFolderHasCustomer = exports.OfficeFolderHasCustomer || (exports.OfficeFolderHasCustomer = {}));

View File

@ -0,0 +1,11 @@
import { OfficeFolder } from "./OfficeFolder";
import { User } from "./User";
export declare namespace OfficeFolderHasStakeholder {
class IOfficeFolderHasStakeholder {
uuid: string;
user_stakeholder: User.IUser;
office_folder: OfficeFolder.IOfficeFolder;
created_at: Date | null;
updated_at: Date | null;
}
}

View File

@ -0,0 +1,45 @@
"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.OfficeFolderHasStakeholder = void 0;
const class_validator_1 = require("class-validator");
const OfficeFolder_1 = require("./OfficeFolder");
const User_1 = require("./User");
var OfficeFolderHasStakeholder;
(function (OfficeFolderHasStakeholder) {
class IOfficeFolderHasStakeholder {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IOfficeFolderHasStakeholder.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", User_1.User.IUser)
], IOfficeFolderHasStakeholder.prototype, "user_stakeholder", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", OfficeFolder_1.OfficeFolder.IOfficeFolder)
], IOfficeFolderHasStakeholder.prototype, "office_folder", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOfficeFolderHasStakeholder.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOfficeFolderHasStakeholder.prototype, "updated_at", void 0);
OfficeFolderHasStakeholder.IOfficeFolderHasStakeholder = IOfficeFolderHasStakeholder;
})(OfficeFolderHasStakeholder = exports.OfficeFolderHasStakeholder || (exports.OfficeFolderHasStakeholder = {}));

16
dist/Interfaces/Admin/User.d.ts vendored Normal file
View File

@ -0,0 +1,16 @@
import { Contact } from "./Contact";
import { Document } from "./Document";
import { Office } from "./Office";
import { OfficeFolderHasStakeholder } from "./OfficeFolderHasStakeholder";
export declare namespace User {
class IUser {
uuid: string;
idNot: string;
contact: Contact.IContact;
office_membership: Office.IOffice;
created_at: Date | null;
updated_at: Date | null;
office_folder_has_stakeholders?: OfficeFolderHasStakeholder.IOfficeFolderHasStakeholder[];
documents?: Document.IDocument;
}
}

58
dist/Interfaces/Admin/User.js vendored Normal file
View File

@ -0,0 +1,58 @@
"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 = {}));

View File

@ -0,0 +1,12 @@
import { Notification } from "./Notification";
import { User } from "./User";
export declare namespace UserHasNotification {
class IUserHasNotification {
uuid: string;
user: User.IUser;
notification: Notification.INotification;
created_at: Date | null;
updated_at: Date | null;
}
type ENotificationStatus = "READ" | "UNREAD";
}

View File

@ -0,0 +1,45 @@
"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.UserHasNotification = void 0;
const class_validator_1 = require("class-validator");
const Notification_1 = require("./Notification");
const User_1 = require("./User");
var UserHasNotification;
(function (UserHasNotification) {
class IUserHasNotification {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IUserHasNotification.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", User_1.User.IUser)
], IUserHasNotification.prototype, "user", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Notification_1.Notification.INotification)
], IUserHasNotification.prototype, "notification", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IUserHasNotification.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IUserHasNotification.prototype, "updated_at", void 0);
UserHasNotification.IUserHasNotification = IUserHasNotification;
})(UserHasNotification = exports.UserHasNotification || (exports.UserHasNotification = {}));

14
dist/Interfaces/Client/Address.d.ts vendored Normal file
View File

@ -0,0 +1,14 @@
import { Contact } from "./Contact";
import { Office } from "./Office";
export declare namespace Address {
class IAddress {
uuid: string;
address: string;
city: string;
zip_code: number;
created_at: Date | null;
updated_at: Date | null;
office?: Office.IOffice;
contacts?: Contact.IContact;
}
}

57
dist/Interfaces/Client/Address.js vendored Normal file
View File

@ -0,0 +1,57 @@
"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.Address = void 0;
const class_validator_1 = require("class-validator");
const Contact_1 = require("./Contact");
const Office_1 = require("./Office");
var Address;
(function (Address) {
class IAddress {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IAddress.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IAddress.prototype, "address", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IAddress.prototype, "city", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Number)
], IAddress.prototype, "zip_code", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IAddress.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IAddress.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Office_1.Office.IOffice)
], IAddress.prototype, "office", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Contact_1.Contact.IContact)
], IAddress.prototype, "contacts", void 0);
Address.IAddress = IAddress;
})(Address = exports.Address || (exports.Address = {}));

20
dist/Interfaces/Client/Contact.d.ts vendored Normal file
View File

@ -0,0 +1,20 @@
import { Address } from "./Address";
import { Customer } from "./Customer";
import { User } from "./User";
import { ContactNotary } from "../..";
export declare namespace Contact {
class IContact {
uuid: string;
first_name: string;
last_name: string;
email: string;
phone_number: string;
cell_phone_number: string;
civility: ContactNotary.ECivility;
address: Address.IAddress;
created_at: Date | null;
updated_at: Date | null;
users?: User.IUser;
customers?: Customer.ICustomer;
}
}

75
dist/Interfaces/Client/Contact.js vendored Normal file
View File

@ -0,0 +1,75 @@
"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.Contact = void 0;
const class_validator_1 = require("class-validator");
const Address_1 = require("./Address");
const Customer_1 = require("./Customer");
const User_1 = require("./User");
const __1 = require("../..");
var Contact;
(function (Contact) {
class IContact {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IContact.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IContact.prototype, "first_name", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IContact.prototype, "last_name", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IContact.prototype, "email", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", String)
], IContact.prototype, "phone_number", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", String)
], IContact.prototype, "cell_phone_number", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IContact.prototype, "civility", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Address_1.Address.IAddress)
], IContact.prototype, "address", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IContact.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IContact.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", User_1.User.IUser)
], IContact.prototype, "users", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Customer_1.Customer.ICustomer)
], IContact.prototype, "customers", void 0);
Contact.IContact = IContact;
})(Contact = exports.Contact || (exports.Contact = {}));

15
dist/Interfaces/Client/Customer.d.ts vendored Normal file
View File

@ -0,0 +1,15 @@
import { Contact } from "./Contact";
import { Document } from "./Document";
import { OfficeFolderHasCustomer } from "./OfficeFolderHasCustomer";
import { CustomerNotary } from "../..";
export declare namespace Customer {
class ICustomer {
uuid: string;
status: CustomerNotary.ECustomerStatus;
contact: Contact.IContact;
created_at: Date | null;
updated_at: Date | null;
office_folder_has_customers?: OfficeFolderHasCustomer.IOfficeFolderHasCustomer[];
documents?: Document.IDocument[];
}
}

53
dist/Interfaces/Client/Customer.js vendored Normal file
View File

@ -0,0 +1,53 @@
"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.Customer = void 0;
const class_validator_1 = require("class-validator");
const Contact_1 = require("./Contact");
const __1 = require("../..");
var Customer;
(function (Customer) {
class ICustomer {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], ICustomer.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], ICustomer.prototype, "status", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Contact_1.Contact.IContact)
], ICustomer.prototype, "contact", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], ICustomer.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], ICustomer.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], ICustomer.prototype, "office_folder_has_customers", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], ICustomer.prototype, "documents", void 0);
Customer.ICustomer = ICustomer;
})(Customer = exports.Customer || (exports.Customer = {}));

13
dist/Interfaces/Client/Deed.d.ts vendored Normal file
View File

@ -0,0 +1,13 @@
import { DeedType } from "./DeedType";
import { DeedHasDocumentType } from "./DeedHasDocumentType";
import { OfficeFolder } from "./OfficeFolder";
export declare namespace Deed {
class IDeed {
uuid: string;
deed_type: DeedType.IDeedType;
created_at: Date | null;
updated_at: Date | null;
deed_has_document_types?: DeedHasDocumentType.IDeedHasDocumentType[];
office_folder?: OfficeFolder.IOfficeFolder;
}
}

49
dist/Interfaces/Client/Deed.js vendored Normal file
View File

@ -0,0 +1,49 @@
"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.Deed = void 0;
const class_validator_1 = require("class-validator");
const DeedType_1 = require("./DeedType");
const OfficeFolder_1 = require("./OfficeFolder");
var Deed;
(function (Deed) {
class IDeed {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDeed.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", DeedType_1.DeedType.IDeedType)
], IDeed.prototype, "deed_type", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeed.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeed.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDeed.prototype, "deed_has_document_types", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", OfficeFolder_1.OfficeFolder.IOfficeFolder)
], IDeed.prototype, "office_folder", void 0);
Deed.IDeed = IDeed;
})(Deed = exports.Deed || (exports.Deed = {}));

View File

@ -0,0 +1,11 @@
import { Deed } from "./Deed";
import { DocumentType } from "./DocumentType";
export declare namespace DeedHasDocumentType {
class IDeedHasDocumentType {
uuid: string;
document_type: DocumentType.IDocumentType;
deed: Deed.IDeed;
created_at: Date | null;
updated_at: Date | null;
}
}

View File

@ -0,0 +1,45 @@
"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.DeedHasDocumentType = void 0;
const class_validator_1 = require("class-validator");
const Deed_1 = require("./Deed");
const DocumentType_1 = require("./DocumentType");
var DeedHasDocumentType;
(function (DeedHasDocumentType) {
class IDeedHasDocumentType {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDeedHasDocumentType.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", DocumentType_1.DocumentType.IDocumentType)
], IDeedHasDocumentType.prototype, "document_type", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Deed_1.Deed.IDeed)
], IDeedHasDocumentType.prototype, "deed", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedHasDocumentType.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedHasDocumentType.prototype, "updated_at", void 0);
DeedHasDocumentType.IDeedHasDocumentType = IDeedHasDocumentType;
})(DeedHasDocumentType = exports.DeedHasDocumentType || (exports.DeedHasDocumentType = {}));

16
dist/Interfaces/Client/DeedType.d.ts vendored Normal file
View File

@ -0,0 +1,16 @@
import { Deed } from "./Deed";
import { DeedTypeHasDocumentType } from "./DeedTypeHasDocumentType";
import { Office } from "./Office";
export declare namespace DeedType {
class IDeedType {
uuid: string;
name: string;
description: string;
archived_at: Date | null;
office: Office.IOffice;
created_at: Date | null;
updated_at: Date | null;
deed?: Deed.IDeed[];
deed_type_has_document_types?: DeedTypeHasDocumentType.IDeedTypeHasDocumentType[];
}
}

61
dist/Interfaces/Client/DeedType.js vendored Normal file
View File

@ -0,0 +1,61 @@
"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.DeedType = void 0;
const class_validator_1 = require("class-validator");
const Office_1 = require("./Office");
var DeedType;
(function (DeedType) {
class IDeedType {
constructor() {
this.archived_at = null;
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDeedType.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IDeedType.prototype, "name", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IDeedType.prototype, "description", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedType.prototype, "archived_at", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Office_1.Office.IOffice)
], IDeedType.prototype, "office", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedType.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedType.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDeedType.prototype, "deed", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDeedType.prototype, "deed_type_has_document_types", void 0);
DeedType.IDeedType = IDeedType;
})(DeedType = exports.DeedType || (exports.DeedType = {}));

View File

@ -0,0 +1,11 @@
import { DeedType } from "./DeedType";
import { DocumentType } from "./DocumentType";
export declare namespace DeedTypeHasDocumentType {
class IDeedTypeHasDocumentType {
uuid: string;
document_type: DocumentType.IDocumentType;
deed_type: DeedType.IDeedType;
created_at: Date | null;
updated_at: Date | null;
}
}

View File

@ -0,0 +1,45 @@
"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.DeedTypeHasDocumentType = void 0;
const class_validator_1 = require("class-validator");
const DeedType_1 = require("./DeedType");
const DocumentType_1 = require("./DocumentType");
var DeedTypeHasDocumentType;
(function (DeedTypeHasDocumentType) {
class IDeedTypeHasDocumentType {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDeedTypeHasDocumentType.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", DocumentType_1.DocumentType.IDocumentType)
], IDeedTypeHasDocumentType.prototype, "document_type", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", DeedType_1.DeedType.IDeedType)
], IDeedTypeHasDocumentType.prototype, "deed_type", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedTypeHasDocumentType.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedTypeHasDocumentType.prototype, "updated_at", void 0);
DeedTypeHasDocumentType.IDeedTypeHasDocumentType = IDeedTypeHasDocumentType;
})(DeedTypeHasDocumentType = exports.DeedTypeHasDocumentType || (exports.DeedTypeHasDocumentType = {}));

19
dist/Interfaces/Client/Document.d.ts vendored Normal file
View File

@ -0,0 +1,19 @@
import { Customer } from "./Customer";
import { DocumentHistory } from "./DocumentHistory";
import { DocumentType } from "./DocumentType";
import { File } from "./File";
import { OfficeFolder } from "./OfficeFolder";
import { DocumentNotary } from "../..";
export declare namespace Document {
class IDocument {
uuid: string;
document_status: DocumentNotary.EDocumentStatus;
document_type: DocumentType.IDocumentType;
folder: OfficeFolder.IOfficeFolder;
depositor: Customer.ICustomer;
created_at: Date | null;
updated_at: Date | null;
files?: File.IFile[];
document_history?: DocumentHistory.IDocumentHistory[];
}
}

63
dist/Interfaces/Client/Document.js vendored Normal file
View File

@ -0,0 +1,63 @@
"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.Document = void 0;
const class_validator_1 = require("class-validator");
const Customer_1 = require("./Customer");
const DocumentType_1 = require("./DocumentType");
const OfficeFolder_1 = require("./OfficeFolder");
const __1 = require("../..");
var Document;
(function (Document) {
class IDocument {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDocument.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IDocument.prototype, "document_status", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", DocumentType_1.DocumentType.IDocumentType)
], IDocument.prototype, "document_type", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", OfficeFolder_1.OfficeFolder.IOfficeFolder)
], IDocument.prototype, "folder", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Customer_1.Customer.ICustomer)
], IDocument.prototype, "depositor", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocument.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocument.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDocument.prototype, "files", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDocument.prototype, "document_history", void 0);
Document.IDocument = IDocument;
})(Document = exports.Document || (exports.Document = {}));

View File

@ -0,0 +1,11 @@
import { Document } from "../Notary/Document";
export declare namespace DocumentHistory {
class IDocumentHistory {
uuid: string;
document_status: Document.EDocumentStatus;
document: Document.IDocument;
refused_reason: string | null;
created_at: Date | null;
updated_at: Date | null;
}
}

View File

@ -0,0 +1,49 @@
"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.DocumentHistory = void 0;
const class_validator_1 = require("class-validator");
const Document_1 = require("../Notary/Document");
var DocumentHistory;
(function (DocumentHistory) {
class IDocumentHistory {
constructor() {
this.refused_reason = null;
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDocumentHistory.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IDocumentHistory.prototype, "document_status", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Document_1.Document.IDocument)
], IDocumentHistory.prototype, "document", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], IDocumentHistory.prototype, "refused_reason", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocumentHistory.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocumentHistory.prototype, "updated_at", void 0);
DocumentHistory.IDocumentHistory = IDocumentHistory;
})(DocumentHistory = exports.DocumentHistory || (exports.DocumentHistory = {}));

View File

@ -0,0 +1,17 @@
import { DeedHasDocumentType } from "./DeedHasDocumentType";
import { Document } from "./Document";
import { DeedTypeHasDocumentType } from "./DeedTypeHasDocumentType";
export declare namespace DocumentType {
class IDocumentType {
uuid: string;
name: string;
public_description: string;
private_description: string | null;
archived_at: Date | null;
created_at: Date | null;
updated_at: Date | null;
documents?: Document.IDocument[];
deed_has_document_types?: DeedHasDocumentType.IDeedHasDocumentType[];
deed_type_has_document_types?: DeedTypeHasDocumentType.IDeedTypeHasDocumentType[];
}
}

65
dist/Interfaces/Client/DocumentType.js vendored Normal file
View File

@ -0,0 +1,65 @@
"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.DocumentType = void 0;
const class_validator_1 = require("class-validator");
var DocumentType;
(function (DocumentType) {
class IDocumentType {
constructor() {
this.private_description = null;
this.archived_at = null;
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDocumentType.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IDocumentType.prototype, "name", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IDocumentType.prototype, "public_description", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], IDocumentType.prototype, "private_description", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocumentType.prototype, "archived_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocumentType.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocumentType.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDocumentType.prototype, "documents", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDocumentType.prototype, "deed_has_document_types", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDocumentType.prototype, "deed_type_has_document_types", void 0);
DocumentType.IDocumentType = IDocumentType;
})(DocumentType = exports.DocumentType || (exports.DocumentType = {}));

10
dist/Interfaces/Client/File.d.ts vendored Normal file
View File

@ -0,0 +1,10 @@
import { Document } from "./Document";
export declare namespace File {
class IFile {
uuid: string;
document: Document.IDocument;
file_path: string | null;
created_at: Date | null;
updated_at: Date | null;
}
}

45
dist/Interfaces/Client/File.js vendored Normal file
View File

@ -0,0 +1,45 @@
"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.File = void 0;
const class_validator_1 = require("class-validator");
const Document_1 = require("./Document");
var File;
(function (File) {
class IFile {
constructor() {
this.file_path = null;
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IFile.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Document_1.Document.IDocument)
], IFile.prototype, "document", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], IFile.prototype, "file_path", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IFile.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IFile.prototype, "updated_at", void 0);
File.IFile = IFile;
})(File = exports.File || (exports.File = {}));

View File

@ -0,0 +1,11 @@
import { UserHasNotification } from "./UserHasNotification";
export declare namespace Notification {
class INotification {
uuid: string;
message: string;
redirection_url: string;
created_at: Date | null;
updated_at: Date | null;
user_has_notifications?: UserHasNotification.IUserHasNotification[];
}
}

48
dist/Interfaces/Client/Notification.js vendored Normal file
View File

@ -0,0 +1,48 @@
"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.Notification = void 0;
const class_validator_1 = require("class-validator");
var Notification;
(function (Notification) {
class INotification {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], INotification.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], INotification.prototype, "message", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
(0, class_validator_1.IsUrl)(),
__metadata("design:type", String)
], INotification.prototype, "redirection_url", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], INotification.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], INotification.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], INotification.prototype, "user_has_notifications", void 0);
Notification.INotification = INotification;
})(Notification = exports.Notification || (exports.Notification = {}));

20
dist/Interfaces/Client/Office.d.ts vendored Normal file
View File

@ -0,0 +1,20 @@
import { Address } from "./Address";
import { DeedType } from "./DeedType";
import { OfficeFolder } from "./OfficeFolder";
import { User } from "./User";
import { OfficeNotary } from "../..";
export declare namespace Office {
class IOffice {
uuid: string;
idNot: string;
name: string;
crpcen: string;
address: Address.IAddress;
office_status: OfficeNotary.EOfficeStatus;
created_at: Date | null;
updated_at: Date | null;
deed_types?: DeedType.IDeedType[];
users?: User.IUser[];
office_folders?: OfficeFolder.IOfficeFolder[];
}
}

69
dist/Interfaces/Client/Office.js vendored Normal file
View File

@ -0,0 +1,69 @@
"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.Office = void 0;
const class_validator_1 = require("class-validator");
const Address_1 = require("./Address");
const __1 = require("../..");
var Office;
(function (Office) {
class IOffice {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IOffice.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOffice.prototype, "idNot", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOffice.prototype, "name", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOffice.prototype, "crpcen", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Address_1.Address.IAddress)
], IOffice.prototype, "address", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOffice.prototype, "office_status", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOffice.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOffice.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IOffice.prototype, "deed_types", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IOffice.prototype, "users", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IOffice.prototype, "office_folders", void 0);
Office.IOffice = IOffice;
})(Office = exports.Office || (exports.Office = {}));

View File

@ -0,0 +1,23 @@
import { Deed } from "./Deed";
import { Document } from "./Document";
import { Office } from "./Office";
import { OfficeFolderHasCustomer } from "./OfficeFolderHasCustomer";
import { OfficeFolderHasStakeholder } from "./OfficeFolderHasStakeholder";
import { OfficeFolderNotary } from "../..";
export declare namespace OfficeFolder {
class IOfficeFolder {
uuid: string;
folder_number: string;
name: string;
description: string | null;
archived_description: string | null;
status: OfficeFolderNotary.EFolderStatus;
deed: Deed.IDeed;
office: Office.IOffice;
created_at: Date | null;
updated_at: Date | null;
office_folder_has_customers?: OfficeFolderHasCustomer.IOfficeFolderHasCustomer[];
office_folder_has_stakeholder?: OfficeFolderHasStakeholder.IOfficeFolderHasStakeholder[];
documents?: Document.IDocument[];
}
}

80
dist/Interfaces/Client/OfficeFolder.js vendored Normal file
View File

@ -0,0 +1,80 @@
"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.OfficeFolder = void 0;
const class_validator_1 = require("class-validator");
const Deed_1 = require("./Deed");
const Office_1 = require("./Office");
const __1 = require("../..");
var OfficeFolder;
(function (OfficeFolder) {
class IOfficeFolder {
constructor() {
this.description = null;
this.archived_description = null;
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IOfficeFolder.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOfficeFolder.prototype, "folder_number", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOfficeFolder.prototype, "name", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], IOfficeFolder.prototype, "description", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], IOfficeFolder.prototype, "archived_description", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOfficeFolder.prototype, "status", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Deed_1.Deed.IDeed)
], IOfficeFolder.prototype, "deed", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Office_1.Office.IOffice)
], IOfficeFolder.prototype, "office", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOfficeFolder.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOfficeFolder.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IOfficeFolder.prototype, "office_folder_has_customers", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IOfficeFolder.prototype, "office_folder_has_stakeholder", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IOfficeFolder.prototype, "documents", void 0);
OfficeFolder.IOfficeFolder = IOfficeFolder;
})(OfficeFolder = exports.OfficeFolder || (exports.OfficeFolder = {}));

View File

@ -0,0 +1,11 @@
import { Customer } from "./Customer";
import { OfficeFolder } from "./OfficeFolder";
export declare namespace OfficeFolderHasCustomer {
class IOfficeFolderHasCustomer {
uuid: string;
customer: Customer.ICustomer;
office_folder: OfficeFolder.IOfficeFolder;
created_at: Date | null;
updated_at: Date | null;
}
}

View File

@ -0,0 +1,45 @@
"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.OfficeFolderHasCustomer = void 0;
const class_validator_1 = require("class-validator");
const Customer_1 = require("./Customer");
const OfficeFolder_1 = require("./OfficeFolder");
var OfficeFolderHasCustomer;
(function (OfficeFolderHasCustomer) {
class IOfficeFolderHasCustomer {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IOfficeFolderHasCustomer.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Customer_1.Customer.ICustomer)
], IOfficeFolderHasCustomer.prototype, "customer", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", OfficeFolder_1.OfficeFolder.IOfficeFolder)
], IOfficeFolderHasCustomer.prototype, "office_folder", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOfficeFolderHasCustomer.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOfficeFolderHasCustomer.prototype, "updated_at", void 0);
OfficeFolderHasCustomer.IOfficeFolderHasCustomer = IOfficeFolderHasCustomer;
})(OfficeFolderHasCustomer = exports.OfficeFolderHasCustomer || (exports.OfficeFolderHasCustomer = {}));

View File

@ -0,0 +1,11 @@
import { OfficeFolder } from "./OfficeFolder";
import { User } from "./User";
export declare namespace OfficeFolderHasStakeholder {
class IOfficeFolderHasStakeholder {
uuid: string;
user_stakeholder: User.IUser;
office_folder: OfficeFolder.IOfficeFolder;
created_at: Date | null;
updated_at: Date | null;
}
}

View File

@ -0,0 +1,45 @@
"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.OfficeFolderHasStakeholder = void 0;
const class_validator_1 = require("class-validator");
const OfficeFolder_1 = require("./OfficeFolder");
const User_1 = require("./User");
var OfficeFolderHasStakeholder;
(function (OfficeFolderHasStakeholder) {
class IOfficeFolderHasStakeholder {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IOfficeFolderHasStakeholder.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", User_1.User.IUser)
], IOfficeFolderHasStakeholder.prototype, "user_stakeholder", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", OfficeFolder_1.OfficeFolder.IOfficeFolder)
], IOfficeFolderHasStakeholder.prototype, "office_folder", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOfficeFolderHasStakeholder.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOfficeFolderHasStakeholder.prototype, "updated_at", void 0);
OfficeFolderHasStakeholder.IOfficeFolderHasStakeholder = IOfficeFolderHasStakeholder;
})(OfficeFolderHasStakeholder = exports.OfficeFolderHasStakeholder || (exports.OfficeFolderHasStakeholder = {}));

16
dist/Interfaces/Client/User.d.ts vendored Normal file
View File

@ -0,0 +1,16 @@
import { Contact } from "./Contact";
import { Document } from "./Document";
import { Office } from "./Office";
import { OfficeFolderHasStakeholder } from "./OfficeFolderHasStakeholder";
export declare namespace User {
class IUser {
uuid: string;
idNot: string;
contact: Contact.IContact;
office_membership: Office.IOffice;
created_at: Date | null;
updated_at: Date | null;
office_folder_has_stakeholders?: OfficeFolderHasStakeholder.IOfficeFolderHasStakeholder[];
documents?: Document.IDocument;
}
}

58
dist/Interfaces/Client/User.js vendored Normal file
View File

@ -0,0 +1,58 @@
"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 = {}));

View File

@ -0,0 +1,12 @@
import { Notification } from "./Notification";
import { User } from "./User";
export declare namespace UserHasNotification {
class IUserHasNotification {
uuid: string;
user: User.IUser;
notification: Notification.INotification;
created_at: Date | null;
updated_at: Date | null;
}
type ENotificationStatus = "READ" | "UNREAD";
}

View File

@ -0,0 +1,45 @@
"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.UserHasNotification = void 0;
const class_validator_1 = require("class-validator");
const Notification_1 = require("./Notification");
const User_1 = require("./User");
var UserHasNotification;
(function (UserHasNotification) {
class IUserHasNotification {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IUserHasNotification.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", User_1.User.IUser)
], IUserHasNotification.prototype, "user", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Notification_1.Notification.INotification)
], IUserHasNotification.prototype, "notification", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IUserHasNotification.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IUserHasNotification.prototype, "updated_at", void 0);
UserHasNotification.IUserHasNotification = IUserHasNotification;
})(UserHasNotification = exports.UserHasNotification || (exports.UserHasNotification = {}));

14
dist/Interfaces/Notary/Address.d.ts vendored Normal file
View File

@ -0,0 +1,14 @@
import { Contact } from "./Contact";
import { Office } from "./Office";
export declare namespace Address {
class IAddress {
uuid: string;
address: string;
city: string;
zip_code: number;
created_at: Date | null;
updated_at: Date | null;
office?: Office.IOffice;
contacts?: Contact.IContact;
}
}

57
dist/Interfaces/Notary/Address.js vendored Normal file
View File

@ -0,0 +1,57 @@
"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.Address = void 0;
const class_validator_1 = require("class-validator");
const Contact_1 = require("./Contact");
const Office_1 = require("./Office");
var Address;
(function (Address) {
class IAddress {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IAddress.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IAddress.prototype, "address", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IAddress.prototype, "city", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Number)
], IAddress.prototype, "zip_code", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IAddress.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IAddress.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Office_1.Office.IOffice)
], IAddress.prototype, "office", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Contact_1.Contact.IContact)
], IAddress.prototype, "contacts", void 0);
Address.IAddress = IAddress;
})(Address = exports.Address || (exports.Address = {}));

20
dist/Interfaces/Notary/Contact.d.ts vendored Normal file
View File

@ -0,0 +1,20 @@
import { Address } from "./Address";
import { Customer } from "./Customer";
import { User } from "./User";
export declare namespace Contact {
class IContact {
uuid: string;
first_name: string;
last_name: string;
email: string;
phone_number: string;
cell_phone_number: string;
civility: ECivility;
address: Address.IAddress;
created_at: Date | null;
updated_at: Date | null;
users?: User.IUser;
customers?: Customer.ICustomer;
}
type ECivility = "MALE" | "FEMALE" | "OTHERS";
}

74
dist/Interfaces/Notary/Contact.js vendored Normal file
View File

@ -0,0 +1,74 @@
"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.Contact = void 0;
const class_validator_1 = require("class-validator");
const Address_1 = require("./Address");
const Customer_1 = require("./Customer");
const User_1 = require("./User");
var Contact;
(function (Contact) {
class IContact {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IContact.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IContact.prototype, "first_name", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IContact.prototype, "last_name", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IContact.prototype, "email", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", String)
], IContact.prototype, "phone_number", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", String)
], IContact.prototype, "cell_phone_number", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IContact.prototype, "civility", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Address_1.Address.IAddress)
], IContact.prototype, "address", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IContact.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IContact.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", User_1.User.IUser)
], IContact.prototype, "users", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Customer_1.Customer.ICustomer)
], IContact.prototype, "customers", void 0);
Contact.IContact = IContact;
})(Contact = exports.Contact || (exports.Contact = {}));

15
dist/Interfaces/Notary/Customer.d.ts vendored Normal file
View File

@ -0,0 +1,15 @@
import { Contact } from "./Contact";
import { Document } from "./Document";
import { OfficeFolderHasCustomer } from "./OfficeFolderHasCustomer";
export declare namespace Customer {
class ICustomer {
uuid: string;
status: ECustomerStatus;
contact: Contact.IContact;
created_at: Date | null;
updated_at: Date | null;
office_folder_has_customers?: OfficeFolderHasCustomer.IOfficeFolderHasCustomer[];
documents?: Document.IDocument[];
}
type ECustomerStatus = "VALIDATED" | "PENDING" | "ERRONED";
}

52
dist/Interfaces/Notary/Customer.js vendored Normal file
View File

@ -0,0 +1,52 @@
"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.Customer = void 0;
const class_validator_1 = require("class-validator");
const Contact_1 = require("./Contact");
var Customer;
(function (Customer) {
class ICustomer {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], ICustomer.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], ICustomer.prototype, "status", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Contact_1.Contact.IContact)
], ICustomer.prototype, "contact", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], ICustomer.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], ICustomer.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], ICustomer.prototype, "office_folder_has_customers", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], ICustomer.prototype, "documents", void 0);
Customer.ICustomer = ICustomer;
})(Customer = exports.Customer || (exports.Customer = {}));

13
dist/Interfaces/Notary/Deed.d.ts vendored Normal file
View File

@ -0,0 +1,13 @@
import { DeedType } from "./DeedType";
import { DeedHasDocumentType } from "./DeedHasDocumentType";
import { OfficeFolder } from "./OfficeFolder";
export declare namespace Deed {
class IDeed {
uuid: string;
deed_type: DeedType.IDeedType;
created_at: Date | null;
updated_at: Date | null;
deed_has_document_types?: DeedHasDocumentType.IDeedHasDocumentType[];
office_folder?: OfficeFolder.IOfficeFolder;
}
}

49
dist/Interfaces/Notary/Deed.js vendored Normal file
View File

@ -0,0 +1,49 @@
"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.Deed = void 0;
const class_validator_1 = require("class-validator");
const DeedType_1 = require("./DeedType");
const OfficeFolder_1 = require("./OfficeFolder");
var Deed;
(function (Deed) {
class IDeed {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDeed.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", DeedType_1.DeedType.IDeedType)
], IDeed.prototype, "deed_type", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeed.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeed.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDeed.prototype, "deed_has_document_types", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", OfficeFolder_1.OfficeFolder.IOfficeFolder)
], IDeed.prototype, "office_folder", void 0);
Deed.IDeed = IDeed;
})(Deed = exports.Deed || (exports.Deed = {}));

View File

@ -0,0 +1,11 @@
import { Deed } from "./Deed";
import { DocumentType } from "./DocumentType";
export declare namespace DeedHasDocumentType {
class IDeedHasDocumentType {
uuid: string;
document_type: DocumentType.IDocumentType;
deed: Deed.IDeed;
created_at: Date | null;
updated_at: Date | null;
}
}

View File

@ -0,0 +1,45 @@
"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.DeedHasDocumentType = void 0;
const class_validator_1 = require("class-validator");
const Deed_1 = require("./Deed");
const DocumentType_1 = require("./DocumentType");
var DeedHasDocumentType;
(function (DeedHasDocumentType) {
class IDeedHasDocumentType {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDeedHasDocumentType.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", DocumentType_1.DocumentType.IDocumentType)
], IDeedHasDocumentType.prototype, "document_type", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Deed_1.Deed.IDeed)
], IDeedHasDocumentType.prototype, "deed", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedHasDocumentType.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedHasDocumentType.prototype, "updated_at", void 0);
DeedHasDocumentType.IDeedHasDocumentType = IDeedHasDocumentType;
})(DeedHasDocumentType = exports.DeedHasDocumentType || (exports.DeedHasDocumentType = {}));

16
dist/Interfaces/Notary/DeedType.d.ts vendored Normal file
View File

@ -0,0 +1,16 @@
import { Deed } from "./Deed";
import { DeedTypeHasDocumentType } from "./DeedTypeHasDocumentType";
import { Office } from "./Office";
export declare namespace DeedType {
class IDeedType {
uuid: string;
name: string;
description: string;
archived_at: Date | null;
office: Office.IOffice;
created_at: Date | null;
updated_at: Date | null;
deed?: Deed.IDeed[];
deed_type_has_document_types?: DeedTypeHasDocumentType.IDeedTypeHasDocumentType[];
}
}

61
dist/Interfaces/Notary/DeedType.js vendored Normal file
View File

@ -0,0 +1,61 @@
"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.DeedType = void 0;
const class_validator_1 = require("class-validator");
const Office_1 = require("./Office");
var DeedType;
(function (DeedType) {
class IDeedType {
constructor() {
this.archived_at = null;
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDeedType.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IDeedType.prototype, "name", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IDeedType.prototype, "description", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedType.prototype, "archived_at", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Office_1.Office.IOffice)
], IDeedType.prototype, "office", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedType.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedType.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDeedType.prototype, "deed", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDeedType.prototype, "deed_type_has_document_types", void 0);
DeedType.IDeedType = IDeedType;
})(DeedType = exports.DeedType || (exports.DeedType = {}));

View File

@ -0,0 +1,11 @@
import { DeedType } from "./DeedType";
import { DocumentType } from "./DocumentType";
export declare namespace DeedTypeHasDocumentType {
class IDeedTypeHasDocumentType {
uuid: string;
document_type: DocumentType.IDocumentType;
deed_type: DeedType.IDeedType;
created_at: Date | null;
updated_at: Date | null;
}
}

View File

@ -0,0 +1,45 @@
"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.DeedTypeHasDocumentType = void 0;
const class_validator_1 = require("class-validator");
const DeedType_1 = require("./DeedType");
const DocumentType_1 = require("./DocumentType");
var DeedTypeHasDocumentType;
(function (DeedTypeHasDocumentType) {
class IDeedTypeHasDocumentType {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDeedTypeHasDocumentType.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", DocumentType_1.DocumentType.IDocumentType)
], IDeedTypeHasDocumentType.prototype, "document_type", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", DeedType_1.DeedType.IDeedType)
], IDeedTypeHasDocumentType.prototype, "deed_type", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedTypeHasDocumentType.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDeedTypeHasDocumentType.prototype, "updated_at", void 0);
DeedTypeHasDocumentType.IDeedTypeHasDocumentType = IDeedTypeHasDocumentType;
})(DeedTypeHasDocumentType = exports.DeedTypeHasDocumentType || (exports.DeedTypeHasDocumentType = {}));

19
dist/Interfaces/Notary/Document.d.ts vendored Normal file
View File

@ -0,0 +1,19 @@
import { Customer } from "./Customer";
import { DocumentHistory } from "./DocumentHistory";
import { DocumentType } from "./DocumentType";
import { File } from "./File";
import { OfficeFolder } from "./OfficeFolder";
export declare namespace Document {
class IDocument {
uuid: string;
document_status: EDocumentStatus;
document_type: DocumentType.IDocumentType;
folder: OfficeFolder.IOfficeFolder;
depositor: Customer.ICustomer;
created_at: Date | null;
updated_at: Date | null;
files?: File.IFile[];
document_history?: DocumentHistory.IDocumentHistory[];
}
type EDocumentStatus = "ASKED" | "DEPOSITED" | "VALIDATED" | "ANCHORED" | "REFUSED";
}

62
dist/Interfaces/Notary/Document.js vendored Normal file
View File

@ -0,0 +1,62 @@
"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.Document = void 0;
const class_validator_1 = require("class-validator");
const Customer_1 = require("./Customer");
const DocumentType_1 = require("./DocumentType");
const OfficeFolder_1 = require("./OfficeFolder");
var Document;
(function (Document) {
class IDocument {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDocument.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IDocument.prototype, "document_status", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", DocumentType_1.DocumentType.IDocumentType)
], IDocument.prototype, "document_type", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", OfficeFolder_1.OfficeFolder.IOfficeFolder)
], IDocument.prototype, "folder", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Customer_1.Customer.ICustomer)
], IDocument.prototype, "depositor", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocument.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocument.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDocument.prototype, "files", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDocument.prototype, "document_history", void 0);
Document.IDocument = IDocument;
})(Document = exports.Document || (exports.Document = {}));

View File

@ -0,0 +1,11 @@
import { Document } from "./Document";
export declare namespace DocumentHistory {
class IDocumentHistory {
uuid: string;
document_status: Document.EDocumentStatus;
document: Document.IDocument;
refused_reason: string | null;
created_at: Date | null;
updated_at: Date | null;
}
}

View File

@ -0,0 +1,49 @@
"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.DocumentHistory = void 0;
const class_validator_1 = require("class-validator");
const Document_1 = require("./Document");
var DocumentHistory;
(function (DocumentHistory) {
class IDocumentHistory {
constructor() {
this.refused_reason = null;
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDocumentHistory.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IDocumentHistory.prototype, "document_status", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Document_1.Document.IDocument)
], IDocumentHistory.prototype, "document", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], IDocumentHistory.prototype, "refused_reason", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocumentHistory.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocumentHistory.prototype, "updated_at", void 0);
DocumentHistory.IDocumentHistory = IDocumentHistory;
})(DocumentHistory = exports.DocumentHistory || (exports.DocumentHistory = {}));

View File

@ -0,0 +1,17 @@
import { DeedHasDocumentType } from "./DeedHasDocumentType";
import { Document } from "./Document";
import { DeedTypeHasDocumentType } from "./DeedTypeHasDocumentType";
export declare namespace DocumentType {
class IDocumentType {
uuid: string;
name: string;
public_description: string;
private_description: string | null;
archived_at: Date | null;
created_at: Date | null;
updated_at: Date | null;
documents?: Document.IDocument[];
deed_has_document_types?: DeedHasDocumentType.IDeedHasDocumentType[];
deed_type_has_document_types?: DeedTypeHasDocumentType.IDeedTypeHasDocumentType[];
}
}

65
dist/Interfaces/Notary/DocumentType.js vendored Normal file
View File

@ -0,0 +1,65 @@
"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.DocumentType = void 0;
const class_validator_1 = require("class-validator");
var DocumentType;
(function (DocumentType) {
class IDocumentType {
constructor() {
this.private_description = null;
this.archived_at = null;
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IDocumentType.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IDocumentType.prototype, "name", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IDocumentType.prototype, "public_description", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], IDocumentType.prototype, "private_description", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocumentType.prototype, "archived_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocumentType.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IDocumentType.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDocumentType.prototype, "documents", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDocumentType.prototype, "deed_has_document_types", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IDocumentType.prototype, "deed_type_has_document_types", void 0);
DocumentType.IDocumentType = IDocumentType;
})(DocumentType = exports.DocumentType || (exports.DocumentType = {}));

10
dist/Interfaces/Notary/File.d.ts vendored Normal file
View File

@ -0,0 +1,10 @@
import { Document } from "./Document";
export declare namespace File {
class IFile {
uuid: string;
document: Document.IDocument;
file_path: string | null;
created_at: Date | null;
updated_at: Date | null;
}
}

45
dist/Interfaces/Notary/File.js vendored Normal file
View File

@ -0,0 +1,45 @@
"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.File = void 0;
const class_validator_1 = require("class-validator");
const Document_1 = require("./Document");
var File;
(function (File) {
class IFile {
constructor() {
this.file_path = null;
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IFile.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Document_1.Document.IDocument)
], IFile.prototype, "document", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], IFile.prototype, "file_path", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IFile.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IFile.prototype, "updated_at", void 0);
File.IFile = IFile;
})(File = exports.File || (exports.File = {}));

View File

@ -0,0 +1,11 @@
import { UserHasNotification } from "./UserHasNotification";
export declare namespace Notification {
class INotification {
uuid: string;
message: string;
redirection_url: string;
created_at: Date | null;
updated_at: Date | null;
user_has_notifications?: UserHasNotification.IUserHasNotification[];
}
}

48
dist/Interfaces/Notary/Notification.js vendored Normal file
View File

@ -0,0 +1,48 @@
"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.Notification = void 0;
const class_validator_1 = require("class-validator");
var Notification;
(function (Notification) {
class INotification {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], INotification.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], INotification.prototype, "message", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
(0, class_validator_1.IsUrl)(),
__metadata("design:type", String)
], INotification.prototype, "redirection_url", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], INotification.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], INotification.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], INotification.prototype, "user_has_notifications", void 0);
Notification.INotification = INotification;
})(Notification = exports.Notification || (exports.Notification = {}));

24
dist/Interfaces/Notary/Office.d.ts vendored Normal file
View File

@ -0,0 +1,24 @@
import { Address } from "./Address";
import { DeedType } from "./DeedType";
import { OfficeFolder } from "./OfficeFolder";
import { User } from "./User";
export declare namespace Office {
class IOffice {
uuid: string;
idNot: string;
name: string;
crpcen: string;
address: Address.IAddress;
office_status: EOfficeStatus;
created_at: Date | null;
updated_at: Date | null;
deed_types?: DeedType.IDeedType[];
users?: User.IUser[];
office_folders?: OfficeFolder.IOfficeFolder[];
}
enum EOfficeStatus {
ACTIVATED = "ACTIVATED",
DESACTIVATED = "DESACTIVATED"
}
type TOfficeStatus = EOfficeStatus.ACTIVATED | EOfficeStatus.DESACTIVATED;
}

73
dist/Interfaces/Notary/Office.js vendored Normal file
View File

@ -0,0 +1,73 @@
"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.Office = void 0;
const class_validator_1 = require("class-validator");
const Address_1 = require("./Address");
var Office;
(function (Office) {
class IOffice {
constructor() {
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IOffice.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOffice.prototype, "idNot", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOffice.prototype, "name", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOffice.prototype, "crpcen", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Address_1.Address.IAddress)
], IOffice.prototype, "address", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOffice.prototype, "office_status", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOffice.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOffice.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IOffice.prototype, "deed_types", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IOffice.prototype, "users", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IOffice.prototype, "office_folders", void 0);
Office.IOffice = IOffice;
let EOfficeStatus;
(function (EOfficeStatus) {
EOfficeStatus["ACTIVATED"] = "ACTIVATED";
EOfficeStatus["DESACTIVATED"] = "DESACTIVATED";
})(EOfficeStatus = Office.EOfficeStatus || (Office.EOfficeStatus = {}));
})(Office = exports.Office || (exports.Office = {}));

View File

@ -0,0 +1,23 @@
import { Deed } from "./Deed";
import { Document } from "./Document";
import { Office } from "./Office";
import { OfficeFolderHasCustomer } from "./OfficeFolderHasCustomer";
import { OfficeFolderHasStakeholder } from "./OfficeFolderHasStakeholder";
export declare namespace OfficeFolder {
class IOfficeFolder {
uuid: string;
folder_number: string;
name: string;
description: string | null;
archived_description: string | null;
status: EFolderStatus;
deed: Deed.IDeed;
office: Office.IOffice;
created_at: Date | null;
updated_at: Date | null;
office_folder_has_customers?: OfficeFolderHasCustomer.IOfficeFolderHasCustomer[];
office_folder_has_stakeholder?: OfficeFolderHasStakeholder.IOfficeFolderHasStakeholder[];
documents?: Document.IDocument[];
}
type EFolderStatus = "LIVE" | "ARCHIVED";
}

79
dist/Interfaces/Notary/OfficeFolder.js vendored Normal file
View File

@ -0,0 +1,79 @@
"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.OfficeFolder = void 0;
const class_validator_1 = require("class-validator");
const Deed_1 = require("./Deed");
const Office_1 = require("./Office");
var OfficeFolder;
(function (OfficeFolder) {
class IOfficeFolder {
constructor() {
this.description = null;
this.archived_description = null;
this.created_at = null;
this.updated_at = null;
}
}
__decorate([
(0, class_validator_1.IsNotEmpty)(),
__metadata("design:type", String)
], IOfficeFolder.prototype, "uuid", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOfficeFolder.prototype, "folder_number", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOfficeFolder.prototype, "name", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], IOfficeFolder.prototype, "description", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], IOfficeFolder.prototype, "archived_description", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", String)
], IOfficeFolder.prototype, "status", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Deed_1.Deed.IDeed)
], IOfficeFolder.prototype, "deed", void 0);
__decorate([
(0, class_validator_1.IsNotEmpty)({ groups: ["create"] }),
__metadata("design:type", Office_1.Office.IOffice)
], IOfficeFolder.prototype, "office", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOfficeFolder.prototype, "created_at", void 0);
__decorate([
(0, class_validator_1.IsDate)(),
__metadata("design:type", Object)
], IOfficeFolder.prototype, "updated_at", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IOfficeFolder.prototype, "office_folder_has_customers", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IOfficeFolder.prototype, "office_folder_has_stakeholder", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Array)
], IOfficeFolder.prototype, "documents", void 0);
OfficeFolder.IOfficeFolder = IOfficeFolder;
})(OfficeFolder = exports.OfficeFolder || (exports.OfficeFolder = {}));

Some files were not shown because too many files have changed in this diff Show More