@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,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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DeviceEndpoint = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const common_pure_entity_1 = require("./common.pure.entity");
|
|
15
|
+
const user_entity_1 = require("./user.entity");
|
|
16
|
+
let DeviceEndpoint = class DeviceEndpoint extends common_pure_entity_1.AbstractBaseEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.DeviceEndpoint = DeviceEndpoint;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.Column)({ name: 'user_id', nullable: false }),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], DeviceEndpoint.prototype, "userId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, user => user.deviceEndpoints),
|
|
25
|
+
(0, typeorm_1.JoinColumn)({ name: 'user_id' }),
|
|
26
|
+
__metadata("design:type", user_entity_1.User)
|
|
27
|
+
], DeviceEndpoint.prototype, "user", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ name: 'user_agent', nullable: false }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], DeviceEndpoint.prototype, "userAgent", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ name: 'endpoint_arn', nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], DeviceEndpoint.prototype, "endpointArn", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ name: 'token', nullable: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], DeviceEndpoint.prototype, "token", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({
|
|
42
|
+
name: 'user_data',
|
|
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,6DAA0D;AAC1D,+CAAqC;AAG9B,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,uCAAkB;CAsBrD,CAAA;AAtBY,wCAAc;AAEzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;8CAC9B;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;8BAC1B,kBAAI;4CAAA;AAGV;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;iDAC9B;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDAC7B;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC5B;AAMd;IAJC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,IAAI;KACf,CAAC;;gDACc;yBArBL,cAAc;IAD1B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;GACxB,cAAc,CAsB1B"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
name: 'email',
|
|
21
|
+
nullable: false,
|
|
22
|
+
unique: true,
|
|
23
|
+
}),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], EmailPreference.prototype, "email", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({
|
|
28
|
+
name: 'unsubscribe_token',
|
|
29
|
+
nullable: true,
|
|
30
|
+
unique: true
|
|
31
|
+
}),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], EmailPreference.prototype, "unsubscribeToken", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({
|
|
36
|
+
name: 'un_subscribed',
|
|
37
|
+
type: 'bool',
|
|
38
|
+
default: false
|
|
39
|
+
}),
|
|
40
|
+
__metadata("design:type", Boolean)
|
|
41
|
+
], EmailPreference.prototype, "unSubscribed", void 0);
|
|
42
|
+
exports.EmailPreference = EmailPreference = __decorate([
|
|
43
|
+
(0, typeorm_1.Entity)({ name: 'email_preferrences' })
|
|
44
|
+
], EmailPreference);
|
|
45
|
+
//# 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;CAqBtD,CAAA;AArBY,0CAAe;AAM1B;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,IAAI;KACb,CAAC;;8CACY;AAOd;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,IAAI;KACb,CAAC;;yDACsB;AAOxB;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,KAAK;KACf,CAAC;;qDACmB;0BApBV,eAAe;IAD3B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;GAC1B,eAAe,CAqB3B"}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -4,14 +4,24 @@ export * from './TenantAwareRepository';
|
|
|
4
4
|
export * from './amenity.entity';
|
|
5
5
|
export * from './common.entity';
|
|
6
6
|
export * from './common.pure.entity';
|
|
7
|
+
export * from './contract-document.entity';
|
|
8
|
+
export * from './contract.entity';
|
|
9
|
+
export * from './device_endpoint.entity';
|
|
10
|
+
export * from './email_preference.entity';
|
|
7
11
|
export * from './mortgage-document.entity';
|
|
8
12
|
export * from './mortgage-downpayment-installment.entity';
|
|
9
13
|
export * from './mortgage-downpayment-payment.entity';
|
|
10
14
|
export * from './mortgage-downpayment.entity';
|
|
11
15
|
export * from './mortgage-step.entity';
|
|
16
|
+
export * from './mortgage-transition-event.entity';
|
|
17
|
+
export * from './mortgage-transition.entity';
|
|
12
18
|
export * from './mortgage-type.entity';
|
|
13
19
|
export * from './mortgage.entity';
|
|
14
20
|
export * from './password_reset_tokens.entity';
|
|
21
|
+
export * from './payment-installment.entity';
|
|
22
|
+
export * from './payment-plan.entity';
|
|
23
|
+
export * from './payment-schedule.entity';
|
|
24
|
+
export * from './payment.entity';
|
|
15
25
|
export * from './permission.entity';
|
|
16
26
|
export * from './property-document.entity';
|
|
17
27
|
export * from './property-media.entity';
|
package/dist/entities/index.js
CHANGED
|
@@ -20,14 +20,24 @@ __exportStar(require("./TenantAwareRepository"), exports);
|
|
|
20
20
|
__exportStar(require("./amenity.entity"), exports);
|
|
21
21
|
__exportStar(require("./common.entity"), exports);
|
|
22
22
|
__exportStar(require("./common.pure.entity"), exports);
|
|
23
|
+
__exportStar(require("./contract-document.entity"), exports);
|
|
24
|
+
__exportStar(require("./contract.entity"), exports);
|
|
25
|
+
__exportStar(require("./device_endpoint.entity"), exports);
|
|
26
|
+
__exportStar(require("./email_preference.entity"), exports);
|
|
23
27
|
__exportStar(require("./mortgage-document.entity"), exports);
|
|
24
28
|
__exportStar(require("./mortgage-downpayment-installment.entity"), exports);
|
|
25
29
|
__exportStar(require("./mortgage-downpayment-payment.entity"), exports);
|
|
26
30
|
__exportStar(require("./mortgage-downpayment.entity"), exports);
|
|
27
31
|
__exportStar(require("./mortgage-step.entity"), exports);
|
|
32
|
+
__exportStar(require("./mortgage-transition-event.entity"), exports);
|
|
33
|
+
__exportStar(require("./mortgage-transition.entity"), exports);
|
|
28
34
|
__exportStar(require("./mortgage-type.entity"), exports);
|
|
29
35
|
__exportStar(require("./mortgage.entity"), exports);
|
|
30
36
|
__exportStar(require("./password_reset_tokens.entity"), exports);
|
|
37
|
+
__exportStar(require("./payment-installment.entity"), exports);
|
|
38
|
+
__exportStar(require("./payment-plan.entity"), exports);
|
|
39
|
+
__exportStar(require("./payment-schedule.entity"), exports);
|
|
40
|
+
__exportStar(require("./payment.entity"), exports);
|
|
31
41
|
__exportStar(require("./permission.entity"), exports);
|
|
32
42
|
__exportStar(require("./property-document.entity"), exports);
|
|
33
43
|
__exportStar(require("./property-media.entity"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,sDAAoC;AACpC,0DAAwC;AACxC,mDAAiC;AACjC,kDAAgC;AAChC,uDAAqC;AACrC,6DAA2C;AAC3C,4EAA0D;AAC1D,wEAAsD;AACtD,gEAA8C;AAC9C,yDAAuC;AACvC,yDAAuC;AACvC,oDAAkC;AAClC,iEAA+C;AAC/C,sDAAoC;AACpC,6DAA2C;AAC3C,0DAAwC;AACxC,oDAAkC;AAClC,yDAAuC;AACvC,gDAA8B;AAC9B,oDAAkC;AAClC,kDAAgC;AAChC,kDAAgC;AAChC,uDAAqC;AACrC,gDAA8B;AAC9B,4DAA0C;AAC1C,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,sDAAoC;AACpC,0DAAwC;AACxC,mDAAiC;AACjC,kDAAgC;AAChC,uDAAqC;AACrC,6DAA2C;AAC3C,oDAAkC;AAClC,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,4EAA0D;AAC1D,wEAAsD;AACtD,gEAA8C;AAC9C,yDAAuC;AACvC,qEAAmD;AACnD,+DAA6C;AAC7C,yDAAuC;AACvC,oDAAkC;AAClC,iEAA+C;AAC/C,+DAA6C;AAC7C,wDAAsC;AACtC,4DAA0C;AAC1C,mDAAiC;AACjC,sDAAoC;AACpC,6DAA2C;AAC3C,0DAAwC;AACxC,oDAAkC;AAClC,yDAAuC;AACvC,gDAA8B;AAC9B,oDAAkC;AAClC,kDAAgC;AAChC,kDAAgC;AAChC,uDAAqC;AACrC,gDAA8B;AAC9B,4DAA0C;AAC1C,kDAAgC"}
|
|
@@ -23,23 +23,23 @@ __decorate([
|
|
|
23
23
|
__metadata("design:type", mortgage_entity_1.Mortgage)
|
|
24
24
|
], MortgageDocument.prototype, "mortgage", void 0);
|
|
25
25
|
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
26
|
+
(0, typeorm_1.Column)({ name: 'mortgage_id', nullable: true }),
|
|
27
27
|
__metadata("design:type", Number)
|
|
28
28
|
], MortgageDocument.prototype, "mortgageId", void 0);
|
|
29
29
|
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)(),
|
|
30
|
+
(0, typeorm_1.Column)({ name: 'file_name' }),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], MortgageDocument.prototype, "fileName", void 0);
|
|
33
33
|
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
34
|
+
(0, typeorm_1.Column)({ name: 'url', nullable: true }),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], MortgageDocument.prototype, "url", void 0);
|
|
37
37
|
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
38
|
+
(0, typeorm_1.Column)({ name: 'is_template', default: false }),
|
|
39
39
|
__metadata("design:type", Boolean)
|
|
40
40
|
], MortgageDocument.prototype, "isTemplate", void 0);
|
|
41
41
|
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
42
|
+
(0, typeorm_1.Column)({ name: 'mime_type', nullable: true }),
|
|
43
43
|
__metadata("design:type", String)
|
|
44
44
|
], MortgageDocument.prototype, "mimeType", void 0);
|
|
45
45
|
__decorate([
|
|
@@ -48,7 +48,7 @@ __decorate([
|
|
|
48
48
|
__metadata("design:type", user_entity_1.User)
|
|
49
49
|
], MortgageDocument.prototype, "uploadedBy", void 0);
|
|
50
50
|
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
51
|
+
(0, typeorm_1.Column)({ name: 'uploaded_by_id', nullable: true }),
|
|
52
52
|
__metadata("design:type", Number)
|
|
53
53
|
], MortgageDocument.prototype, "uploadedById", void 0);
|
|
54
54
|
exports.MortgageDocument = MortgageDocument = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mortgage-document.entity.js","sourceRoot":"","sources":["../../entities/mortgage-document.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,mDAA+D;AAC/D,uDAA6C;AAC7C,+CAAqC;AAG9B,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,4CAA4B;CA4BjE,CAAA;AA5BY,4CAAgB;AAGzB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,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AAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACxB,kBAAI;oDAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAC9B;2BA3BZ,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;GACzB,gBAAgB,CA4B5B;AAED,kBAAe,gBAAgB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractBaseEntity } from './common.pure.entity';
|
|
2
2
|
import { MortgageDownpaymentPlan } from './mortgage-downpayment.entity';
|
|
3
|
-
export declare enum
|
|
3
|
+
export declare enum MortgageInstallmentStatus {
|
|
4
4
|
PENDING = "PENDING",
|
|
5
5
|
PARTIAL = "PARTIAL",
|
|
6
6
|
PAID = "PAID",
|
|
@@ -14,6 +14,6 @@ export declare class MortgageDownpaymentInstallment extends AbstractBaseEntity {
|
|
|
14
14
|
amountDue: number;
|
|
15
15
|
amountPaid: number;
|
|
16
16
|
paidAt: Date;
|
|
17
|
-
status:
|
|
17
|
+
status: MortgageInstallmentStatus;
|
|
18
18
|
}
|
|
19
19
|
export default MortgageDownpaymentInstallment;
|
|
@@ -9,17 +9,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MortgageDownpaymentInstallment = exports.
|
|
12
|
+
exports.MortgageDownpaymentInstallment = exports.MortgageInstallmentStatus = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const common_pure_entity_1 = require("./common.pure.entity");
|
|
15
15
|
const mortgage_downpayment_entity_1 = require("./mortgage-downpayment.entity");
|
|
16
|
-
var
|
|
17
|
-
(function (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
})(
|
|
16
|
+
var MortgageInstallmentStatus;
|
|
17
|
+
(function (MortgageInstallmentStatus) {
|
|
18
|
+
MortgageInstallmentStatus["PENDING"] = "PENDING";
|
|
19
|
+
MortgageInstallmentStatus["PARTIAL"] = "PARTIAL";
|
|
20
|
+
MortgageInstallmentStatus["PAID"] = "PAID";
|
|
21
|
+
MortgageInstallmentStatus["LATE"] = "LATE";
|
|
22
|
+
})(MortgageInstallmentStatus || (exports.MortgageInstallmentStatus = MortgageInstallmentStatus = {}));
|
|
23
23
|
let MortgageDownpaymentInstallment = class MortgageDownpaymentInstallment extends common_pure_entity_1.AbstractBaseEntity {
|
|
24
24
|
};
|
|
25
25
|
exports.MortgageDownpaymentInstallment = MortgageDownpaymentInstallment;
|
|
@@ -29,31 +29,31 @@ __decorate([
|
|
|
29
29
|
__metadata("design:type", mortgage_downpayment_entity_1.MortgageDownpaymentPlan)
|
|
30
30
|
], MortgageDownpaymentInstallment.prototype, "plan", void 0);
|
|
31
31
|
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
32
|
+
(0, typeorm_1.Column)({ name: 'plan_id', nullable: true }),
|
|
33
33
|
__metadata("design:type", Number)
|
|
34
34
|
], MortgageDownpaymentInstallment.prototype, "planId", void 0);
|
|
35
35
|
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
36
|
+
(0, typeorm_1.Column)({ name: 'sequence', type: 'int' }),
|
|
37
37
|
__metadata("design:type", Number)
|
|
38
38
|
], MortgageDownpaymentInstallment.prototype, "sequence", void 0);
|
|
39
39
|
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ type: 'date' }),
|
|
40
|
+
(0, typeorm_1.Column)({ name: 'due_date', type: 'date' }),
|
|
41
41
|
__metadata("design:type", Date)
|
|
42
42
|
], MortgageDownpaymentInstallment.prototype, "dueDate", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ type: 'double precision' }),
|
|
44
|
+
(0, typeorm_1.Column)({ name: 'amount_due', type: 'double precision' }),
|
|
45
45
|
__metadata("design:type", Number)
|
|
46
46
|
], MortgageDownpaymentInstallment.prototype, "amountDue", void 0);
|
|
47
47
|
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ type: 'double precision', default: 0 }),
|
|
48
|
+
(0, typeorm_1.Column)({ name: 'amount_paid', type: 'double precision', default: 0 }),
|
|
49
49
|
__metadata("design:type", Number)
|
|
50
50
|
], MortgageDownpaymentInstallment.prototype, "amountPaid", void 0);
|
|
51
51
|
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
52
|
+
(0, typeorm_1.Column)({ name: 'paid_at', type: 'timestamp', nullable: true }),
|
|
53
53
|
__metadata("design:type", Date)
|
|
54
54
|
], MortgageDownpaymentInstallment.prototype, "paidAt", void 0);
|
|
55
55
|
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ type: 'enum', enum:
|
|
56
|
+
(0, typeorm_1.Column)({ name: 'status', type: 'enum', enum: MortgageInstallmentStatus, default: MortgageInstallmentStatus.PENDING }),
|
|
57
57
|
__metadata("design:type", String)
|
|
58
58
|
], MortgageDownpaymentInstallment.prototype, "status", void 0);
|
|
59
59
|
exports.MortgageDownpaymentInstallment = MortgageDownpaymentInstallment = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mortgage-downpayment-installment.entity.js","sourceRoot":"","sources":["../../entities/mortgage-downpayment-installment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,6DAA0D;AAC1D,+EAAwE;AAExE,IAAY,
|
|
1
|
+
{"version":3,"file":"mortgage-downpayment-installment.entity.js","sourceRoot":"","sources":["../../entities/mortgage-down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,CAAC;8BACvD,IAAI;8DAAC;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,EAAE,OAAO,EAAE,yBAAyB,CAAC,OAAO,EAAE,CAAC;;8DACpF;yCAxBzB,8BAA8B;IAD1C,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kCAAkC,EAAE,CAAC;GACxC,8BAA8B,CAyB1C;AAED,kBAAe,8BAA8B,CAAC"}
|
|
@@ -36,7 +36,7 @@ __decorate([
|
|
|
36
36
|
__metadata("design:type", mortgage_downpayment_entity_1.MortgageDownpaymentPlan)
|
|
37
37
|
], MortgageDownpaymentPayment.prototype, "plan", void 0);
|
|
38
38
|
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
39
|
+
(0, typeorm_1.Column)({ name: 'plan_id', nullable: true }),
|
|
40
40
|
__metadata("design:type", Number)
|
|
41
41
|
], MortgageDownpaymentPayment.prototype, "planId", void 0);
|
|
42
42
|
__decorate([
|
|
@@ -45,7 +45,7 @@ __decorate([
|
|
|
45
45
|
__metadata("design:type", mortgage_downpayment_installment_entity_1.MortgageDownpaymentInstallment)
|
|
46
46
|
], MortgageDownpaymentPayment.prototype, "installment", void 0);
|
|
47
47
|
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
48
|
+
(0, typeorm_1.Column)({ name: 'installment_id', nullable: true }),
|
|
49
49
|
__metadata("design:type", Number)
|
|
50
50
|
], MortgageDownpaymentPayment.prototype, "installmentId", void 0);
|
|
51
51
|
__decorate([
|
|
@@ -54,27 +54,27 @@ __decorate([
|
|
|
54
54
|
__metadata("design:type", user_entity_1.User)
|
|
55
55
|
], MortgageDownpaymentPayment.prototype, "payer", void 0);
|
|
56
56
|
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
57
|
+
(0, typeorm_1.Column)({ name: 'payer_id', nullable: true }),
|
|
58
58
|
__metadata("design:type", Number)
|
|
59
59
|
], MortgageDownpaymentPayment.prototype, "payerId", void 0);
|
|
60
60
|
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)({ type: 'double precision' }),
|
|
61
|
+
(0, typeorm_1.Column)({ name: 'amount', type: 'double precision' }),
|
|
62
62
|
__metadata("design:type", Number)
|
|
63
63
|
], MortgageDownpaymentPayment.prototype, "amount", void 0);
|
|
64
64
|
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ nullable: true, unique: true }),
|
|
65
|
+
(0, typeorm_1.Column)({ name: 'provider_reference', nullable: true, unique: true }),
|
|
66
66
|
__metadata("design:type", String)
|
|
67
67
|
], MortgageDownpaymentPayment.prototype, "providerReference", void 0);
|
|
68
68
|
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: DownpaymentPaymentStatus, default: DownpaymentPaymentStatus.PENDING }),
|
|
69
|
+
(0, typeorm_1.Column)({ name: 'status', type: 'enum', enum: DownpaymentPaymentStatus, default: DownpaymentPaymentStatus.PENDING }),
|
|
70
70
|
__metadata("design:type", String)
|
|
71
71
|
], MortgageDownpaymentPayment.prototype, "status", void 0);
|
|
72
72
|
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: PaymentState, default: PaymentState.INITIATED }),
|
|
73
|
+
(0, typeorm_1.Column)({ name: 'state', type: 'enum', enum: PaymentState, default: PaymentState.INITIATED }),
|
|
74
74
|
__metadata("design:type", String)
|
|
75
75
|
], MortgageDownpaymentPayment.prototype, "state", void 0);
|
|
76
76
|
__decorate([
|
|
77
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
77
|
+
(0, typeorm_1.Column)({ name: 'state_metadata', type: 'text', nullable: true }),
|
|
78
78
|
__metadata("design:type", String)
|
|
79
79
|
], MortgageDownpaymentPayment.prototype, "stateMetadata", void 0);
|
|
80
80
|
exports.MortgageDownpaymentPayment = MortgageDownpaymentPayment = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mortgage-downpayment-payment.entity.js","sourceRoot":"","sources":["../../entities/mortgage-downpayment-payment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,6DAA0D;AAC1D,+EAAwE;AACxE,uGAA2F;AAC3F,+CAAqC;AAGrC,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAChC,+CAAmB,CAAA;IACnB,mDAAuB,CAAA;IACvB,6CAAiB,CAAA;AACrB,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC;AAGD,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,uCAAuB,CAAA;IACvB,uCAAuB,CAAA;IACvB,iCAAiB,CAAA;AACrB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAGM,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,uCAAkB;CAqCjE,CAAA;AArCY,gEAA0B;AAGnC;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qDAAuB,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACjE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,qDAAuB;wDAAC;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;
|
|
1
|
+
{"version":3,"file":"mortgage-downpayment-payment.entity.js","sourceRoot":"","sources":["../../entities/mortgage-downpayment-payment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,6DAA0D;AAC1D,+EAAwE;AACxE,uGAA2F;AAC3F,+CAAqC;AAGrC,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAChC,+CAAmB,CAAA;IACnB,mDAAuB,CAAA;IACvB,6CAAiB,CAAA;AACrB,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC;AAGD,IAAY,YAIX;AAJD,WAAY,YAAY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AAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;qEAC3C;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,EAAE,OAAO,EAAE,wBAAwB,CAAC,OAAO,EAAE,CAAC;;0DACnF;AAIjC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,CAAC,SAAS,EAAE,CAAC;;yDACzE;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iEAC3C;qCApCb,0BAA0B;IADtC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,8BAA8B,EAAE,CAAC;GACpC,0BAA0B,CAqCtC;AAED,kBAAe,0BAA0B,CAAC"}
|
|
@@ -32,27 +32,27 @@ __decorate([
|
|
|
32
32
|
__metadata("design:type", mortgage_entity_1.Mortgage)
|
|
33
33
|
], MortgageDownpaymentPlan.prototype, "mortgage", void 0);
|
|
34
34
|
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
35
|
+
(0, typeorm_1.Column)({ name: 'mortgage_id', nullable: true }),
|
|
36
36
|
__metadata("design:type", Number)
|
|
37
37
|
], MortgageDownpaymentPlan.prototype, "mortgageId", void 0);
|
|
38
38
|
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'double precision' }),
|
|
39
|
+
(0, typeorm_1.Column)({ name: 'total_amount', type: 'double precision' }),
|
|
40
40
|
__metadata("design:type", Number)
|
|
41
41
|
], MortgageDownpaymentPlan.prototype, "totalAmount", void 0);
|
|
42
42
|
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
43
|
+
(0, typeorm_1.Column)({ name: 'installment_count', type: 'int', nullable: true }),
|
|
44
44
|
__metadata("design:type", Number)
|
|
45
45
|
], MortgageDownpaymentPlan.prototype, "installmentCount", void 0);
|
|
46
46
|
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'enum', enum: common_type_1.Frequency }),
|
|
47
|
+
(0, typeorm_1.Column)({ name: 'frequency', nullable: true, type: 'enum', enum: common_type_1.Frequency }),
|
|
48
48
|
__metadata("design:type", String)
|
|
49
49
|
], MortgageDownpaymentPlan.prototype, "frequency", void 0);
|
|
50
50
|
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
51
|
+
(0, typeorm_1.Column)({ name: 'start_date', type: 'date', nullable: true }),
|
|
52
52
|
__metadata("design:type", Date)
|
|
53
53
|
], MortgageDownpaymentPlan.prototype, "startDate", void 0);
|
|
54
54
|
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: DownpaymentPlanStatus, default: DownpaymentPlanStatus.PENDING }),
|
|
55
|
+
(0, typeorm_1.Column)({ name: 'status', type: 'enum', enum: DownpaymentPlanStatus, default: DownpaymentPlanStatus.PENDING }),
|
|
56
56
|
__metadata("design:type", String)
|
|
57
57
|
], MortgageDownpaymentPlan.prototype, "status", void 0);
|
|
58
58
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mortgage-downpayment.entity.js","sourceRoot":"","sources":["../../entities/mortgage-downpayment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2E;AAC3E,6DAA0D;AAC1D,uDAA6C;AAC7C,uGAA2F;AAC3F,sDAAiD;AAEjD,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC7B,4CAAmB,CAAA;IACnB,0CAAiB,CAAA;IACjB,gDAAuB,CAAA;IACvB,gDAAuB,CAAA;IACvB,gDAAuB,CAAA;AAC3B,CAAC,EANW,qBAAqB,qCAArB,qBAA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AA,gBAAM,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iEAC1C;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAS,EAAE,CAAC;;0DACxD;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAClD,IAAI;0DAAC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,OAAO,EAAE,qBAAqB,CAAC,OAAO,EAAE,CAAC;;uDAChF;AAG9B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wEAA8B,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;6DACnC;kCAxBtC,uBAAuB;IADnC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;GACjC,uBAAuB,CAyBnC;AAED,kBAAe,uBAAuB,CAAC"}
|
|
@@ -22,27 +22,27 @@ __decorate([
|
|
|
22
22
|
__metadata("design:type", mortgage_entity_1.Mortgage)
|
|
23
23
|
], MortgageStep.prototype, "mortgage", void 0);
|
|
24
24
|
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
+
(0, typeorm_1.Column)({ name: 'mortgage_id', nullable: true }),
|
|
26
26
|
__metadata("design:type", Number)
|
|
27
27
|
], MortgageStep.prototype, "mortgageId", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)(),
|
|
29
|
+
(0, typeorm_1.Column)({ name: 'title' }),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], MortgageStep.prototype, "title", void 0);
|
|
32
32
|
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
33
|
+
(0, typeorm_1.Column)({ name: 'description', type: 'text', nullable: true }),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], MortgageStep.prototype, "description", void 0);
|
|
36
36
|
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
|
|
37
|
+
(0, typeorm_1.Column)({ name: 'sequence', type: 'int', default: 0 }),
|
|
38
38
|
__metadata("design:type", Number)
|
|
39
39
|
], MortgageStep.prototype, "sequence", void 0);
|
|
40
40
|
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
41
|
+
(0, typeorm_1.Column)({ name: 'is_optional', default: false }),
|
|
42
42
|
__metadata("design:type", Boolean)
|
|
43
43
|
], MortgageStep.prototype, "isOptional", void 0);
|
|
44
44
|
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
45
|
+
(0, typeorm_1.Column)({ name: 'completed_at', nullable: true }),
|
|
46
46
|
__metadata("design:type", Date)
|
|
47
47
|
], MortgageStep.prototype, "completedAt", void 0);
|
|
48
48
|
exports.MortgageStep = MortgageStep = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mortgage-step.entity.js","sourceRoot":"","sources":["../../entities/mortgage-step.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,mDAA+D;AAC/D,uDAA6C;AAGtC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,4CAA4B;CAyB7D,CAAA;AAzBY,oCAAY;AAGrB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,QAAQ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E,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,IAAI;iDAAC;uBAxBT,YAAY;IADxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;GACrB,YAAY,CAyBxB;AAED,kBAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { MortgageAction } from '../types/mortgage-fsm.type';
|
|
2
|
+
import { MortgageTransition } from './mortgage-transition.entity';
|
|
3
|
+
export declare class MortgageTransitionEvent {
|
|
4
|
+
id: number;
|
|
5
|
+
transition: MortgageTransition;
|
|
6
|
+
transitionId: number;
|
|
7
|
+
action: MortgageAction;
|
|
8
|
+
executionOrder: number;
|
|
9
|
+
status: 'pending' | 'executing' | 'completed' | 'failed' | 'rolled_back';
|
|
10
|
+
payload: any;
|
|
11
|
+
result: any;
|
|
12
|
+
error: string;
|
|
13
|
+
errorStack: string;
|
|
14
|
+
idempotencyKey: string;
|
|
15
|
+
retryCount: number;
|
|
16
|
+
maxRetries: number;
|
|
17
|
+
nextRetryAt: Date;
|
|
18
|
+
durationMs: number;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
startedAt: Date;
|
|
21
|
+
completedAt: Date;
|
|
22
|
+
rolledBack: boolean;
|
|
23
|
+
rolledBackAt: Date;
|
|
24
|
+
rollbackError: string;
|
|
25
|
+
}
|
|
26
|
+
export default MortgageTransitionEvent;
|
|
@@ -0,0 +1,111 @@
|
|
|
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.MortgageTransitionEvent = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const mortgage_fsm_type_1 = require("../types/mortgage-fsm.type");
|
|
15
|
+
const mortgage_transition_entity_1 = require("./mortgage-transition.entity");
|
|
16
|
+
let MortgageTransitionEvent = class MortgageTransitionEvent {
|
|
17
|
+
};
|
|
18
|
+
exports.MortgageTransitionEvent = MortgageTransitionEvent;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], MortgageTransitionEvent.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.ManyToOne)(() => mortgage_transition_entity_1.MortgageTransition, { onDelete: 'CASCADE' }),
|
|
25
|
+
(0, typeorm_1.JoinColumn)({ name: 'transition_id' }),
|
|
26
|
+
__metadata("design:type", mortgage_transition_entity_1.MortgageTransition)
|
|
27
|
+
], MortgageTransitionEvent.prototype, "transition", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ name: 'transition_id' }),
|
|
30
|
+
(0, typeorm_1.Index)(),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], MortgageTransitionEvent.prototype, "transitionId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], MortgageTransitionEvent.prototype, "action", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0, name: 'execution_order' }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], MortgageTransitionEvent.prototype, "executionOrder", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'varchar', default: 'pending' }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], MortgageTransitionEvent.prototype, "status", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], MortgageTransitionEvent.prototype, "payload", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], MortgageTransitionEvent.prototype, "result", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], MortgageTransitionEvent.prototype, "error", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true, name: 'error_stack' }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], MortgageTransitionEvent.prototype, "errorStack", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true, unique: true, name: 'idempotency_key' }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], MortgageTransitionEvent.prototype, "idempotencyKey", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0, name: 'retry_count' }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], MortgageTransitionEvent.prototype, "retryCount", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'int', default: 3, name: 'max_retries' }),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], MortgageTransitionEvent.prototype, "maxRetries", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true, name: 'next_retry_at' }),
|
|
75
|
+
__metadata("design:type", Date)
|
|
76
|
+
], MortgageTransitionEvent.prototype, "nextRetryAt", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true, name: 'duration_ms' }),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], MortgageTransitionEvent.prototype, "durationMs", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
|
|
83
|
+
__metadata("design:type", Date)
|
|
84
|
+
], MortgageTransitionEvent.prototype, "createdAt", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true, name: 'started_at' }),
|
|
87
|
+
__metadata("design:type", Date)
|
|
88
|
+
], MortgageTransitionEvent.prototype, "startedAt", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true, name: 'completed_at' }),
|
|
91
|
+
__metadata("design:type", Date)
|
|
92
|
+
], MortgageTransitionEvent.prototype, "completedAt", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ default: false, name: 'rolled_back' }),
|
|
95
|
+
__metadata("design:type", Boolean)
|
|
96
|
+
], MortgageTransitionEvent.prototype, "rolledBack", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true, name: 'rolled_back_at' }),
|
|
99
|
+
__metadata("design:type", Date)
|
|
100
|
+
], MortgageTransitionEvent.prototype, "rolledBackAt", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true, name: 'rollback_error' }),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], MortgageTransitionEvent.prototype, "rollbackError", void 0);
|
|
105
|
+
exports.MortgageTransitionEvent = MortgageTransitionEvent = __decorate([
|
|
106
|
+
(0, typeorm_1.Entity)({ name: 'mortgage_transition_events' }),
|
|
107
|
+
(0, typeorm_1.Index)(['transitionId', 'executionOrder']),
|
|
108
|
+
(0, typeorm_1.Index)(['status', 'createdAt'])
|
|
109
|
+
], MortgageTransitionEvent);
|
|
110
|
+
exports.default = MortgageTransitionEvent;
|
|
111
|
+
//# sourceMappingURL=mortgage-transition-event.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mortgage-transition-event.entity.js","sourceRoot":"","sources":["../../entities/mortgage-transition-event.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAiH;AACjH,kEAA4D;AAC5D,6EAAkE;AAS3D,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAqEnC,CAAA;AArEY,0DAAuB;AAEhC;IADC,IAAA,gCAAsB,GAAE;;mDACd;AAIX;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,+CAAkB,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC5D,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;8BAC1B,+CAAkB;2DAAC;AAI/B;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;IACjC,IAAA,eAAK,GAAE;;6DACa;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;uDACL;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;;+DACtC;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;;uDACyB;AAGzE;IADC,IAAA,gBAAM,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