From 561f49e9cbf747906f28145eb8fd2c8890261d7e Mon Sep 17 00:00:00 2001 From: Hugo Lextrait Date: Mon, 27 Mar 2023 15:36:22 +0200 Subject: [PATCH] add custom index for each namespace --- dist/Admin/Address.d.ts | 7 +- dist/Admin/Address.js | 23 ++-- dist/Admin/Contact.d.ts | 7 +- dist/Admin/Contact.js | 23 ++-- dist/Admin/Customer.d.ts | 7 +- dist/Admin/Customer.js | 25 ++-- dist/Admin/Deed.d.ts | 7 +- dist/Admin/Deed.js | 23 ++-- dist/Admin/DeedHasDocumentType.d.ts | 7 +- dist/Admin/DeedHasDocumentType.js | 23 ++-- dist/Admin/DeedType.d.ts | 7 +- dist/Admin/DeedType.js | 23 ++-- dist/Admin/DeedTypeHasDocumentType.d.ts | 7 +- dist/Admin/DeedTypeHasDocumentType.js | 23 ++-- dist/Admin/Document.d.ts | 7 +- dist/Admin/Document.js | 23 ++-- dist/Admin/DocumentHistory.d.ts | 7 +- dist/Admin/DocumentHistory.js | 23 ++-- dist/Admin/DocumentType.d.ts | 7 +- dist/Admin/DocumentType.js | 23 ++-- dist/Admin/File.d.ts | 7 +- dist/Admin/File.js | 23 ++-- dist/Admin/Notification.d.ts | 7 +- dist/Admin/Notification.js | 23 ++-- dist/Admin/Office.d.ts | 7 +- dist/Admin/Office.js | 23 ++-- dist/Admin/OfficeFolder.d.ts | 7 +- dist/Admin/OfficeFolder.js | 23 ++-- dist/Admin/OfficeFolderHasCustomer.d.ts | 7 +- dist/Admin/OfficeFolderHasCustomer.js | 23 ++-- dist/Admin/OfficeFolderHasStakeholder.d.ts | 7 +- dist/Admin/OfficeFolderHasStakeholder.js | 23 ++-- dist/Admin/User.d.ts | 7 +- dist/Admin/User.js | 23 ++-- dist/Admin/UserHasNotification.d.ts | 7 +- dist/Admin/UserHasNotification.js | 23 ++-- dist/Admin/index.d.ts | 17 +++ dist/Admin/index.js | 35 ++++++ dist/Customer/Address.d.ts | 21 ++-- dist/Customer/Address.js | 73 +++++------ dist/Customer/Contact.d.ts | 43 +++---- dist/Customer/Contact.js | 115 ++++++++---------- dist/Customer/Customer.d.ts | 17 +++ dist/Customer/Customer.js | 48 ++++++++ dist/Customer/Deed.d.ts | 17 ++- dist/Customer/Deed.js | 55 ++++----- dist/Customer/DeedHasDocumentType.d.ts | 15 +-- dist/Customer/DeedHasDocumentType.js | 55 ++++----- dist/Customer/DeedType.d.ts | 23 ++-- dist/Customer/DeedType.js | 81 ++++++------ dist/Customer/DeedTypeHasDocumentType.d.ts | 15 +-- dist/Customer/DeedTypeHasDocumentType.js | 55 ++++----- dist/Customer/Document.d.ts | 39 +++--- dist/Customer/Document.js | 96 +++++++-------- dist/Customer/DocumentHistory.d.ts | 19 ++- dist/Customer/DocumentHistory.js | 61 ++++------ dist/Customer/DocumentType.d.ts | 25 ++-- dist/Customer/DocumentType.js | 83 +++++-------- dist/Customer/File.d.ts | 15 +-- dist/Customer/File.js | 53 ++++---- dist/Customer/Notification.d.ts | 17 ++- dist/Customer/Notification.js | 61 ++++------ dist/Customer/Office.d.ts | 37 +++--- dist/Customer/Office.js | 102 +++++++--------- dist/Customer/OfficeFolder.d.ts | 41 +++---- dist/Customer/OfficeFolder.js | 114 +++++++---------- dist/Customer/OfficeFolderHasCustomer.d.ts | 15 +-- dist/Customer/OfficeFolderHasCustomer.js | 55 ++++----- dist/Customer/OfficeFolderHasStakeholder.d.ts | 15 +-- dist/Customer/OfficeFolderHasStakeholder.js | 55 ++++----- dist/Customer/UserHasNotification.d.ts | 21 ++-- dist/Customer/UserHasNotification.js | 61 +++++----- dist/Customer/index.d.ts | 37 +++--- dist/Customer/index.js | 91 ++++++-------- dist/Notary/Address.d.ts | 7 +- dist/Notary/Address.js | 23 ++-- dist/Notary/Contact.d.ts | 7 +- dist/Notary/Contact.js | 23 ++-- dist/Notary/Customer.d.ts | 7 +- dist/Notary/Customer.js | 25 ++-- dist/Notary/Deed.d.ts | 7 +- dist/Notary/Deed.js | 23 ++-- dist/Notary/DeedHasDocumentType.d.ts | 7 +- dist/Notary/DeedHasDocumentType.js | 23 ++-- dist/Notary/DeedType.d.ts | 7 +- dist/Notary/DeedType.js | 23 ++-- dist/Notary/DeedTypeHasDocumentType.d.ts | 7 +- dist/Notary/DeedTypeHasDocumentType.js | 23 ++-- dist/Notary/Document.d.ts | 7 +- dist/Notary/Document.js | 23 ++-- dist/Notary/DocumentHistory.d.ts | 7 +- dist/Notary/DocumentHistory.js | 23 ++-- dist/Notary/DocumentType.d.ts | 7 +- dist/Notary/DocumentType.js | 23 ++-- dist/Notary/File.d.ts | 7 +- dist/Notary/File.js | 23 ++-- dist/Notary/Notification.d.ts | 7 +- dist/Notary/Notification.js | 23 ++-- dist/Notary/Office.d.ts | 7 +- dist/Notary/Office.js | 23 ++-- dist/Notary/OfficeFolder.d.ts | 7 +- dist/Notary/OfficeFolder.js | 23 ++-- dist/Notary/OfficeFolderHasCustomer.d.ts | 7 +- dist/Notary/OfficeFolderHasCustomer.js | 23 ++-- dist/Notary/OfficeFolderHasStakeholder.d.ts | 7 +- dist/Notary/OfficeFolderHasStakeholder.js | 23 ++-- dist/Notary/User.d.ts | 21 ++-- dist/Notary/User.js | 79 ++++++------ dist/Notary/UserHasNotification.d.ts | 7 +- dist/Notary/UserHasNotification.js | 23 ++-- dist/Notary/index.d.ts | 18 ++- dist/Notary/index.js | 36 +++++- dist/Resource.d.ts | 7 ++ dist/Resource.js | 50 ++++++++ dist/SuperAdmin/Address.d.ts | 7 +- dist/SuperAdmin/Address.js | 23 ++-- dist/SuperAdmin/Contact.d.ts | 7 +- dist/SuperAdmin/Contact.js | 23 ++-- dist/SuperAdmin/Customer.d.ts | 7 +- dist/SuperAdmin/Customer.js | 23 ++-- dist/SuperAdmin/Deed.d.ts | 7 +- dist/SuperAdmin/Deed.js | 23 ++-- dist/SuperAdmin/DeedHasDocumentType.d.ts | 7 +- dist/SuperAdmin/DeedHasDocumentType.js | 23 ++-- dist/SuperAdmin/DeedType.d.ts | 7 +- dist/SuperAdmin/DeedType.js | 23 ++-- dist/SuperAdmin/DeedTypeHasDocumentType.d.ts | 7 +- dist/SuperAdmin/DeedTypeHasDocumentType.js | 23 ++-- dist/SuperAdmin/Document.d.ts | 7 +- dist/SuperAdmin/Document.js | 23 ++-- dist/SuperAdmin/DocumentHistory.d.ts | 7 +- dist/SuperAdmin/DocumentHistory.js | 23 ++-- dist/SuperAdmin/DocumentType.d.ts | 7 +- dist/SuperAdmin/DocumentType.js | 23 ++-- dist/SuperAdmin/File.d.ts | 7 +- dist/SuperAdmin/File.js | 23 ++-- dist/SuperAdmin/Notification.d.ts | 7 +- dist/SuperAdmin/Notification.js | 23 ++-- dist/SuperAdmin/Office.d.ts | 7 +- dist/SuperAdmin/Office.js | 23 ++-- dist/SuperAdmin/OfficeFolder.d.ts | 7 +- dist/SuperAdmin/OfficeFolder.js | 23 ++-- dist/SuperAdmin/OfficeFolderHasCustomer.d.ts | 7 +- dist/SuperAdmin/OfficeFolderHasCustomer.js | 23 ++-- .../OfficeFolderHasStakeholder.d.ts | 7 +- dist/SuperAdmin/OfficeFolderHasStakeholder.js | 23 ++-- dist/SuperAdmin/User.d.ts | 7 +- dist/SuperAdmin/User.js | 23 ++-- dist/SuperAdmin/UserHasNotification.d.ts | 7 +- dist/SuperAdmin/UserHasNotification.js | 25 ++-- dist/SuperAdmin/index.d.ts | 19 +++ dist/SuperAdmin/index.js | 42 +++++++ package-lock.json | 15 ++- package.json | 1 + src/Admin/Address.ts | 9 +- src/Admin/Contact.ts | 9 +- src/Admin/Customer.ts | 9 +- src/Admin/Deed.ts | 9 +- src/Admin/DeedHasDocumentType.ts | 9 +- src/Admin/DeedType.ts | 9 +- src/Admin/DeedTypeHasDocumentType.ts | 7 +- src/Admin/Document.ts | 7 +- src/Admin/DocumentHistory.ts | 7 +- src/Admin/DocumentType.ts | 7 +- src/Admin/File.ts | 7 +- src/Admin/Notification.ts | 7 +- src/Admin/Office.ts | 21 +++- src/Admin/OfficeFolder.ts | 9 +- src/Admin/OfficeFolderHasCustomer.ts | 7 +- src/Admin/OfficeFolderHasStakeholder.ts | 7 +- src/Admin/User.ts | 9 +- src/Admin/UserHasNotification.ts | 7 +- src/Admin/index.ts | 17 +++ src/Customer/Address.ts | 38 +++--- src/Customer/Contact.ts | 68 +++++------ src/Customer/Customer.ts | 31 +++++ src/Customer/Deed.ts | 30 ++--- src/Customer/DeedHasDocumentType.ts | 26 ++-- src/Customer/DeedType.ts | 43 +++---- src/Customer/DeedTypeHasDocumentType.ts | 26 ++-- src/Customer/Document.ts | 68 +++++------ src/Customer/DocumentHistory.ts | 33 ++--- src/Customer/DocumentType.ts | 44 +++---- src/Customer/File.ts | 27 ++-- src/Customer/Notification.ts | 33 ++--- src/Customer/Office.ts | 65 +++++----- src/Customer/OfficeFolder.ts | 65 ++++------ src/Customer/OfficeFolderHasCustomer.ts | 26 ++-- src/Customer/OfficeFolderHasStakeholder.ts | 26 ++-- src/Customer/UserHasNotification.ts | 32 +++-- src/Customer/index.ts | 55 +++------ src/Notary/Address.ts | 9 +- src/Notary/Contact.ts | 9 +- src/Notary/Customer.ts | 9 +- src/Notary/Deed.ts | 9 +- src/Notary/DeedHasDocumentType.ts | 9 +- src/Notary/DeedType.ts | 9 +- src/Notary/DeedTypeHasDocumentType.ts | 7 +- src/Notary/Document.ts | 7 +- src/Notary/DocumentHistory.ts | 7 +- src/Notary/DocumentType.ts | 7 +- src/Notary/File.ts | 7 +- src/Notary/Notification.ts | 7 +- src/Notary/Office.ts | 21 +++- src/Notary/OfficeFolder.ts | 9 +- src/Notary/OfficeFolderHasCustomer.ts | 7 +- src/Notary/OfficeFolderHasStakeholder.ts | 7 +- src/Notary/User.ts | 38 +++--- src/Notary/UserHasNotification.ts | 7 +- src/Notary/index.ts | 18 ++- src/Resource.ts | 16 +++ src/SuperAdmin/Address.ts | 9 +- src/SuperAdmin/Contact.ts | 9 +- src/SuperAdmin/Customer.ts | 9 +- src/SuperAdmin/Deed.ts | 9 +- src/SuperAdmin/DeedHasDocumentType.ts | 9 +- src/SuperAdmin/DeedType.ts | 9 +- src/SuperAdmin/DeedTypeHasDocumentType.ts | 7 +- src/SuperAdmin/Document.ts | 7 +- src/SuperAdmin/DocumentHistory.ts | 7 +- src/SuperAdmin/DocumentType.ts | 7 +- src/SuperAdmin/File.ts | 7 +- src/SuperAdmin/Notification.ts | 7 +- src/SuperAdmin/Office.ts | 21 +++- src/SuperAdmin/OfficeFolder.ts | 9 +- src/SuperAdmin/OfficeFolderHasCustomer.ts | 7 +- src/SuperAdmin/OfficeFolderHasStakeholder.ts | 7 +- src/SuperAdmin/User.ts | 9 +- src/SuperAdmin/UserHasNotification.ts | 7 +- src/SuperAdmin/index.ts | 20 +++ 230 files changed, 2615 insertions(+), 2371 deletions(-) create mode 100644 dist/Customer/Customer.d.ts create mode 100644 dist/Customer/Customer.js create mode 100644 dist/Resource.d.ts create mode 100644 dist/Resource.js create mode 100644 dist/SuperAdmin/index.d.ts create mode 100644 dist/SuperAdmin/index.js create mode 100644 src/Customer/Customer.ts create mode 100644 src/Resource.ts create mode 100644 src/SuperAdmin/index.ts diff --git a/dist/Admin/Address.d.ts b/dist/Admin/Address.d.ts index d9411bc..e192835 100644 --- a/dist/Admin/Address.d.ts +++ b/dist/Admin/Address.d.ts @@ -1,6 +1,3 @@ -import Address_ from "../Notary/Address"; -declare namespace Address { - class IAddress extends Address_.IAddress { - } -} +export * from "../Notary/Address"; +import Address from "../Notary/Address"; export default Address; diff --git a/dist/Admin/Address.js b/dist/Admin/Address.js index 720aa1d..24837c5 100644 --- a/dist/Admin/Address.js +++ b/dist/Admin/Address.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Notary/Address"), exports); const Address_1 = __importDefault(require("../Notary/Address")); -var Address; -(function (Address) { - class IAddress extends Address_1.default.IAddress { - } - Address.IAddress = IAddress; -})(Address || (Address = {})); -exports.default = Address; +exports.default = Address_1.default; diff --git a/dist/Admin/Contact.d.ts b/dist/Admin/Contact.d.ts index 19092ee..85c2569 100644 --- a/dist/Admin/Contact.d.ts +++ b/dist/Admin/Contact.d.ts @@ -1,6 +1,3 @@ -import Contact_ from "../Notary/Contact"; -declare namespace Contact { - class IContact extends Contact_.IContact { - } -} +export * from "../Notary/Contact"; +import Contact from "../Notary/Contact"; export default Contact; diff --git a/dist/Admin/Contact.js b/dist/Admin/Contact.js index bffdf59..2cc8da2 100644 --- a/dist/Admin/Contact.js +++ b/dist/Admin/Contact.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Notary/Contact"), exports); const Contact_1 = __importDefault(require("../Notary/Contact")); -var Contact; -(function (Contact) { - class IContact extends Contact_1.default.IContact { - } - Contact.IContact = IContact; -})(Contact || (Contact = {})); -exports.default = Contact; +exports.default = Contact_1.default; diff --git a/dist/Admin/Customer.d.ts b/dist/Admin/Customer.d.ts index 3b0283a..b479958 100644 --- a/dist/Admin/Customer.d.ts +++ b/dist/Admin/Customer.d.ts @@ -1,6 +1,3 @@ -import Customer_ from "../Customer"; -declare namespace Customer { - class ICustomer extends Customer_.ICustomer { - } -} +export * from "../Notary/Customer"; +import Customer from "../Notary/Customer"; export default Customer; diff --git a/dist/Admin/Customer.js b/dist/Admin/Customer.js index 4b02da6..c0b58a4 100644 --- a/dist/Admin/Customer.js +++ b/dist/Admin/Customer.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -const Customer_1 = __importDefault(require("../Customer")); -var Customer; -(function (Customer) { - class ICustomer extends Customer_1.default.ICustomer { - } - Customer.ICustomer = ICustomer; -})(Customer || (Customer = {})); -exports.default = Customer; +__exportStar(require("../Notary/Customer"), exports); +const Customer_1 = __importDefault(require("../Notary/Customer")); +exports.default = Customer_1.default; diff --git a/dist/Admin/Deed.d.ts b/dist/Admin/Deed.d.ts index 1e3ffea..72c9212 100644 --- a/dist/Admin/Deed.d.ts +++ b/dist/Admin/Deed.d.ts @@ -1,6 +1,3 @@ -import Deed_ from "../Notary/Deed"; -declare namespace Deed { - class IDeed extends Deed_.IDeed { - } -} +export * from "../Notary/Deed"; +import Deed from "../Notary/Deed"; export default Deed; diff --git a/dist/Admin/Deed.js b/dist/Admin/Deed.js index 2be90af..38aa4c0 100644 --- a/dist/Admin/Deed.js +++ b/dist/Admin/Deed.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Notary/Deed"), exports); const Deed_1 = __importDefault(require("../Notary/Deed")); -var Deed; -(function (Deed) { - class IDeed extends Deed_1.default.IDeed { - } - Deed.IDeed = IDeed; -})(Deed || (Deed = {})); -exports.default = Deed; +exports.default = Deed_1.default; diff --git a/dist/Admin/DeedHasDocumentType.d.ts b/dist/Admin/DeedHasDocumentType.d.ts index 88a7d57..20cd8c2 100644 --- a/dist/Admin/DeedHasDocumentType.d.ts +++ b/dist/Admin/DeedHasDocumentType.d.ts @@ -1,6 +1,3 @@ -import DeedHasDocumentType_ from "../Notary/DeedHasDocumentType"; -declare namespace DeedHasDocumentType { - class IDeedHasDocumentType extends DeedHasDocumentType_.IDeedHasDocumentType { - } -} +export * from "../Notary/DeedHasDocumentType"; +import DeedHasDocumentType from "../Notary/DeedHasDocumentType"; export default DeedHasDocumentType; diff --git a/dist/Admin/DeedHasDocumentType.js b/dist/Admin/DeedHasDocumentType.js index 591366e..a04ecbf 100644 --- a/dist/Admin/DeedHasDocumentType.js +++ b/dist/Admin/DeedHasDocumentType.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Notary/DeedHasDocumentType"), exports); const DeedHasDocumentType_1 = __importDefault(require("../Notary/DeedHasDocumentType")); -var DeedHasDocumentType; -(function (DeedHasDocumentType) { - class IDeedHasDocumentType extends DeedHasDocumentType_1.default.IDeedHasDocumentType { - } - DeedHasDocumentType.IDeedHasDocumentType = IDeedHasDocumentType; -})(DeedHasDocumentType || (DeedHasDocumentType = {})); -exports.default = DeedHasDocumentType; +exports.default = DeedHasDocumentType_1.default; diff --git a/dist/Admin/DeedType.d.ts b/dist/Admin/DeedType.d.ts index f45beca..4a1ed9c 100644 --- a/dist/Admin/DeedType.d.ts +++ b/dist/Admin/DeedType.d.ts @@ -1,6 +1,3 @@ -import DeedType_ from "../Notary/DeedType"; -declare namespace DeedType { - class IDeedType extends DeedType_.IDeedType { - } -} +export * from "../Notary/DeedType"; +import DeedType from "../Notary/DeedType"; export default DeedType; diff --git a/dist/Admin/DeedType.js b/dist/Admin/DeedType.js index 1657b06..3f49793 100644 --- a/dist/Admin/DeedType.js +++ b/dist/Admin/DeedType.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Notary/DeedType"), exports); const DeedType_1 = __importDefault(require("../Notary/DeedType")); -var DeedType; -(function (DeedType) { - class IDeedType extends DeedType_1.default.IDeedType { - } - DeedType.IDeedType = IDeedType; -})(DeedType || (DeedType = {})); -exports.default = DeedType; +exports.default = DeedType_1.default; diff --git a/dist/Admin/DeedTypeHasDocumentType.d.ts b/dist/Admin/DeedTypeHasDocumentType.d.ts index 6365afa..68e72aa 100644 --- a/dist/Admin/DeedTypeHasDocumentType.d.ts +++ b/dist/Admin/DeedTypeHasDocumentType.d.ts @@ -1,6 +1,3 @@ -import DeedTypeHasDocumentType_ from "../Notary/DeedTypeHasDocumentType"; -declare namespace DeedTypeHasDocumentType { - class IDeedTypeHasDocumentType extends DeedTypeHasDocumentType_.IDeedTypeHasDocumentType { - } -} +export * from "../Notary/DeedTypeHasDocumentType"; +import DeedTypeHasDocumentType from "../Notary/DeedTypeHasDocumentType"; export default DeedTypeHasDocumentType; diff --git a/dist/Admin/DeedTypeHasDocumentType.js b/dist/Admin/DeedTypeHasDocumentType.js index 88b6471..9ff7e33 100644 --- a/dist/Admin/DeedTypeHasDocumentType.js +++ b/dist/Admin/DeedTypeHasDocumentType.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Notary/DeedTypeHasDocumentType"), exports); const DeedTypeHasDocumentType_1 = __importDefault(require("../Notary/DeedTypeHasDocumentType")); -var DeedTypeHasDocumentType; -(function (DeedTypeHasDocumentType) { - class IDeedTypeHasDocumentType extends DeedTypeHasDocumentType_1.default.IDeedTypeHasDocumentType { - } - DeedTypeHasDocumentType.IDeedTypeHasDocumentType = IDeedTypeHasDocumentType; -})(DeedTypeHasDocumentType || (DeedTypeHasDocumentType = {})); -exports.default = DeedTypeHasDocumentType; +exports.default = DeedTypeHasDocumentType_1.default; diff --git a/dist/Admin/Document.d.ts b/dist/Admin/Document.d.ts index 526eb68..e63bd48 100644 --- a/dist/Admin/Document.d.ts +++ b/dist/Admin/Document.d.ts @@ -1,6 +1,3 @@ -import Document_ from "../Notary/Document"; -declare namespace Document { - class IDocument extends Document_.IDocument { - } -} +export * from "../Notary/Document"; +import Document from "../Notary/Document"; export default Document; diff --git a/dist/Admin/Document.js b/dist/Admin/Document.js index 93d4b37..d66c15b 100644 --- a/dist/Admin/Document.js +++ b/dist/Admin/Document.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Notary/Document"), exports); const Document_1 = __importDefault(require("../Notary/Document")); -var Document; -(function (Document) { - class IDocument extends Document_1.default.IDocument { - } - Document.IDocument = IDocument; -})(Document || (Document = {})); -exports.default = Document; +exports.default = Document_1.default; diff --git a/dist/Admin/DocumentHistory.d.ts b/dist/Admin/DocumentHistory.d.ts index dc801de..af93dd6 100644 --- a/dist/Admin/DocumentHistory.d.ts +++ b/dist/Admin/DocumentHistory.d.ts @@ -1,6 +1,3 @@ -import DocumentHistory_ from "../Notary/DocumentHistory"; -declare namespace DocumentHistory { - class IDocumentHistory extends DocumentHistory_.IDocumentHistory { - } -} +export * from "../Notary/DocumentHistory"; +import DocumentHistory from "../Notary/DocumentHistory"; export default DocumentHistory; diff --git a/dist/Admin/DocumentHistory.js b/dist/Admin/DocumentHistory.js index eace85d..02975c8 100644 --- a/dist/Admin/DocumentHistory.js +++ b/dist/Admin/DocumentHistory.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Notary/DocumentHistory"), exports); const DocumentHistory_1 = __importDefault(require("../Notary/DocumentHistory")); -var DocumentHistory; -(function (DocumentHistory) { - class IDocumentHistory extends DocumentHistory_1.default.IDocumentHistory { - } - DocumentHistory.IDocumentHistory = IDocumentHistory; -})(DocumentHistory || (DocumentHistory = {})); -exports.default = DocumentHistory; +exports.default = DocumentHistory_1.default; diff --git a/dist/Admin/DocumentType.d.ts b/dist/Admin/DocumentType.d.ts index 96b70df..318c6f8 100644 --- a/dist/Admin/DocumentType.d.ts +++ b/dist/Admin/DocumentType.d.ts @@ -1,6 +1,3 @@ -import DocumentType_ from "../Notary/DocumentType"; -declare namespace DocumentType { - class IDocumentType extends DocumentType_.IDocumentType { - } -} +export * from "../Notary/DocumentType"; +import DocumentType from "../Notary/DocumentType"; export default DocumentType; diff --git a/dist/Admin/DocumentType.js b/dist/Admin/DocumentType.js index b2592a8..02c7f35 100644 --- a/dist/Admin/DocumentType.js +++ b/dist/Admin/DocumentType.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Notary/DocumentType"), exports); const DocumentType_1 = __importDefault(require("../Notary/DocumentType")); -var DocumentType; -(function (DocumentType) { - class IDocumentType extends DocumentType_1.default.IDocumentType { - } - DocumentType.IDocumentType = IDocumentType; -})(DocumentType || (DocumentType = {})); -exports.default = DocumentType; +exports.default = DocumentType_1.default; diff --git a/dist/Admin/File.d.ts b/dist/Admin/File.d.ts index bb09371..b0e6e0d 100644 --- a/dist/Admin/File.d.ts +++ b/dist/Admin/File.d.ts @@ -1,6 +1,3 @@ -import File_ from "../Notary/File"; -declare namespace File { - class IFile extends File_.IFile { - } -} +export * from "../Notary/File"; +import File from "../Notary/File"; export default File; diff --git a/dist/Admin/File.js b/dist/Admin/File.js index a72ce81..86d145e 100644 --- a/dist/Admin/File.js +++ b/dist/Admin/File.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Notary/File"), exports); const File_1 = __importDefault(require("../Notary/File")); -var File; -(function (File) { - class IFile extends File_1.default.IFile { - } - File.IFile = IFile; -})(File || (File = {})); -exports.default = File; +exports.default = File_1.default; diff --git a/dist/Admin/Notification.d.ts b/dist/Admin/Notification.d.ts index adc209f..5ba1289 100644 --- a/dist/Admin/Notification.d.ts +++ b/dist/Admin/Notification.d.ts @@ -1,6 +1,3 @@ -import Notification_ from "../Notary/Notification"; -declare namespace Notification { - class INotification extends Notification_.INotification { - } -} +export * from "../Notary/Notification"; +import Notification from "../Notary/Notification"; export default Notification; diff --git a/dist/Admin/Notification.js b/dist/Admin/Notification.js index 2b1838b..b6cdf27 100644 --- a/dist/Admin/Notification.js +++ b/dist/Admin/Notification.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Notary/Notification"), exports); const Notification_1 = __importDefault(require("../Notary/Notification")); -var Notification; -(function (Notification) { - class INotification extends Notification_1.default.INotification { - } - Notification.INotification = INotification; -})(Notification || (Notification = {})); -exports.default = Notification; +exports.default = Notification_1.default; diff --git a/dist/Admin/Office.d.ts b/dist/Admin/Office.d.ts index d4b5f98..4d2c604 100644 --- a/dist/Admin/Office.d.ts +++ b/dist/Admin/Office.d.ts @@ -1,6 +1,3 @@ -import Office_ from "../Notary/Office"; -declare namespace Office { - class IOffice extends Office_.IOffice { - } -} +export * from "../Notary/Office"; +import Office from "../Notary/Office"; export default Office; diff --git a/dist/Admin/Office.js b/dist/Admin/Office.js index 4ac13bb..a2dea2f 100644 --- a/dist/Admin/Office.js +++ b/dist/Admin/Office.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Notary/Office"), exports); const Office_1 = __importDefault(require("../Notary/Office")); -var Office; -(function (Office) { - class IOffice extends Office_1.default.IOffice { - } - Office.IOffice = IOffice; -})(Office || (Office = {})); -exports.default = Office; +exports.default = Office_1.default; diff --git a/dist/Admin/OfficeFolder.d.ts b/dist/Admin/OfficeFolder.d.ts index 88deed3..98a2089 100644 --- a/dist/Admin/OfficeFolder.d.ts +++ b/dist/Admin/OfficeFolder.d.ts @@ -1,6 +1,3 @@ -import OfficeFolder_ from "../Notary/OfficeFolder"; -declare namespace OfficeFolder { - class IOfficeFolder extends OfficeFolder_.IOfficeFolder { - } -} +export * from "../Notary/OfficeFolder"; +import OfficeFolder from "../Notary/OfficeFolder"; export default OfficeFolder; diff --git a/dist/Admin/OfficeFolder.js b/dist/Admin/OfficeFolder.js index f306cd8..6165b36 100644 --- a/dist/Admin/OfficeFolder.js +++ b/dist/Admin/OfficeFolder.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Notary/OfficeFolder"), exports); const OfficeFolder_1 = __importDefault(require("../Notary/OfficeFolder")); -var OfficeFolder; -(function (OfficeFolder) { - class IOfficeFolder extends OfficeFolder_1.default.IOfficeFolder { - } - OfficeFolder.IOfficeFolder = IOfficeFolder; -})(OfficeFolder || (OfficeFolder = {})); -exports.default = OfficeFolder; +exports.default = OfficeFolder_1.default; diff --git a/dist/Admin/OfficeFolderHasCustomer.d.ts b/dist/Admin/OfficeFolderHasCustomer.d.ts index f95c250..c63b469 100644 --- a/dist/Admin/OfficeFolderHasCustomer.d.ts +++ b/dist/Admin/OfficeFolderHasCustomer.d.ts @@ -1,6 +1,3 @@ -import OfficeFolderHasCustomer_ from "../Notary/OfficeFolderHasCustomer"; -declare namespace OfficeFolderHasCustomer { - class IOfficeFolderHasCustomer extends OfficeFolderHasCustomer_.IOfficeFolderHasCustomer { - } -} +export * from "../Notary/OfficeFolderHasCustomer"; +import OfficeFolderHasCustomer from "../Notary/OfficeFolderHasCustomer"; export default OfficeFolderHasCustomer; diff --git a/dist/Admin/OfficeFolderHasCustomer.js b/dist/Admin/OfficeFolderHasCustomer.js index 1d3c6a8..4cc9c65 100644 --- a/dist/Admin/OfficeFolderHasCustomer.js +++ b/dist/Admin/OfficeFolderHasCustomer.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Notary/OfficeFolderHasCustomer"), exports); const OfficeFolderHasCustomer_1 = __importDefault(require("../Notary/OfficeFolderHasCustomer")); -var OfficeFolderHasCustomer; -(function (OfficeFolderHasCustomer) { - class IOfficeFolderHasCustomer extends OfficeFolderHasCustomer_1.default.IOfficeFolderHasCustomer { - } - OfficeFolderHasCustomer.IOfficeFolderHasCustomer = IOfficeFolderHasCustomer; -})(OfficeFolderHasCustomer || (OfficeFolderHasCustomer = {})); -exports.default = OfficeFolderHasCustomer; +exports.default = OfficeFolderHasCustomer_1.default; diff --git a/dist/Admin/OfficeFolderHasStakeholder.d.ts b/dist/Admin/OfficeFolderHasStakeholder.d.ts index e743a16..c3f60e6 100644 --- a/dist/Admin/OfficeFolderHasStakeholder.d.ts +++ b/dist/Admin/OfficeFolderHasStakeholder.d.ts @@ -1,6 +1,3 @@ -import OfficeFolderHasStakeholder_ from "../Notary/OfficeFolderHasStakeholder"; -declare namespace OfficeFolderHasStakeholder { - class IOfficeFolderHasStakeholder extends OfficeFolderHasStakeholder_.IOfficeFolderHasStakeholder { - } -} +export * from "../Notary/OfficeFolderHasStakeholder"; +import OfficeFolderHasStakeholder from "../Notary/OfficeFolderHasStakeholder"; export default OfficeFolderHasStakeholder; diff --git a/dist/Admin/OfficeFolderHasStakeholder.js b/dist/Admin/OfficeFolderHasStakeholder.js index e7aae1a..9bd64cf 100644 --- a/dist/Admin/OfficeFolderHasStakeholder.js +++ b/dist/Admin/OfficeFolderHasStakeholder.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Notary/OfficeFolderHasStakeholder"), exports); const OfficeFolderHasStakeholder_1 = __importDefault(require("../Notary/OfficeFolderHasStakeholder")); -var OfficeFolderHasStakeholder; -(function (OfficeFolderHasStakeholder) { - class IOfficeFolderHasStakeholder extends OfficeFolderHasStakeholder_1.default.IOfficeFolderHasStakeholder { - } - OfficeFolderHasStakeholder.IOfficeFolderHasStakeholder = IOfficeFolderHasStakeholder; -})(OfficeFolderHasStakeholder || (OfficeFolderHasStakeholder = {})); -exports.default = OfficeFolderHasStakeholder; +exports.default = OfficeFolderHasStakeholder_1.default; diff --git a/dist/Admin/User.d.ts b/dist/Admin/User.d.ts index b98e4d3..e580fb8 100644 --- a/dist/Admin/User.d.ts +++ b/dist/Admin/User.d.ts @@ -1,6 +1,3 @@ -import User_ from "../Notary/User"; -declare namespace User { - class IUser extends User_.IUser { - } -} +export * from "../Notary/User"; +import User from "../Notary/User"; export default User; diff --git a/dist/Admin/User.js b/dist/Admin/User.js index 3689f46..3bce27a 100644 --- a/dist/Admin/User.js +++ b/dist/Admin/User.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Notary/User"), exports); const User_1 = __importDefault(require("../Notary/User")); -var User; -(function (User) { - class IUser extends User_1.default.IUser { - } - User.IUser = IUser; -})(User || (User = {})); -exports.default = User; +exports.default = User_1.default; diff --git a/dist/Admin/UserHasNotification.d.ts b/dist/Admin/UserHasNotification.d.ts index 4c4ef2f..1ae8b02 100644 --- a/dist/Admin/UserHasNotification.d.ts +++ b/dist/Admin/UserHasNotification.d.ts @@ -1,6 +1,3 @@ -import UserHasNotification_ from "../Notary/UserHasNotification"; -declare namespace UserHasNotification { - class IUserHasNotification extends UserHasNotification_.IUserHasNotification { - } -} +export * from "../Notary/UserHasNotification"; +import UserHasNotification from "../Notary/UserHasNotification"; export default UserHasNotification; diff --git a/dist/Admin/UserHasNotification.js b/dist/Admin/UserHasNotification.js index c471b5b..0b647f9 100644 --- a/dist/Admin/UserHasNotification.js +++ b/dist/Admin/UserHasNotification.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Notary/UserHasNotification"), exports); const UserHasNotification_1 = __importDefault(require("../Notary/UserHasNotification")); -var UserHasNotification; -(function (UserHasNotification) { - class IUserHasNotification extends UserHasNotification_1.default.IUserHasNotification { - } - UserHasNotification.IUserHasNotification = IUserHasNotification; -})(UserHasNotification || (UserHasNotification = {})); -exports.default = UserHasNotification; +exports.default = UserHasNotification_1.default; diff --git a/dist/Admin/index.d.ts b/dist/Admin/index.d.ts index 472e48d..4c44553 100644 --- a/dist/Admin/index.d.ts +++ b/dist/Admin/index.d.ts @@ -1,2 +1,19 @@ import User from "./User"; export default User; +export { default as Address } from "../SuperAdmin/Address"; +export { default as Customer } from "./Customer"; +export { default as Contact } from "./Contact"; +export { default as Deed } from "./Deed"; +export { default as DeedHasDocumentType } from "./DeedHasDocumentType"; +export { default as DeedType } from "./DeedType"; +export { default as DeedTypeHasDocumentType } from "./DeedTypeHasDocumentType"; +export { default as Document } from "./Document"; +export { default as DocumentHistory } from "./DocumentHistory"; +export { default as DocumentType } from "./DocumentType"; +export { default as File } from "./File"; +export { default as Notification } from "./Notification"; +export { default as Office } from "./Office"; +export { default as OfficeFolder } from "./OfficeFolder"; +export { default as OfficeFolderHasCustomer } from "./OfficeFolderHasCustomer"; +export { default as OfficeFolderHasStakeholder } from "./OfficeFolderHasStakeholder"; +export { default as UserHasNotification } from "./UserHasNotification"; diff --git a/dist/Admin/index.js b/dist/Admin/index.js index f96b1b2..983f290 100644 --- a/dist/Admin/index.js +++ b/dist/Admin/index.js @@ -3,5 +3,40 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +exports.UserHasNotification = exports.OfficeFolderHasStakeholder = exports.OfficeFolderHasCustomer = exports.OfficeFolder = exports.Office = exports.Notification = exports.File = exports.DocumentType = exports.DocumentHistory = exports.Document = exports.DeedTypeHasDocumentType = exports.DeedType = exports.DeedHasDocumentType = exports.Deed = exports.Contact = exports.Customer = exports.Address = void 0; const User_1 = __importDefault(require("./User")); exports.default = User_1.default; +var Address_1 = require("../SuperAdmin/Address"); +Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return __importDefault(Address_1).default; } }); +var Customer_1 = require("./Customer"); +Object.defineProperty(exports, "Customer", { enumerable: true, get: function () { return __importDefault(Customer_1).default; } }); +var Contact_1 = require("./Contact"); +Object.defineProperty(exports, "Contact", { enumerable: true, get: function () { return __importDefault(Contact_1).default; } }); +var Deed_1 = require("./Deed"); +Object.defineProperty(exports, "Deed", { enumerable: true, get: function () { return __importDefault(Deed_1).default; } }); +var DeedHasDocumentType_1 = require("./DeedHasDocumentType"); +Object.defineProperty(exports, "DeedHasDocumentType", { enumerable: true, get: function () { return __importDefault(DeedHasDocumentType_1).default; } }); +var DeedType_1 = require("./DeedType"); +Object.defineProperty(exports, "DeedType", { enumerable: true, get: function () { return __importDefault(DeedType_1).default; } }); +var DeedTypeHasDocumentType_1 = require("./DeedTypeHasDocumentType"); +Object.defineProperty(exports, "DeedTypeHasDocumentType", { enumerable: true, get: function () { return __importDefault(DeedTypeHasDocumentType_1).default; } }); +var Document_1 = require("./Document"); +Object.defineProperty(exports, "Document", { enumerable: true, get: function () { return __importDefault(Document_1).default; } }); +var DocumentHistory_1 = require("./DocumentHistory"); +Object.defineProperty(exports, "DocumentHistory", { enumerable: true, get: function () { return __importDefault(DocumentHistory_1).default; } }); +var DocumentType_1 = require("./DocumentType"); +Object.defineProperty(exports, "DocumentType", { enumerable: true, get: function () { return __importDefault(DocumentType_1).default; } }); +var File_1 = require("./File"); +Object.defineProperty(exports, "File", { enumerable: true, get: function () { return __importDefault(File_1).default; } }); +var Notification_1 = require("./Notification"); +Object.defineProperty(exports, "Notification", { enumerable: true, get: function () { return __importDefault(Notification_1).default; } }); +var Office_1 = require("./Office"); +Object.defineProperty(exports, "Office", { enumerable: true, get: function () { return __importDefault(Office_1).default; } }); +var OfficeFolder_1 = require("./OfficeFolder"); +Object.defineProperty(exports, "OfficeFolder", { enumerable: true, get: function () { return __importDefault(OfficeFolder_1).default; } }); +var OfficeFolderHasCustomer_1 = require("./OfficeFolderHasCustomer"); +Object.defineProperty(exports, "OfficeFolderHasCustomer", { enumerable: true, get: function () { return __importDefault(OfficeFolderHasCustomer_1).default; } }); +var OfficeFolderHasStakeholder_1 = require("./OfficeFolderHasStakeholder"); +Object.defineProperty(exports, "OfficeFolderHasStakeholder", { enumerable: true, get: function () { return __importDefault(OfficeFolderHasStakeholder_1).default; } }); +var UserHasNotification_1 = require("./UserHasNotification"); +Object.defineProperty(exports, "UserHasNotification", { enumerable: true, get: function () { return __importDefault(UserHasNotification_1).default; } }); diff --git a/dist/Customer/Address.d.ts b/dist/Customer/Address.d.ts index b8b48b0..6360594 100644 --- a/dist/Customer/Address.d.ts +++ b/dist/Customer/Address.d.ts @@ -1,15 +1,12 @@ import type Contact from "./Contact"; import type Office from "./Office"; -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 | null; - contacts?: Contact.IContact; - } +import Resource from "../Resource"; +export default class Address extends Resource { + address: string; + city: string; + zip_code: number; + created_at: Date | null; + updated_at: Date | null; + office?: Office | null; + contact?: Contact | null; } -export default Address; diff --git a/dist/Customer/Address.js b/dist/Customer/Address.js index ba1d2cd..f261e0c 100644 --- a/dist/Customer/Address.js +++ b/dist/Customer/Address.js @@ -8,48 +8,39 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); const class_validator_1 = require("class-validator"); -var Address; -(function (Address) { - class IAddress { - constructor() { - this.created_at = null; - this.updated_at = null; - } +const Resource_1 = __importDefault(require("../Resource")); +class Address extends Resource_1.default { + constructor() { + super(...arguments); + this.created_at = null; + this.updated_at = null; + this.office = null; + this.contact = 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", Object) - ], IAddress.prototype, "office", void 0); - __decorate([ - (0, class_validator_1.IsOptional)(), - __metadata("design:type", Function) - ], IAddress.prototype, "contacts", void 0); - Address.IAddress = IAddress; -})(Address || (Address = {})); +} +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Address is required" }), + __metadata("design:type", String) +], Address.prototype, "address", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "City is required" }), + __metadata("design:type", String) +], Address.prototype, "city", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "State is required" }), + __metadata("design:type", Number) +], Address.prototype, "zip_code", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], Address.prototype, "created_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], Address.prototype, "updated_at", void 0); exports.default = Address; diff --git a/dist/Customer/Contact.d.ts b/dist/Customer/Contact.d.ts index 58cb14f..d0107d0 100644 --- a/dist/Customer/Contact.d.ts +++ b/dist/Customer/Contact.d.ts @@ -1,26 +1,23 @@ import type Address from "./Address"; import type Customer from "."; -import type User from "../Notary/User"; -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; - } - enum ECivility { - MALE = "MALE", - FEMALE = "FEMALE", - OTHERS = "OTHERS" - } - type TCivility = ECivility.MALE | ECivility.FEMALE | ECivility.OTHERS; +import type User from "../Notary"; +import Resource from "../Resource"; +export default class Contact extends Resource { + first_name: string; + last_name: string; + email: string; + cell_phone_number: string; + phone_number: string; + civility: ECivility; + address: Address; + created_at: Date | null; + updated_at: Date | null; + user?: User | null; + customer?: Customer | null; } -export default Contact; +export declare enum ECivility { + MALE = "MALE", + FEMALE = "FEMALE", + OTHERS = "OTHERS" +} +export declare type TCivility = ECivility.MALE | ECivility.FEMALE | ECivility.OTHERS; diff --git a/dist/Customer/Contact.js b/dist/Customer/Contact.js index 4cda6bc..262e6f4 100644 --- a/dist/Customer/Contact.js +++ b/dist/Customer/Contact.js @@ -8,70 +8,59 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); +exports.ECivility = void 0; const class_validator_1 = require("class-validator"); -var Contact; -(function (Contact) { - class IContact { - constructor() { - this.created_at = null; - this.updated_at = null; - } +const Resource_1 = __importDefault(require("../Resource")); +class Contact extends Resource_1.default { + constructor() { + super(...arguments); + this.created_at = null; + this.updated_at = null; + this.user = null; + this.customer = 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", Function) - ], 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", Function) - ], IContact.prototype, "users", void 0); - __decorate([ - (0, class_validator_1.IsOptional)(), - __metadata("design:type", Function) - ], IContact.prototype, "customers", void 0); - Contact.IContact = IContact; - let ECivility; - (function (ECivility) { - ECivility["MALE"] = "MALE"; - ECivility["FEMALE"] = "FEMALE"; - ECivility["OTHERS"] = "OTHERS"; - })(ECivility = Contact.ECivility || (Contact.ECivility = {})); -})(Contact || (Contact = {})); +} +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "First name is required" }), + __metadata("design:type", String) +], Contact.prototype, "first_name", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Last name is required" }), + __metadata("design:type", String) +], Contact.prototype, "last_name", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"] }), + (0, class_validator_1.IsEmail)({}, { groups: ["create", "update"], message: "Email is not valid" }), + __metadata("design:type", String) +], Contact.prototype, "email", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"] }), + __metadata("design:type", String) +], Contact.prototype, "cell_phone_number", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Civility is required" }), + __metadata("design:type", String) +], Contact.prototype, "civility", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Address is required" }), + __metadata("design:type", Function) +], Contact.prototype, "address", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], Contact.prototype, "created_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], Contact.prototype, "updated_at", void 0); exports.default = Contact; +var ECivility; +(function (ECivility) { + ECivility["MALE"] = "MALE"; + ECivility["FEMALE"] = "FEMALE"; + ECivility["OTHERS"] = "OTHERS"; +})(ECivility = exports.ECivility || (exports.ECivility = {})); diff --git a/dist/Customer/Customer.d.ts b/dist/Customer/Customer.d.ts new file mode 100644 index 0000000..e4df18a --- /dev/null +++ b/dist/Customer/Customer.d.ts @@ -0,0 +1,17 @@ +import { Contact, Document } from "."; +import OfficeFolderHasCustomer from "./OfficeFolderHasCustomer"; +import Resource from "../Resource"; +export default class Customer extends Resource { + status: ECustomerStatus; + contact: Contact; + created_at: Date | null; + updated_at: Date | null; + office_folder_has_customers?: OfficeFolderHasCustomer[]; + documents?: Document[]; +} +export declare enum ECustomerStatus { + VALIDATED = "VALIDATED", + PENDING = "PENDING", + ERRONED = "ERRONED" +} +export declare type TCustomerStatus = ECustomerStatus.VALIDATED | ECustomerStatus.PENDING | ECustomerStatus.ERRONED; diff --git a/dist/Customer/Customer.js b/dist/Customer/Customer.js new file mode 100644 index 0000000..0db7084 --- /dev/null +++ b/dist/Customer/Customer.js @@ -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); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ECustomerStatus = void 0; +const class_validator_1 = require("class-validator"); +const _1 = require("."); +const Resource_1 = __importDefault(require("../Resource")); +class Customer extends Resource_1.default { + constructor() { + super(...arguments); + this.created_at = null; + this.updated_at = null; + } +} +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Status is required" }), + __metadata("design:type", String) +], Customer.prototype, "status", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Contact is required" }), + __metadata("design:type", _1.Contact) +], Customer.prototype, "contact", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], Customer.prototype, "created_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], Customer.prototype, "updated_at", void 0); +exports.default = Customer; +var ECustomerStatus; +(function (ECustomerStatus) { + ECustomerStatus["VALIDATED"] = "VALIDATED"; + ECustomerStatus["PENDING"] = "PENDING"; + ECustomerStatus["ERRONED"] = "ERRONED"; +})(ECustomerStatus = exports.ECustomerStatus || (exports.ECustomerStatus = {})); diff --git a/dist/Customer/Deed.d.ts b/dist/Customer/Deed.d.ts index abb451c..ac150a4 100644 --- a/dist/Customer/Deed.d.ts +++ b/dist/Customer/Deed.d.ts @@ -1,14 +1,11 @@ import type DeedType from "./DeedType"; import type DeedHasDocumentType from "./DeedHasDocumentType"; import type OfficeFolder from "./OfficeFolder"; -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; - } +import Resource from "../Resource"; +export default class Deed extends Resource { + deed_type: DeedType; + created_at: Date | null; + updated_at: Date | null; + deed_has_document_types?: DeedHasDocumentType[]; + office_folder?: OfficeFolder; } -export default Deed; diff --git a/dist/Customer/Deed.js b/dist/Customer/Deed.js index c5ebde4..cf2c7ce 100644 --- a/dist/Customer/Deed.js +++ b/dist/Customer/Deed.js @@ -8,40 +8,29 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); const class_validator_1 = require("class-validator"); -var Deed; -(function (Deed) { - class IDeed { - constructor() { - this.created_at = null; - this.updated_at = null; - } +const Resource_1 = __importDefault(require("../Resource")); +class Deed extends Resource_1.default { + constructor() { + super(...arguments); + 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", Function) - ], 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", Function) - ], IDeed.prototype, "office_folder", void 0); - Deed.IDeed = IDeed; -})(Deed || (Deed = {})); +} +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Deed type is required" }), + __metadata("design:type", Function) +], Deed.prototype, "deed_type", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], Deed.prototype, "created_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], Deed.prototype, "updated_at", void 0); exports.default = Deed; diff --git a/dist/Customer/DeedHasDocumentType.d.ts b/dist/Customer/DeedHasDocumentType.d.ts index a83678f..a8647cb 100644 --- a/dist/Customer/DeedHasDocumentType.d.ts +++ b/dist/Customer/DeedHasDocumentType.d.ts @@ -1,12 +1,9 @@ import type Deed from "./Deed"; import type DocumentType from "./DocumentType"; -declare namespace DeedHasDocumentType { - class IDeedHasDocumentType { - uuid: string; - document_type: DocumentType.IDocumentType; - deed: Deed.IDeed; - created_at: Date | null; - updated_at: Date | null; - } +import Resource from "../Resource"; +export default class DeedHasDocumentType extends Resource { + document_type: DocumentType; + deed: Deed; + created_at: Date | null; + updated_at: Date | null; } -export default DeedHasDocumentType; diff --git a/dist/Customer/DeedHasDocumentType.js b/dist/Customer/DeedHasDocumentType.js index 4498475..ac5022e 100644 --- a/dist/Customer/DeedHasDocumentType.js +++ b/dist/Customer/DeedHasDocumentType.js @@ -8,36 +8,33 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); const class_validator_1 = require("class-validator"); -var DeedHasDocumentType; -(function (DeedHasDocumentType) { - class IDeedHasDocumentType { - constructor() { - this.created_at = null; - this.updated_at = null; - } +const Resource_1 = __importDefault(require("../Resource")); +class DeedHasDocumentType extends Resource_1.default { + constructor() { + super(...arguments); + 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", Function) - ], IDeedHasDocumentType.prototype, "document_type", void 0); - __decorate([ - (0, class_validator_1.IsNotEmpty)({ groups: ["create"] }), - __metadata("design:type", Function) - ], 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 || (DeedHasDocumentType = {})); +} +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Document type is required" }), + __metadata("design:type", Function) +], DeedHasDocumentType.prototype, "document_type", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Deed is required" }), + __metadata("design:type", Function) +], DeedHasDocumentType.prototype, "deed", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], DeedHasDocumentType.prototype, "created_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], DeedHasDocumentType.prototype, "updated_at", void 0); exports.default = DeedHasDocumentType; diff --git a/dist/Customer/DeedType.d.ts b/dist/Customer/DeedType.d.ts index 2bf6509..b334e73 100644 --- a/dist/Customer/DeedType.d.ts +++ b/dist/Customer/DeedType.d.ts @@ -1,17 +1,14 @@ import type Deed from "./Deed"; import type DeedTypeHasDocumentType from "./DeedTypeHasDocumentType"; import type Office from "./Office"; -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[]; - } +import Resource from "../Resource"; +export default class DeedType extends Resource { + name: string; + description: string; + archived_at: Date | null; + office: Office; + created_at: Date | null; + updated_at: Date | null; + deed?: Deed[]; + deed_type_has_document_types?: DeedTypeHasDocumentType[]; } -export default DeedType; diff --git a/dist/Customer/DeedType.js b/dist/Customer/DeedType.js index ec86e6c..b27450a 100644 --- a/dist/Customer/DeedType.js +++ b/dist/Customer/DeedType.js @@ -8,53 +8,42 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); const class_validator_1 = require("class-validator"); -var DeedType; -(function (DeedType) { - class IDeedType { - constructor() { - this.archived_at = null; - this.created_at = null; - this.updated_at = null; - } +const Resource_1 = __importDefault(require("../Resource")); +class DeedType extends Resource_1.default { + constructor() { + super(...arguments); + 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", Function) - ], 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 || (DeedType = {})); +} +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Name is required" }), + __metadata("design:type", String) +], DeedType.prototype, "name", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Description is required" }), + __metadata("design:type", String) +], DeedType.prototype, "description", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], DeedType.prototype, "archived_at", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Office is required" }), + __metadata("design:type", Function) +], DeedType.prototype, "office", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], DeedType.prototype, "created_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], DeedType.prototype, "updated_at", void 0); exports.default = DeedType; diff --git a/dist/Customer/DeedTypeHasDocumentType.d.ts b/dist/Customer/DeedTypeHasDocumentType.d.ts index a50e0d9..8ee4291 100644 --- a/dist/Customer/DeedTypeHasDocumentType.d.ts +++ b/dist/Customer/DeedTypeHasDocumentType.d.ts @@ -1,12 +1,9 @@ import type DeedType from "./DeedType"; import type DocumentType from "./DocumentType"; -declare namespace DeedTypeHasDocumentType { - class IDeedTypeHasDocumentType { - uuid: string; - document_type: DocumentType.IDocumentType; - deed_type: DeedType.IDeedType; - created_at: Date | null; - updated_at: Date | null; - } +import Resource from "../Resource"; +export default class DeedTypeHasDocumentType extends Resource { + document_type: DocumentType; + deed_type: DeedType; + created_at: Date | null; + updated_at: Date | null; } -export default DeedTypeHasDocumentType; diff --git a/dist/Customer/DeedTypeHasDocumentType.js b/dist/Customer/DeedTypeHasDocumentType.js index dde491d..8b41698 100644 --- a/dist/Customer/DeedTypeHasDocumentType.js +++ b/dist/Customer/DeedTypeHasDocumentType.js @@ -8,36 +8,33 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); const class_validator_1 = require("class-validator"); -var DeedTypeHasDocumentType; -(function (DeedTypeHasDocumentType) { - class IDeedTypeHasDocumentType { - constructor() { - this.created_at = null; - this.updated_at = null; - } +const Resource_1 = __importDefault(require("../Resource")); +class DeedTypeHasDocumentType extends Resource_1.default { + constructor() { + super(...arguments); + 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", Function) - ], IDeedTypeHasDocumentType.prototype, "document_type", void 0); - __decorate([ - (0, class_validator_1.IsNotEmpty)({ groups: ["create"] }), - __metadata("design:type", Function) - ], 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 || (DeedTypeHasDocumentType = {})); +} +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Document type is required" }), + __metadata("design:type", Function) +], DeedTypeHasDocumentType.prototype, "document_type", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Deed type is required" }), + __metadata("design:type", Function) +], DeedTypeHasDocumentType.prototype, "deed_type", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], DeedTypeHasDocumentType.prototype, "created_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], DeedTypeHasDocumentType.prototype, "updated_at", void 0); exports.default = DeedTypeHasDocumentType; diff --git a/dist/Customer/Document.d.ts b/dist/Customer/Document.d.ts index 78ede35..dd02b41 100644 --- a/dist/Customer/Document.d.ts +++ b/dist/Customer/Document.d.ts @@ -3,25 +3,22 @@ import type DocumentHistory from "./DocumentHistory"; import type DocumentType from "./DocumentType"; import type File from "./File"; import type OfficeFolder from "./OfficeFolder"; -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[]; - } - enum EDocumentStatus { - ASKED = "ASKED", - DEPOSITED = "DEPOSITED", - VALIDATED = "VALIDATED", - ANCHORED = "ANCHORED", - REFUSED = "REFUSED" - } - type TDocumentStatus = EDocumentStatus.ASKED | EDocumentStatus.DEPOSITED | EDocumentStatus.VALIDATED | EDocumentStatus.ANCHORED | EDocumentStatus.REFUSED; +import Resource from "../Resource"; +export default class Document extends Resource { + document_status: EDocumentStatus; + document_type: DocumentType; + folder: OfficeFolder; + depositor: Customer; + created_at: Date | null; + updated_at: Date | null; + files?: File[]; + document_history?: DocumentHistory[]; } -export default Document; +export declare enum EDocumentStatus { + ASKED = "ASKED", + DEPOSITED = "DEPOSITED", + VALIDATED = "VALIDATED", + ANCHORED = "ANCHORED", + REFUSED = "REFUSED" +} +export declare type TDocumentStatus = EDocumentStatus.ASKED | EDocumentStatus.DEPOSITED | EDocumentStatus.VALIDATED | EDocumentStatus.ANCHORED | EDocumentStatus.REFUSED; diff --git a/dist/Customer/Document.js b/dist/Customer/Document.js index 7b6fc86..c23c2e4 100644 --- a/dist/Customer/Document.js +++ b/dist/Customer/Document.js @@ -8,60 +8,50 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); +exports.EDocumentStatus = void 0; const class_validator_1 = require("class-validator"); -var Document; -(function (Document) { - class IDocument { - constructor() { - this.created_at = null; - this.updated_at = null; - } +const Resource_1 = __importDefault(require("../Resource")); +class Document extends Resource_1.default { + constructor() { + super(...arguments); + 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", Function) - ], IDocument.prototype, "document_type", void 0); - __decorate([ - (0, class_validator_1.IsNotEmpty)({ groups: ["create"] }), - __metadata("design:type", Function) - ], IDocument.prototype, "folder", void 0); - __decorate([ - (0, class_validator_1.IsNotEmpty)({ groups: ["create"] }), - __metadata("design:type", Function) - ], 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; - let EDocumentStatus; - (function (EDocumentStatus) { - EDocumentStatus["ASKED"] = "ASKED"; - EDocumentStatus["DEPOSITED"] = "DEPOSITED"; - EDocumentStatus["VALIDATED"] = "VALIDATED"; - EDocumentStatus["ANCHORED"] = "ANCHORED"; - EDocumentStatus["REFUSED"] = "REFUSED"; - })(EDocumentStatus = Document.EDocumentStatus || (Document.EDocumentStatus = {})); -})(Document || (Document = {})); +} +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Document status is required" }), + __metadata("design:type", String) +], Document.prototype, "document_status", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Document type is required" }), + __metadata("design:type", Function) +], Document.prototype, "document_type", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Folder is required" }), + __metadata("design:type", Function) +], Document.prototype, "folder", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Depositor is required" }), + __metadata("design:type", Function) +], Document.prototype, "depositor", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], Document.prototype, "created_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], Document.prototype, "updated_at", void 0); exports.default = Document; +var EDocumentStatus; +(function (EDocumentStatus) { + EDocumentStatus["ASKED"] = "ASKED"; + EDocumentStatus["DEPOSITED"] = "DEPOSITED"; + EDocumentStatus["VALIDATED"] = "VALIDATED"; + EDocumentStatus["ANCHORED"] = "ANCHORED"; + EDocumentStatus["REFUSED"] = "REFUSED"; +})(EDocumentStatus = exports.EDocumentStatus || (exports.EDocumentStatus = {})); diff --git a/dist/Customer/DocumentHistory.d.ts b/dist/Customer/DocumentHistory.d.ts index e265331..7262aa0 100644 --- a/dist/Customer/DocumentHistory.d.ts +++ b/dist/Customer/DocumentHistory.d.ts @@ -1,12 +1,9 @@ -import type Document from "./Document"; -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; - } +import type { default as Document, EDocumentStatus } from "./Document"; +import Resource from "../Resource"; +export default class DocumentHistory extends Resource { + document_status: EDocumentStatus; + document: Document; + refused_reason: string | null; + created_at: Date | null; + updated_at: Date | null; } -export default DocumentHistory; diff --git a/dist/Customer/DocumentHistory.js b/dist/Customer/DocumentHistory.js index 507626d..8aee97b 100644 --- a/dist/Customer/DocumentHistory.js +++ b/dist/Customer/DocumentHistory.js @@ -8,41 +8,34 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); const class_validator_1 = require("class-validator"); -var DocumentHistory; -(function (DocumentHistory) { - class IDocumentHistory { - constructor() { - this.refused_reason = null; - this.created_at = null; - this.updated_at = null; - } +const Resource_1 = __importDefault(require("../Resource")); +class DocumentHistory extends Resource_1.default { + constructor() { + super(...arguments); + 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", Function) - ], 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 || (DocumentHistory = {})); +} +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Document status is required" }), + __metadata("design:type", String) +], DocumentHistory.prototype, "document_status", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Document is required" }), + __metadata("design:type", Function) +], DocumentHistory.prototype, "document", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], DocumentHistory.prototype, "created_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], DocumentHistory.prototype, "updated_at", void 0); exports.default = DocumentHistory; diff --git a/dist/Customer/DocumentType.d.ts b/dist/Customer/DocumentType.d.ts index 9082f61..2120c53 100644 --- a/dist/Customer/DocumentType.d.ts +++ b/dist/Customer/DocumentType.d.ts @@ -1,18 +1,15 @@ import type DeedHasDocumentType from "./DeedHasDocumentType"; import type Document from "./Document"; import type DeedTypeHasDocumentType from "./DeedTypeHasDocumentType"; -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[]; - } +import Resource from "../Resource"; +export default class DocumentType extends Resource { + name: string; + public_description: string; + private_description: string | null; + archived_at: Date | null; + created_at: Date | null; + updated_at: Date | null; + documents?: Document[]; + deed_has_document_types?: DeedHasDocumentType[]; + deed_type_has_document_types?: DeedTypeHasDocumentType[]; } -export default DocumentType; diff --git a/dist/Customer/DocumentType.js b/dist/Customer/DocumentType.js index 82cf98b..3511641 100644 --- a/dist/Customer/DocumentType.js +++ b/dist/Customer/DocumentType.js @@ -8,58 +8,39 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); 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; - } +const Resource_1 = __importDefault(require("../Resource")); +class DocumentType extends Resource_1.default { + constructor() { + super(...arguments); + 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 || (DocumentType = {})); +} +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Name is required" }), + __metadata("design:type", String) +], DocumentType.prototype, "name", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Public description is required" }), + __metadata("design:type", String) +], DocumentType.prototype, "public_description", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], DocumentType.prototype, "archived_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], DocumentType.prototype, "created_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], DocumentType.prototype, "updated_at", void 0); exports.default = DocumentType; diff --git a/dist/Customer/File.d.ts b/dist/Customer/File.d.ts index 9ec5768..06619d4 100644 --- a/dist/Customer/File.d.ts +++ b/dist/Customer/File.d.ts @@ -1,11 +1,8 @@ import type Document from "./Document"; -declare namespace File { - class IFile { - uuid: string; - document: Document.IDocument; - file_path: string | null; - created_at: Date | null; - updated_at: Date | null; - } +import Resource from "../Resource"; +export default class File extends Resource { + document: Document; + file_path: string | null; + created_at: Date | null; + updated_at: Date | null; } -export default File; diff --git a/dist/Customer/File.js b/dist/Customer/File.js index e966ffc..8ea34cd 100644 --- a/dist/Customer/File.js +++ b/dist/Customer/File.js @@ -8,37 +8,30 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); const class_validator_1 = require("class-validator"); -var File; -(function (File) { - class IFile { - constructor() { - this.file_path = null; - this.created_at = null; - this.updated_at = null; - } +const Resource_1 = __importDefault(require("../Resource")); +class File extends Resource_1.default { + constructor() { + super(...arguments); + 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", Function) - ], 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 || (File = {})); +} +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Document is required" }), + __metadata("design:type", Function) +], File.prototype, "document", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], File.prototype, "created_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], File.prototype, "updated_at", void 0); exports.default = File; diff --git a/dist/Customer/Notification.d.ts b/dist/Customer/Notification.d.ts index f8f299f..40b329d 100644 --- a/dist/Customer/Notification.d.ts +++ b/dist/Customer/Notification.d.ts @@ -1,12 +1,9 @@ import type UserHasNotification from "./UserHasNotification"; -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[]; - } +import Resource from "../Resource"; +export default class Notification extends Resource { + message: string; + redirection_url: string; + created_at: Date | null; + updated_at: Date | null; + user_has_notifications?: UserHasNotification[]; } -export default Notification; diff --git a/dist/Customer/Notification.js b/dist/Customer/Notification.js index 4682ce4..1999f1b 100644 --- a/dist/Customer/Notification.js +++ b/dist/Customer/Notification.js @@ -8,41 +8,34 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); const class_validator_1 = require("class-validator"); -var Notification; -(function (Notification) { - class INotification { - constructor() { - this.created_at = null; - this.updated_at = null; - } +const Resource_1 = __importDefault(require("../Resource")); +class Notification extends Resource_1.default { + constructor() { + super(...arguments); + 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 || (Notification = {})); +} +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Message is required" }), + __metadata("design:type", String) +], Notification.prototype, "message", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Redirection url is required" }), + (0, class_validator_1.IsUrl)(), + __metadata("design:type", String) +], Notification.prototype, "redirection_url", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], Notification.prototype, "created_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], Notification.prototype, "updated_at", void 0); exports.default = Notification; diff --git a/dist/Customer/Office.d.ts b/dist/Customer/Office.d.ts index d7b8c66..32a0b98 100644 --- a/dist/Customer/Office.d.ts +++ b/dist/Customer/Office.d.ts @@ -2,24 +2,21 @@ import type Address from "./Address"; import type DeedType from "./DeedType"; import type OfficeFolder from "./OfficeFolder"; import type User from "../Notary/User"; -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; +import Resource from "../Resource"; +export default class Office extends Resource { + idNot: string; + name: string; + crpcen: string; + address: Address; + office_status: EOfficeStatus; + created_at: Date | null; + updated_at: Date | null; + deed_types?: DeedType[]; + users?: User[]; + office_folders?: OfficeFolder[]; } -export default Office; +export declare enum EOfficeStatus { + ACTIVATED = "ACTIVATED", + DESACTIVATED = "DESACTIVATED" +} +export declare type TOfficeStatus = EOfficeStatus.ACTIVATED | EOfficeStatus.DESACTIVATED; diff --git a/dist/Customer/Office.js b/dist/Customer/Office.js index f5610f2..af5de84 100644 --- a/dist/Customer/Office.js +++ b/dist/Customer/Office.js @@ -8,65 +8,51 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); +exports.EOfficeStatus = void 0; const class_validator_1 = require("class-validator"); -var Office; -(function (Office) { - class IOffice { - constructor() { - this.created_at = null; - this.updated_at = null; - } +const Resource_1 = __importDefault(require("../Resource")); +class Office extends Resource_1.default { + constructor() { + super(...arguments); + 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", Function) - ], 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 || (Office = {})); +} +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "ID IdNote is required" }), + __metadata("design:type", String) +], Office.prototype, "idNot", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Name is required" }), + __metadata("design:type", String) +], Office.prototype, "name", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "CRPCEN is required" }), + __metadata("design:type", String) +], Office.prototype, "crpcen", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Address is required" }), + __metadata("design:type", Function) +], Office.prototype, "address", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Office status is required" }), + __metadata("design:type", String) +], Office.prototype, "office_status", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], Office.prototype, "created_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], Office.prototype, "updated_at", void 0); exports.default = Office; +var EOfficeStatus; +(function (EOfficeStatus) { + EOfficeStatus["ACTIVATED"] = "ACTIVATED"; + EOfficeStatus["DESACTIVATED"] = "DESACTIVATED"; +})(EOfficeStatus = exports.EOfficeStatus || (exports.EOfficeStatus = {})); diff --git a/dist/Customer/OfficeFolder.d.ts b/dist/Customer/OfficeFolder.d.ts index 3a579a9..d753937 100644 --- a/dist/Customer/OfficeFolder.d.ts +++ b/dist/Customer/OfficeFolder.d.ts @@ -3,26 +3,23 @@ import type Document from "./Document"; import type Office from "./Office"; import type OfficeFolderHasCustomer from "./OfficeFolderHasCustomer"; import type OfficeFolderHasStakeholder from "./OfficeFolderHasStakeholder"; -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[]; - } - enum EFolderStatus { - LIVE = "LIVE", - ARCHIVED = "ARCHIVED" - } - type TFolderStatus = EFolderStatus.LIVE | EFolderStatus.ARCHIVED; +import Resource from "../Resource"; +export default class OfficeFolder extends Resource { + folder_number: string; + name: string; + description: string | null; + archived_description: string | null; + status: EFolderStatus; + deed: Deed; + office: Office; + created_at: Date | null; + updated_at: Date | null; + office_folder_has_customers?: OfficeFolderHasCustomer[]; + office_folder_has_stakeholder?: OfficeFolderHasStakeholder[]; + documents?: Document[]; } -export default OfficeFolder; +export declare enum EFolderStatus { + LIVE = "LIVE", + ARCHIVED = "ARCHIVED" +} +export declare type TFolderStatus = EFolderStatus.LIVE | EFolderStatus.ARCHIVED; diff --git a/dist/Customer/OfficeFolder.js b/dist/Customer/OfficeFolder.js index a39ce46..e847c12 100644 --- a/dist/Customer/OfficeFolder.js +++ b/dist/Customer/OfficeFolder.js @@ -8,75 +8,53 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); +exports.EFolderStatus = void 0; const class_validator_1 = require("class-validator"); -var OfficeFolder; -(function (OfficeFolder) { - class IOfficeFolder { - constructor() { - this.description = null; - this.archived_description = null; - this.created_at = null; - this.updated_at = null; - } +const Resource_1 = __importDefault(require("../Resource")); +class OfficeFolder extends Resource_1.default { + constructor() { + super(...arguments); + 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", Function) - ], IOfficeFolder.prototype, "deed", void 0); - __decorate([ - (0, class_validator_1.IsNotEmpty)({ groups: ["create"] }), - __metadata("design:type", Function) - ], 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; - let EFolderStatus; - (function (EFolderStatus) { - EFolderStatus["LIVE"] = "LIVE"; - EFolderStatus["ARCHIVED"] = "ARCHIVED"; - })(EFolderStatus = OfficeFolder.EFolderStatus || (OfficeFolder.EFolderStatus = {})); -})(OfficeFolder || (OfficeFolder = {})); +} +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Folder number is required" }), + __metadata("design:type", String) +], OfficeFolder.prototype, "folder_number", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Name is required" }), + __metadata("design:type", String) +], OfficeFolder.prototype, "name", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Status is required" }), + __metadata("design:type", String) +], OfficeFolder.prototype, "status", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Deed is required" }), + __metadata("design:type", Function) +], OfficeFolder.prototype, "deed", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Office is required" }), + __metadata("design:type", Function) +], OfficeFolder.prototype, "office", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], OfficeFolder.prototype, "created_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], OfficeFolder.prototype, "updated_at", void 0); exports.default = OfficeFolder; +var EFolderStatus; +(function (EFolderStatus) { + EFolderStatus["LIVE"] = "LIVE"; + EFolderStatus["ARCHIVED"] = "ARCHIVED"; +})(EFolderStatus = exports.EFolderStatus || (exports.EFolderStatus = {})); diff --git a/dist/Customer/OfficeFolderHasCustomer.d.ts b/dist/Customer/OfficeFolderHasCustomer.d.ts index 1360613..07a9870 100644 --- a/dist/Customer/OfficeFolderHasCustomer.d.ts +++ b/dist/Customer/OfficeFolderHasCustomer.d.ts @@ -1,12 +1,9 @@ import type Customer from "."; import type OfficeFolder from "./OfficeFolder"; -declare namespace OfficeFolderHasCustomer { - class IOfficeFolderHasCustomer { - uuid: string; - customer: Customer.ICustomer; - office_folder: OfficeFolder.IOfficeFolder; - created_at: Date | null; - updated_at: Date | null; - } +import Resource from "../Resource"; +export default class OfficeFolderHasCustomer extends Resource { + customer: Customer; + office_folder: OfficeFolder; + created_at: Date | null; + updated_at: Date | null; } -export default OfficeFolderHasCustomer; diff --git a/dist/Customer/OfficeFolderHasCustomer.js b/dist/Customer/OfficeFolderHasCustomer.js index f815a6a..3bf15e3 100644 --- a/dist/Customer/OfficeFolderHasCustomer.js +++ b/dist/Customer/OfficeFolderHasCustomer.js @@ -8,36 +8,33 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); const class_validator_1 = require("class-validator"); -var OfficeFolderHasCustomer; -(function (OfficeFolderHasCustomer) { - class IOfficeFolderHasCustomer { - constructor() { - this.created_at = null; - this.updated_at = null; - } +const Resource_1 = __importDefault(require("../Resource")); +class OfficeFolderHasCustomer extends Resource_1.default { + constructor() { + super(...arguments); + 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", Function) - ], IOfficeFolderHasCustomer.prototype, "customer", void 0); - __decorate([ - (0, class_validator_1.IsNotEmpty)({ groups: ["create"] }), - __metadata("design:type", Function) - ], 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 || (OfficeFolderHasCustomer = {})); +} +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Customer is required" }), + __metadata("design:type", Function) +], OfficeFolderHasCustomer.prototype, "customer", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Office folder is required" }), + __metadata("design:type", Function) +], OfficeFolderHasCustomer.prototype, "office_folder", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], OfficeFolderHasCustomer.prototype, "created_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], OfficeFolderHasCustomer.prototype, "updated_at", void 0); exports.default = OfficeFolderHasCustomer; diff --git a/dist/Customer/OfficeFolderHasStakeholder.d.ts b/dist/Customer/OfficeFolderHasStakeholder.d.ts index 6fc2b77..9930710 100644 --- a/dist/Customer/OfficeFolderHasStakeholder.d.ts +++ b/dist/Customer/OfficeFolderHasStakeholder.d.ts @@ -1,12 +1,9 @@ import type OfficeFolder from "./OfficeFolder"; import type User from "../Notary/User"; -declare namespace OfficeFolderHasStakeholder { - class IOfficeFolderHasStakeholder { - uuid: string; - user_stakeholder: User.IUser; - office_folder: OfficeFolder.IOfficeFolder; - created_at: Date | null; - updated_at: Date | null; - } +import Resource from "../Resource"; +export default class OfficeFolderHasStakeholder extends Resource { + user_stakeholder: User; + office_folder: OfficeFolder; + created_at: Date | null; + updated_at: Date | null; } -export default OfficeFolderHasStakeholder; diff --git a/dist/Customer/OfficeFolderHasStakeholder.js b/dist/Customer/OfficeFolderHasStakeholder.js index eda38c7..6570d55 100644 --- a/dist/Customer/OfficeFolderHasStakeholder.js +++ b/dist/Customer/OfficeFolderHasStakeholder.js @@ -8,36 +8,33 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); const class_validator_1 = require("class-validator"); -var OfficeFolderHasStakeholder; -(function (OfficeFolderHasStakeholder) { - class IOfficeFolderHasStakeholder { - constructor() { - this.created_at = null; - this.updated_at = null; - } +const Resource_1 = __importDefault(require("../Resource")); +class OfficeFolderHasStakeholder extends Resource_1.default { + constructor() { + super(...arguments); + 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", Function) - ], IOfficeFolderHasStakeholder.prototype, "user_stakeholder", void 0); - __decorate([ - (0, class_validator_1.IsNotEmpty)({ groups: ["create"] }), - __metadata("design:type", Function) - ], 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 || (OfficeFolderHasStakeholder = {})); +} +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "User Stakeholder is required" }), + __metadata("design:type", Function) +], OfficeFolderHasStakeholder.prototype, "user_stakeholder", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Office folder is required" }), + __metadata("design:type", Function) +], OfficeFolderHasStakeholder.prototype, "office_folder", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], OfficeFolderHasStakeholder.prototype, "created_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], OfficeFolderHasStakeholder.prototype, "updated_at", void 0); exports.default = OfficeFolderHasStakeholder; diff --git a/dist/Customer/UserHasNotification.d.ts b/dist/Customer/UserHasNotification.d.ts index acc3971..b51bb6c 100644 --- a/dist/Customer/UserHasNotification.d.ts +++ b/dist/Customer/UserHasNotification.d.ts @@ -1,13 +1,14 @@ import type Notification from "./Notification"; import type User from "../Notary/User"; -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"; +import Resource from "../Resource"; +export default class UserHasNotification extends Resource { + user: User; + notification: Notification; + created_at: Date | null; + updated_at: Date | null; +} +export declare type TNotificationStatus = "READ" | "UNREAD"; +export declare enum ENotificationStatus { + READ = "READ", + UNREAD = "UNREAD" } -export default UserHasNotification; diff --git a/dist/Customer/UserHasNotification.js b/dist/Customer/UserHasNotification.js index 523cb07..720ea43 100644 --- a/dist/Customer/UserHasNotification.js +++ b/dist/Customer/UserHasNotification.js @@ -8,36 +8,39 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); +exports.ENotificationStatus = void 0; const class_validator_1 = require("class-validator"); -var UserHasNotification; -(function (UserHasNotification) { - class IUserHasNotification { - constructor() { - this.created_at = null; - this.updated_at = null; - } +const Resource_1 = __importDefault(require("../Resource")); +class UserHasNotification extends Resource_1.default { + constructor() { + super(...arguments); + 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", Function) - ], IUserHasNotification.prototype, "user", void 0); - __decorate([ - (0, class_validator_1.IsNotEmpty)({ groups: ["create"] }), - __metadata("design:type", Function) - ], 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 || (UserHasNotification = {})); +} +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "User is required" }), + __metadata("design:type", Function) +], UserHasNotification.prototype, "user", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"], message: "Notification is required" }), + __metadata("design:type", Function) +], UserHasNotification.prototype, "notification", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], UserHasNotification.prototype, "created_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], UserHasNotification.prototype, "updated_at", void 0); exports.default = UserHasNotification; +var ENotificationStatus; +(function (ENotificationStatus) { + ENotificationStatus["READ"] = "READ"; + ENotificationStatus["UNREAD"] = "UNREAD"; +})(ENotificationStatus = exports.ENotificationStatus || (exports.ENotificationStatus = {})); diff --git a/dist/Customer/index.d.ts b/dist/Customer/index.d.ts index ad33a8d..ffcf278 100644 --- a/dist/Customer/index.d.ts +++ b/dist/Customer/index.d.ts @@ -1,21 +1,18 @@ -import type Document from "./Document"; -import type OfficeFolderHasCustomer from "./OfficeFolderHasCustomer"; -import type Contact from "./Contact"; -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[]; - } - enum ECustomerStatus { - VALIDATED = "VALIDATED", - PENDING = "PENDING", - ERRONED = "ERRONED" - } - type TCustomerStatus = ECustomerStatus.VALIDATED | ECustomerStatus.PENDING | ECustomerStatus.ERRONED; -} +import Customer from "./Customer"; export default Customer; +export { default as Address } from "./Address"; +export { default as Contact } from "./Contact"; +export { default as Deed } from "./Deed"; +export { default as DeedHasDocumentType } from "./DeedHasDocumentType"; +export { default as DeedType } from "./DeedType"; +export { default as DeedTypeHasDocumentType } from "./DeedTypeHasDocumentType"; +export { default as Document } from "./Document"; +export { default as DocumentHistory } from "./DocumentHistory"; +export { default as DocumentType } from "./DocumentType"; +export { default as File } from "./File"; +export { default as Notification } from "./Notification"; +export { default as Office } from "./Office"; +export { default as OfficeFolder } from "./OfficeFolder"; +export { default as OfficeFolderHasCustomer } from "./OfficeFolderHasCustomer"; +export { default as OfficeFolderHasStakeholder } from "./OfficeFolderHasStakeholder"; +export { default as UserHasNotification } from "./UserHasNotification"; diff --git a/dist/Customer/index.js b/dist/Customer/index.js index e7e8ca4..15d6063 100644 --- a/dist/Customer/index.js +++ b/dist/Customer/index.js @@ -1,57 +1,40 @@ "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); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -const class_validator_1 = require("class-validator"); -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", Function) - ], 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; - let ECustomerStatus; - (function (ECustomerStatus) { - ECustomerStatus["VALIDATED"] = "VALIDATED"; - ECustomerStatus["PENDING"] = "PENDING"; - ECustomerStatus["ERRONED"] = "ERRONED"; - })(ECustomerStatus = Customer.ECustomerStatus || (Customer.ECustomerStatus = {})); -})(Customer || (Customer = {})); -exports.default = Customer; +exports.UserHasNotification = exports.OfficeFolderHasStakeholder = exports.OfficeFolderHasCustomer = exports.OfficeFolder = exports.Office = exports.Notification = exports.File = exports.DocumentType = exports.DocumentHistory = exports.Document = exports.DeedTypeHasDocumentType = exports.DeedType = exports.DeedHasDocumentType = exports.Deed = exports.Contact = exports.Address = void 0; +const Customer_1 = __importDefault(require("./Customer")); +exports.default = Customer_1.default; +var Address_1 = require("./Address"); +Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return __importDefault(Address_1).default; } }); +var Contact_1 = require("./Contact"); +Object.defineProperty(exports, "Contact", { enumerable: true, get: function () { return __importDefault(Contact_1).default; } }); +var Deed_1 = require("./Deed"); +Object.defineProperty(exports, "Deed", { enumerable: true, get: function () { return __importDefault(Deed_1).default; } }); +var DeedHasDocumentType_1 = require("./DeedHasDocumentType"); +Object.defineProperty(exports, "DeedHasDocumentType", { enumerable: true, get: function () { return __importDefault(DeedHasDocumentType_1).default; } }); +var DeedType_1 = require("./DeedType"); +Object.defineProperty(exports, "DeedType", { enumerable: true, get: function () { return __importDefault(DeedType_1).default; } }); +var DeedTypeHasDocumentType_1 = require("./DeedTypeHasDocumentType"); +Object.defineProperty(exports, "DeedTypeHasDocumentType", { enumerable: true, get: function () { return __importDefault(DeedTypeHasDocumentType_1).default; } }); +var Document_1 = require("./Document"); +Object.defineProperty(exports, "Document", { enumerable: true, get: function () { return __importDefault(Document_1).default; } }); +var DocumentHistory_1 = require("./DocumentHistory"); +Object.defineProperty(exports, "DocumentHistory", { enumerable: true, get: function () { return __importDefault(DocumentHistory_1).default; } }); +var DocumentType_1 = require("./DocumentType"); +Object.defineProperty(exports, "DocumentType", { enumerable: true, get: function () { return __importDefault(DocumentType_1).default; } }); +var File_1 = require("./File"); +Object.defineProperty(exports, "File", { enumerable: true, get: function () { return __importDefault(File_1).default; } }); +var Notification_1 = require("./Notification"); +Object.defineProperty(exports, "Notification", { enumerable: true, get: function () { return __importDefault(Notification_1).default; } }); +var Office_1 = require("./Office"); +Object.defineProperty(exports, "Office", { enumerable: true, get: function () { return __importDefault(Office_1).default; } }); +var OfficeFolder_1 = require("./OfficeFolder"); +Object.defineProperty(exports, "OfficeFolder", { enumerable: true, get: function () { return __importDefault(OfficeFolder_1).default; } }); +var OfficeFolderHasCustomer_1 = require("./OfficeFolderHasCustomer"); +Object.defineProperty(exports, "OfficeFolderHasCustomer", { enumerable: true, get: function () { return __importDefault(OfficeFolderHasCustomer_1).default; } }); +var OfficeFolderHasStakeholder_1 = require("./OfficeFolderHasStakeholder"); +Object.defineProperty(exports, "OfficeFolderHasStakeholder", { enumerable: true, get: function () { return __importDefault(OfficeFolderHasStakeholder_1).default; } }); +var UserHasNotification_1 = require("./UserHasNotification"); +Object.defineProperty(exports, "UserHasNotification", { enumerable: true, get: function () { return __importDefault(UserHasNotification_1).default; } }); diff --git a/dist/Notary/Address.d.ts b/dist/Notary/Address.d.ts index 5cd21f5..cde5b59 100644 --- a/dist/Notary/Address.d.ts +++ b/dist/Notary/Address.d.ts @@ -1,6 +1,3 @@ -import Address_ from "../Customer/Address"; -declare namespace Address { - class IAddress extends Address_.IAddress { - } -} +export * from "../Customer/Address"; +import Address from "../Customer/Address"; export default Address; diff --git a/dist/Notary/Address.js b/dist/Notary/Address.js index 6b1c3f6..17284d9 100644 --- a/dist/Notary/Address.js +++ b/dist/Notary/Address.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Customer/Address"), exports); const Address_1 = __importDefault(require("../Customer/Address")); -var Address; -(function (Address) { - class IAddress extends Address_1.default.IAddress { - } - Address.IAddress = IAddress; -})(Address || (Address = {})); -exports.default = Address; +exports.default = Address_1.default; diff --git a/dist/Notary/Contact.d.ts b/dist/Notary/Contact.d.ts index 6b89a97..31e3263 100644 --- a/dist/Notary/Contact.d.ts +++ b/dist/Notary/Contact.d.ts @@ -1,6 +1,3 @@ -import Contact_ from "../Customer/Contact"; -declare namespace Contact { - class IContact extends Contact_.IContact { - } -} +export * from "../Customer/Contact"; +import Contact from "../Customer/Contact"; export default Contact; diff --git a/dist/Notary/Contact.js b/dist/Notary/Contact.js index 9f3d4ad..9600077 100644 --- a/dist/Notary/Contact.js +++ b/dist/Notary/Contact.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Customer/Contact"), exports); const Contact_1 = __importDefault(require("../Customer/Contact")); -var Contact; -(function (Contact) { - class IContact extends Contact_1.default.IContact { - } - Contact.IContact = IContact; -})(Contact || (Contact = {})); -exports.default = Contact; +exports.default = Contact_1.default; diff --git a/dist/Notary/Customer.d.ts b/dist/Notary/Customer.d.ts index 3b0283a..eda1b30 100644 --- a/dist/Notary/Customer.d.ts +++ b/dist/Notary/Customer.d.ts @@ -1,6 +1,3 @@ -import Customer_ from "../Customer"; -declare namespace Customer { - class ICustomer extends Customer_.ICustomer { - } -} +export * from "../Customer/Customer"; +import Customer from "../Customer/Customer"; export default Customer; diff --git a/dist/Notary/Customer.js b/dist/Notary/Customer.js index 4b02da6..8251ed4 100644 --- a/dist/Notary/Customer.js +++ b/dist/Notary/Customer.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -const Customer_1 = __importDefault(require("../Customer")); -var Customer; -(function (Customer) { - class ICustomer extends Customer_1.default.ICustomer { - } - Customer.ICustomer = ICustomer; -})(Customer || (Customer = {})); -exports.default = Customer; +__exportStar(require("../Customer/Customer"), exports); +const Customer_1 = __importDefault(require("../Customer/Customer")); +exports.default = Customer_1.default; diff --git a/dist/Notary/Deed.d.ts b/dist/Notary/Deed.d.ts index 3fafe85..6fe7b8f 100644 --- a/dist/Notary/Deed.d.ts +++ b/dist/Notary/Deed.d.ts @@ -1,6 +1,3 @@ -import Deed_ from "../Customer/Deed"; -declare namespace Deed { - class IDeed extends Deed_.IDeed { - } -} +export * from "../Customer/Deed"; +import Deed from "../Customer/Deed"; export default Deed; diff --git a/dist/Notary/Deed.js b/dist/Notary/Deed.js index a69f5b7..4924433 100644 --- a/dist/Notary/Deed.js +++ b/dist/Notary/Deed.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Customer/Deed"), exports); const Deed_1 = __importDefault(require("../Customer/Deed")); -var Deed; -(function (Deed) { - class IDeed extends Deed_1.default.IDeed { - } - Deed.IDeed = IDeed; -})(Deed || (Deed = {})); -exports.default = Deed; +exports.default = Deed_1.default; diff --git a/dist/Notary/DeedHasDocumentType.d.ts b/dist/Notary/DeedHasDocumentType.d.ts index 3596bda..babf74d 100644 --- a/dist/Notary/DeedHasDocumentType.d.ts +++ b/dist/Notary/DeedHasDocumentType.d.ts @@ -1,6 +1,3 @@ -import DeedHasDocumentType_ from "../Customer/DeedHasDocumentType"; -declare namespace DeedHasDocumentType { - class IDeedHasDocumentType extends DeedHasDocumentType_.IDeedHasDocumentType { - } -} +export * from "../Customer/DeedHasDocumentType"; +import DeedHasDocumentType from "../Customer/DeedHasDocumentType"; export default DeedHasDocumentType; diff --git a/dist/Notary/DeedHasDocumentType.js b/dist/Notary/DeedHasDocumentType.js index abec98b..c6341ad 100644 --- a/dist/Notary/DeedHasDocumentType.js +++ b/dist/Notary/DeedHasDocumentType.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Customer/DeedHasDocumentType"), exports); const DeedHasDocumentType_1 = __importDefault(require("../Customer/DeedHasDocumentType")); -var DeedHasDocumentType; -(function (DeedHasDocumentType) { - class IDeedHasDocumentType extends DeedHasDocumentType_1.default.IDeedHasDocumentType { - } - DeedHasDocumentType.IDeedHasDocumentType = IDeedHasDocumentType; -})(DeedHasDocumentType || (DeedHasDocumentType = {})); -exports.default = DeedHasDocumentType; +exports.default = DeedHasDocumentType_1.default; diff --git a/dist/Notary/DeedType.d.ts b/dist/Notary/DeedType.d.ts index d93dd57..5855f2f 100644 --- a/dist/Notary/DeedType.d.ts +++ b/dist/Notary/DeedType.d.ts @@ -1,6 +1,3 @@ -import DeedType_ from "../Customer/DeedType"; -declare namespace DeedType { - class IDeedType extends DeedType_.IDeedType { - } -} +export * from "../Customer/DeedType"; +import DeedType from "../Customer/DeedType"; export default DeedType; diff --git a/dist/Notary/DeedType.js b/dist/Notary/DeedType.js index 54a2096..cc6a061 100644 --- a/dist/Notary/DeedType.js +++ b/dist/Notary/DeedType.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Customer/DeedType"), exports); const DeedType_1 = __importDefault(require("../Customer/DeedType")); -var DeedType; -(function (DeedType) { - class IDeedType extends DeedType_1.default.IDeedType { - } - DeedType.IDeedType = IDeedType; -})(DeedType || (DeedType = {})); -exports.default = DeedType; +exports.default = DeedType_1.default; diff --git a/dist/Notary/DeedTypeHasDocumentType.d.ts b/dist/Notary/DeedTypeHasDocumentType.d.ts index 2e56840..1f3ea7a 100644 --- a/dist/Notary/DeedTypeHasDocumentType.d.ts +++ b/dist/Notary/DeedTypeHasDocumentType.d.ts @@ -1,6 +1,3 @@ -import DeedTypeHasDocumentType_ from "../Customer/DeedTypeHasDocumentType"; -declare namespace DeedTypeHasDocumentType { - class IDeedTypeHasDocumentType extends DeedTypeHasDocumentType_.IDeedTypeHasDocumentType { - } -} +export * from "../Customer/DeedTypeHasDocumentType"; +import DeedTypeHasDocumentType from "../Customer/DeedTypeHasDocumentType"; export default DeedTypeHasDocumentType; diff --git a/dist/Notary/DeedTypeHasDocumentType.js b/dist/Notary/DeedTypeHasDocumentType.js index 58b0a67..3a0fd88 100644 --- a/dist/Notary/DeedTypeHasDocumentType.js +++ b/dist/Notary/DeedTypeHasDocumentType.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Customer/DeedTypeHasDocumentType"), exports); const DeedTypeHasDocumentType_1 = __importDefault(require("../Customer/DeedTypeHasDocumentType")); -var DeedTypeHasDocumentType; -(function (DeedTypeHasDocumentType) { - class IDeedTypeHasDocumentType extends DeedTypeHasDocumentType_1.default.IDeedTypeHasDocumentType { - } - DeedTypeHasDocumentType.IDeedTypeHasDocumentType = IDeedTypeHasDocumentType; -})(DeedTypeHasDocumentType || (DeedTypeHasDocumentType = {})); -exports.default = DeedTypeHasDocumentType; +exports.default = DeedTypeHasDocumentType_1.default; diff --git a/dist/Notary/Document.d.ts b/dist/Notary/Document.d.ts index a56ccff..7d262ca 100644 --- a/dist/Notary/Document.d.ts +++ b/dist/Notary/Document.d.ts @@ -1,6 +1,3 @@ -import Document_ from "../Customer/Document"; -declare namespace Document { - class IDocument extends Document_.IDocument { - } -} +export * from "../Customer/Document"; +import Document from "../Customer/Document"; export default Document; diff --git a/dist/Notary/Document.js b/dist/Notary/Document.js index 92a3fa3..522b17b 100644 --- a/dist/Notary/Document.js +++ b/dist/Notary/Document.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Customer/Document"), exports); const Document_1 = __importDefault(require("../Customer/Document")); -var Document; -(function (Document) { - class IDocument extends Document_1.default.IDocument { - } - Document.IDocument = IDocument; -})(Document || (Document = {})); -exports.default = Document; +exports.default = Document_1.default; diff --git a/dist/Notary/DocumentHistory.d.ts b/dist/Notary/DocumentHistory.d.ts index d0ee244..f22030e 100644 --- a/dist/Notary/DocumentHistory.d.ts +++ b/dist/Notary/DocumentHistory.d.ts @@ -1,6 +1,3 @@ -import DocumentHistory_ from "../Customer/DocumentHistory"; -declare namespace DocumentHistory { - class IDocumentHistory extends DocumentHistory_.IDocumentHistory { - } -} +export * from "../Customer/DocumentHistory"; +import DocumentHistory from "../Customer/DocumentHistory"; export default DocumentHistory; diff --git a/dist/Notary/DocumentHistory.js b/dist/Notary/DocumentHistory.js index 652e0d9..e2dc18f 100644 --- a/dist/Notary/DocumentHistory.js +++ b/dist/Notary/DocumentHistory.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Customer/DocumentHistory"), exports); const DocumentHistory_1 = __importDefault(require("../Customer/DocumentHistory")); -var DocumentHistory; -(function (DocumentHistory) { - class IDocumentHistory extends DocumentHistory_1.default.IDocumentHistory { - } - DocumentHistory.IDocumentHistory = IDocumentHistory; -})(DocumentHistory || (DocumentHistory = {})); -exports.default = DocumentHistory; +exports.default = DocumentHistory_1.default; diff --git a/dist/Notary/DocumentType.d.ts b/dist/Notary/DocumentType.d.ts index d7b422c..bab66eb 100644 --- a/dist/Notary/DocumentType.d.ts +++ b/dist/Notary/DocumentType.d.ts @@ -1,6 +1,3 @@ -import DocumentType_ from "../Customer/DocumentType"; -declare namespace DocumentType { - class IDocumentType extends DocumentType_.IDocumentType { - } -} +export * from "../Customer/DocumentType"; +import DocumentType from "../Customer/DocumentType"; export default DocumentType; diff --git a/dist/Notary/DocumentType.js b/dist/Notary/DocumentType.js index c048704..87401df 100644 --- a/dist/Notary/DocumentType.js +++ b/dist/Notary/DocumentType.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Customer/DocumentType"), exports); const DocumentType_1 = __importDefault(require("../Customer/DocumentType")); -var DocumentType; -(function (DocumentType) { - class IDocumentType extends DocumentType_1.default.IDocumentType { - } - DocumentType.IDocumentType = IDocumentType; -})(DocumentType || (DocumentType = {})); -exports.default = DocumentType; +exports.default = DocumentType_1.default; diff --git a/dist/Notary/File.d.ts b/dist/Notary/File.d.ts index 487f9ec..dd0928b 100644 --- a/dist/Notary/File.d.ts +++ b/dist/Notary/File.d.ts @@ -1,6 +1,3 @@ -import File_ from "../Customer/File"; -declare namespace File { - class IFile extends File_.IFile { - } -} +export * from "../Customer/File"; +import File from "../Customer/File"; export default File; diff --git a/dist/Notary/File.js b/dist/Notary/File.js index 211bf14..4fbd040 100644 --- a/dist/Notary/File.js +++ b/dist/Notary/File.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Customer/File"), exports); const File_1 = __importDefault(require("../Customer/File")); -var File; -(function (File) { - class IFile extends File_1.default.IFile { - } - File.IFile = IFile; -})(File || (File = {})); -exports.default = File; +exports.default = File_1.default; diff --git a/dist/Notary/Notification.d.ts b/dist/Notary/Notification.d.ts index 354f954..9c38d99 100644 --- a/dist/Notary/Notification.d.ts +++ b/dist/Notary/Notification.d.ts @@ -1,6 +1,3 @@ -import Notification_ from "../Customer/Notification"; -declare namespace Notification { - class INotification extends Notification_.INotification { - } -} +export * from "../Customer/Notification"; +import Notification from "../Customer/Notification"; export default Notification; diff --git a/dist/Notary/Notification.js b/dist/Notary/Notification.js index 177380a..f72657f 100644 --- a/dist/Notary/Notification.js +++ b/dist/Notary/Notification.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Customer/Notification"), exports); const Notification_1 = __importDefault(require("../Customer/Notification")); -var Notification; -(function (Notification) { - class INotification extends Notification_1.default.INotification { - } - Notification.INotification = INotification; -})(Notification || (Notification = {})); -exports.default = Notification; +exports.default = Notification_1.default; diff --git a/dist/Notary/Office.d.ts b/dist/Notary/Office.d.ts index e1c11d7..43a4754 100644 --- a/dist/Notary/Office.d.ts +++ b/dist/Notary/Office.d.ts @@ -1,6 +1,3 @@ -import Office_ from "../Customer/Office"; -declare namespace Office { - class IOffice extends Office_.IOffice { - } -} +export * from "../Customer/Office"; +import Office from "../Customer/Office"; export default Office; diff --git a/dist/Notary/Office.js b/dist/Notary/Office.js index 748b708..2ee295f 100644 --- a/dist/Notary/Office.js +++ b/dist/Notary/Office.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Customer/Office"), exports); const Office_1 = __importDefault(require("../Customer/Office")); -var Office; -(function (Office) { - class IOffice extends Office_1.default.IOffice { - } - Office.IOffice = IOffice; -})(Office || (Office = {})); -exports.default = Office; +exports.default = Office_1.default; diff --git a/dist/Notary/OfficeFolder.d.ts b/dist/Notary/OfficeFolder.d.ts index d93977b..a653a67 100644 --- a/dist/Notary/OfficeFolder.d.ts +++ b/dist/Notary/OfficeFolder.d.ts @@ -1,6 +1,3 @@ -import OfficeFolder_ from "../Customer/OfficeFolder"; -declare namespace OfficeFolder { - class IOfficeFolder extends OfficeFolder_.IOfficeFolder { - } -} +export * from "../Customer/OfficeFolder"; +import OfficeFolder from "../Customer/OfficeFolder"; export default OfficeFolder; diff --git a/dist/Notary/OfficeFolder.js b/dist/Notary/OfficeFolder.js index a96e4c7..b8d548f 100644 --- a/dist/Notary/OfficeFolder.js +++ b/dist/Notary/OfficeFolder.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Customer/OfficeFolder"), exports); const OfficeFolder_1 = __importDefault(require("../Customer/OfficeFolder")); -var OfficeFolder; -(function (OfficeFolder) { - class IOfficeFolder extends OfficeFolder_1.default.IOfficeFolder { - } - OfficeFolder.IOfficeFolder = IOfficeFolder; -})(OfficeFolder || (OfficeFolder = {})); -exports.default = OfficeFolder; +exports.default = OfficeFolder_1.default; diff --git a/dist/Notary/OfficeFolderHasCustomer.d.ts b/dist/Notary/OfficeFolderHasCustomer.d.ts index 6298708..326c796 100644 --- a/dist/Notary/OfficeFolderHasCustomer.d.ts +++ b/dist/Notary/OfficeFolderHasCustomer.d.ts @@ -1,6 +1,3 @@ -import OfficeFolderHasCustomer_ from "../Customer/OfficeFolderHasCustomer"; -declare namespace OfficeFolderHasCustomer { - class IOfficeFolderHasCustomer extends OfficeFolderHasCustomer_.IOfficeFolderHasCustomer { - } -} +export * from "../Customer/OfficeFolderHasCustomer"; +import OfficeFolderHasCustomer from "../Customer/OfficeFolderHasCustomer"; export default OfficeFolderHasCustomer; diff --git a/dist/Notary/OfficeFolderHasCustomer.js b/dist/Notary/OfficeFolderHasCustomer.js index 322266e..8f4d73b 100644 --- a/dist/Notary/OfficeFolderHasCustomer.js +++ b/dist/Notary/OfficeFolderHasCustomer.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Customer/OfficeFolderHasCustomer"), exports); const OfficeFolderHasCustomer_1 = __importDefault(require("../Customer/OfficeFolderHasCustomer")); -var OfficeFolderHasCustomer; -(function (OfficeFolderHasCustomer) { - class IOfficeFolderHasCustomer extends OfficeFolderHasCustomer_1.default.IOfficeFolderHasCustomer { - } - OfficeFolderHasCustomer.IOfficeFolderHasCustomer = IOfficeFolderHasCustomer; -})(OfficeFolderHasCustomer || (OfficeFolderHasCustomer = {})); -exports.default = OfficeFolderHasCustomer; +exports.default = OfficeFolderHasCustomer_1.default; diff --git a/dist/Notary/OfficeFolderHasStakeholder.d.ts b/dist/Notary/OfficeFolderHasStakeholder.d.ts index 32b7de0..ecebbc4 100644 --- a/dist/Notary/OfficeFolderHasStakeholder.d.ts +++ b/dist/Notary/OfficeFolderHasStakeholder.d.ts @@ -1,6 +1,3 @@ -import OfficeFolderHasStakeholder_ from "../Customer/OfficeFolderHasStakeholder"; -declare namespace OfficeFolderHasStakeholder { - class IOfficeFolderHasStakeholder extends OfficeFolderHasStakeholder_.IOfficeFolderHasStakeholder { - } -} +export * from "../Customer/OfficeFolderHasStakeholder"; +import OfficeFolderHasStakeholder from "../Customer/OfficeFolderHasStakeholder"; export default OfficeFolderHasStakeholder; diff --git a/dist/Notary/OfficeFolderHasStakeholder.js b/dist/Notary/OfficeFolderHasStakeholder.js index d093e47..78639a4 100644 --- a/dist/Notary/OfficeFolderHasStakeholder.js +++ b/dist/Notary/OfficeFolderHasStakeholder.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Customer/OfficeFolderHasStakeholder"), exports); const OfficeFolderHasStakeholder_1 = __importDefault(require("../Customer/OfficeFolderHasStakeholder")); -var OfficeFolderHasStakeholder; -(function (OfficeFolderHasStakeholder) { - class IOfficeFolderHasStakeholder extends OfficeFolderHasStakeholder_1.default.IOfficeFolderHasStakeholder { - } - OfficeFolderHasStakeholder.IOfficeFolderHasStakeholder = IOfficeFolderHasStakeholder; -})(OfficeFolderHasStakeholder || (OfficeFolderHasStakeholder = {})); -exports.default = OfficeFolderHasStakeholder; +exports.default = OfficeFolderHasStakeholder_1.default; diff --git a/dist/Notary/User.d.ts b/dist/Notary/User.d.ts index 6b714d2..0f25d73 100644 --- a/dist/Notary/User.d.ts +++ b/dist/Notary/User.d.ts @@ -2,16 +2,13 @@ import Contact from "../Customer/Contact"; import Document from "../Customer/Document"; import Office from "../Customer/Office"; import OfficeFolderHasStakeholder from "../Customer/OfficeFolderHasStakeholder"; -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; - } +export default class User { + uuid: string; + idNot: string; + contact: Contact; + office_membership: Office; + created_at: Date | null; + updated_at: Date | null; + office_folder_has_stakeholders?: OfficeFolderHasStakeholder[]; + documents?: Document[]; } -export default User; diff --git a/dist/Notary/User.js b/dist/Notary/User.js index 7b1f0cf..66f58e8 100644 --- a/dist/Notary/User.js +++ b/dist/Notary/User.js @@ -14,48 +14,43 @@ var __importDefault = (this && this.__importDefault) || function (mod) { Object.defineProperty(exports, "__esModule", { value: true }); const class_validator_1 = require("class-validator"); const Contact_1 = __importDefault(require("../Customer/Contact")); -const Document_1 = __importDefault(require("../Customer/Document")); const Office_1 = __importDefault(require("../Customer/Office")); -var User; -(function (User) { - class IUser { - constructor() { - this.created_at = null; - this.updated_at = null; - } +class User { + 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.default.IContact) - ], IUser.prototype, "contact", void 0); - __decorate([ - (0, class_validator_1.IsNotEmpty)({ groups: ["create"] }), - __metadata("design:type", Office_1.default.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.default.IDocument) - ], IUser.prototype, "documents", void 0); - User.IUser = IUser; -})(User || (User = {})); +} +__decorate([ + (0, class_validator_1.IsNotEmpty)(), + __metadata("design:type", String) +], User.prototype, "uuid", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"] }), + __metadata("design:type", String) +], User.prototype, "idNot", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"] }), + __metadata("design:type", Contact_1.default) +], User.prototype, "contact", void 0); +__decorate([ + (0, class_validator_1.IsNotEmpty)({ groups: ["create"] }), + __metadata("design:type", Office_1.default) +], User.prototype, "office_membership", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], User.prototype, "created_at", void 0); +__decorate([ + (0, class_validator_1.IsDate)(), + __metadata("design:type", Object) +], User.prototype, "updated_at", void 0); +__decorate([ + (0, class_validator_1.IsOptional)(), + __metadata("design:type", Array) +], User.prototype, "office_folder_has_stakeholders", void 0); +__decorate([ + (0, class_validator_1.IsOptional)(), + __metadata("design:type", Array) +], User.prototype, "documents", void 0); exports.default = User; diff --git a/dist/Notary/UserHasNotification.d.ts b/dist/Notary/UserHasNotification.d.ts index 38363d4..336453a 100644 --- a/dist/Notary/UserHasNotification.d.ts +++ b/dist/Notary/UserHasNotification.d.ts @@ -1,6 +1,3 @@ -import UserHasNotification_ from "../Customer/UserHasNotification"; -declare namespace UserHasNotification { - class IUserHasNotification extends UserHasNotification_.IUserHasNotification { - } -} +export * from "../Customer/UserHasNotification"; +import UserHasNotification from "../Customer/UserHasNotification"; export default UserHasNotification; diff --git a/dist/Notary/UserHasNotification.js b/dist/Notary/UserHasNotification.js index b0ba944..0d5ae5b 100644 --- a/dist/Notary/UserHasNotification.js +++ b/dist/Notary/UserHasNotification.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Customer/UserHasNotification"), exports); const UserHasNotification_1 = __importDefault(require("../Customer/UserHasNotification")); -var UserHasNotification; -(function (UserHasNotification) { - class IUserHasNotification extends UserHasNotification_1.default.IUserHasNotification { - } - UserHasNotification.IUserHasNotification = IUserHasNotification; -})(UserHasNotification || (UserHasNotification = {})); -exports.default = UserHasNotification; +exports.default = UserHasNotification_1.default; diff --git a/dist/Notary/index.d.ts b/dist/Notary/index.d.ts index fc8a064..4c44553 100644 --- a/dist/Notary/index.d.ts +++ b/dist/Notary/index.d.ts @@ -1,3 +1,19 @@ import User from "./User"; -export { default as Customer } from "./Customer"; export default User; +export { default as Address } from "../SuperAdmin/Address"; +export { default as Customer } from "./Customer"; +export { default as Contact } from "./Contact"; +export { default as Deed } from "./Deed"; +export { default as DeedHasDocumentType } from "./DeedHasDocumentType"; +export { default as DeedType } from "./DeedType"; +export { default as DeedTypeHasDocumentType } from "./DeedTypeHasDocumentType"; +export { default as Document } from "./Document"; +export { default as DocumentHistory } from "./DocumentHistory"; +export { default as DocumentType } from "./DocumentType"; +export { default as File } from "./File"; +export { default as Notification } from "./Notification"; +export { default as Office } from "./Office"; +export { default as OfficeFolder } from "./OfficeFolder"; +export { default as OfficeFolderHasCustomer } from "./OfficeFolderHasCustomer"; +export { default as OfficeFolderHasStakeholder } from "./OfficeFolderHasStakeholder"; +export { default as UserHasNotification } from "./UserHasNotification"; diff --git a/dist/Notary/index.js b/dist/Notary/index.js index 3c9eb58..983f290 100644 --- a/dist/Notary/index.js +++ b/dist/Notary/index.js @@ -3,8 +3,40 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.Customer = void 0; +exports.UserHasNotification = exports.OfficeFolderHasStakeholder = exports.OfficeFolderHasCustomer = exports.OfficeFolder = exports.Office = exports.Notification = exports.File = exports.DocumentType = exports.DocumentHistory = exports.Document = exports.DeedTypeHasDocumentType = exports.DeedType = exports.DeedHasDocumentType = exports.Deed = exports.Contact = exports.Customer = exports.Address = void 0; const User_1 = __importDefault(require("./User")); +exports.default = User_1.default; +var Address_1 = require("../SuperAdmin/Address"); +Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return __importDefault(Address_1).default; } }); var Customer_1 = require("./Customer"); Object.defineProperty(exports, "Customer", { enumerable: true, get: function () { return __importDefault(Customer_1).default; } }); -exports.default = User_1.default; +var Contact_1 = require("./Contact"); +Object.defineProperty(exports, "Contact", { enumerable: true, get: function () { return __importDefault(Contact_1).default; } }); +var Deed_1 = require("./Deed"); +Object.defineProperty(exports, "Deed", { enumerable: true, get: function () { return __importDefault(Deed_1).default; } }); +var DeedHasDocumentType_1 = require("./DeedHasDocumentType"); +Object.defineProperty(exports, "DeedHasDocumentType", { enumerable: true, get: function () { return __importDefault(DeedHasDocumentType_1).default; } }); +var DeedType_1 = require("./DeedType"); +Object.defineProperty(exports, "DeedType", { enumerable: true, get: function () { return __importDefault(DeedType_1).default; } }); +var DeedTypeHasDocumentType_1 = require("./DeedTypeHasDocumentType"); +Object.defineProperty(exports, "DeedTypeHasDocumentType", { enumerable: true, get: function () { return __importDefault(DeedTypeHasDocumentType_1).default; } }); +var Document_1 = require("./Document"); +Object.defineProperty(exports, "Document", { enumerable: true, get: function () { return __importDefault(Document_1).default; } }); +var DocumentHistory_1 = require("./DocumentHistory"); +Object.defineProperty(exports, "DocumentHistory", { enumerable: true, get: function () { return __importDefault(DocumentHistory_1).default; } }); +var DocumentType_1 = require("./DocumentType"); +Object.defineProperty(exports, "DocumentType", { enumerable: true, get: function () { return __importDefault(DocumentType_1).default; } }); +var File_1 = require("./File"); +Object.defineProperty(exports, "File", { enumerable: true, get: function () { return __importDefault(File_1).default; } }); +var Notification_1 = require("./Notification"); +Object.defineProperty(exports, "Notification", { enumerable: true, get: function () { return __importDefault(Notification_1).default; } }); +var Office_1 = require("./Office"); +Object.defineProperty(exports, "Office", { enumerable: true, get: function () { return __importDefault(Office_1).default; } }); +var OfficeFolder_1 = require("./OfficeFolder"); +Object.defineProperty(exports, "OfficeFolder", { enumerable: true, get: function () { return __importDefault(OfficeFolder_1).default; } }); +var OfficeFolderHasCustomer_1 = require("./OfficeFolderHasCustomer"); +Object.defineProperty(exports, "OfficeFolderHasCustomer", { enumerable: true, get: function () { return __importDefault(OfficeFolderHasCustomer_1).default; } }); +var OfficeFolderHasStakeholder_1 = require("./OfficeFolderHasStakeholder"); +Object.defineProperty(exports, "OfficeFolderHasStakeholder", { enumerable: true, get: function () { return __importDefault(OfficeFolderHasStakeholder_1).default; } }); +var UserHasNotification_1 = require("./UserHasNotification"); +Object.defineProperty(exports, "UserHasNotification", { enumerable: true, get: function () { return __importDefault(UserHasNotification_1).default; } }); diff --git a/dist/Resource.d.ts b/dist/Resource.d.ts new file mode 100644 index 0000000..4d94677 --- /dev/null +++ b/dist/Resource.d.ts @@ -0,0 +1,7 @@ +import { type ClassTransformOptions } from "class-transformer"; +import { ValidatorOptions } from "class-validator"; +export default class Resource { + uid: string; + static hydrate(from: Partial, options?: ClassTransformOptions): T; + static validateOrReject(validatorOptions?: ValidatorOptions): Promise; +} diff --git a/dist/Resource.js b/dist/Resource.js new file mode 100644 index 0000000..c5e8552 --- /dev/null +++ b/dist/Resource.js @@ -0,0 +1,50 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +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 __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +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 }); +const class_transformer_1 = require("class-transformer"); +const class_validator_1 = __importStar(require("class-validator")); +class Resource { + static hydrate(from, options) { + const self = new this; + return (0, class_transformer_1.plainToClassFromExist)(self, from, options); + } + static validateOrReject(validatorOptions) { + return class_validator_1.default.validateOrReject(this, validatorOptions); + } +} +__decorate([ + (0, class_validator_1.IsNotEmpty)({ message: "UID is required" }), + __metadata("design:type", String) +], Resource.prototype, "uid", void 0); +exports.default = Resource; diff --git a/dist/SuperAdmin/Address.d.ts b/dist/SuperAdmin/Address.d.ts index 8c51269..ebf3210 100644 --- a/dist/SuperAdmin/Address.d.ts +++ b/dist/SuperAdmin/Address.d.ts @@ -1,6 +1,3 @@ -import Address_ from "../Admin/Address"; -declare namespace Address { - class IAddress extends Address_.IAddress { - } -} +export * from "../Admin/Address"; +import Address from "../Admin/Address"; export default Address; diff --git a/dist/SuperAdmin/Address.js b/dist/SuperAdmin/Address.js index a71ee86..1f21b2e 100644 --- a/dist/SuperAdmin/Address.js +++ b/dist/SuperAdmin/Address.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Admin/Address"), exports); const Address_1 = __importDefault(require("../Admin/Address")); -var Address; -(function (Address) { - class IAddress extends Address_1.default.IAddress { - } - Address.IAddress = IAddress; -})(Address || (Address = {})); -exports.default = Address; +exports.default = Address_1.default; diff --git a/dist/SuperAdmin/Contact.d.ts b/dist/SuperAdmin/Contact.d.ts index a3dc165..721f3be 100644 --- a/dist/SuperAdmin/Contact.d.ts +++ b/dist/SuperAdmin/Contact.d.ts @@ -1,6 +1,3 @@ -import Contact_ from "../Admin/Contact"; -declare namespace Contact { - class IContact extends Contact_.IContact { - } -} +export * from "../Admin/Contact"; +import Contact from "../Admin/Contact"; export default Contact; diff --git a/dist/SuperAdmin/Contact.js b/dist/SuperAdmin/Contact.js index 839c830..e164263 100644 --- a/dist/SuperAdmin/Contact.js +++ b/dist/SuperAdmin/Contact.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Admin/Contact"), exports); const Contact_1 = __importDefault(require("../Admin/Contact")); -var Contact; -(function (Contact) { - class IContact extends Contact_1.default.IContact { - } - Contact.IContact = IContact; -})(Contact || (Contact = {})); -exports.default = Contact; +exports.default = Contact_1.default; diff --git a/dist/SuperAdmin/Customer.d.ts b/dist/SuperAdmin/Customer.d.ts index 4e9c68e..e1b7490 100644 --- a/dist/SuperAdmin/Customer.d.ts +++ b/dist/SuperAdmin/Customer.d.ts @@ -1,6 +1,3 @@ -import Customer_ from "../Admin/Customer"; -declare namespace Customer { - class ICustomer extends Customer_.ICustomer { - } -} +export * from "../Admin/Customer"; +import Customer from "../Admin/Customer"; export default Customer; diff --git a/dist/SuperAdmin/Customer.js b/dist/SuperAdmin/Customer.js index f8470bf..2047ac7 100644 --- a/dist/SuperAdmin/Customer.js +++ b/dist/SuperAdmin/Customer.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Admin/Customer"), exports); const Customer_1 = __importDefault(require("../Admin/Customer")); -var Customer; -(function (Customer) { - class ICustomer extends Customer_1.default.ICustomer { - } - Customer.ICustomer = ICustomer; -})(Customer || (Customer = {})); -exports.default = Customer; +exports.default = Customer_1.default; diff --git a/dist/SuperAdmin/Deed.d.ts b/dist/SuperAdmin/Deed.d.ts index cb3888d..5a02d30 100644 --- a/dist/SuperAdmin/Deed.d.ts +++ b/dist/SuperAdmin/Deed.d.ts @@ -1,6 +1,3 @@ -import Deed_ from "../Admin/Deed"; -declare namespace Deed { - class IDeed extends Deed_.IDeed { - } -} +export * from "../Admin/Deed"; +import Deed from "../Admin/Deed"; export default Deed; diff --git a/dist/SuperAdmin/Deed.js b/dist/SuperAdmin/Deed.js index 44ea589..ada63ba 100644 --- a/dist/SuperAdmin/Deed.js +++ b/dist/SuperAdmin/Deed.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Admin/Deed"), exports); const Deed_1 = __importDefault(require("../Admin/Deed")); -var Deed; -(function (Deed) { - class IDeed extends Deed_1.default.IDeed { - } - Deed.IDeed = IDeed; -})(Deed || (Deed = {})); -exports.default = Deed; +exports.default = Deed_1.default; diff --git a/dist/SuperAdmin/DeedHasDocumentType.d.ts b/dist/SuperAdmin/DeedHasDocumentType.d.ts index 2e9ee8c..b7b5cd6 100644 --- a/dist/SuperAdmin/DeedHasDocumentType.d.ts +++ b/dist/SuperAdmin/DeedHasDocumentType.d.ts @@ -1,6 +1,3 @@ -import DeedHasDocumentType_ from "../Admin/DeedHasDocumentType"; -declare namespace DeedHasDocumentType { - class IDeedHasDocumentType extends DeedHasDocumentType_.IDeedHasDocumentType { - } -} +export * from "../Admin/DeedHasDocumentType"; +import DeedHasDocumentType from "../Admin/DeedHasDocumentType"; export default DeedHasDocumentType; diff --git a/dist/SuperAdmin/DeedHasDocumentType.js b/dist/SuperAdmin/DeedHasDocumentType.js index 2c51a42..5ccf9f6 100644 --- a/dist/SuperAdmin/DeedHasDocumentType.js +++ b/dist/SuperAdmin/DeedHasDocumentType.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Admin/DeedHasDocumentType"), exports); const DeedHasDocumentType_1 = __importDefault(require("../Admin/DeedHasDocumentType")); -var DeedHasDocumentType; -(function (DeedHasDocumentType) { - class IDeedHasDocumentType extends DeedHasDocumentType_1.default.IDeedHasDocumentType { - } - DeedHasDocumentType.IDeedHasDocumentType = IDeedHasDocumentType; -})(DeedHasDocumentType || (DeedHasDocumentType = {})); -exports.default = DeedHasDocumentType; +exports.default = DeedHasDocumentType_1.default; diff --git a/dist/SuperAdmin/DeedType.d.ts b/dist/SuperAdmin/DeedType.d.ts index f298e8c..12deb7b 100644 --- a/dist/SuperAdmin/DeedType.d.ts +++ b/dist/SuperAdmin/DeedType.d.ts @@ -1,6 +1,3 @@ -import DeedType_ from "../Admin/DeedType"; -declare namespace DeedType { - class IDeedType extends DeedType_.IDeedType { - } -} +export * from "../Admin/DeedType"; +import DeedType from "../Admin/DeedType"; export default DeedType; diff --git a/dist/SuperAdmin/DeedType.js b/dist/SuperAdmin/DeedType.js index eae4398..aa00a4f 100644 --- a/dist/SuperAdmin/DeedType.js +++ b/dist/SuperAdmin/DeedType.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Admin/DeedType"), exports); const DeedType_1 = __importDefault(require("../Admin/DeedType")); -var DeedType; -(function (DeedType) { - class IDeedType extends DeedType_1.default.IDeedType { - } - DeedType.IDeedType = IDeedType; -})(DeedType || (DeedType = {})); -exports.default = DeedType; +exports.default = DeedType_1.default; diff --git a/dist/SuperAdmin/DeedTypeHasDocumentType.d.ts b/dist/SuperAdmin/DeedTypeHasDocumentType.d.ts index 211f796..c1a0254 100644 --- a/dist/SuperAdmin/DeedTypeHasDocumentType.d.ts +++ b/dist/SuperAdmin/DeedTypeHasDocumentType.d.ts @@ -1,6 +1,3 @@ -import DeedTypeHasDocumentType_ from "../Admin/DeedTypeHasDocumentType"; -declare namespace DeedTypeHasDocumentType { - class IDeedTypeHasDocumentType extends DeedTypeHasDocumentType_.IDeedTypeHasDocumentType { - } -} +export * from "../Admin/DeedTypeHasDocumentType"; +import DeedTypeHasDocumentType from "../Admin/DeedTypeHasDocumentType"; export default DeedTypeHasDocumentType; diff --git a/dist/SuperAdmin/DeedTypeHasDocumentType.js b/dist/SuperAdmin/DeedTypeHasDocumentType.js index fd751f5..29dad65 100644 --- a/dist/SuperAdmin/DeedTypeHasDocumentType.js +++ b/dist/SuperAdmin/DeedTypeHasDocumentType.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Admin/DeedTypeHasDocumentType"), exports); const DeedTypeHasDocumentType_1 = __importDefault(require("../Admin/DeedTypeHasDocumentType")); -var DeedTypeHasDocumentType; -(function (DeedTypeHasDocumentType) { - class IDeedTypeHasDocumentType extends DeedTypeHasDocumentType_1.default.IDeedTypeHasDocumentType { - } - DeedTypeHasDocumentType.IDeedTypeHasDocumentType = IDeedTypeHasDocumentType; -})(DeedTypeHasDocumentType || (DeedTypeHasDocumentType = {})); -exports.default = DeedTypeHasDocumentType; +exports.default = DeedTypeHasDocumentType_1.default; diff --git a/dist/SuperAdmin/Document.d.ts b/dist/SuperAdmin/Document.d.ts index 07d8443..557dd0d 100644 --- a/dist/SuperAdmin/Document.d.ts +++ b/dist/SuperAdmin/Document.d.ts @@ -1,6 +1,3 @@ -import Document_ from "../Admin/Document"; -declare namespace Document { - class IDocument extends Document_.IDocument { - } -} +export * from "../Admin/Document"; +import Document from "../Admin/Document"; export default Document; diff --git a/dist/SuperAdmin/Document.js b/dist/SuperAdmin/Document.js index f6506a0..480d66b 100644 --- a/dist/SuperAdmin/Document.js +++ b/dist/SuperAdmin/Document.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Admin/Document"), exports); const Document_1 = __importDefault(require("../Admin/Document")); -var Document; -(function (Document) { - class IDocument extends Document_1.default.IDocument { - } - Document.IDocument = IDocument; -})(Document || (Document = {})); -exports.default = Document; +exports.default = Document_1.default; diff --git a/dist/SuperAdmin/DocumentHistory.d.ts b/dist/SuperAdmin/DocumentHistory.d.ts index bd11cad..93794d8 100644 --- a/dist/SuperAdmin/DocumentHistory.d.ts +++ b/dist/SuperAdmin/DocumentHistory.d.ts @@ -1,6 +1,3 @@ -import DocumentHistory_ from "../Admin/DocumentHistory"; -declare namespace DocumentHistory { - class IDocumentHistory extends DocumentHistory_.IDocumentHistory { - } -} +export * from "../Admin/DocumentHistory"; +import DocumentHistory from "../Admin/DocumentHistory"; export default DocumentHistory; diff --git a/dist/SuperAdmin/DocumentHistory.js b/dist/SuperAdmin/DocumentHistory.js index 2c41ca2..0c73e7b 100644 --- a/dist/SuperAdmin/DocumentHistory.js +++ b/dist/SuperAdmin/DocumentHistory.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Admin/DocumentHistory"), exports); const DocumentHistory_1 = __importDefault(require("../Admin/DocumentHistory")); -var DocumentHistory; -(function (DocumentHistory) { - class IDocumentHistory extends DocumentHistory_1.default.IDocumentHistory { - } - DocumentHistory.IDocumentHistory = IDocumentHistory; -})(DocumentHistory || (DocumentHistory = {})); -exports.default = DocumentHistory; +exports.default = DocumentHistory_1.default; diff --git a/dist/SuperAdmin/DocumentType.d.ts b/dist/SuperAdmin/DocumentType.d.ts index 09b58d1..0eaabbe 100644 --- a/dist/SuperAdmin/DocumentType.d.ts +++ b/dist/SuperAdmin/DocumentType.d.ts @@ -1,6 +1,3 @@ -import DocumentType_ from "../Admin/DocumentType"; -declare namespace DocumentType { - class IDocumentType extends DocumentType_.IDocumentType { - } -} +export * from "../Admin/DocumentType"; +import DocumentType from "../Admin/DocumentType"; export default DocumentType; diff --git a/dist/SuperAdmin/DocumentType.js b/dist/SuperAdmin/DocumentType.js index 6eab883..a92570f 100644 --- a/dist/SuperAdmin/DocumentType.js +++ b/dist/SuperAdmin/DocumentType.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Admin/DocumentType"), exports); const DocumentType_1 = __importDefault(require("../Admin/DocumentType")); -var DocumentType; -(function (DocumentType) { - class IDocumentType extends DocumentType_1.default.IDocumentType { - } - DocumentType.IDocumentType = IDocumentType; -})(DocumentType || (DocumentType = {})); -exports.default = DocumentType; +exports.default = DocumentType_1.default; diff --git a/dist/SuperAdmin/File.d.ts b/dist/SuperAdmin/File.d.ts index 2fb35f6..de7620f 100644 --- a/dist/SuperAdmin/File.d.ts +++ b/dist/SuperAdmin/File.d.ts @@ -1,6 +1,3 @@ -import File_ from "../Admin/File"; -declare namespace File { - class IFile extends File_.IFile { - } -} +export * from "../Admin/File"; +import File from "../Admin/File"; export default File; diff --git a/dist/SuperAdmin/File.js b/dist/SuperAdmin/File.js index 5c81f68..cdf1d8b 100644 --- a/dist/SuperAdmin/File.js +++ b/dist/SuperAdmin/File.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Admin/File"), exports); const File_1 = __importDefault(require("../Admin/File")); -var File; -(function (File) { - class IFile extends File_1.default.IFile { - } - File.IFile = IFile; -})(File || (File = {})); -exports.default = File; +exports.default = File_1.default; diff --git a/dist/SuperAdmin/Notification.d.ts b/dist/SuperAdmin/Notification.d.ts index 93cc7d9..3a94fde 100644 --- a/dist/SuperAdmin/Notification.d.ts +++ b/dist/SuperAdmin/Notification.d.ts @@ -1,6 +1,3 @@ -import Notification_ from "../Admin/Notification"; -declare namespace Notification { - class INotification extends Notification_.INotification { - } -} +export * from "../Admin/Notification"; +import Notification from "../Admin/Notification"; export default Notification; diff --git a/dist/SuperAdmin/Notification.js b/dist/SuperAdmin/Notification.js index 16504e7..204ea89 100644 --- a/dist/SuperAdmin/Notification.js +++ b/dist/SuperAdmin/Notification.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Admin/Notification"), exports); const Notification_1 = __importDefault(require("../Admin/Notification")); -var Notification; -(function (Notification) { - class INotification extends Notification_1.default.INotification { - } - Notification.INotification = INotification; -})(Notification || (Notification = {})); -exports.default = Notification; +exports.default = Notification_1.default; diff --git a/dist/SuperAdmin/Office.d.ts b/dist/SuperAdmin/Office.d.ts index 3dda90d..74c1b8f 100644 --- a/dist/SuperAdmin/Office.d.ts +++ b/dist/SuperAdmin/Office.d.ts @@ -1,6 +1,3 @@ -import Office_ from "../Admin/Office"; -declare namespace Office { - class IOffice extends Office_.IOffice { - } -} +export * from "../Admin/Office"; +import Office from "../Admin/Office"; export default Office; diff --git a/dist/SuperAdmin/Office.js b/dist/SuperAdmin/Office.js index 06ef917..b7123e5 100644 --- a/dist/SuperAdmin/Office.js +++ b/dist/SuperAdmin/Office.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Admin/Office"), exports); const Office_1 = __importDefault(require("../Admin/Office")); -var Office; -(function (Office) { - class IOffice extends Office_1.default.IOffice { - } - Office.IOffice = IOffice; -})(Office || (Office = {})); -exports.default = Office; +exports.default = Office_1.default; diff --git a/dist/SuperAdmin/OfficeFolder.d.ts b/dist/SuperAdmin/OfficeFolder.d.ts index d594ff9..afbb0a2 100644 --- a/dist/SuperAdmin/OfficeFolder.d.ts +++ b/dist/SuperAdmin/OfficeFolder.d.ts @@ -1,6 +1,3 @@ -import OfficeFolder_ from "../Admin/OfficeFolder"; -declare namespace OfficeFolder { - class IOfficeFolder extends OfficeFolder_.IOfficeFolder { - } -} +export * from "../Admin/OfficeFolder"; +import OfficeFolder from "../Admin/OfficeFolder"; export default OfficeFolder; diff --git a/dist/SuperAdmin/OfficeFolder.js b/dist/SuperAdmin/OfficeFolder.js index d213466..d9bf67e 100644 --- a/dist/SuperAdmin/OfficeFolder.js +++ b/dist/SuperAdmin/OfficeFolder.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Admin/OfficeFolder"), exports); const OfficeFolder_1 = __importDefault(require("../Admin/OfficeFolder")); -var OfficeFolder; -(function (OfficeFolder) { - class IOfficeFolder extends OfficeFolder_1.default.IOfficeFolder { - } - OfficeFolder.IOfficeFolder = IOfficeFolder; -})(OfficeFolder || (OfficeFolder = {})); -exports.default = OfficeFolder; +exports.default = OfficeFolder_1.default; diff --git a/dist/SuperAdmin/OfficeFolderHasCustomer.d.ts b/dist/SuperAdmin/OfficeFolderHasCustomer.d.ts index 5c22428..633e68b 100644 --- a/dist/SuperAdmin/OfficeFolderHasCustomer.d.ts +++ b/dist/SuperAdmin/OfficeFolderHasCustomer.d.ts @@ -1,6 +1,3 @@ -import OfficeFolderHasCustomer_ from "../Admin/OfficeFolderHasCustomer"; -declare namespace OfficeFolderHasCustomer { - class IOfficeFolderHasCustomer extends OfficeFolderHasCustomer_.IOfficeFolderHasCustomer { - } -} +export * from "../Admin/OfficeFolderHasCustomer"; +import OfficeFolderHasCustomer from "../Admin/OfficeFolderHasCustomer"; export default OfficeFolderHasCustomer; diff --git a/dist/SuperAdmin/OfficeFolderHasCustomer.js b/dist/SuperAdmin/OfficeFolderHasCustomer.js index 034d94f..73b1539 100644 --- a/dist/SuperAdmin/OfficeFolderHasCustomer.js +++ b/dist/SuperAdmin/OfficeFolderHasCustomer.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Admin/OfficeFolderHasCustomer"), exports); const OfficeFolderHasCustomer_1 = __importDefault(require("../Admin/OfficeFolderHasCustomer")); -var OfficeFolderHasCustomer; -(function (OfficeFolderHasCustomer) { - class IOfficeFolderHasCustomer extends OfficeFolderHasCustomer_1.default.IOfficeFolderHasCustomer { - } - OfficeFolderHasCustomer.IOfficeFolderHasCustomer = IOfficeFolderHasCustomer; -})(OfficeFolderHasCustomer || (OfficeFolderHasCustomer = {})); -exports.default = OfficeFolderHasCustomer; +exports.default = OfficeFolderHasCustomer_1.default; diff --git a/dist/SuperAdmin/OfficeFolderHasStakeholder.d.ts b/dist/SuperAdmin/OfficeFolderHasStakeholder.d.ts index ca6b8e6..53b83e4 100644 --- a/dist/SuperAdmin/OfficeFolderHasStakeholder.d.ts +++ b/dist/SuperAdmin/OfficeFolderHasStakeholder.d.ts @@ -1,6 +1,3 @@ -import OfficeFolderHasStakeholder_ from "../Admin/OfficeFolderHasStakeholder"; -declare namespace OfficeFolderHasStakeholder { - class IOfficeFolderHasStakeholder extends OfficeFolderHasStakeholder_.IOfficeFolderHasStakeholder { - } -} +export * from "../Admin/OfficeFolderHasStakeholder"; +import OfficeFolderHasStakeholder from "../Admin/OfficeFolderHasStakeholder"; export default OfficeFolderHasStakeholder; diff --git a/dist/SuperAdmin/OfficeFolderHasStakeholder.js b/dist/SuperAdmin/OfficeFolderHasStakeholder.js index def2d82..f774871 100644 --- a/dist/SuperAdmin/OfficeFolderHasStakeholder.js +++ b/dist/SuperAdmin/OfficeFolderHasStakeholder.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Admin/OfficeFolderHasStakeholder"), exports); const OfficeFolderHasStakeholder_1 = __importDefault(require("../Admin/OfficeFolderHasStakeholder")); -var OfficeFolderHasStakeholder; -(function (OfficeFolderHasStakeholder) { - class IOfficeFolderHasStakeholder extends OfficeFolderHasStakeholder_1.default.IOfficeFolderHasStakeholder { - } - OfficeFolderHasStakeholder.IOfficeFolderHasStakeholder = IOfficeFolderHasStakeholder; -})(OfficeFolderHasStakeholder || (OfficeFolderHasStakeholder = {})); -exports.default = OfficeFolderHasStakeholder; +exports.default = OfficeFolderHasStakeholder_1.default; diff --git a/dist/SuperAdmin/User.d.ts b/dist/SuperAdmin/User.d.ts index a578aef..0baf630 100644 --- a/dist/SuperAdmin/User.d.ts +++ b/dist/SuperAdmin/User.d.ts @@ -1,6 +1,3 @@ -import User_ from "../Admin/User"; -declare namespace User { - class IUser extends User_.IUser { - } -} +export * from "../Admin/User"; +import User from "../Admin/User"; export default User; diff --git a/dist/SuperAdmin/User.js b/dist/SuperAdmin/User.js index 1784df3..e6567d0 100644 --- a/dist/SuperAdmin/User.js +++ b/dist/SuperAdmin/User.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("../Admin/User"), exports); const User_1 = __importDefault(require("../Admin/User")); -var User; -(function (User) { - class IUser extends User_1.default.IUser { - } - User.IUser = IUser; -})(User || (User = {})); -exports.default = User; +exports.default = User_1.default; diff --git a/dist/SuperAdmin/UserHasNotification.d.ts b/dist/SuperAdmin/UserHasNotification.d.ts index 38363d4..d705282 100644 --- a/dist/SuperAdmin/UserHasNotification.d.ts +++ b/dist/SuperAdmin/UserHasNotification.d.ts @@ -1,6 +1,3 @@ -import UserHasNotification_ from "../Customer/UserHasNotification"; -declare namespace UserHasNotification { - class IUserHasNotification extends UserHasNotification_.IUserHasNotification { - } -} +export * from "../Admin/UserHasNotification"; +import UserHasNotification from "../Admin/UserHasNotification"; export default UserHasNotification; diff --git a/dist/SuperAdmin/UserHasNotification.js b/dist/SuperAdmin/UserHasNotification.js index b0ba944..aae8a9e 100644 --- a/dist/SuperAdmin/UserHasNotification.js +++ b/dist/SuperAdmin/UserHasNotification.js @@ -1,13 +1,22 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -const UserHasNotification_1 = __importDefault(require("../Customer/UserHasNotification")); -var UserHasNotification; -(function (UserHasNotification) { - class IUserHasNotification extends UserHasNotification_1.default.IUserHasNotification { - } - UserHasNotification.IUserHasNotification = IUserHasNotification; -})(UserHasNotification || (UserHasNotification = {})); -exports.default = UserHasNotification; +__exportStar(require("../Admin/UserHasNotification"), exports); +const UserHasNotification_1 = __importDefault(require("../Admin/UserHasNotification")); +exports.default = UserHasNotification_1.default; diff --git a/dist/SuperAdmin/index.d.ts b/dist/SuperAdmin/index.d.ts new file mode 100644 index 0000000..eab76cf --- /dev/null +++ b/dist/SuperAdmin/index.d.ts @@ -0,0 +1,19 @@ +import User from "./User"; +export default User; +export { default as Address } from "./Address"; +export { default as Customer } from "./Customer"; +export { default as Contact } from "./Contact"; +export { default as Deed } from "./Deed"; +export { default as DeedHasDocumentType } from "./DeedHasDocumentType"; +export { default as DeedType } from "./DeedType"; +export { default as DeedTypeHasDocumentType } from "./DeedTypeHasDocumentType"; +export { default as Document } from "./Document"; +export { default as DocumentHistory } from "./DocumentHistory"; +export { default as DocumentType } from "./DocumentType"; +export { default as File } from "./File"; +export { default as Notification } from "./Notification"; +export { default as Office } from "./Office"; +export { default as OfficeFolder } from "./OfficeFolder"; +export { default as OfficeFolderHasCustomer } from "./OfficeFolderHasCustomer"; +export { default as OfficeFolderHasStakeholder } from "./OfficeFolderHasStakeholder"; +export { default as UserHasNotification } from "./UserHasNotification"; diff --git a/dist/SuperAdmin/index.js b/dist/SuperAdmin/index.js new file mode 100644 index 0000000..2b06943 --- /dev/null +++ b/dist/SuperAdmin/index.js @@ -0,0 +1,42 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UserHasNotification = exports.OfficeFolderHasStakeholder = exports.OfficeFolderHasCustomer = exports.OfficeFolder = exports.Office = exports.Notification = exports.File = exports.DocumentType = exports.DocumentHistory = exports.Document = exports.DeedTypeHasDocumentType = exports.DeedType = exports.DeedHasDocumentType = exports.Deed = exports.Contact = exports.Customer = exports.Address = void 0; +const User_1 = __importDefault(require("./User")); +exports.default = User_1.default; +var Address_1 = require("./Address"); +Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return __importDefault(Address_1).default; } }); +var Customer_1 = require("./Customer"); +Object.defineProperty(exports, "Customer", { enumerable: true, get: function () { return __importDefault(Customer_1).default; } }); +var Contact_1 = require("./Contact"); +Object.defineProperty(exports, "Contact", { enumerable: true, get: function () { return __importDefault(Contact_1).default; } }); +var Deed_1 = require("./Deed"); +Object.defineProperty(exports, "Deed", { enumerable: true, get: function () { return __importDefault(Deed_1).default; } }); +var DeedHasDocumentType_1 = require("./DeedHasDocumentType"); +Object.defineProperty(exports, "DeedHasDocumentType", { enumerable: true, get: function () { return __importDefault(DeedHasDocumentType_1).default; } }); +var DeedType_1 = require("./DeedType"); +Object.defineProperty(exports, "DeedType", { enumerable: true, get: function () { return __importDefault(DeedType_1).default; } }); +var DeedTypeHasDocumentType_1 = require("./DeedTypeHasDocumentType"); +Object.defineProperty(exports, "DeedTypeHasDocumentType", { enumerable: true, get: function () { return __importDefault(DeedTypeHasDocumentType_1).default; } }); +var Document_1 = require("./Document"); +Object.defineProperty(exports, "Document", { enumerable: true, get: function () { return __importDefault(Document_1).default; } }); +var DocumentHistory_1 = require("./DocumentHistory"); +Object.defineProperty(exports, "DocumentHistory", { enumerable: true, get: function () { return __importDefault(DocumentHistory_1).default; } }); +var DocumentType_1 = require("./DocumentType"); +Object.defineProperty(exports, "DocumentType", { enumerable: true, get: function () { return __importDefault(DocumentType_1).default; } }); +var File_1 = require("./File"); +Object.defineProperty(exports, "File", { enumerable: true, get: function () { return __importDefault(File_1).default; } }); +var Notification_1 = require("./Notification"); +Object.defineProperty(exports, "Notification", { enumerable: true, get: function () { return __importDefault(Notification_1).default; } }); +var Office_1 = require("./Office"); +Object.defineProperty(exports, "Office", { enumerable: true, get: function () { return __importDefault(Office_1).default; } }); +var OfficeFolder_1 = require("./OfficeFolder"); +Object.defineProperty(exports, "OfficeFolder", { enumerable: true, get: function () { return __importDefault(OfficeFolder_1).default; } }); +var OfficeFolderHasCustomer_1 = require("./OfficeFolderHasCustomer"); +Object.defineProperty(exports, "OfficeFolderHasCustomer", { enumerable: true, get: function () { return __importDefault(OfficeFolderHasCustomer_1).default; } }); +var OfficeFolderHasStakeholder_1 = require("./OfficeFolderHasStakeholder"); +Object.defineProperty(exports, "OfficeFolderHasStakeholder", { enumerable: true, get: function () { return __importDefault(OfficeFolderHasStakeholder_1).default; } }); +var UserHasNotification_1 = require("./UserHasNotification"); +Object.defineProperty(exports, "UserHasNotification", { enumerable: true, get: function () { return __importDefault(UserHasNotification_1).default; } }); diff --git a/package-lock.json b/package-lock.json index d15217a..d009424 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,13 @@ { - "name": "le-coffre-ressources", + "name": "le-coffre-resources", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "le-coffre-ressources", + "name": "le-coffre-resources", "license": "MIT", "dependencies": { + "class-transformer": "^0.5.1", "class-validator": "^0.14.0" }, "devDependencies": { @@ -608,6 +609,11 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/class-transformer": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.5.1.tgz", + "integrity": "sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==" + }, "node_modules/class-validator": { "version": "0.14.0", "resolved": "https://registry.npmjs.org/class-validator/-/class-validator-0.14.0.tgz", @@ -2715,6 +2721,11 @@ "supports-color": "^7.1.0" } }, + "class-transformer": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.5.1.tgz", + "integrity": "sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==" + }, "class-validator": { "version": "0.14.0", "resolved": "https://registry.npmjs.org/class-validator/-/class-validator-0.14.0.tgz", diff --git a/package.json b/package.json index 81c16ba..a02e950 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "typescript": "~4.6.0" }, "dependencies": { + "class-transformer": "^0.5.1", "class-validator": "^0.14.0" } } diff --git a/src/Admin/Address.ts b/src/Admin/Address.ts index 43d2e1e..525ea21 100644 --- a/src/Admin/Address.ts +++ b/src/Admin/Address.ts @@ -1,7 +1,4 @@ -import Address_ from "../Notary/Address"; +export * from "../Notary/Address"; +import Address from "../Notary/Address"; -namespace Address { - export class IAddress extends Address_.IAddress {} -} - -export default Address; +export default Address; \ No newline at end of file diff --git a/src/Admin/Contact.ts b/src/Admin/Contact.ts index 34e57cd..24a4d53 100644 --- a/src/Admin/Contact.ts +++ b/src/Admin/Contact.ts @@ -1,7 +1,4 @@ -import Contact_ from "../Notary/Contact"; +export * from "../Notary/Contact"; +import Contact from "../Notary/Contact"; -namespace Contact { - export class IContact extends Contact_.IContact {} -} - -export default Contact; +export default Contact; \ No newline at end of file diff --git a/src/Admin/Customer.ts b/src/Admin/Customer.ts index f087936..c2462e7 100644 --- a/src/Admin/Customer.ts +++ b/src/Admin/Customer.ts @@ -1,7 +1,4 @@ -import Customer_ from "../Customer"; +export * from "../Notary/Customer"; +import Customer from "../Notary/Customer"; -namespace Customer { - export class ICustomer extends Customer_.ICustomer {} -} - -export default Customer; +export default Customer; \ No newline at end of file diff --git a/src/Admin/Deed.ts b/src/Admin/Deed.ts index 5a0a1f7..dfaba34 100644 --- a/src/Admin/Deed.ts +++ b/src/Admin/Deed.ts @@ -1,7 +1,4 @@ -import Deed_ from "../Notary/Deed"; +export * from "../Notary/Deed"; +import Deed from "../Notary/Deed"; -namespace Deed { - export class IDeed extends Deed_.IDeed {} -} - -export default Deed; +export default Deed; \ No newline at end of file diff --git a/src/Admin/DeedHasDocumentType.ts b/src/Admin/DeedHasDocumentType.ts index 804c0c2..ebdf4ff 100644 --- a/src/Admin/DeedHasDocumentType.ts +++ b/src/Admin/DeedHasDocumentType.ts @@ -1,7 +1,4 @@ -import DeedHasDocumentType_ from "../Notary/DeedHasDocumentType"; +export * from "../Notary/DeedHasDocumentType"; +import DeedHasDocumentType from "../Notary/DeedHasDocumentType"; -namespace DeedHasDocumentType { - export class IDeedHasDocumentType extends DeedHasDocumentType_.IDeedHasDocumentType {} -} - -export default DeedHasDocumentType; +export default DeedHasDocumentType; \ No newline at end of file diff --git a/src/Admin/DeedType.ts b/src/Admin/DeedType.ts index bfa0668..e0c1e14 100644 --- a/src/Admin/DeedType.ts +++ b/src/Admin/DeedType.ts @@ -1,7 +1,4 @@ -import DeedType_ from "../Notary/DeedType"; +export * from "../Notary/DeedType"; +import DeedType from "../Notary/DeedType"; -namespace DeedType { - export class IDeedType extends DeedType_.IDeedType {} -} - -export default DeedType; +export default DeedType; \ No newline at end of file diff --git a/src/Admin/DeedTypeHasDocumentType.ts b/src/Admin/DeedTypeHasDocumentType.ts index 34209b7..4671213 100644 --- a/src/Admin/DeedTypeHasDocumentType.ts +++ b/src/Admin/DeedTypeHasDocumentType.ts @@ -1,7 +1,4 @@ -import DeedTypeHasDocumentType_ from "../Notary/DeedTypeHasDocumentType"; - -namespace DeedTypeHasDocumentType { - export class IDeedTypeHasDocumentType extends DeedTypeHasDocumentType_.IDeedTypeHasDocumentType {} -} +export * from "../Notary/DeedTypeHasDocumentType"; +import DeedTypeHasDocumentType from "../Notary/DeedTypeHasDocumentType"; export default DeedTypeHasDocumentType; diff --git a/src/Admin/Document.ts b/src/Admin/Document.ts index 866e47a..86b9433 100644 --- a/src/Admin/Document.ts +++ b/src/Admin/Document.ts @@ -1,7 +1,4 @@ -import Document_ from "../Notary/Document"; - -namespace Document { - export class IDocument extends Document_.IDocument {} -} +export * from "../Notary/Document"; +import Document from "../Notary/Document"; export default Document; diff --git a/src/Admin/DocumentHistory.ts b/src/Admin/DocumentHistory.ts index 3898cfa..17783de 100644 --- a/src/Admin/DocumentHistory.ts +++ b/src/Admin/DocumentHistory.ts @@ -1,7 +1,4 @@ -import DocumentHistory_ from "../Notary/DocumentHistory"; - -namespace DocumentHistory { - export class IDocumentHistory extends DocumentHistory_.IDocumentHistory {} -} +export * from "../Notary/DocumentHistory"; +import DocumentHistory from "../Notary/DocumentHistory"; export default DocumentHistory; diff --git a/src/Admin/DocumentType.ts b/src/Admin/DocumentType.ts index 0e3ec9b..c369da6 100644 --- a/src/Admin/DocumentType.ts +++ b/src/Admin/DocumentType.ts @@ -1,7 +1,4 @@ -import DocumentType_ from "../Notary/DocumentType"; - -namespace DocumentType { - export class IDocumentType extends DocumentType_.IDocumentType {} -} +export * from "../Notary/DocumentType"; +import DocumentType from "../Notary/DocumentType"; export default DocumentType; diff --git a/src/Admin/File.ts b/src/Admin/File.ts index 9004b65..8b2dd5d 100644 --- a/src/Admin/File.ts +++ b/src/Admin/File.ts @@ -1,7 +1,4 @@ -import File_ from "../Notary/File"; - -namespace File { - export class IFile extends File_.IFile {} -} +export * from "../Notary/File"; +import File from "../Notary/File"; export default File; diff --git a/src/Admin/Notification.ts b/src/Admin/Notification.ts index 8b1dfee..bdde43b 100644 --- a/src/Admin/Notification.ts +++ b/src/Admin/Notification.ts @@ -1,7 +1,4 @@ -import Notification_ from "../Notary/Notification"; - -namespace Notification { - export class INotification extends Notification_.INotification {} -} +export * from "../Notary/Notification"; +import Notification from "../Notary/Notification"; export default Notification; diff --git a/src/Admin/Office.ts b/src/Admin/Office.ts index 00ac4e9..1846c84 100644 --- a/src/Admin/Office.ts +++ b/src/Admin/Office.ts @@ -1,7 +1,18 @@ -import Office_ from "../Notary/Office"; - -namespace Office { - export class IOffice extends Office_.IOffice {} -} +export * from "../Notary/Office"; +import Office from "../Notary/Office"; export default Office; + + +/** + * @description If we overrride the users we should be able to use the new overrided Notary user type + */ +// export * from "../Notary/Office"; +// import { IsOptional } from "class-validator"; +// import Office_ from "../Notary/Office"; +// import Notary from "."; + +// export default class Office extends Office_ { +// @IsOptional() +// public override users?: Notary[]; +// }; \ No newline at end of file diff --git a/src/Admin/OfficeFolder.ts b/src/Admin/OfficeFolder.ts index d070233..619026a 100644 --- a/src/Admin/OfficeFolder.ts +++ b/src/Admin/OfficeFolder.ts @@ -1,7 +1,4 @@ -import OfficeFolder_ from "../Notary/OfficeFolder"; +export * from "../Notary/OfficeFolder"; +import OfficeFolder from "../Notary/OfficeFolder"; -namespace OfficeFolder { - export class IOfficeFolder extends OfficeFolder_.IOfficeFolder {} -} - -export default OfficeFolder; +export default OfficeFolder; \ No newline at end of file diff --git a/src/Admin/OfficeFolderHasCustomer.ts b/src/Admin/OfficeFolderHasCustomer.ts index 5578d14..7e3911b 100644 --- a/src/Admin/OfficeFolderHasCustomer.ts +++ b/src/Admin/OfficeFolderHasCustomer.ts @@ -1,7 +1,4 @@ -import OfficeFolderHasCustomer_ from "../Notary/OfficeFolderHasCustomer"; - -namespace OfficeFolderHasCustomer { - export class IOfficeFolderHasCustomer extends OfficeFolderHasCustomer_.IOfficeFolderHasCustomer {} -} +export * from "../Notary/OfficeFolderHasCustomer"; +import OfficeFolderHasCustomer from "../Notary/OfficeFolderHasCustomer"; export default OfficeFolderHasCustomer; diff --git a/src/Admin/OfficeFolderHasStakeholder.ts b/src/Admin/OfficeFolderHasStakeholder.ts index bd1368f..63df0b3 100644 --- a/src/Admin/OfficeFolderHasStakeholder.ts +++ b/src/Admin/OfficeFolderHasStakeholder.ts @@ -1,7 +1,4 @@ -import OfficeFolderHasStakeholder_ from "../Notary/OfficeFolderHasStakeholder"; - -namespace OfficeFolderHasStakeholder { - export class IOfficeFolderHasStakeholder extends OfficeFolderHasStakeholder_.IOfficeFolderHasStakeholder {} -} +export * from "../Notary/OfficeFolderHasStakeholder"; +import OfficeFolderHasStakeholder from "../Notary/OfficeFolderHasStakeholder"; export default OfficeFolderHasStakeholder; diff --git a/src/Admin/User.ts b/src/Admin/User.ts index 4abca2f..90d9f84 100644 --- a/src/Admin/User.ts +++ b/src/Admin/User.ts @@ -1,7 +1,4 @@ -import User_ from "../Notary/User"; +export * from "../Notary/User"; +import User from "../Notary/User"; -namespace User { - export class IUser extends User_.IUser {} -} - -export default User; +export default User; \ No newline at end of file diff --git a/src/Admin/UserHasNotification.ts b/src/Admin/UserHasNotification.ts index 32fc313..0d5e1e6 100644 --- a/src/Admin/UserHasNotification.ts +++ b/src/Admin/UserHasNotification.ts @@ -1,7 +1,4 @@ -import UserHasNotification_ from "../Notary/UserHasNotification"; - -namespace UserHasNotification { - export class IUserHasNotification extends UserHasNotification_.IUserHasNotification {} -} +export * from "../Notary/UserHasNotification"; +import UserHasNotification from "../Notary/UserHasNotification"; export default UserHasNotification; diff --git a/src/Admin/index.ts b/src/Admin/index.ts index 6145134..85871fe 100644 --- a/src/Admin/index.ts +++ b/src/Admin/index.ts @@ -1,3 +1,20 @@ import User from "./User"; export default User; +export {default as Address} from "../SuperAdmin/Address"; +export {default as Customer} from "./Customer"; +export {default as Contact} from "./Contact"; +export {default as Deed} from "./Deed"; +export {default as DeedHasDocumentType} from "./DeedHasDocumentType"; +export {default as DeedType} from "./DeedType"; +export {default as DeedTypeHasDocumentType} from "./DeedTypeHasDocumentType"; +export {default as Document} from "./Document"; +export {default as DocumentHistory} from "./DocumentHistory"; +export {default as DocumentType} from "./DocumentType"; +export {default as File} from "./File"; +export {default as Notification} from "./Notification"; +export {default as Office} from "./Office"; +export {default as OfficeFolder} from "./OfficeFolder"; +export {default as OfficeFolderHasCustomer} from "./OfficeFolderHasCustomer"; +export {default as OfficeFolderHasStakeholder} from "./OfficeFolderHasStakeholder"; +export {default as UserHasNotification} from "./UserHasNotification"; \ No newline at end of file diff --git a/src/Customer/Address.ts b/src/Customer/Address.ts index bdffef2..30bf604 100644 --- a/src/Customer/Address.ts +++ b/src/Customer/Address.ts @@ -1,33 +1,25 @@ -import { IsNotEmpty, IsDate, IsOptional } from "class-validator"; +import { IsNotEmpty, IsDate } from "class-validator"; import type Contact from "./Contact"; import type Office from "./Office"; +import Resource from "../Resource"; -namespace Address { - export class IAddress { - @IsNotEmpty() - public uuid!: string; +export default class Address extends Resource { + @IsNotEmpty({ groups: ["create"], message: "Address is required" }) + public address!: string; - @IsNotEmpty({ groups: ["create"] }) - public address!: string; + @IsNotEmpty({ groups: ["create"], message: "City is required" }) + public city!: string; - @IsNotEmpty({ groups: ["create"] }) - public city!: string; + @IsNotEmpty({ groups: ["create"], message: "State is required" }) + public zip_code!: number; - @IsNotEmpty({ groups: ["create"] }) - public zip_code!: number; + @IsDate() + public created_at: Date | null = null; - @IsDate() - public created_at: Date | null = null; + @IsDate() + public updated_at: Date | null = null; - @IsDate() - public updated_at: Date | null = null; + public office?: Office | null = null; - @IsOptional() - public office?: Office.IOffice | null; - - @IsOptional() - public contacts?: Contact.IContact; - } + public contact?: Contact | null = null; } - -export default Address; diff --git a/src/Customer/Contact.ts b/src/Customer/Contact.ts index 3c7af8c..2668b41 100644 --- a/src/Customer/Contact.ts +++ b/src/Customer/Contact.ts @@ -1,52 +1,44 @@ -import { IsNotEmpty, IsDate, IsOptional } from "class-validator"; +import { IsNotEmpty, IsDate, IsEmail } from "class-validator"; import type Address from "./Address"; import type Customer from "."; -import type User from "../Notary/User"; +import type User from "../Notary"; +import Resource from "../Resource"; -namespace Contact { - export class IContact { - @IsNotEmpty() - public uuid!: string; +export default class Contact extends Resource { + @IsNotEmpty({ groups: ["create"], message: "First name is required" }) + public first_name!: string; - @IsNotEmpty({ groups: ["create"] }) - public first_name!: string; + @IsNotEmpty({ groups: ["create"], message: "Last name is required" }) + public last_name!: string; - @IsNotEmpty({ groups: ["create"] }) - public last_name!: string; + @IsNotEmpty({ groups: ["create"] }) + @IsEmail({}, { groups: ["create", "update"], message: "Email is not valid" }) + public email!: string; - @IsNotEmpty({ groups: ["create"] }) - public email!: string; + @IsNotEmpty({ groups: ["create"] }) + public cell_phone_number!: string; - @IsOptional() - public phone_number!: string; + public phone_number!: string; - @IsOptional() - public cell_phone_number!: string; + @IsNotEmpty({ groups: ["create"], message: "Civility is required" }) + public civility!: ECivility; - @IsNotEmpty({ groups: ["create"] }) - public civility!: ECivility; + @IsNotEmpty({ groups: ["create"], message: "Address is required" }) + public address!: Address; - @IsNotEmpty({ groups: ["create"] }) - public address!: Address.IAddress; + @IsDate() + public created_at: Date | null = null; - @IsDate() - public created_at: Date | null = null; + @IsDate() + public updated_at: Date | null = null; - @IsDate() - public updated_at: Date | null = null; + public user?: User | null = null; - @IsOptional() - public users?: User.IUser; - - @IsOptional() - public customers?: Customer.ICustomer; - } - export enum ECivility { - MALE = "MALE", - FEMALE = "FEMALE", - OTHERS = "OTHERS", - } - export type TCivility = ECivility.MALE | ECivility.FEMALE | ECivility.OTHERS; + public customer?: Customer | null = null; } - -export default Contact; +export enum ECivility { + MALE = "MALE", + FEMALE = "FEMALE", + OTHERS = "OTHERS", +} +export type TCivility = ECivility.MALE | ECivility.FEMALE | ECivility.OTHERS; diff --git a/src/Customer/Customer.ts b/src/Customer/Customer.ts new file mode 100644 index 0000000..895530c --- /dev/null +++ b/src/Customer/Customer.ts @@ -0,0 +1,31 @@ +import { IsDate, IsNotEmpty } from "class-validator"; +import { Contact, Document } from "."; +import OfficeFolderHasCustomer from "./OfficeFolderHasCustomer"; +import Resource from "../Resource"; + +export default class Customer extends Resource { + @IsNotEmpty({ groups: ["create"], message: "Status is required" }) + public status!: ECustomerStatus; + + @IsNotEmpty({ groups: ["create"], message: "Contact is required" }) + public contact!: Contact; + + @IsDate() + public created_at: Date | null = null; + + @IsDate() + public updated_at: Date | null = null; + + office_folder_has_customers?: OfficeFolderHasCustomer[]; + + documents?: Document[]; +} +export enum ECustomerStatus { + VALIDATED = "VALIDATED", + PENDING = "PENDING", + ERRONED = "ERRONED", +} +export type TCustomerStatus = + | ECustomerStatus.VALIDATED + | ECustomerStatus.PENDING + | ECustomerStatus.ERRONED; diff --git a/src/Customer/Deed.ts b/src/Customer/Deed.ts index 0f73da5..2454c50 100644 --- a/src/Customer/Deed.ts +++ b/src/Customer/Deed.ts @@ -1,28 +1,20 @@ -import { IsNotEmpty, IsDate, IsOptional } from "class-validator"; +import { IsNotEmpty, IsDate } from "class-validator"; import type DeedType from "./DeedType"; import type DeedHasDocumentType from "./DeedHasDocumentType"; import type OfficeFolder from "./OfficeFolder"; +import Resource from "../Resource"; -namespace Deed { - export class IDeed { - @IsNotEmpty() - public uuid!: string; +export default class Deed extends Resource{ + @IsNotEmpty({ groups: ["create"], message: "Deed type is required" }) + public deed_type!: DeedType; - @IsNotEmpty({ groups: ["create"] }) - public deed_type!: DeedType.IDeedType; + @IsDate() + public created_at: Date | null = null; - @IsDate() - public created_at: Date | null = null; + @IsDate() + public updated_at: Date | null = null; - @IsDate() - public updated_at: Date | null = null; + public deed_has_document_types?: DeedHasDocumentType[]; - @IsOptional() - public deed_has_document_types?: DeedHasDocumentType.IDeedHasDocumentType[]; - - @IsOptional() - public office_folder?: OfficeFolder.IOfficeFolder; - } + public office_folder?: OfficeFolder; } - -export default Deed; diff --git a/src/Customer/DeedHasDocumentType.ts b/src/Customer/DeedHasDocumentType.ts index 7ed3a64..46ec1a8 100644 --- a/src/Customer/DeedHasDocumentType.ts +++ b/src/Customer/DeedHasDocumentType.ts @@ -1,24 +1,18 @@ import { IsNotEmpty, IsDate } from "class-validator"; import type Deed from "./Deed"; import type DocumentType from "./DocumentType"; +import Resource from "../Resource"; -namespace DeedHasDocumentType { - export class IDeedHasDocumentType { - @IsNotEmpty() - public uuid!: string; +export default class DeedHasDocumentType extends Resource { + @IsNotEmpty({ groups: ["create"], message: "Document type is required" }) + public document_type!: DocumentType; - @IsNotEmpty({ groups: ["create"] }) - public document_type!: DocumentType.IDocumentType; + @IsNotEmpty({ groups: ["create"], message: "Deed is required" }) + public deed!: Deed; - @IsNotEmpty({ groups: ["create"] }) - public deed!: Deed.IDeed; + @IsDate() + public created_at: Date | null = null; - @IsDate() - public created_at: Date | null = null; - - @IsDate() - public updated_at: Date | null = null; - } + @IsDate() + public updated_at: Date | null = null; } - -export default DeedHasDocumentType; diff --git a/src/Customer/DeedType.ts b/src/Customer/DeedType.ts index 54ac155..17fdbef 100644 --- a/src/Customer/DeedType.ts +++ b/src/Customer/DeedType.ts @@ -1,38 +1,29 @@ -import { IsNotEmpty, IsDate, IsOptional } from "class-validator"; - +import { IsNotEmpty, IsDate } from "class-validator"; import type Deed from "./Deed"; import type DeedTypeHasDocumentType from "./DeedTypeHasDocumentType"; import type Office from "./Office"; +import Resource from "../Resource"; -namespace DeedType { - export class IDeedType { - @IsNotEmpty() - public uuid!: string; +export default class DeedType extends Resource{ + @IsNotEmpty({ groups: ["create"], message: "Name is required" }) + public name!: string; - @IsNotEmpty({ groups: ["create"] }) - public name!: string; + @IsNotEmpty({ groups: ["create"], message: "Description is required" }) + public description!: string; - @IsNotEmpty({ groups: ["create"] }) - public description!: string; + @IsDate() + public archived_at: Date | null = null; - @IsDate() - public archived_at: Date | null = null; + @IsNotEmpty({ groups: ["create"], message: "Office is required" }) + public office!: Office; - @IsNotEmpty({ groups: ["create"] }) - public office!: Office.IOffice; + @IsDate() + public created_at: Date | null = null; - @IsDate() - public created_at: Date | null = null; + @IsDate() + public updated_at: Date | null = null; - @IsDate() - public updated_at: Date | null = null; + public deed?: Deed[]; - @IsOptional() - public deed?: Deed.IDeed[]; - - @IsOptional() - public deed_type_has_document_types?: DeedTypeHasDocumentType.IDeedTypeHasDocumentType[]; - } + public deed_type_has_document_types?: DeedTypeHasDocumentType[]; } - -export default DeedType; diff --git a/src/Customer/DeedTypeHasDocumentType.ts b/src/Customer/DeedTypeHasDocumentType.ts index 6db9720..4b50cde 100644 --- a/src/Customer/DeedTypeHasDocumentType.ts +++ b/src/Customer/DeedTypeHasDocumentType.ts @@ -1,24 +1,18 @@ import { IsNotEmpty, IsDate } from "class-validator"; import type DeedType from "./DeedType"; import type DocumentType from "./DocumentType"; +import Resource from "../Resource"; -namespace DeedTypeHasDocumentType { - export class IDeedTypeHasDocumentType { - @IsNotEmpty() - public uuid!: string; +export default class DeedTypeHasDocumentType extends Resource { + @IsNotEmpty({ groups: ["create"], message: "Document type is required" }) + public document_type!: DocumentType; - @IsNotEmpty({ groups: ["create"] }) - public document_type!: DocumentType.IDocumentType; + @IsNotEmpty({ groups: ["create"], message: "Deed type is required" }) + public deed_type!: DeedType; - @IsNotEmpty({ groups: ["create"] }) - public deed_type!: DeedType.IDeedType; + @IsDate() + public created_at: Date | null = null; - @IsDate() - public created_at: Date | null = null; - - @IsDate() - public updated_at: Date | null = null; - } + @IsDate() + public updated_at: Date | null = null; } - -export default DeedTypeHasDocumentType; diff --git a/src/Customer/Document.ts b/src/Customer/Document.ts index 73532b4..b60578e 100644 --- a/src/Customer/Document.ts +++ b/src/Customer/Document.ts @@ -1,53 +1,45 @@ -import { IsNotEmpty, IsDate, IsOptional } from "class-validator"; +import { IsNotEmpty, IsDate } from "class-validator"; import type Customer from "."; import type DocumentHistory from "./DocumentHistory"; import type DocumentType from "./DocumentType"; import type File from "./File"; import type OfficeFolder from "./OfficeFolder"; +import Resource from "../Resource"; -namespace Document { - export class IDocument { - @IsNotEmpty() - public uuid!: string; +export default class Document extends Resource{ + @IsNotEmpty({ groups: ["create"], message: "Document status is required" }) + public document_status!: EDocumentStatus; - @IsNotEmpty({ groups: ["create"] }) - public document_status!: EDocumentStatus; + @IsNotEmpty({ groups: ["create"], message: "Document type is required" }) + public document_type!: DocumentType; - @IsNotEmpty({ groups: ["create"] }) - public document_type!: DocumentType.IDocumentType; + @IsNotEmpty({ groups: ["create"], message: "Folder is required" }) + public folder!: OfficeFolder; - @IsNotEmpty({ groups: ["create"] }) - public folder!: OfficeFolder.IOfficeFolder; + @IsNotEmpty({ groups: ["create"], message: "Depositor is required" }) + public depositor!: Customer; - @IsNotEmpty({ groups: ["create"] }) - public depositor!: Customer.ICustomer; + @IsDate() + public created_at: Date | null = null; - @IsDate() - public created_at: Date | null = null; + @IsDate() + public updated_at: Date | null = null; - @IsDate() - public updated_at: Date | null = null; + public files?: File[]; - @IsOptional() - public files?: File.IFile[]; - - @IsOptional() - public document_history?: DocumentHistory.IDocumentHistory[]; - } - export enum EDocumentStatus { - ASKED = "ASKED", - DEPOSITED = "DEPOSITED", - VALIDATED = "VALIDATED", - ANCHORED = "ANCHORED", - REFUSED = "REFUSED", - } - - export type TDocumentStatus = - | EDocumentStatus.ASKED - | EDocumentStatus.DEPOSITED - | EDocumentStatus.VALIDATED - | EDocumentStatus.ANCHORED - | EDocumentStatus.REFUSED; + public document_history?: DocumentHistory[]; +} +export enum EDocumentStatus { + ASKED = "ASKED", + DEPOSITED = "DEPOSITED", + VALIDATED = "VALIDATED", + ANCHORED = "ANCHORED", + REFUSED = "REFUSED", } -export default Document; +export type TDocumentStatus = + | EDocumentStatus.ASKED + | EDocumentStatus.DEPOSITED + | EDocumentStatus.VALIDATED + | EDocumentStatus.ANCHORED + | EDocumentStatus.REFUSED; diff --git a/src/Customer/DocumentHistory.ts b/src/Customer/DocumentHistory.ts index 243ee2e..a65899e 100644 --- a/src/Customer/DocumentHistory.ts +++ b/src/Customer/DocumentHistory.ts @@ -1,26 +1,19 @@ -import { IsNotEmpty, IsDate, IsOptional } from "class-validator"; -import type Document from "./Document"; +import { IsNotEmpty, IsDate } from "class-validator"; +import type { default as Document, EDocumentStatus } from "./Document"; +import Resource from "../Resource"; -namespace DocumentHistory { - export class IDocumentHistory { - @IsNotEmpty() - public uuid!: string; +export default class DocumentHistory extends Resource { + @IsNotEmpty({ groups: ["create"], message: "Document status is required" }) + public document_status!: EDocumentStatus; - @IsNotEmpty({ groups: ["create"] }) - public document_status!: Document.EDocumentStatus; + @IsNotEmpty({ groups: ["create"], message: "Document is required" }) + public document!: Document; - @IsNotEmpty({ groups: ["create"] }) - public document!: Document.IDocument; + public refused_reason: string | null = null; - @IsOptional() - public refused_reason: string | null = null; + @IsDate() + public created_at: Date | null = null; - @IsDate() - public created_at: Date | null = null; - - @IsDate() - public updated_at: Date | null = null; - } + @IsDate() + public updated_at: Date | null = null; } - -export default DocumentHistory; diff --git a/src/Customer/DocumentType.ts b/src/Customer/DocumentType.ts index 318286c..6d0c93f 100644 --- a/src/Customer/DocumentType.ts +++ b/src/Customer/DocumentType.ts @@ -1,40 +1,30 @@ -import { IsNotEmpty, IsDate, IsOptional } from "class-validator"; +import { IsNotEmpty, IsDate } from "class-validator"; import type DeedHasDocumentType from "./DeedHasDocumentType"; import type Document from "./Document"; import type DeedTypeHasDocumentType from "./DeedTypeHasDocumentType"; +import Resource from "../Resource"; -namespace DocumentType { - export class IDocumentType { - @IsNotEmpty() - public uuid!: string; +export default class DocumentType extends Resource { + @IsNotEmpty({ groups: ["create"], message: "Name is required" }) + public name!: string; - @IsNotEmpty({ groups: ["create"] }) - public name!: string; + @IsNotEmpty({ groups: ["create"], message: "Public description is required" }) + public public_description!: string; - @IsNotEmpty({ groups: ["create"] }) - public public_description!: string; + public private_description: string | null = null; - @IsOptional() - public private_description: string | null = null; + @IsDate() + public archived_at: Date | null = null; - @IsDate() - public archived_at: Date | null = null; + @IsDate() + public created_at: Date | null = null; - @IsDate() - public created_at: Date | null = null; + @IsDate() + public updated_at: Date | null = null; - @IsDate() - public updated_at: Date | null = null; + public documents?: Document[]; - @IsOptional() - public documents?: Document.IDocument[]; + public deed_has_document_types?: DeedHasDocumentType[]; - @IsOptional() - public deed_has_document_types?: DeedHasDocumentType.IDeedHasDocumentType[]; - - @IsOptional() - public deed_type_has_document_types?: DeedTypeHasDocumentType.IDeedTypeHasDocumentType[]; - } + public deed_type_has_document_types?: DeedTypeHasDocumentType[]; } - -export default DocumentType; diff --git a/src/Customer/File.ts b/src/Customer/File.ts index e11b0a6..dcf96d6 100644 --- a/src/Customer/File.ts +++ b/src/Customer/File.ts @@ -1,23 +1,16 @@ -import { IsNotEmpty, IsDate, IsOptional } from "class-validator"; +import { IsNotEmpty, IsDate } from "class-validator"; import type Document from "./Document"; +import Resource from "../Resource"; -namespace File { - export class IFile { - @IsNotEmpty() - public uuid!: string; +export default class File extends Resource { + @IsNotEmpty({ groups: ["create"], message: "Document is required" }) + public document!: Document; - @IsNotEmpty({ groups: ["create"] }) - public document!: Document.IDocument; + public file_path: string | null = null; - @IsOptional() - public file_path: string | null = null; + @IsDate() + public created_at: Date | null = null; - @IsDate() - public created_at: Date | null = null; - - @IsDate() - public updated_at: Date | null = null; - } + @IsDate() + public updated_at: Date | null = null; } - -export default File; diff --git a/src/Customer/Notification.ts b/src/Customer/Notification.ts index 1de9dcd..2039381 100644 --- a/src/Customer/Notification.ts +++ b/src/Customer/Notification.ts @@ -1,27 +1,20 @@ -import { IsNotEmpty, IsDate, IsUrl, IsOptional } from "class-validator"; +import { IsNotEmpty, IsDate, IsUrl } from "class-validator"; import type UserHasNotification from "./UserHasNotification"; +import Resource from "../Resource"; -namespace Notification { - export class INotification { - @IsNotEmpty() - public uuid!: string; +export default class Notification extends Resource { + @IsNotEmpty({ groups: ["create"], message: "Message is required" }) + public message!: string; - @IsNotEmpty({ groups: ["create"] }) - public message!: string; + @IsNotEmpty({ groups: ["create"], message: "Redirection url is required" }) + @IsUrl() + public redirection_url!: string; - @IsNotEmpty({ groups: ["create"] }) - @IsUrl() - public redirection_url!: string; + @IsDate() + public created_at: Date | null = null; - @IsDate() - public created_at: Date | null = null; + @IsDate() + public updated_at: Date | null = null; - @IsDate() - public updated_at: Date | null = null; - - @IsOptional() - user_has_notifications?: UserHasNotification.IUserHasNotification[]; - } + user_has_notifications?: UserHasNotification[]; } - -export default Notification; diff --git a/src/Customer/Office.ts b/src/Customer/Office.ts index 4f23a34..205b5a7 100644 --- a/src/Customer/Office.ts +++ b/src/Customer/Office.ts @@ -1,53 +1,44 @@ -import { IsNotEmpty, IsDate, IsOptional } from "class-validator"; +import { IsNotEmpty, IsDate } from "class-validator"; import type Address from "./Address"; import type DeedType from "./DeedType"; import type OfficeFolder from "./OfficeFolder"; import type User from "../Notary/User"; +import Resource from "../Resource"; -namespace Office { - export class IOffice { - @IsNotEmpty() - public uuid!: string; +export default class Office extends Resource { + @IsNotEmpty({ groups: ["create"], message: "ID IdNote is required" }) + public idNot!: string; - @IsNotEmpty({ groups: ["create"] }) - public idNot!: string; + @IsNotEmpty({ groups: ["create"], message: "Name is required"}) + public name!: string; - @IsNotEmpty({ groups: ["create"] }) - public name!: string; + @IsNotEmpty({ groups: ["create"], message: "CRPCEN is required" }) + public crpcen!: string; - @IsNotEmpty({ groups: ["create"] }) - public crpcen!: string; + @IsNotEmpty({ groups: ["create"], message: "Address is required" }) + public address!: Address; - @IsNotEmpty({ groups: ["create"] }) - public address!: Address.IAddress; + @IsNotEmpty({ groups: ["create"], message: "Office status is required" }) + public office_status!: EOfficeStatus; - @IsNotEmpty({ groups: ["create"] }) - public office_status!: EOfficeStatus; + @IsDate() + public created_at: Date | null = null; - @IsDate() - public created_at: Date | null = null; + @IsDate() + public updated_at: Date | null = null; - @IsDate() - public updated_at: Date | null = null; + public deed_types?: DeedType[]; - @IsOptional() - deed_types?: DeedType.IDeedType[]; + public users?: User[]; - @IsOptional() - users?: User.IUser[]; - - @IsOptional() - office_folders?: OfficeFolder.IOfficeFolder[]; - } - - export enum EOfficeStatus { - ACTIVATED = "ACTIVATED", - DESACTIVATED = "DESACTIVATED", - } - - export type TOfficeStatus = - | EOfficeStatus.ACTIVATED - | EOfficeStatus.DESACTIVATED; + public office_folders?: OfficeFolder[]; } -export default Office; +export enum EOfficeStatus { + ACTIVATED = "ACTIVATED", + DESACTIVATED = "DESACTIVATED", +} + +export type TOfficeStatus = + | EOfficeStatus.ACTIVATED + | EOfficeStatus.DESACTIVATED; diff --git a/src/Customer/OfficeFolder.ts b/src/Customer/OfficeFolder.ts index cc4032b..32fbf7b 100644 --- a/src/Customer/OfficeFolder.ts +++ b/src/Customer/OfficeFolder.ts @@ -1,56 +1,45 @@ -import { IsNotEmpty, IsDate, IsOptional } from "class-validator"; +import { IsNotEmpty, IsDate } from "class-validator"; import type Deed from "./Deed"; import type Document from "./Document"; import type Office from "./Office"; import type OfficeFolderHasCustomer from "./OfficeFolderHasCustomer"; import type OfficeFolderHasStakeholder from "./OfficeFolderHasStakeholder"; +import Resource from "../Resource"; -namespace OfficeFolder { - export class IOfficeFolder { - @IsNotEmpty() - public uuid!: string; +export default class OfficeFolder extends Resource { + @IsNotEmpty({ groups: ["create"], message: "Folder number is required" }) + public folder_number!: string; - @IsNotEmpty({ groups: ["create"] }) - public folder_number!: string; + @IsNotEmpty({ groups: ["create"], message: "Name is required" }) + public name!: string; - @IsNotEmpty({ groups: ["create"] }) - public name!: string; + public description: string | null = null; - @IsOptional() - public description: string | null = null; + public archived_description: string | null = null; - @IsOptional() - public archived_description: string | null = null; + @IsNotEmpty({ groups: ["create"], message: "Status is required" }) + public status!: EFolderStatus; - @IsNotEmpty({ groups: ["create"] }) - public status!: EFolderStatus; + @IsNotEmpty({ groups: ["create"], message: "Deed is required" }) + public deed!: Deed; - @IsNotEmpty({ groups: ["create"] }) - public deed!: Deed.IDeed; + @IsNotEmpty({ groups: ["create"], message: "Office is required" }) + public office!: Office; - @IsNotEmpty({ groups: ["create"] }) - public office!: Office.IOffice; + @IsDate() + public created_at: Date | null = null; - @IsDate() - public created_at: Date | null = null; + @IsDate() + public updated_at: Date | null = null; - @IsDate() - public updated_at: Date | null = null; + office_folder_has_customers?: OfficeFolderHasCustomer[]; - @IsOptional() - office_folder_has_customers?: OfficeFolderHasCustomer.IOfficeFolderHasCustomer[]; + office_folder_has_stakeholder?: OfficeFolderHasStakeholder[]; - @IsOptional() - office_folder_has_stakeholder?: OfficeFolderHasStakeholder.IOfficeFolderHasStakeholder[]; - - @IsOptional() - documents?: Document.IDocument[]; - } - export enum EFolderStatus { - LIVE = "LIVE", - ARCHIVED = "ARCHIVED", - } - export type TFolderStatus = EFolderStatus.LIVE | EFolderStatus.ARCHIVED; + documents?: Document[]; } - -export default OfficeFolder; +export enum EFolderStatus { + LIVE = "LIVE", + ARCHIVED = "ARCHIVED", +} +export type TFolderStatus = EFolderStatus.LIVE | EFolderStatus.ARCHIVED; diff --git a/src/Customer/OfficeFolderHasCustomer.ts b/src/Customer/OfficeFolderHasCustomer.ts index 003be4f..0ffc3af 100644 --- a/src/Customer/OfficeFolderHasCustomer.ts +++ b/src/Customer/OfficeFolderHasCustomer.ts @@ -1,24 +1,18 @@ import { IsNotEmpty, IsDate } from "class-validator"; import type Customer from "."; import type OfficeFolder from "./OfficeFolder"; +import Resource from "../Resource"; -namespace OfficeFolderHasCustomer { - export class IOfficeFolderHasCustomer { - @IsNotEmpty() - public uuid!: string; +export default class OfficeFolderHasCustomer extends Resource { + @IsNotEmpty({ groups: ["create"], message: "Customer is required" }) + public customer!: Customer; - @IsNotEmpty({ groups: ["create"] }) - public customer!: Customer.ICustomer; + @IsNotEmpty({ groups: ["create"], message: "Office folder is required" }) + public office_folder!: OfficeFolder; - @IsNotEmpty({ groups: ["create"] }) - public office_folder!: OfficeFolder.IOfficeFolder; + @IsDate() + public created_at: Date | null = null; - @IsDate() - public created_at: Date | null = null; - - @IsDate() - public updated_at: Date | null = null; - } + @IsDate() + public updated_at: Date | null = null; } - -export default OfficeFolderHasCustomer; diff --git a/src/Customer/OfficeFolderHasStakeholder.ts b/src/Customer/OfficeFolderHasStakeholder.ts index b96a594..92b678b 100644 --- a/src/Customer/OfficeFolderHasStakeholder.ts +++ b/src/Customer/OfficeFolderHasStakeholder.ts @@ -1,24 +1,18 @@ import { IsNotEmpty, IsDate } from "class-validator"; import type OfficeFolder from "./OfficeFolder"; import type User from "../Notary/User"; +import Resource from "../Resource"; -namespace OfficeFolderHasStakeholder { - export class IOfficeFolderHasStakeholder { - @IsNotEmpty() - public uuid!: string; +export default class OfficeFolderHasStakeholder extends Resource { + @IsNotEmpty({ groups: ["create"], message: "User Stakeholder is required" }) + public user_stakeholder!: User; - @IsNotEmpty({ groups: ["create"] }) - public user_stakeholder!: User.IUser; + @IsNotEmpty({ groups: ["create"], message: "Office folder is required" }) + public office_folder!: OfficeFolder; - @IsNotEmpty({ groups: ["create"] }) - public office_folder!: OfficeFolder.IOfficeFolder; + @IsDate() + public created_at: Date | null = null; - @IsDate() - public created_at: Date | null = null; - - @IsDate() - public updated_at: Date | null = null; - } + @IsDate() + public updated_at: Date | null = null; } - -export default OfficeFolderHasStakeholder; diff --git a/src/Customer/UserHasNotification.ts b/src/Customer/UserHasNotification.ts index 8cd4ac5..7df2977 100644 --- a/src/Customer/UserHasNotification.ts +++ b/src/Customer/UserHasNotification.ts @@ -1,25 +1,23 @@ import { IsNotEmpty, IsDate } from "class-validator"; import type Notification from "./Notification"; import type User from "../Notary/User"; +import Resource from "../Resource"; -namespace UserHasNotification { - export class IUserHasNotification { - @IsNotEmpty() - public uuid!: string; +export default class UserHasNotification extends Resource { + @IsNotEmpty({ groups: ["create"], message: "User is required" }) + public user!: User; - @IsNotEmpty({ groups: ["create"] }) - public user!: User.IUser; + @IsNotEmpty({ groups: ["create"], message: "Notification is required" }) + public notification!: Notification; - @IsNotEmpty({ groups: ["create"] }) - public notification!: Notification.INotification; + @IsDate() + public created_at: Date | null = null; - @IsDate() - public created_at: Date | null = null; - - @IsDate() - public updated_at: Date | null = null; - } - export type ENotificationStatus = "READ" | "UNREAD"; + @IsDate() + public updated_at: Date | null = null; +} +export type TNotificationStatus = "READ" | "UNREAD"; +export enum ENotificationStatus { + READ = "READ", + UNREAD = "UNREAD", } - -export default UserHasNotification; diff --git a/src/Customer/index.ts b/src/Customer/index.ts index a204363..39dcde9 100644 --- a/src/Customer/index.ts +++ b/src/Customer/index.ts @@ -1,40 +1,19 @@ -import { IsNotEmpty, IsDate, IsOptional } from "class-validator"; -import type Document from "./Document"; -import type OfficeFolderHasCustomer from "./OfficeFolderHasCustomer"; -import type Contact from "./Contact"; - -namespace Customer { - export class ICustomer { - @IsNotEmpty() - public uuid!: string; - - @IsNotEmpty({ groups: ["create"] }) - public status!: ECustomerStatus; - - @IsNotEmpty({ groups: ["create"] }) - public contact!: Contact.IContact; - - @IsDate() - public created_at: Date | null = null; - - @IsDate() - public updated_at: Date | null = null; - - @IsOptional() - office_folder_has_customers?: OfficeFolderHasCustomer.IOfficeFolderHasCustomer[]; - - @IsOptional() - documents?: Document.IDocument[]; - } - export enum ECustomerStatus { - VALIDATED = "VALIDATED", - PENDING = "PENDING", - ERRONED = "ERRONED", - } - export type TCustomerStatus = - | ECustomerStatus.VALIDATED - | ECustomerStatus.PENDING - | ECustomerStatus.ERRONED; -} +import Customer from "./Customer"; export default Customer; +export { default as Address } from "./Address"; +export { default as Contact } from "./Contact"; +export { default as Deed } from "./Deed"; +export { default as DeedHasDocumentType } from "./DeedHasDocumentType"; +export { default as DeedType } from "./DeedType"; +export { default as DeedTypeHasDocumentType } from "./DeedTypeHasDocumentType"; +export { default as Document } from "./Document"; +export { default as DocumentHistory } from "./DocumentHistory"; +export { default as DocumentType } from "./DocumentType"; +export { default as File } from "./File"; +export { default as Notification } from "./Notification"; +export { default as Office } from "./Office"; +export { default as OfficeFolder } from "./OfficeFolder"; +export { default as OfficeFolderHasCustomer } from "./OfficeFolderHasCustomer"; +export { default as OfficeFolderHasStakeholder } from "./OfficeFolderHasStakeholder"; +export { default as UserHasNotification } from "./UserHasNotification"; diff --git a/src/Notary/Address.ts b/src/Notary/Address.ts index ceba905..21a8724 100644 --- a/src/Notary/Address.ts +++ b/src/Notary/Address.ts @@ -1,7 +1,4 @@ -import Address_ from "../Customer/Address"; +export * from "../Customer/Address"; +import Address from "../Customer/Address"; -namespace Address { - export class IAddress extends Address_.IAddress {} -} - -export default Address; +export default Address; \ No newline at end of file diff --git a/src/Notary/Contact.ts b/src/Notary/Contact.ts index 4ca24af..6f027fc 100644 --- a/src/Notary/Contact.ts +++ b/src/Notary/Contact.ts @@ -1,7 +1,4 @@ -import Contact_ from "../Customer/Contact"; +export * from "../Customer/Contact"; +import Contact from "../Customer/Contact"; -namespace Contact { - export class IContact extends Contact_.IContact {} -} - -export default Contact; +export default Contact; \ No newline at end of file diff --git a/src/Notary/Customer.ts b/src/Notary/Customer.ts index f087936..5bbf1d6 100644 --- a/src/Notary/Customer.ts +++ b/src/Notary/Customer.ts @@ -1,7 +1,4 @@ -import Customer_ from "../Customer"; +export * from "../Customer/Customer"; +import Customer from "../Customer/Customer"; -namespace Customer { - export class ICustomer extends Customer_.ICustomer {} -} - -export default Customer; +export default Customer; \ No newline at end of file diff --git a/src/Notary/Deed.ts b/src/Notary/Deed.ts index 5289310..287c9aa 100644 --- a/src/Notary/Deed.ts +++ b/src/Notary/Deed.ts @@ -1,7 +1,4 @@ -import Deed_ from "../Customer/Deed"; +export * from "../Customer/Deed"; +import Deed from "../Customer/Deed"; -namespace Deed { - export class IDeed extends Deed_.IDeed {} -} - -export default Deed; +export default Deed; \ No newline at end of file diff --git a/src/Notary/DeedHasDocumentType.ts b/src/Notary/DeedHasDocumentType.ts index f382590..32faa33 100644 --- a/src/Notary/DeedHasDocumentType.ts +++ b/src/Notary/DeedHasDocumentType.ts @@ -1,7 +1,4 @@ -import DeedHasDocumentType_ from "../Customer/DeedHasDocumentType"; +export * from "../Customer/DeedHasDocumentType"; +import DeedHasDocumentType from "../Customer/DeedHasDocumentType"; -namespace DeedHasDocumentType { - export class IDeedHasDocumentType extends DeedHasDocumentType_.IDeedHasDocumentType {} -} - -export default DeedHasDocumentType; +export default DeedHasDocumentType; \ No newline at end of file diff --git a/src/Notary/DeedType.ts b/src/Notary/DeedType.ts index 2f6b22c..2d82f1b 100644 --- a/src/Notary/DeedType.ts +++ b/src/Notary/DeedType.ts @@ -1,7 +1,4 @@ -import DeedType_ from "../Customer/DeedType"; +export * from "../Customer/DeedType"; +import DeedType from "../Customer/DeedType"; -namespace DeedType { - export class IDeedType extends DeedType_.IDeedType {} -} - -export default DeedType; +export default DeedType; \ No newline at end of file diff --git a/src/Notary/DeedTypeHasDocumentType.ts b/src/Notary/DeedTypeHasDocumentType.ts index 2acadb6..1e109eb 100644 --- a/src/Notary/DeedTypeHasDocumentType.ts +++ b/src/Notary/DeedTypeHasDocumentType.ts @@ -1,7 +1,4 @@ -import DeedTypeHasDocumentType_ from "../Customer/DeedTypeHasDocumentType"; - -namespace DeedTypeHasDocumentType { - export class IDeedTypeHasDocumentType extends DeedTypeHasDocumentType_.IDeedTypeHasDocumentType {} -} +export * from "../Customer/DeedTypeHasDocumentType"; +import DeedTypeHasDocumentType from "../Customer/DeedTypeHasDocumentType"; export default DeedTypeHasDocumentType; diff --git a/src/Notary/Document.ts b/src/Notary/Document.ts index a2d1380..13b0719 100644 --- a/src/Notary/Document.ts +++ b/src/Notary/Document.ts @@ -1,7 +1,4 @@ -import Document_ from "../Customer/Document"; - -namespace Document { - export class IDocument extends Document_.IDocument {} -} +export * from "../Customer/Document"; +import Document from "../Customer/Document"; export default Document; diff --git a/src/Notary/DocumentHistory.ts b/src/Notary/DocumentHistory.ts index 82a54ac..2d417a7 100644 --- a/src/Notary/DocumentHistory.ts +++ b/src/Notary/DocumentHistory.ts @@ -1,7 +1,4 @@ -import DocumentHistory_ from "../Customer/DocumentHistory"; - -namespace DocumentHistory { - export class IDocumentHistory extends DocumentHistory_.IDocumentHistory {} -} +export * from "../Customer/DocumentHistory"; +import DocumentHistory from "../Customer/DocumentHistory"; export default DocumentHistory; diff --git a/src/Notary/DocumentType.ts b/src/Notary/DocumentType.ts index 0e767da..88093a7 100644 --- a/src/Notary/DocumentType.ts +++ b/src/Notary/DocumentType.ts @@ -1,7 +1,4 @@ -import DocumentType_ from "../Customer/DocumentType"; - -namespace DocumentType { - export class IDocumentType extends DocumentType_.IDocumentType {} -} +export * from "../Customer/DocumentType"; +import DocumentType from "../Customer/DocumentType"; export default DocumentType; diff --git a/src/Notary/File.ts b/src/Notary/File.ts index f6054b7..2a26948 100644 --- a/src/Notary/File.ts +++ b/src/Notary/File.ts @@ -1,7 +1,4 @@ -import File_ from "../Customer/File"; - -namespace File { - export class IFile extends File_.IFile {} -} +export * from "../Customer/File"; +import File from "../Customer/File"; export default File; diff --git a/src/Notary/Notification.ts b/src/Notary/Notification.ts index a1c7267..19c8125 100644 --- a/src/Notary/Notification.ts +++ b/src/Notary/Notification.ts @@ -1,7 +1,4 @@ -import Notification_ from "../Customer/Notification"; - -namespace Notification { - export class INotification extends Notification_.INotification {} -} +export * from "../Customer/Notification"; +import Notification from "../Customer/Notification"; export default Notification; diff --git a/src/Notary/Office.ts b/src/Notary/Office.ts index 513b468..7251b39 100644 --- a/src/Notary/Office.ts +++ b/src/Notary/Office.ts @@ -1,7 +1,18 @@ -import Office_ from "../Customer/Office"; - -namespace Office { - export class IOffice extends Office_.IOffice {} -} +export * from "../Customer/Office"; +import Office from "../Customer/Office"; export default Office; + + +/** + * @description If we overrride the users we should be able to use the new overrided Customer user type + */ +// export * from "../Customer/Office"; +// import { IsOptional } from "class-validator"; +// import Office_ from "../Customer/Office"; +// import Customer from "."; + +// export default class Office extends Office_ { +// @IsOptional() +// public override users?: Customer[]; +// }; \ No newline at end of file diff --git a/src/Notary/OfficeFolder.ts b/src/Notary/OfficeFolder.ts index 65711ce..1a34c27 100644 --- a/src/Notary/OfficeFolder.ts +++ b/src/Notary/OfficeFolder.ts @@ -1,7 +1,4 @@ -import OfficeFolder_ from "../Customer/OfficeFolder"; +export * from "../Customer/OfficeFolder"; +import OfficeFolder from "../Customer/OfficeFolder"; -namespace OfficeFolder { - export class IOfficeFolder extends OfficeFolder_.IOfficeFolder {} -} - -export default OfficeFolder; +export default OfficeFolder; \ No newline at end of file diff --git a/src/Notary/OfficeFolderHasCustomer.ts b/src/Notary/OfficeFolderHasCustomer.ts index bfbeb48..8ffeb63 100644 --- a/src/Notary/OfficeFolderHasCustomer.ts +++ b/src/Notary/OfficeFolderHasCustomer.ts @@ -1,7 +1,4 @@ -import OfficeFolderHasCustomer_ from "../Customer/OfficeFolderHasCustomer"; - -namespace OfficeFolderHasCustomer { - export class IOfficeFolderHasCustomer extends OfficeFolderHasCustomer_.IOfficeFolderHasCustomer {} -} +export * from "../Customer/OfficeFolderHasCustomer"; +import OfficeFolderHasCustomer from "../Customer/OfficeFolderHasCustomer"; export default OfficeFolderHasCustomer; diff --git a/src/Notary/OfficeFolderHasStakeholder.ts b/src/Notary/OfficeFolderHasStakeholder.ts index 43071db..dd81221 100644 --- a/src/Notary/OfficeFolderHasStakeholder.ts +++ b/src/Notary/OfficeFolderHasStakeholder.ts @@ -1,7 +1,4 @@ -import OfficeFolderHasStakeholder_ from "../Customer/OfficeFolderHasStakeholder"; - -namespace OfficeFolderHasStakeholder { - export class IOfficeFolderHasStakeholder extends OfficeFolderHasStakeholder_.IOfficeFolderHasStakeholder {} -} +export * from "../Customer/OfficeFolderHasStakeholder"; +import OfficeFolderHasStakeholder from "../Customer/OfficeFolderHasStakeholder"; export default OfficeFolderHasStakeholder; diff --git a/src/Notary/User.ts b/src/Notary/User.ts index be404a9..bcab82f 100644 --- a/src/Notary/User.ts +++ b/src/Notary/User.ts @@ -4,32 +4,28 @@ import Document from "../Customer/Document"; import Office from "../Customer/Office"; import OfficeFolderHasStakeholder from "../Customer/OfficeFolderHasStakeholder"; -namespace User { - export class IUser { - @IsNotEmpty() - public uuid!: string; +export default class User { + @IsNotEmpty() + public uuid!: string; - @IsNotEmpty({ groups: ["create"] }) - public idNot!: string; + @IsNotEmpty({ groups: ["create"] }) + public idNot!: string; - @IsNotEmpty({ groups: ["create"] }) - public contact!: Contact.IContact; + @IsNotEmpty({ groups: ["create"] }) + public contact!: Contact; - @IsNotEmpty({ groups: ["create"] }) - public office_membership!: Office.IOffice; + @IsNotEmpty({ groups: ["create"] }) + public office_membership!: Office; - @IsDate() - public created_at: Date | null = null; + @IsDate() + public created_at: Date | null = null; - @IsDate() - public updated_at: Date | null = null; + @IsDate() + public updated_at: Date | null = null; - @IsOptional() - office_folder_has_stakeholders?: OfficeFolderHasStakeholder.IOfficeFolderHasStakeholder[]; + @IsOptional() + office_folder_has_stakeholders?: OfficeFolderHasStakeholder[]; - @IsOptional() - documents?: Document.IDocument; - } + @IsOptional() + documents?: Document[]; } - -export default User; diff --git a/src/Notary/UserHasNotification.ts b/src/Notary/UserHasNotification.ts index a04845c..a351ece 100644 --- a/src/Notary/UserHasNotification.ts +++ b/src/Notary/UserHasNotification.ts @@ -1,7 +1,4 @@ -import UserHasNotification_ from "../Customer/UserHasNotification"; - -namespace UserHasNotification { - export class IUserHasNotification extends UserHasNotification_.IUserHasNotification {} -} +export * from "../Customer/UserHasNotification"; +import UserHasNotification from "../Customer/UserHasNotification"; export default UserHasNotification; diff --git a/src/Notary/index.ts b/src/Notary/index.ts index abac77e..85871fe 100644 --- a/src/Notary/index.ts +++ b/src/Notary/index.ts @@ -1,4 +1,20 @@ import User from "./User"; -export { default as Customer } from "./Customer"; export default User; +export {default as Address} from "../SuperAdmin/Address"; +export {default as Customer} from "./Customer"; +export {default as Contact} from "./Contact"; +export {default as Deed} from "./Deed"; +export {default as DeedHasDocumentType} from "./DeedHasDocumentType"; +export {default as DeedType} from "./DeedType"; +export {default as DeedTypeHasDocumentType} from "./DeedTypeHasDocumentType"; +export {default as Document} from "./Document"; +export {default as DocumentHistory} from "./DocumentHistory"; +export {default as DocumentType} from "./DocumentType"; +export {default as File} from "./File"; +export {default as Notification} from "./Notification"; +export {default as Office} from "./Office"; +export {default as OfficeFolder} from "./OfficeFolder"; +export {default as OfficeFolderHasCustomer} from "./OfficeFolderHasCustomer"; +export {default as OfficeFolderHasStakeholder} from "./OfficeFolderHasStakeholder"; +export {default as UserHasNotification} from "./UserHasNotification"; \ No newline at end of file diff --git a/src/Resource.ts b/src/Resource.ts new file mode 100644 index 0000000..d411a35 --- /dev/null +++ b/src/Resource.ts @@ -0,0 +1,16 @@ +import { type ClassTransformOptions, plainToClassFromExist } from "class-transformer"; +import validator, { IsNotEmpty, ValidatorOptions } from "class-validator"; + +export default class Resource { + @IsNotEmpty({ message: "UID is required" }) + public uid!: string; + + public static hydrate(from: Partial, options?: ClassTransformOptions) : T { + const self: T = new (this as any); + return plainToClassFromExist(self, from, options); + } + + public static validateOrReject(validatorOptions?: ValidatorOptions){ + return validator.validateOrReject(this, validatorOptions); + } +} \ No newline at end of file diff --git a/src/SuperAdmin/Address.ts b/src/SuperAdmin/Address.ts index f100199..c4ec192 100644 --- a/src/SuperAdmin/Address.ts +++ b/src/SuperAdmin/Address.ts @@ -1,7 +1,4 @@ -import Address_ from "../Admin/Address"; +export * from "../Admin/Address"; +import Address from "../Admin/Address"; -namespace Address { - export class IAddress extends Address_.IAddress {} -} - -export default Address; +export default Address; \ No newline at end of file diff --git a/src/SuperAdmin/Contact.ts b/src/SuperAdmin/Contact.ts index e28cbc6..d61b4b2 100644 --- a/src/SuperAdmin/Contact.ts +++ b/src/SuperAdmin/Contact.ts @@ -1,7 +1,4 @@ -import Contact_ from "../Admin/Contact"; +export * from "../Admin/Contact"; +import Contact from "../Admin/Contact"; -namespace Contact { - export class IContact extends Contact_.IContact {} -} - -export default Contact; +export default Contact; \ No newline at end of file diff --git a/src/SuperAdmin/Customer.ts b/src/SuperAdmin/Customer.ts index 05f0f2c..3468c49 100644 --- a/src/SuperAdmin/Customer.ts +++ b/src/SuperAdmin/Customer.ts @@ -1,7 +1,4 @@ -import Customer_ from "../Admin/Customer"; +export * from "../Admin/Customer"; +import Customer from "../Admin/Customer"; -namespace Customer { - export class ICustomer extends Customer_.ICustomer {} -} - -export default Customer; +export default Customer; \ No newline at end of file diff --git a/src/SuperAdmin/Deed.ts b/src/SuperAdmin/Deed.ts index 85837e5..1565cf7 100644 --- a/src/SuperAdmin/Deed.ts +++ b/src/SuperAdmin/Deed.ts @@ -1,7 +1,4 @@ -import Deed_ from "../Admin/Deed"; +export * from "../Admin/Deed"; +import Deed from "../Admin/Deed"; -namespace Deed { - export class IDeed extends Deed_.IDeed {} -} - -export default Deed; +export default Deed; \ No newline at end of file diff --git a/src/SuperAdmin/DeedHasDocumentType.ts b/src/SuperAdmin/DeedHasDocumentType.ts index 4c015dd..bd69d69 100644 --- a/src/SuperAdmin/DeedHasDocumentType.ts +++ b/src/SuperAdmin/DeedHasDocumentType.ts @@ -1,7 +1,4 @@ -import DeedHasDocumentType_ from "../Admin/DeedHasDocumentType"; +export * from "../Admin/DeedHasDocumentType"; +import DeedHasDocumentType from "../Admin/DeedHasDocumentType"; -namespace DeedHasDocumentType { - export class IDeedHasDocumentType extends DeedHasDocumentType_.IDeedHasDocumentType {} -} - -export default DeedHasDocumentType; +export default DeedHasDocumentType; \ No newline at end of file diff --git a/src/SuperAdmin/DeedType.ts b/src/SuperAdmin/DeedType.ts index d6477b0..8b89ff8 100644 --- a/src/SuperAdmin/DeedType.ts +++ b/src/SuperAdmin/DeedType.ts @@ -1,7 +1,4 @@ -import DeedType_ from "../Admin/DeedType"; +export * from "../Admin/DeedType"; +import DeedType from "../Admin/DeedType"; -namespace DeedType { - export class IDeedType extends DeedType_.IDeedType {} -} - -export default DeedType; +export default DeedType; \ No newline at end of file diff --git a/src/SuperAdmin/DeedTypeHasDocumentType.ts b/src/SuperAdmin/DeedTypeHasDocumentType.ts index a11cc89..9bc2e58 100644 --- a/src/SuperAdmin/DeedTypeHasDocumentType.ts +++ b/src/SuperAdmin/DeedTypeHasDocumentType.ts @@ -1,7 +1,4 @@ -import DeedTypeHasDocumentType_ from "../Admin/DeedTypeHasDocumentType"; - -namespace DeedTypeHasDocumentType { - export class IDeedTypeHasDocumentType extends DeedTypeHasDocumentType_.IDeedTypeHasDocumentType {} -} +export * from "../Admin/DeedTypeHasDocumentType"; +import DeedTypeHasDocumentType from "../Admin/DeedTypeHasDocumentType"; export default DeedTypeHasDocumentType; diff --git a/src/SuperAdmin/Document.ts b/src/SuperAdmin/Document.ts index 9c463db..0e373ea 100644 --- a/src/SuperAdmin/Document.ts +++ b/src/SuperAdmin/Document.ts @@ -1,7 +1,4 @@ -import Document_ from "../Admin/Document"; - -namespace Document { - export class IDocument extends Document_.IDocument {} -} +export * from "../Admin/Document"; +import Document from "../Admin/Document"; export default Document; diff --git a/src/SuperAdmin/DocumentHistory.ts b/src/SuperAdmin/DocumentHistory.ts index 7bbd087..e76ab46 100644 --- a/src/SuperAdmin/DocumentHistory.ts +++ b/src/SuperAdmin/DocumentHistory.ts @@ -1,7 +1,4 @@ -import DocumentHistory_ from "../Admin/DocumentHistory"; - -namespace DocumentHistory { - export class IDocumentHistory extends DocumentHistory_.IDocumentHistory {} -} +export * from "../Admin/DocumentHistory"; +import DocumentHistory from "../Admin/DocumentHistory"; export default DocumentHistory; diff --git a/src/SuperAdmin/DocumentType.ts b/src/SuperAdmin/DocumentType.ts index e1c2de4..468e76e 100644 --- a/src/SuperAdmin/DocumentType.ts +++ b/src/SuperAdmin/DocumentType.ts @@ -1,7 +1,4 @@ -import DocumentType_ from "../Admin/DocumentType"; - -namespace DocumentType { - export class IDocumentType extends DocumentType_.IDocumentType {} -} +export * from "../Admin/DocumentType"; +import DocumentType from "../Admin/DocumentType"; export default DocumentType; diff --git a/src/SuperAdmin/File.ts b/src/SuperAdmin/File.ts index 4b1068c..e54784a 100644 --- a/src/SuperAdmin/File.ts +++ b/src/SuperAdmin/File.ts @@ -1,7 +1,4 @@ -import File_ from "../Admin/File"; - -namespace File { - export class IFile extends File_.IFile {} -} +export * from "../Admin/File"; +import File from "../Admin/File"; export default File; diff --git a/src/SuperAdmin/Notification.ts b/src/SuperAdmin/Notification.ts index ab1d4eb..e383582 100644 --- a/src/SuperAdmin/Notification.ts +++ b/src/SuperAdmin/Notification.ts @@ -1,7 +1,4 @@ -import Notification_ from "../Admin/Notification"; - -namespace Notification { - export class INotification extends Notification_.INotification {} -} +export * from "../Admin/Notification"; +import Notification from "../Admin/Notification"; export default Notification; diff --git a/src/SuperAdmin/Office.ts b/src/SuperAdmin/Office.ts index b81cfae..d1d52b1 100644 --- a/src/SuperAdmin/Office.ts +++ b/src/SuperAdmin/Office.ts @@ -1,7 +1,18 @@ -import Office_ from "../Admin/Office"; - -namespace Office { - export class IOffice extends Office_.IOffice {} -} +export * from "../Admin/Office"; +import Office from "../Admin/Office"; export default Office; + + +/** + * @description If we overrride the users we should be able to use the new overrided Admin user type + */ +// export * from "../Admin/Office"; +// import { IsOptional } from "class-validator"; +// import Office_ from "../Admin/Office"; +// import Admin from "."; + +// export default class Office extends Office_ { +// @IsOptional() +// public override users?: Admin[]; +// }; \ No newline at end of file diff --git a/src/SuperAdmin/OfficeFolder.ts b/src/SuperAdmin/OfficeFolder.ts index a324897..7e03e2c 100644 --- a/src/SuperAdmin/OfficeFolder.ts +++ b/src/SuperAdmin/OfficeFolder.ts @@ -1,7 +1,4 @@ -import OfficeFolder_ from "../Admin/OfficeFolder"; +export * from "../Admin/OfficeFolder"; +import OfficeFolder from "../Admin/OfficeFolder"; -namespace OfficeFolder { - export class IOfficeFolder extends OfficeFolder_.IOfficeFolder {} -} - -export default OfficeFolder; +export default OfficeFolder; \ No newline at end of file diff --git a/src/SuperAdmin/OfficeFolderHasCustomer.ts b/src/SuperAdmin/OfficeFolderHasCustomer.ts index f6e8f63..844ae9f 100644 --- a/src/SuperAdmin/OfficeFolderHasCustomer.ts +++ b/src/SuperAdmin/OfficeFolderHasCustomer.ts @@ -1,7 +1,4 @@ -import OfficeFolderHasCustomer_ from "../Admin/OfficeFolderHasCustomer"; - -namespace OfficeFolderHasCustomer { - export class IOfficeFolderHasCustomer extends OfficeFolderHasCustomer_.IOfficeFolderHasCustomer {} -} +export * from "../Admin/OfficeFolderHasCustomer"; +import OfficeFolderHasCustomer from "../Admin/OfficeFolderHasCustomer"; export default OfficeFolderHasCustomer; diff --git a/src/SuperAdmin/OfficeFolderHasStakeholder.ts b/src/SuperAdmin/OfficeFolderHasStakeholder.ts index e973c89..dfbdecd 100644 --- a/src/SuperAdmin/OfficeFolderHasStakeholder.ts +++ b/src/SuperAdmin/OfficeFolderHasStakeholder.ts @@ -1,7 +1,4 @@ -import OfficeFolderHasStakeholder_ from "../Admin/OfficeFolderHasStakeholder"; - -namespace OfficeFolderHasStakeholder { - export class IOfficeFolderHasStakeholder extends OfficeFolderHasStakeholder_.IOfficeFolderHasStakeholder {} -} +export * from "../Admin/OfficeFolderHasStakeholder"; +import OfficeFolderHasStakeholder from "../Admin/OfficeFolderHasStakeholder"; export default OfficeFolderHasStakeholder; diff --git a/src/SuperAdmin/User.ts b/src/SuperAdmin/User.ts index 3d04efc..8b66422 100644 --- a/src/SuperAdmin/User.ts +++ b/src/SuperAdmin/User.ts @@ -1,7 +1,4 @@ -import User_ from "../Admin/User"; +export * from "../Admin/User"; +import User from "../Admin/User"; -namespace User { - export class IUser extends User_.IUser {} -} - -export default User; +export default User; \ No newline at end of file diff --git a/src/SuperAdmin/UserHasNotification.ts b/src/SuperAdmin/UserHasNotification.ts index a04845c..c2844d6 100644 --- a/src/SuperAdmin/UserHasNotification.ts +++ b/src/SuperAdmin/UserHasNotification.ts @@ -1,7 +1,4 @@ -import UserHasNotification_ from "../Customer/UserHasNotification"; - -namespace UserHasNotification { - export class IUserHasNotification extends UserHasNotification_.IUserHasNotification {} -} +export * from "../Admin/UserHasNotification"; +import UserHasNotification from "../Admin/UserHasNotification"; export default UserHasNotification; diff --git a/src/SuperAdmin/index.ts b/src/SuperAdmin/index.ts new file mode 100644 index 0000000..7852499 --- /dev/null +++ b/src/SuperAdmin/index.ts @@ -0,0 +1,20 @@ +import User from "./User"; + +export default User; +export {default as Address} from "./Address"; +export {default as Customer} from "./Customer"; +export {default as Contact} from "./Contact"; +export {default as Deed} from "./Deed"; +export {default as DeedHasDocumentType} from "./DeedHasDocumentType"; +export {default as DeedType} from "./DeedType"; +export {default as DeedTypeHasDocumentType} from "./DeedTypeHasDocumentType"; +export {default as Document} from "./Document"; +export {default as DocumentHistory} from "./DocumentHistory"; +export {default as DocumentType} from "./DocumentType"; +export {default as File} from "./File"; +export {default as Notification} from "./Notification"; +export {default as Office} from "./Office"; +export {default as OfficeFolder} from "./OfficeFolder"; +export {default as OfficeFolderHasCustomer} from "./OfficeFolderHasCustomer"; +export {default as OfficeFolderHasStakeholder} from "./OfficeFolderHasStakeholder"; +export {default as UserHasNotification} from "./UserHasNotification"; \ No newline at end of file