@valentine-efagene/qshelter-common 1.0.4 → 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 +1 -5
- package/dist/types/common.type.js.map +1 -1
- package/package.json +14 -12
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.EncryptionModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const config_1 = require("@nestjs/config");
|
|
12
|
+
const encryption_service_1 = require("./encryption.service");
|
|
13
|
+
let EncryptionModule = class EncryptionModule {
|
|
14
|
+
};
|
|
15
|
+
exports.EncryptionModule = EncryptionModule;
|
|
16
|
+
exports.EncryptionModule = EncryptionModule = __decorate([
|
|
17
|
+
(0, common_1.Module)({
|
|
18
|
+
imports: [config_1.ConfigModule.forRoot()],
|
|
19
|
+
controllers: [],
|
|
20
|
+
providers: [encryption_service_1.EncryptionService],
|
|
21
|
+
exports: [encryption_service_1.EncryptionService]
|
|
22
|
+
})
|
|
23
|
+
], EncryptionModule);
|
|
24
|
+
//# sourceMappingURL=encryption.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encryption.module.js","sourceRoot":"","sources":["../../encryption/encryption.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,2CAA8C;AAC9C,6DAAyD;AAQlD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAAI,CAAA;AAApB,4CAAgB;2BAAhB,gBAAgB;IAN5B,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,CAAC,qBAAY,CAAC,OAAO,EAAE,CAAC;QACjC,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,CAAC,sCAAiB,CAAC;QAC9B,OAAO,EAAE,CAAC,sCAAiB,CAAC;KAC/B,CAAC;GACW,gBAAgB,CAAI"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ConfigService } from '@nestjs/config';
|
|
2
|
+
export declare class EncryptionService {
|
|
3
|
+
private readonly configService;
|
|
4
|
+
private readonly algorithm;
|
|
5
|
+
private key;
|
|
6
|
+
private iv;
|
|
7
|
+
private readonly iterations;
|
|
8
|
+
private readonly keyLength;
|
|
9
|
+
private readonly ivLength;
|
|
10
|
+
constructor(configService: ConfigService);
|
|
11
|
+
deriveKeyAndIV(password: string, salt: string): {
|
|
12
|
+
key: Buffer;
|
|
13
|
+
iv: Buffer;
|
|
14
|
+
};
|
|
15
|
+
encrypt(text: string): string;
|
|
16
|
+
decrypt(encryptedText: string): string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
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;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
42
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
43
|
+
};
|
|
44
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.EncryptionService = void 0;
|
|
46
|
+
const common_1 = require("@nestjs/common");
|
|
47
|
+
const config_1 = require("@nestjs/config");
|
|
48
|
+
const crypto = __importStar(require("crypto"));
|
|
49
|
+
let EncryptionService = class EncryptionService {
|
|
50
|
+
constructor(configService) {
|
|
51
|
+
this.configService = configService;
|
|
52
|
+
this.algorithm = 'aes-256-cbc';
|
|
53
|
+
this.iterations = 100000;
|
|
54
|
+
this.keyLength = 32;
|
|
55
|
+
this.ivLength = 16;
|
|
56
|
+
const password = this.configService.get('ENCRYPTION_PASSWORD');
|
|
57
|
+
const salt = this.configService.get('ENCRYPTION_SALT');
|
|
58
|
+
if (!password || password.length < 1) {
|
|
59
|
+
throw new common_1.InternalServerErrorException('Encryption password not set');
|
|
60
|
+
}
|
|
61
|
+
if (!salt || salt.length < 1) {
|
|
62
|
+
throw new common_1.InternalServerErrorException('Encryption salt not set');
|
|
63
|
+
}
|
|
64
|
+
const keyAndIv = this.deriveKeyAndIV(password, salt);
|
|
65
|
+
this.key = keyAndIv.key;
|
|
66
|
+
this.iv = keyAndIv.iv;
|
|
67
|
+
if (this.key.length !== 32)
|
|
68
|
+
throw new Error('Encryption key must be 32 bytes');
|
|
69
|
+
if (this.iv.length !== 16)
|
|
70
|
+
throw new Error('IV must be 16 bytes');
|
|
71
|
+
}
|
|
72
|
+
deriveKeyAndIV(password, salt) {
|
|
73
|
+
const key = crypto.pbkdf2Sync(password, salt, this.iterations, this.keyLength, 'sha256');
|
|
74
|
+
const iv = key.subarray(0, this.ivLength);
|
|
75
|
+
return { key, iv };
|
|
76
|
+
}
|
|
77
|
+
encrypt(text) {
|
|
78
|
+
const cipher = crypto.createCipheriv(this.algorithm, this.key, this.iv);
|
|
79
|
+
let encrypted = cipher.update(text, 'utf8', 'hex');
|
|
80
|
+
encrypted += cipher.final('hex');
|
|
81
|
+
return encrypted;
|
|
82
|
+
}
|
|
83
|
+
decrypt(encryptedText) {
|
|
84
|
+
const decipher = crypto.createDecipheriv(this.algorithm, this.key, this.iv);
|
|
85
|
+
let decrypted = decipher.update(encryptedText, 'hex', 'utf8');
|
|
86
|
+
decrypted += decipher.final('utf8');
|
|
87
|
+
return decrypted;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
exports.EncryptionService = EncryptionService;
|
|
91
|
+
exports.EncryptionService = EncryptionService = __decorate([
|
|
92
|
+
(0, common_1.Injectable)(),
|
|
93
|
+
__metadata("design:paramtypes", [config_1.ConfigService])
|
|
94
|
+
], EncryptionService);
|
|
95
|
+
//# sourceMappingURL=encryption.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encryption.service.js","sourceRoot":"","sources":["../../encryption/encryption.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,2CAA0E;AAC1E,2CAA+C;AAC/C,+CAAiC;AAG1B,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAS1B,YACqB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;QAThC,cAAS,GAAG,aAAa,CAAC;QAI1B,eAAU,GAAG,MAAM,CAAC;QACpB,cAAS,GAAG,EAAE,CAAC;QACf,aAAQ,GAAG,EAAE,CAAC;QAK3B,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,qBAAqB,CAAC,CAAA;QACtE,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,iBAAiB,CAAC,CAAA;QAE9D,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACnC,MAAM,IAAI,qCAA4B,CAAC,6BAA6B,CAAC,CAAA;QACzE,CAAC;QAED,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC3B,MAAM,IAAI,qCAA4B,CAAC,yBAAyB,CAAC,CAAA;QACrE,CAAC;QAED,MAAM,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;QACpD,IAAI,CAAC,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAA;QACvB,IAAI,CAAC,EAAE,GAAG,QAAQ,CAAC,EAAE,CAAA;QAErB,IAAI,IAAI,CAAC,GAAG,CAAC,MAAM,KAAK,EAAE;YAAE,MAAM,IAAI,KAAK,CA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B,sBAAa;GAVxC,iBAAiB,CAmD7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amenity.entity.js","sourceRoot":"","sources":["../../entities/amenity.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,6CAA0C;AAGnC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,uBAAU;
|
|
1
|
+
{"version":3,"file":"amenity.entity.js","sourceRoot":"","sources":["../../entities/amenity.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,6CAA0C;AAGnC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,uBAAU;CAMtC,CAAA;AANY,0BAAO;AAKlB;IAJC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB,CAAC;;qCACU;kBALD,OAAO;IADnB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;GACf,OAAO,CAMnB"}
|
|
@@ -31,6 +31,7 @@ class AbstractBaseDocumentEntity extends AbstractBaseReviewableEntity {
|
|
|
31
31
|
exports.AbstractBaseDocumentEntity = AbstractBaseDocumentEntity;
|
|
32
32
|
__decorate([
|
|
33
33
|
(0, typeorm_1.Column)({
|
|
34
|
+
name: 'status',
|
|
34
35
|
type: 'enum',
|
|
35
36
|
enum: common_type_1.DocumentStatus,
|
|
36
37
|
default: common_type_1.DocumentStatus.PENDING,
|
|
@@ -38,23 +39,23 @@ __decorate([
|
|
|
38
39
|
__metadata("design:type", String)
|
|
39
40
|
], AbstractBaseDocumentEntity.prototype, "status", void 0);
|
|
40
41
|
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
42
|
+
(0, typeorm_1.Column)({ name: 'comment', nullable: true }),
|
|
42
43
|
__metadata("design:type", String)
|
|
43
44
|
], AbstractBaseDocumentEntity.prototype, "comment", void 0);
|
|
44
45
|
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
46
|
+
(0, typeorm_1.Column)({ name: 'url', type: 'text', nullable: false }),
|
|
46
47
|
__metadata("design:type", String)
|
|
47
48
|
], AbstractBaseDocumentEntity.prototype, "url", void 0);
|
|
48
49
|
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
50
|
+
(0, typeorm_1.Column)({ name: 'description', nullable: true }),
|
|
50
51
|
__metadata("design:type", String)
|
|
51
52
|
], AbstractBaseDocumentEntity.prototype, "description", void 0);
|
|
52
53
|
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
54
|
+
(0, typeorm_1.Column)({ name: 'name', nullable: true }),
|
|
54
55
|
__metadata("design:type", String)
|
|
55
56
|
], AbstractBaseDocumentEntity.prototype, "name", void 0);
|
|
56
57
|
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ nullable: false, comment: "In bytes" }),
|
|
58
|
+
(0, typeorm_1.Column)({ name: 'size', nullable: false, comment: "In bytes" }),
|
|
58
59
|
__metadata("design:type", Number)
|
|
59
60
|
], AbstractBaseDocumentEntity.prototype, "size", void 0);
|
|
60
61
|
class AbstractBaseMediaEntity extends AbstractBaseDocumentEntity {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.entity.js","sourceRoot":"","sources":["../../entities/common.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAqC;AACrC,qCAIiB;AACjB,sDAAsD;AACtD,6DAAiE;AAEjE,MAAsB,4BAA6B,SAAQ,8CAAyB;CAOnF;AAPD,oEAOC;AAJC;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IACtC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAC1B,kBAAI;8DAAC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAA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AAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDAC5B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;;wDACnD;AAGd,MAAsB,uBAAwB,SAAQ,0BAA0B;CAG/E;AAHD,0DAGC"}
|
|
@@ -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,mDA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,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;IACtB,iCAAe,CAAA;IACf,yDAAuC,CAAA;IACvC,uDAAqC,CAAA;IACrC,mCAAiB,CAAA;IACjB,yCAAuB,CAAA;IACvB,2CAAyB,CAAA;IACzB,qCAAmB,CAAA;IACnB,yCAAuB,CAAA;AAC3B,CAAC,EATW,cAAc,8BAAd,cAAc,QASzB;AAOM,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,4CAA4B;CAoHzD,CAAA;AApHY,4BAAQ;AAGjB;IAFC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,iCAAW,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,EA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,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 './common.pure.entity';
|
|
2
|
+
import { User } from './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
|
+
}
|