@valentine-efagene/qshelter-common 1.0.3 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/encryption/encryption.module.d.ts +2 -0
- package/dist/encryption/encryption.module.js +24 -0
- package/dist/encryption/encryption.module.js.map +1 -0
- package/dist/encryption/encryption.service.d.ts +17 -0
- package/dist/encryption/encryption.service.js +95 -0
- package/dist/encryption/encryption.service.js.map +1 -0
- package/dist/entities/amenity.entity.js +1 -0
- package/dist/entities/amenity.entity.js.map +1 -1
- package/dist/entities/common.entity.js +6 -5
- package/dist/entities/common.entity.js.map +1 -1
- package/dist/entities/contract-document.entity.d.ts +39 -0
- package/dist/entities/contract-document.entity.js +115 -0
- package/dist/entities/contract-document.entity.js.map +1 -0
- package/dist/entities/contract.entity.d.ts +62 -0
- package/dist/entities/contract.entity.js +191 -0
- package/dist/entities/contract.entity.js.map +1 -0
- package/dist/entities/device_endpoint.entity.d.ts +10 -0
- package/dist/entities/device_endpoint.entity.js +50 -0
- package/dist/entities/device_endpoint.entity.js.map +1 -0
- package/dist/entities/email_preference.entity.d.ts +6 -0
- package/dist/entities/email_preference.entity.js +45 -0
- package/dist/entities/email_preference.entity.js.map +1 -0
- package/dist/entities/index.d.ts +10 -0
- package/dist/entities/index.js +10 -0
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/mortgage-document.entity.js +6 -6
- package/dist/entities/mortgage-document.entity.js.map +1 -1
- package/dist/entities/mortgage-downpayment-installment.entity.d.ts +2 -2
- package/dist/entities/mortgage-downpayment-installment.entity.js +15 -15
- package/dist/entities/mortgage-downpayment-installment.entity.js.map +1 -1
- package/dist/entities/mortgage-downpayment-payment.entity.js +8 -8
- package/dist/entities/mortgage-downpayment-payment.entity.js.map +1 -1
- package/dist/entities/mortgage-downpayment.entity.js +6 -6
- package/dist/entities/mortgage-downpayment.entity.js.map +1 -1
- package/dist/entities/mortgage-step.entity.js +6 -6
- package/dist/entities/mortgage-step.entity.js.map +1 -1
- package/dist/entities/mortgage-transition-event.entity.d.ts +26 -0
- package/dist/entities/mortgage-transition-event.entity.js +111 -0
- package/dist/entities/mortgage-transition-event.entity.js.map +1 -0
- package/dist/entities/mortgage-transition.entity.d.ts +25 -0
- package/dist/entities/mortgage-transition.entity.js +91 -0
- package/dist/entities/mortgage-transition.entity.js.map +1 -0
- package/dist/entities/mortgage-type.entity.js +6 -6
- package/dist/entities/mortgage-type.entity.js.map +1 -1
- package/dist/entities/password_reset_tokens.entity.js +2 -0
- package/dist/entities/password_reset_tokens.entity.js.map +1 -1
- package/dist/entities/payment-installment.entity.d.ts +39 -0
- package/dist/entities/payment-installment.entity.js +134 -0
- package/dist/entities/payment-installment.entity.js.map +1 -0
- package/dist/entities/payment-plan.entity.d.ts +62 -0
- package/dist/entities/payment-plan.entity.js +174 -0
- package/dist/entities/payment-plan.entity.js.map +1 -0
- package/dist/entities/payment-schedule.entity.d.ts +44 -0
- package/dist/entities/payment-schedule.entity.js +134 -0
- package/dist/entities/payment-schedule.entity.js.map +1 -0
- package/dist/entities/payment.entity.d.ts +55 -0
- package/dist/entities/payment.entity.js +157 -0
- package/dist/entities/payment.entity.js.map +1 -0
- package/dist/entities/permission.entity.js +1 -1
- package/dist/entities/permission.entity.js.map +1 -1
- package/dist/entities/property-document.entity.js +1 -1
- package/dist/entities/property-document.entity.js.map +1 -1
- package/dist/entities/property-media.entity.js +1 -0
- package/dist/entities/property-media.entity.js.map +1 -1
- package/dist/entities/property.entity.d.ts +5 -1
- package/dist/entities/property.entity.js +27 -10
- package/dist/entities/property.entity.js.map +1 -1
- package/dist/entities/refresh_token.entity.js +2 -2
- package/dist/entities/refresh_token.entity.js.map +1 -1
- package/dist/entities/role.entity.js +1 -1
- package/dist/entities/role.entity.js.map +1 -1
- package/dist/entities/settings.entity.js +9 -7
- package/dist/entities/settings.entity.js.map +1 -1
- package/dist/entities/social.entity.js +3 -1
- package/dist/entities/social.entity.js.map +1 -1
- package/dist/entities/tenant.entity.js +14 -14
- package/dist/entities/tenant.entity.js.map +1 -1
- package/dist/entities/transaction.entity.js +9 -6
- package/dist/entities/transaction.entity.js.map +1 -1
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/entities/user.entity.js +13 -7
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/entities/user_suspensions.entity.js +2 -0
- package/dist/entities/user_suspensions.entity.js.map +1 -1
- package/dist/entities/wallet.entity.js +2 -2
- package/dist/entities/wallet.entity.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/qr-code/qr-code.dto.d.ts +3 -0
- package/dist/qr-code/qr-code.dto.js +21 -0
- package/dist/qr-code/qr-code.dto.js.map +1 -0
- package/dist/qr-code/qr-code.module.d.ts +2 -0
- package/dist/qr-code/qr-code.module.js +24 -0
- package/dist/qr-code/qr-code.module.js.map +1 -0
- package/dist/qr-code/qr-code.service.d.ts +11 -0
- package/dist/qr-code/qr-code.service.js +99 -0
- package/dist/qr-code/qr-code.service.js.map +1 -0
- package/dist/qr-code/qr-code.type.d.ts +5 -0
- package/dist/qr-code/qr-code.type.js +3 -0
- package/dist/qr-code/qr-code.type.js.map +1 -0
- package/dist/services/notifications/src/common/common.entity.d.ts +6 -0
- package/dist/services/notifications/src/common/common.entity.js +37 -0
- package/dist/services/notifications/src/common/common.entity.js.map +1 -0
- package/dist/shared/common/OpenApiHelper.d.ts +9 -0
- package/dist/shared/common/OpenApiHelper.js +118 -0
- package/dist/shared/common/OpenApiHelper.js.map +1 -0
- package/dist/shared/common/decorator/index.d.ts +2 -0
- package/dist/shared/common/decorator/index.js +19 -0
- package/dist/shared/common/decorator/index.js.map +1 -0
- package/dist/shared/common/decorator/permission.decorator.d.ts +2 -0
- package/dist/shared/common/decorator/permission.decorator.js +6 -0
- package/dist/shared/common/decorator/permission.decorator.js.map +1 -0
- package/dist/shared/common/decorator/tenant.decorator.d.ts +2 -0
- package/dist/shared/common/decorator/tenant.decorator.js +13 -0
- package/dist/shared/common/decorator/tenant.decorator.js.map +1 -0
- package/dist/shared/common/entities/BaseEntity.d.ts +11 -0
- package/dist/shared/common/entities/BaseEntity.js +54 -0
- package/dist/shared/common/entities/BaseEntity.js.map +1 -0
- package/dist/shared/common/entities/TenantAwareEntity.d.ts +10 -0
- package/dist/shared/common/entities/TenantAwareEntity.js +52 -0
- package/dist/shared/common/entities/TenantAwareEntity.js.map +1 -0
- package/dist/shared/common/entities/TenantAwareRepository.d.ts +13 -0
- package/dist/shared/common/entities/TenantAwareRepository.js +65 -0
- package/dist/shared/common/entities/TenantAwareRepository.js.map +1 -0
- package/dist/shared/common/entities/amenity.entity.d.ts +4 -0
- package/dist/shared/common/entities/amenity.entity.js +28 -0
- package/dist/shared/common/entities/amenity.entity.js.map +1 -0
- package/dist/shared/common/entities/common.entity.d.ts +17 -0
- package/dist/shared/common/entities/common.entity.js +64 -0
- package/dist/shared/common/entities/common.entity.js.map +1 -0
- package/dist/shared/common/entities/common.pure.entity.d.ts +11 -0
- package/dist/shared/common/entities/common.pure.entity.js +52 -0
- package/dist/shared/common/entities/common.pure.entity.js.map +1 -0
- package/dist/shared/common/entities/contract-document.entity.d.ts +39 -0
- package/dist/shared/common/entities/contract-document.entity.js +115 -0
- package/dist/shared/common/entities/contract-document.entity.js.map +1 -0
- package/dist/shared/common/entities/contract.entity.d.ts +62 -0
- package/dist/shared/common/entities/contract.entity.js +191 -0
- package/dist/shared/common/entities/contract.entity.js.map +1 -0
- package/dist/shared/common/entities/device_endpoint.entity.d.ts +10 -0
- package/dist/shared/common/entities/device_endpoint.entity.js +50 -0
- package/dist/shared/common/entities/device_endpoint.entity.js.map +1 -0
- package/dist/shared/common/entities/email_preference.entity.d.ts +6 -0
- package/dist/shared/common/entities/email_preference.entity.js +42 -0
- package/dist/shared/common/entities/email_preference.entity.js.map +1 -0
- package/dist/shared/common/entities/index.d.ts +35 -0
- package/dist/shared/common/entities/index.js +52 -0
- package/dist/shared/common/entities/index.js.map +1 -0
- package/dist/shared/common/entities/mortgage-document.entity.d.ts +14 -0
- package/dist/shared/common/entities/mortgage-document.entity.js +58 -0
- package/dist/shared/common/entities/mortgage-document.entity.js.map +1 -0
- package/dist/shared/common/entities/mortgage-downpayment-installment.entity.d.ts +19 -0
- package/dist/shared/common/entities/mortgage-downpayment-installment.entity.js +63 -0
- package/dist/shared/common/entities/mortgage-downpayment-installment.entity.js.map +1 -0
- package/dist/shared/common/entities/mortgage-downpayment-payment.entity.d.ts +28 -0
- package/dist/shared/common/entities/mortgage-downpayment-payment.entity.js +84 -0
- package/dist/shared/common/entities/mortgage-downpayment-payment.entity.js.map +1 -0
- package/dist/shared/common/entities/mortgage-downpayment.entity.d.ts +22 -0
- package/dist/shared/common/entities/mortgage-downpayment.entity.js +66 -0
- package/dist/shared/common/entities/mortgage-downpayment.entity.js.map +1 -0
- package/dist/shared/common/entities/mortgage-step.entity.d.ts +12 -0
- package/dist/shared/common/entities/mortgage-step.entity.js +52 -0
- package/dist/shared/common/entities/mortgage-step.entity.js.map +1 -0
- package/dist/shared/common/entities/mortgage-transition-event.entity.d.ts +26 -0
- package/dist/shared/common/entities/mortgage-transition-event.entity.js +111 -0
- package/dist/shared/common/entities/mortgage-transition-event.entity.js.map +1 -0
- package/dist/shared/common/entities/mortgage-transition.entity.d.ts +25 -0
- package/dist/shared/common/entities/mortgage-transition.entity.js +91 -0
- package/dist/shared/common/entities/mortgage-transition.entity.js.map +1 -0
- package/dist/shared/common/entities/mortgage-type.entity.d.ts +10 -0
- package/dist/shared/common/entities/mortgage-type.entity.js +46 -0
- package/dist/shared/common/entities/mortgage-type.entity.js.map +1 -0
- package/dist/shared/common/entities/mortgage.entity.d.ts +37 -0
- package/dist/shared/common/entities/mortgage.entity.js +124 -0
- package/dist/shared/common/entities/mortgage.entity.js.map +1 -0
- package/dist/shared/common/entities/password_reset_tokens.entity.d.ts +7 -0
- package/dist/shared/common/entities/password_reset_tokens.entity.js +45 -0
- package/dist/shared/common/entities/password_reset_tokens.entity.js.map +1 -0
- package/dist/shared/common/entities/payment-installment.entity.d.ts +39 -0
- package/dist/shared/common/entities/payment-installment.entity.js +134 -0
- package/dist/shared/common/entities/payment-installment.entity.js.map +1 -0
- package/dist/shared/common/entities/payment-plan.entity.d.ts +62 -0
- package/dist/shared/common/entities/payment-plan.entity.js +174 -0
- package/dist/shared/common/entities/payment-plan.entity.js.map +1 -0
- package/dist/shared/common/entities/payment-schedule.entity.d.ts +44 -0
- package/dist/shared/common/entities/payment-schedule.entity.js +134 -0
- package/dist/shared/common/entities/payment-schedule.entity.js.map +1 -0
- package/dist/shared/common/entities/payment.entity.d.ts +55 -0
- package/dist/shared/common/entities/payment.entity.js +157 -0
- package/dist/shared/common/entities/payment.entity.js.map +1 -0
- package/dist/shared/common/entities/permission.entity.d.ts +6 -0
- package/dist/shared/common/entities/permission.entity.js +30 -0
- package/dist/shared/common/entities/permission.entity.js.map +1 -0
- package/dist/shared/common/entities/property-document.entity.d.ts +6 -0
- package/dist/shared/common/entities/property-document.entity.js +34 -0
- package/dist/shared/common/entities/property-document.entity.js.map +1 -0
- package/dist/shared/common/entities/property-media.entity.d.ts +6 -0
- package/dist/shared/common/entities/property-media.entity.js +37 -0
- package/dist/shared/common/entities/property-media.entity.js.map +1 -0
- package/dist/shared/common/entities/property.entity.d.ts +39 -0
- package/dist/shared/common/entities/property.entity.js +193 -0
- package/dist/shared/common/entities/property.entity.js.map +1 -0
- package/dist/shared/common/entities/refresh_token.entity.d.ts +7 -0
- package/dist/shared/common/entities/refresh_token.entity.js +35 -0
- package/dist/shared/common/entities/refresh_token.entity.js.map +1 -0
- package/dist/shared/common/entities/role.entity.d.ts +8 -0
- package/dist/shared/common/entities/role.entity.js +39 -0
- package/dist/shared/common/entities/role.entity.js.map +1 -0
- package/dist/shared/common/entities/settings.entity.d.ts +17 -0
- package/dist/shared/common/entities/settings.entity.js +81 -0
- package/dist/shared/common/entities/settings.entity.js.map +1 -0
- package/dist/shared/common/entities/social.entity.d.ts +8 -0
- package/dist/shared/common/entities/social.entity.js +48 -0
- package/dist/shared/common/entities/social.entity.js.map +1 -0
- package/dist/shared/common/entities/tenant.entity.d.ts +29 -0
- package/dist/shared/common/entities/tenant.entity.js +82 -0
- package/dist/shared/common/entities/tenant.entity.js.map +1 -0
- package/dist/shared/common/entities/transaction.entity.d.ts +17 -0
- package/dist/shared/common/entities/transaction.entity.js +87 -0
- package/dist/shared/common/entities/transaction.entity.js.map +1 -0
- package/dist/shared/common/entities/user.entity.d.ts +26 -0
- package/dist/shared/common/entities/user.entity.js +104 -0
- package/dist/shared/common/entities/user.entity.js.map +1 -0
- package/dist/shared/common/entities/user_suspensions.entity.d.ts +7 -0
- package/dist/shared/common/entities/user_suspensions.entity.js +44 -0
- package/dist/shared/common/entities/user_suspensions.entity.js.map +1 -0
- package/dist/shared/common/entities/wallet.entity.d.ts +17 -0
- package/dist/shared/common/entities/wallet.entity.js +79 -0
- package/dist/shared/common/entities/wallet.entity.js.map +1 -0
- package/dist/shared/common/guard/index.d.ts +2 -0
- package/dist/shared/common/guard/index.js +19 -0
- package/dist/shared/common/guard/index.js.map +1 -0
- package/dist/shared/common/guard/permission.guard.d.ts +10 -0
- package/dist/shared/common/guard/permission.guard.js +47 -0
- package/dist/shared/common/guard/permission.guard.js.map +1 -0
- package/dist/shared/common/guard/swagger-auth.guard.d.ts +1 -0
- package/dist/shared/common/guard/swagger-auth.guard.js +9 -0
- package/dist/shared/common/guard/swagger-auth.guard.js.map +1 -0
- package/dist/shared/common/helpers/ArrayHelper.d.ts +2 -0
- package/dist/shared/common/helpers/ArrayHelper.js +6 -0
- package/dist/shared/common/helpers/ArrayHelper.js.map +1 -0
- package/dist/shared/common/helpers/ConstantHelper.d.ts +36 -0
- package/dist/shared/common/helpers/ConstantHelper.js +90 -0
- package/dist/shared/common/helpers/ConstantHelper.js.map +1 -0
- package/dist/shared/common/helpers/CustomNamingStrategy.d.ts +7 -0
- package/dist/shared/common/helpers/CustomNamingStrategy.js +22 -0
- package/dist/shared/common/helpers/CustomNamingStrategy.js.map +1 -0
- package/dist/shared/common/helpers/DateHelper.d.ts +3 -0
- package/dist/shared/common/helpers/DateHelper.js +20 -0
- package/dist/shared/common/helpers/DateHelper.js.map +1 -0
- package/dist/shared/common/helpers/EmailHelper.d.ts +4 -0
- package/dist/shared/common/helpers/EmailHelper.js +65 -0
- package/dist/shared/common/helpers/EmailHelper.js.map +1 -0
- package/dist/shared/common/helpers/FileSystemHelper.d.ts +15 -0
- package/dist/shared/common/helpers/FileSystemHelper.js +112 -0
- package/dist/shared/common/helpers/FileSystemHelper.js.map +1 -0
- package/dist/shared/common/helpers/index.d.ts +5 -0
- package/dist/shared/common/helpers/index.js +22 -0
- package/dist/shared/common/helpers/index.js.map +1 -0
- package/dist/shared/common/index.d.ts +9 -0
- package/dist/shared/common/index.js +26 -0
- package/dist/shared/common/index.js.map +1 -0
- package/dist/shared/common/middleware/AccessLoggerMiddleware.d.ts +6 -0
- package/dist/shared/common/middleware/AccessLoggerMiddleware.js +64 -0
- package/dist/shared/common/middleware/AccessLoggerMiddleware.js.map +1 -0
- package/dist/shared/common/middleware/AuthenticationMiddleware.d.ts +5 -0
- package/dist/shared/common/middleware/AuthenticationMiddleware.js +19 -0
- package/dist/shared/common/middleware/AuthenticationMiddleware.js.map +1 -0
- package/dist/shared/common/middleware/TenantMiddleware.d.ts +14 -0
- package/dist/shared/common/middleware/TenantMiddleware.js +49 -0
- package/dist/shared/common/middleware/TenantMiddleware.js.map +1 -0
- package/dist/shared/common/middleware/index.d.ts +3 -0
- package/dist/shared/common/middleware/index.js +20 -0
- package/dist/shared/common/middleware/index.js.map +1 -0
- package/dist/shared/common/pagination/index.d.ts +2 -0
- package/dist/shared/common/pagination/index.js +19 -0
- package/dist/shared/common/pagination/index.js.map +1 -0
- package/dist/shared/common/pagination/pagination.helper.d.ts +7 -0
- package/dist/shared/common/pagination/pagination.helper.js +40 -0
- package/dist/shared/common/pagination/pagination.helper.js.map +1 -0
- package/dist/shared/common/pagination/pagination.types.d.ts +19 -0
- package/dist/shared/common/pagination/pagination.types.js +3 -0
- package/dist/shared/common/pagination/pagination.types.js.map +1 -0
- package/dist/shared/common/standard-response.d.ts +7 -0
- package/dist/shared/common/standard-response.js +27 -0
- package/dist/shared/common/standard-response.js.map +1 -0
- package/dist/shared/common/types/common.type.d.ts +54 -0
- package/dist/shared/common/types/common.type.js +55 -0
- package/dist/shared/common/types/common.type.js.map +1 -0
- package/dist/shared/common/types/index.d.ts +8 -0
- package/dist/shared/common/types/index.js +25 -0
- package/dist/shared/common/types/index.js.map +1 -0
- package/dist/shared/common/types/mortgage-fsm.type.d.ts +180 -0
- package/dist/shared/common/types/mortgage-fsm.type.js +130 -0
- package/dist/shared/common/types/mortgage-fsm.type.js.map +1 -0
- package/dist/shared/common/types/permission.type.d.ts +42 -0
- package/dist/shared/common/types/permission.type.js +47 -0
- package/dist/shared/common/types/permission.type.js.map +1 -0
- package/dist/shared/common/types/policy.type.d.ts +18 -0
- package/dist/shared/common/types/policy.type.js +3 -0
- package/dist/shared/common/types/policy.type.js.map +1 -0
- package/dist/shared/common/types/property.type.d.ts +9 -0
- package/dist/shared/common/types/property.type.js +15 -0
- package/dist/shared/common/types/property.type.js.map +1 -0
- package/dist/shared/common/types/tenant.type.d.ts +13 -0
- package/dist/shared/common/types/tenant.type.js +19 -0
- package/dist/shared/common/types/tenant.type.js.map +1 -0
- package/dist/shared/common/types/transaction.type.d.ts +8 -0
- package/dist/shared/common/types/transaction.type.js +14 -0
- package/dist/shared/common/types/transaction.type.js.map +1 -0
- package/dist/shared/common/types/user.type.d.ts +10 -0
- package/dist/shared/common/types/user.type.js +16 -0
- package/dist/shared/common/types/user.type.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/common.type.d.ts +16 -3
- package/dist/types/common.type.js +13 -1
- package/dist/types/common.type.js.map +1 -1
- package/package.json +13 -11
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AbstractTenantAwareEntity = exports.AbstractBaseEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const tenant_entity_1 = require("./tenant.entity");
|
|
15
|
+
class AbstractBaseEntity {
|
|
16
|
+
}
|
|
17
|
+
exports.AbstractBaseEntity = AbstractBaseEntity;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], AbstractBaseEntity.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
24
|
+
__metadata("design:type", Date)
|
|
25
|
+
], AbstractBaseEntity.prototype, "createdAt", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.UpdateDateColumn)({
|
|
28
|
+
name: 'updated_at',
|
|
29
|
+
type: 'timestamp',
|
|
30
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
31
|
+
onUpdate: 'CURRENT_TIMESTAMP',
|
|
32
|
+
}),
|
|
33
|
+
__metadata("design:type", Date)
|
|
34
|
+
], AbstractBaseEntity.prototype, "updatedAt", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.DeleteDateColumn)({ name: 'deleted_at', nullable: true, default: null }),
|
|
37
|
+
__metadata("design:type", Date)
|
|
38
|
+
], AbstractBaseEntity.prototype, "deletedAt", void 0);
|
|
39
|
+
class AbstractTenantAwareEntity extends AbstractBaseEntity {
|
|
40
|
+
}
|
|
41
|
+
exports.AbstractTenantAwareEntity = AbstractTenantAwareEntity;
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.ManyToOne)(() => tenant_entity_1.Tenant, { onDelete: 'CASCADE' }),
|
|
44
|
+
(0, typeorm_1.JoinColumn)({ name: 'tenant_id' }),
|
|
45
|
+
__metadata("design:type", tenant_entity_1.Tenant)
|
|
46
|
+
], AbstractTenantAwareEntity.prototype, "tenant", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ name: 'tenant_id' }),
|
|
49
|
+
(0, typeorm_1.Index)(),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], AbstractTenantAwareEntity.prototype, "tenantId", void 0);
|
|
52
|
+
//# sourceMappingURL=common.pure.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.pure.entity.js","sourceRoot":"","sources":["../../../../entities/common.pure.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAA6I;AAC7I,mDAAyC;AAGzC,MAAsB,kBAAkB;CAiBvC;AAjBD,gDAiBC;AAfG;IADC,IAAA,gCAAsB,GAAE;;8CACd;AAGX;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,EAAE,CAAC;8BACrF,IAAI;qDAAC;AAQhB;IANC,IAAA,0BAAgB,EAAC;QACd,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB;QAClC,QAAQ,EAAE,mBAAmB;KAChC,CAAC;8BACS,IAAI;qDAAC;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8BAC7D,IAAI;qDAAC;AAOpB,MAAsB,yBAA0B,SAAQ,kBAAkB;CAQzE;AARD,8DAQC;AALG;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAChD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC1B,sBAAM;yDAAC;AAIf;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IAC7B,IAAA,eAAK,GAAE;;2DACS"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AbstractBaseReviewableEntity } from './common.entity';
|
|
2
|
+
import { Contract } from './contract.entity';
|
|
3
|
+
import { User } from './user.entity';
|
|
4
|
+
export declare enum ContractDocumentType {
|
|
5
|
+
CONTRACT = "CONTRACT",
|
|
6
|
+
ADDENDUM = "ADDENDUM",
|
|
7
|
+
AMENDMENT = "AMENDMENT",
|
|
8
|
+
DISCLOSURE = "DISCLOSURE",
|
|
9
|
+
PROOF_OF_INCOME = "PROOF_OF_INCOME",
|
|
10
|
+
PROOF_OF_ID = "PROOF_OF_ID",
|
|
11
|
+
CREDIT_REPORT = "CREDIT_REPORT",
|
|
12
|
+
BANK_STATEMENT = "BANK_STATEMENT",
|
|
13
|
+
TITLE_DEED = "TITLE_DEED",
|
|
14
|
+
APPRAISAL = "APPRAISAL",
|
|
15
|
+
INSPECTION = "INSPECTION",
|
|
16
|
+
INSURANCE = "INSURANCE",
|
|
17
|
+
OTHER = "OTHER"
|
|
18
|
+
}
|
|
19
|
+
export declare class ContractDocument extends AbstractBaseReviewableEntity {
|
|
20
|
+
contract: Contract;
|
|
21
|
+
contractId: number;
|
|
22
|
+
documentType: ContractDocumentType;
|
|
23
|
+
fileName: string;
|
|
24
|
+
url: string;
|
|
25
|
+
mimeType: string;
|
|
26
|
+
fileSize: number;
|
|
27
|
+
isRequired: boolean;
|
|
28
|
+
isTemplate: boolean;
|
|
29
|
+
description: string;
|
|
30
|
+
uploadedBy: User;
|
|
31
|
+
uploadedById: number;
|
|
32
|
+
uploadedAt: Date;
|
|
33
|
+
verifiedAt: Date;
|
|
34
|
+
verifiedBy: User;
|
|
35
|
+
verifiedById: number;
|
|
36
|
+
version: number;
|
|
37
|
+
metadata: any;
|
|
38
|
+
}
|
|
39
|
+
export default ContractDocument;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ContractDocument = exports.ContractDocumentType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const common_entity_1 = require("./common.entity");
|
|
15
|
+
const contract_entity_1 = require("./contract.entity");
|
|
16
|
+
const user_entity_1 = require("./user.entity");
|
|
17
|
+
var ContractDocumentType;
|
|
18
|
+
(function (ContractDocumentType) {
|
|
19
|
+
ContractDocumentType["CONTRACT"] = "CONTRACT";
|
|
20
|
+
ContractDocumentType["ADDENDUM"] = "ADDENDUM";
|
|
21
|
+
ContractDocumentType["AMENDMENT"] = "AMENDMENT";
|
|
22
|
+
ContractDocumentType["DISCLOSURE"] = "DISCLOSURE";
|
|
23
|
+
ContractDocumentType["PROOF_OF_INCOME"] = "PROOF_OF_INCOME";
|
|
24
|
+
ContractDocumentType["PROOF_OF_ID"] = "PROOF_OF_ID";
|
|
25
|
+
ContractDocumentType["CREDIT_REPORT"] = "CREDIT_REPORT";
|
|
26
|
+
ContractDocumentType["BANK_STATEMENT"] = "BANK_STATEMENT";
|
|
27
|
+
ContractDocumentType["TITLE_DEED"] = "TITLE_DEED";
|
|
28
|
+
ContractDocumentType["APPRAISAL"] = "APPRAISAL";
|
|
29
|
+
ContractDocumentType["INSPECTION"] = "INSPECTION";
|
|
30
|
+
ContractDocumentType["INSURANCE"] = "INSURANCE";
|
|
31
|
+
ContractDocumentType["OTHER"] = "OTHER";
|
|
32
|
+
})(ContractDocumentType || (exports.ContractDocumentType = ContractDocumentType = {}));
|
|
33
|
+
let ContractDocument = class ContractDocument extends common_entity_1.AbstractBaseReviewableEntity {
|
|
34
|
+
};
|
|
35
|
+
exports.ContractDocument = ContractDocument;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.ManyToOne)(() => contract_entity_1.Contract, (contract) => contract.documents, { onDelete: 'CASCADE' }),
|
|
38
|
+
(0, typeorm_1.JoinColumn)({ name: 'contract_id' }),
|
|
39
|
+
__metadata("design:type", contract_entity_1.Contract)
|
|
40
|
+
], ContractDocument.prototype, "contract", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ name: 'contract_id' }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], ContractDocument.prototype, "contractId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: ContractDocumentType }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], ContractDocument.prototype, "documentType", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], ContractDocument.prototype, "fileName", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], ContractDocument.prototype, "url", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], ContractDocument.prototype, "mimeType", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ name: 'file_size', type: 'int', nullable: true }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], ContractDocument.prototype, "fileSize", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
67
|
+
__metadata("design:type", Boolean)
|
|
68
|
+
], ContractDocument.prototype, "isRequired", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
71
|
+
__metadata("design:type", Boolean)
|
|
72
|
+
], ContractDocument.prototype, "isTemplate", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], ContractDocument.prototype, "description", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true }),
|
|
79
|
+
(0, typeorm_1.JoinColumn)({ name: 'uploaded_by' }),
|
|
80
|
+
__metadata("design:type", user_entity_1.User)
|
|
81
|
+
], ContractDocument.prototype, "uploadedBy", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ name: 'uploaded_by', nullable: true }),
|
|
84
|
+
__metadata("design:type", Number)
|
|
85
|
+
], ContractDocument.prototype, "uploadedById", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ name: 'uploaded_at', type: 'timestamp', nullable: true }),
|
|
88
|
+
__metadata("design:type", Date)
|
|
89
|
+
], ContractDocument.prototype, "uploadedAt", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ name: 'verified_at', type: 'timestamp', nullable: true }),
|
|
92
|
+
__metadata("design:type", Date)
|
|
93
|
+
], ContractDocument.prototype, "verifiedAt", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true }),
|
|
96
|
+
(0, typeorm_1.JoinColumn)({ name: 'verified_by' }),
|
|
97
|
+
__metadata("design:type", user_entity_1.User)
|
|
98
|
+
], ContractDocument.prototype, "verifiedBy", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ name: 'verified_by', nullable: true }),
|
|
101
|
+
__metadata("design:type", Number)
|
|
102
|
+
], ContractDocument.prototype, "verifiedById", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
|
|
105
|
+
__metadata("design:type", Number)
|
|
106
|
+
], ContractDocument.prototype, "version", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
109
|
+
__metadata("design:type", Object)
|
|
110
|
+
], ContractDocument.prototype, "metadata", void 0);
|
|
111
|
+
exports.ContractDocument = ContractDocument = __decorate([
|
|
112
|
+
(0, typeorm_1.Entity)({ name: 'contract_document' })
|
|
113
|
+
], ContractDocument);
|
|
114
|
+
exports.default = ContractDocument;
|
|
115
|
+
//# sourceMappingURL=contract-document.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-document.entity.js","sourceRoot":"","sources":["../../../../entities/contract-document.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,mDAA+D;AAC/D,uDAA6C;AAC7C,+CAAqC;AAKrC,IAAY,oBAcX;AAdD,WAAY,oBAAoB;IAC5B,6CAAqB,CAAA;IACrB,6CAAqB,CAAA;IACrB,+CAAuB,CAAA;IACvB,iDAAyB,CAAA;IACzB,2DAAmC,CAAA;IACnC,mDAA2B,CAAA;IAC3B,uDAA+B,CAAA;IAC/B,yDAAiC,CAAA;IACjC,iDAAyB,CAAA;IACzB,+CAAuB,CAAA;IACvB,iDAAyB,CAAA;IACzB,+CAAuB,CAAA;IACvB,uCAAe,CAAA;AACnB,CAAC,EAdW,oBAAoB,oCAApB,oBAAoB,QAc/B;AAOM,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,4CAA4B;CAyDjE,CAAA;AAzDY,4CAAgB;AAGzB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACpF,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAC1B,0BAAQ;kDAAC;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;oDACb;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;;sDAClB;AAGnC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;kDACxB;AAGjB;IADC,IA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IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACxB,kBAAI;oDAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAC3B;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACpB;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC3B;2BAxDL,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;GACzB,gBAAgB,CAyD5B;AAED,kBAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { AbstractBaseReviewableEntity } from './common.entity';
|
|
2
|
+
import { PaymentPlan } from './payment-plan.entity';
|
|
3
|
+
import { User } from './user.entity';
|
|
4
|
+
import { Property } from './property.entity';
|
|
5
|
+
import { ContractDocument } from './contract-document.entity';
|
|
6
|
+
export declare enum ContractType {
|
|
7
|
+
MORTGAGE = "MORTGAGE",
|
|
8
|
+
SALE_AGREEMENT = "SALE_AGREEMENT",
|
|
9
|
+
LEASE_AGREEMENT = "LEASE_AGREEMENT",
|
|
10
|
+
RENT_TO_OWN = "RENT_TO_OWN",
|
|
11
|
+
INSTALLMENT_SALE = "INSTALLMENT_SALE",
|
|
12
|
+
OPTION_TO_PURCHASE = "OPTION_TO_PURCHASE",
|
|
13
|
+
CUSTOM = "CUSTOM"
|
|
14
|
+
}
|
|
15
|
+
export declare enum ContractStatus {
|
|
16
|
+
DRAFT = "DRAFT",
|
|
17
|
+
PENDING_SIGNATURE = "PENDING_SIGNATURE",
|
|
18
|
+
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
19
|
+
ACTIVE = "ACTIVE",
|
|
20
|
+
COMPLETED = "COMPLETED",
|
|
21
|
+
TERMINATED = "TERMINATED",
|
|
22
|
+
EXPIRED = "EXPIRED",
|
|
23
|
+
CANCELLED = "CANCELLED"
|
|
24
|
+
}
|
|
25
|
+
export declare class Contract extends AbstractBaseReviewableEntity {
|
|
26
|
+
paymentPlan: PaymentPlan;
|
|
27
|
+
paymentPlanId: number;
|
|
28
|
+
property: Property;
|
|
29
|
+
propertyId: number;
|
|
30
|
+
buyer: User;
|
|
31
|
+
buyerId: number;
|
|
32
|
+
seller: User;
|
|
33
|
+
sellerId: number;
|
|
34
|
+
contractType: ContractType;
|
|
35
|
+
contractNumber: string;
|
|
36
|
+
title: string;
|
|
37
|
+
description: string;
|
|
38
|
+
status: ContractStatus;
|
|
39
|
+
startDate: Date;
|
|
40
|
+
endDate: Date;
|
|
41
|
+
expiryDate: Date;
|
|
42
|
+
signedAt: Date;
|
|
43
|
+
executedAt: Date;
|
|
44
|
+
buyerSigned: boolean;
|
|
45
|
+
buyerSignedAt: Date;
|
|
46
|
+
buyerSignatureUrl: string;
|
|
47
|
+
sellerSigned: boolean;
|
|
48
|
+
sellerSignedAt: Date;
|
|
49
|
+
sellerSignatureUrl: string;
|
|
50
|
+
witnessSigned: boolean;
|
|
51
|
+
witnessSignedAt: Date;
|
|
52
|
+
witnessName: string;
|
|
53
|
+
contractUrl: string;
|
|
54
|
+
templateUrl: string;
|
|
55
|
+
terms: string;
|
|
56
|
+
governingLaw: string;
|
|
57
|
+
jurisdiction: string;
|
|
58
|
+
documents: ContractDocument[];
|
|
59
|
+
metadata: any;
|
|
60
|
+
clauses: any;
|
|
61
|
+
}
|
|
62
|
+
export default Contract;
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Contract = exports.ContractStatus = exports.ContractType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const common_entity_1 = require("./common.entity");
|
|
15
|
+
const payment_plan_entity_1 = require("./payment-plan.entity");
|
|
16
|
+
const user_entity_1 = require("./user.entity");
|
|
17
|
+
const property_entity_1 = require("./property.entity");
|
|
18
|
+
const contract_document_entity_1 = require("./contract-document.entity");
|
|
19
|
+
var ContractType;
|
|
20
|
+
(function (ContractType) {
|
|
21
|
+
ContractType["MORTGAGE"] = "MORTGAGE";
|
|
22
|
+
ContractType["SALE_AGREEMENT"] = "SALE_AGREEMENT";
|
|
23
|
+
ContractType["LEASE_AGREEMENT"] = "LEASE_AGREEMENT";
|
|
24
|
+
ContractType["RENT_TO_OWN"] = "RENT_TO_OWN";
|
|
25
|
+
ContractType["INSTALLMENT_SALE"] = "INSTALLMENT_SALE";
|
|
26
|
+
ContractType["OPTION_TO_PURCHASE"] = "OPTION_TO_PURCHASE";
|
|
27
|
+
ContractType["CUSTOM"] = "CUSTOM";
|
|
28
|
+
})(ContractType || (exports.ContractType = ContractType = {}));
|
|
29
|
+
var ContractStatus;
|
|
30
|
+
(function (ContractStatus) {
|
|
31
|
+
ContractStatus["DRAFT"] = "DRAFT";
|
|
32
|
+
ContractStatus["PENDING_SIGNATURE"] = "PENDING_SIGNATURE";
|
|
33
|
+
ContractStatus["PENDING_APPROVAL"] = "PENDING_APPROVAL";
|
|
34
|
+
ContractStatus["ACTIVE"] = "ACTIVE";
|
|
35
|
+
ContractStatus["COMPLETED"] = "COMPLETED";
|
|
36
|
+
ContractStatus["TERMINATED"] = "TERMINATED";
|
|
37
|
+
ContractStatus["EXPIRED"] = "EXPIRED";
|
|
38
|
+
ContractStatus["CANCELLED"] = "CANCELLED";
|
|
39
|
+
})(ContractStatus || (exports.ContractStatus = ContractStatus = {}));
|
|
40
|
+
let Contract = class Contract extends common_entity_1.AbstractBaseReviewableEntity {
|
|
41
|
+
};
|
|
42
|
+
exports.Contract = Contract;
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.OneToOne)(() => payment_plan_entity_1.PaymentPlan, (plan) => plan.contract, { nullable: true }),
|
|
45
|
+
(0, typeorm_1.JoinColumn)({ name: 'payment_plan_id' }),
|
|
46
|
+
__metadata("design:type", payment_plan_entity_1.PaymentPlan)
|
|
47
|
+
], Contract.prototype, "paymentPlan", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ name: 'payment_plan_id', nullable: true }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], Contract.prototype, "paymentPlanId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.ManyToOne)(() => property_entity_1.Property, { onDelete: 'CASCADE' }),
|
|
54
|
+
(0, typeorm_1.JoinColumn)({ name: 'property_id' }),
|
|
55
|
+
__metadata("design:type", property_entity_1.Property)
|
|
56
|
+
], Contract.prototype, "property", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ name: 'property_id' }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], Contract.prototype, "propertyId", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true }),
|
|
63
|
+
(0, typeorm_1.JoinColumn)({ name: 'buyer_id' }),
|
|
64
|
+
__metadata("design:type", user_entity_1.User)
|
|
65
|
+
], Contract.prototype, "buyer", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ name: 'buyer_id', nullable: true }),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], Contract.prototype, "buyerId", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true }),
|
|
72
|
+
(0, typeorm_1.JoinColumn)({ name: 'seller_id' }),
|
|
73
|
+
__metadata("design:type", user_entity_1.User)
|
|
74
|
+
], Contract.prototype, "seller", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ name: 'seller_id', nullable: true }),
|
|
77
|
+
__metadata("design:type", Number)
|
|
78
|
+
], Contract.prototype, "sellerId", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: ContractType }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], Contract.prototype, "contractType", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, unique: true }),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], Contract.prototype, "contractNumber", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], Contract.prototype, "title", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], Contract.prototype, "description", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: ContractStatus, default: ContractStatus.DRAFT }),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], Contract.prototype, "status", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ name: 'start_date', type: 'date', nullable: true }),
|
|
101
|
+
__metadata("design:type", Date)
|
|
102
|
+
], Contract.prototype, "startDate", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ name: 'end_date', type: 'date', nullable: true }),
|
|
105
|
+
__metadata("design:type", Date)
|
|
106
|
+
], Contract.prototype, "endDate", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ name: 'expiry_date', type: 'date', nullable: true }),
|
|
109
|
+
__metadata("design:type", Date)
|
|
110
|
+
], Contract.prototype, "expiryDate", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ name: 'signed_at', type: 'timestamp', nullable: true }),
|
|
113
|
+
__metadata("design:type", Date)
|
|
114
|
+
], Contract.prototype, "signedAt", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({ name: 'executed_at', type: 'timestamp', nullable: true }),
|
|
117
|
+
__metadata("design:type", Date)
|
|
118
|
+
], Contract.prototype, "executedAt", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.Column)({ name: 'buyer_signed', type: 'boolean', default: false }),
|
|
121
|
+
__metadata("design:type", Boolean)
|
|
122
|
+
], Contract.prototype, "buyerSigned", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, typeorm_1.Column)({ name: 'buyer_signed_at', type: 'timestamp', nullable: true }),
|
|
125
|
+
__metadata("design:type", Date)
|
|
126
|
+
], Contract.prototype, "buyerSignedAt", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, typeorm_1.Column)({ name: 'buyer_signature_url', nullable: true }),
|
|
129
|
+
__metadata("design:type", String)
|
|
130
|
+
], Contract.prototype, "buyerSignatureUrl", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, typeorm_1.Column)({ name: 'seller_signed', type: 'boolean', default: false }),
|
|
133
|
+
__metadata("design:type", Boolean)
|
|
134
|
+
], Contract.prototype, "sellerSigned", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, typeorm_1.Column)({ name: 'seller_signed_at', type: 'timestamp', nullable: true }),
|
|
137
|
+
__metadata("design:type", Date)
|
|
138
|
+
], Contract.prototype, "sellerSignedAt", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, typeorm_1.Column)({ name: 'seller_signature_url', nullable: true }),
|
|
141
|
+
__metadata("design:type", String)
|
|
142
|
+
], Contract.prototype, "sellerSignatureUrl", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, typeorm_1.Column)({ name: 'witness_signed', type: 'boolean', default: false }),
|
|
145
|
+
__metadata("design:type", Boolean)
|
|
146
|
+
], Contract.prototype, "witnessSigned", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, typeorm_1.Column)({ name: 'witness_signed_at', type: 'timestamp', nullable: true }),
|
|
149
|
+
__metadata("design:type", Date)
|
|
150
|
+
], Contract.prototype, "witnessSignedAt", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, typeorm_1.Column)({ name: 'witness_name', nullable: true }),
|
|
153
|
+
__metadata("design:type", String)
|
|
154
|
+
], Contract.prototype, "witnessName", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, typeorm_1.Column)({ name: 'contract_url', nullable: true }),
|
|
157
|
+
__metadata("design:type", String)
|
|
158
|
+
], Contract.prototype, "contractUrl", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, typeorm_1.Column)({ name: 'template_url', nullable: true }),
|
|
161
|
+
__metadata("design:type", String)
|
|
162
|
+
], Contract.prototype, "templateUrl", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
165
|
+
__metadata("design:type", String)
|
|
166
|
+
], Contract.prototype, "terms", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, typeorm_1.Column)({ name: 'governing_law', nullable: true }),
|
|
169
|
+
__metadata("design:type", String)
|
|
170
|
+
], Contract.prototype, "governingLaw", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
173
|
+
__metadata("design:type", String)
|
|
174
|
+
], Contract.prototype, "jurisdiction", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, typeorm_1.OneToMany)(() => contract_document_entity_1.ContractDocument, (doc) => doc.contract, { cascade: true }),
|
|
177
|
+
__metadata("design:type", Array)
|
|
178
|
+
], Contract.prototype, "documents", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
181
|
+
__metadata("design:type", Object)
|
|
182
|
+
], Contract.prototype, "metadata", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
185
|
+
__metadata("design:type", Object)
|
|
186
|
+
], Contract.prototype, "clauses", void 0);
|
|
187
|
+
exports.Contract = Contract = __decorate([
|
|
188
|
+
(0, typeorm_1.Entity)({ name: 'contract' })
|
|
189
|
+
], Contract);
|
|
190
|
+
exports.default = Contract;
|
|
191
|
+
//# sourceMappingURL=contract.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.entity.js","sourceRoot":"","sources":["../../../../entities/contract.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAqF;AACrF,mDAA+D;AAC/D,+DAAoD;AACpD,+CAAqC;AACrC,uDAA6C;AAC7C,yEAA8D;AAK9D,IAAY,YAQX;AARD,WAAY,YAAY;IACpB,qCAAqB,CAAA;IACrB,iDAAiC,CAAA;IACjC,mDAAmC,CAAA;IACnC,2CAA2B,CAAA;IAC3B,qDAAqC,CAAA;IACrC,yDAAyC,CAAA;IACzC,iCAAiB,CAAA;AACrB,CAAC,EARW,YAAY,4BAAZ,YAAY,QAQvB;AAKD,IAAY,cASX;AATD,WAAY,cAAc;IAC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8BACxD,IAAI;iDAAC;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC7B;AAIpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC7B;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC7B;AAIpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCAC3B;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC7B;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACN;AAIrB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAgB,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;2CAC9C;AAI9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAC3B;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAC5B;mBAnHJ,QAAQ;IADpB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;GAChB,QAAQ,CAoHpB;AAED,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbstractBaseEntity } from '../../../services/notifications/src/common/common.entity';
|
|
2
|
+
import { User } from '../user/user.entity';
|
|
3
|
+
export declare class DeviceEndpoint extends AbstractBaseEntity {
|
|
4
|
+
userId: number;
|
|
5
|
+
user: User;
|
|
6
|
+
userAgent: string;
|
|
7
|
+
endpointArn: string;
|
|
8
|
+
token: string;
|
|
9
|
+
userData: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var _a;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.DeviceEndpoint = void 0;
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const common_entity_1 = require("../../../services/notifications/src/common/common.entity");
|
|
16
|
+
const user_entity_1 = require("../user/user.entity");
|
|
17
|
+
let DeviceEndpoint = class DeviceEndpoint extends common_entity_1.AbstractBaseEntity {
|
|
18
|
+
};
|
|
19
|
+
exports.DeviceEndpoint = DeviceEndpoint;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], DeviceEndpoint.prototype, "userId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, user => user.deviceEndpoints),
|
|
26
|
+
(0, typeorm_1.JoinColumn)({ name: 'user_id' }),
|
|
27
|
+
__metadata("design:type", typeof (_a = typeof user_entity_1.User !== "undefined" && user_entity_1.User) === "function" ? _a : Object)
|
|
28
|
+
], DeviceEndpoint.prototype, "user", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], DeviceEndpoint.prototype, "userAgent", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], DeviceEndpoint.prototype, "endpointArn", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], DeviceEndpoint.prototype, "token", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({
|
|
43
|
+
nullable: true
|
|
44
|
+
}),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], DeviceEndpoint.prototype, "userData", void 0);
|
|
47
|
+
exports.DeviceEndpoint = DeviceEndpoint = __decorate([
|
|
48
|
+
(0, typeorm_1.Entity)({ name: 'device_endpoints' })
|
|
49
|
+
], DeviceEndpoint);
|
|
50
|
+
//# sourceMappingURL=device_endpoint.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device_endpoint.entity.js","sourceRoot":"","sources":["../../../../entities/device_endpoint.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAgE;AAChE,4FAA8F;AAC9F,qDAA2C;AAGpC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,kCAAkB;CAqBrD,CAAA;AArBY,wCAAc;AAEzB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;8CACb;AAIf;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC;IACnD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;kDAC1B,kBAAI,oBAAJ,kBAAI;4CAAA;AAGV;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;iDACV;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACb;AAKd;IAHC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;gDACc;yBApBL,cAAc;IAD1B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;GACxB,cAAc,CAqB1B"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EmailPreference = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const common_pure_entity_1 = require("./common.pure.entity");
|
|
15
|
+
let EmailPreference = class EmailPreference extends common_pure_entity_1.AbstractBaseEntity {
|
|
16
|
+
};
|
|
17
|
+
exports.EmailPreference = EmailPreference;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({
|
|
20
|
+
nullable: false,
|
|
21
|
+
unique: true,
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], EmailPreference.prototype, "email", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({
|
|
27
|
+
nullable: true,
|
|
28
|
+
unique: true
|
|
29
|
+
}),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], EmailPreference.prototype, "unsubscribeToken", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({
|
|
34
|
+
type: 'bool',
|
|
35
|
+
default: false
|
|
36
|
+
}),
|
|
37
|
+
__metadata("design:type", Boolean)
|
|
38
|
+
], EmailPreference.prototype, "unSubscribed", void 0);
|
|
39
|
+
exports.EmailPreference = EmailPreference = __decorate([
|
|
40
|
+
(0, typeorm_1.Entity)({ name: 'email_preferrences' })
|
|
41
|
+
], EmailPreference);
|
|
42
|
+
//# sourceMappingURL=email_preference.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email_preference.entity.js","sourceRoot":"","sources":["../../../../entities/email_preference.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,6DAA0D;AAGnD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,uCAAkB;CAkBtD,CAAA;AAlBY,0CAAe;AAK1B;IAJC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,IAAI;KACb,CAAC;;8CACY;AAMd;IAJC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,IAAI;KACb,CAAC;;yDACsB;AAMxB;IAJC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,KAAK;KACf,CAAC;;qDACmB;0BAjBV,eAAe;IAD3B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;GAC1B,eAAe,CAkB3B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export * from './BaseEntity';
|
|
2
|
+
export * from './TenantAwareEntity';
|
|
3
|
+
export * from './TenantAwareRepository';
|
|
4
|
+
export * from './amenity.entity';
|
|
5
|
+
export * from './common.entity';
|
|
6
|
+
export * from './common.pure.entity';
|
|
7
|
+
export * from './contract-document.entity';
|
|
8
|
+
export * from './contract.entity';
|
|
9
|
+
export * from './mortgage-document.entity';
|
|
10
|
+
export * from './mortgage-downpayment-installment.entity';
|
|
11
|
+
export * from './mortgage-downpayment-payment.entity';
|
|
12
|
+
export * from './mortgage-downpayment.entity';
|
|
13
|
+
export * from './mortgage-step.entity';
|
|
14
|
+
export * from './mortgage-transition-event.entity';
|
|
15
|
+
export * from './mortgage-transition.entity';
|
|
16
|
+
export * from './mortgage-type.entity';
|
|
17
|
+
export * from './mortgage.entity';
|
|
18
|
+
export * from './password_reset_tokens.entity';
|
|
19
|
+
export * from './payment-installment.entity';
|
|
20
|
+
export * from './payment-plan.entity';
|
|
21
|
+
export * from './payment-schedule.entity';
|
|
22
|
+
export * from './payment.entity';
|
|
23
|
+
export * from './permission.entity';
|
|
24
|
+
export * from './property-document.entity';
|
|
25
|
+
export * from './property-media.entity';
|
|
26
|
+
export * from './property.entity';
|
|
27
|
+
export * from './refresh_token.entity';
|
|
28
|
+
export * from './role.entity';
|
|
29
|
+
export * from './settings.entity';
|
|
30
|
+
export * from './social.entity';
|
|
31
|
+
export * from './tenant.entity';
|
|
32
|
+
export * from './transaction.entity';
|
|
33
|
+
export * from './user.entity';
|
|
34
|
+
export * from './user_suspensions.entity';
|
|
35
|
+
export * from './wallet.entity';
|