@valentine-efagene/qshelter-common 1.2.5 → 1.2.7
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/entities/property.entity.d.ts +10 -10
- package/dist/entities/property.entity.js +6 -6
- package/dist/entities/property.entity.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
- package/dist/entities/BaseEntity.d.ts +0 -10
- package/dist/entities/BaseEntity.js +0 -50
- package/dist/entities/BaseEntity.js.map +0 -1
- package/dist/services/notifications/src/common/common.entity.d.ts +0 -6
- package/dist/services/notifications/src/common/common.entity.js +0 -37
- package/dist/services/notifications/src/common/common.entity.js.map +0 -1
- package/dist/shared/common/OpenApiHelper.d.ts +0 -9
- package/dist/shared/common/OpenApiHelper.js +0 -118
- package/dist/shared/common/OpenApiHelper.js.map +0 -1
- package/dist/shared/common/decorator/index.d.ts +0 -2
- package/dist/shared/common/decorator/index.js +0 -19
- package/dist/shared/common/decorator/index.js.map +0 -1
- package/dist/shared/common/decorator/permission.decorator.d.ts +0 -2
- package/dist/shared/common/decorator/permission.decorator.js +0 -6
- package/dist/shared/common/decorator/permission.decorator.js.map +0 -1
- package/dist/shared/common/decorator/tenant.decorator.d.ts +0 -2
- package/dist/shared/common/decorator/tenant.decorator.js +0 -13
- package/dist/shared/common/decorator/tenant.decorator.js.map +0 -1
- package/dist/shared/common/entities/BaseEntity.d.ts +0 -11
- package/dist/shared/common/entities/BaseEntity.js +0 -54
- package/dist/shared/common/entities/BaseEntity.js.map +0 -1
- package/dist/shared/common/entities/TenantAwareEntity.d.ts +0 -10
- package/dist/shared/common/entities/TenantAwareEntity.js +0 -52
- package/dist/shared/common/entities/TenantAwareEntity.js.map +0 -1
- package/dist/shared/common/entities/TenantAwareRepository.d.ts +0 -13
- package/dist/shared/common/entities/TenantAwareRepository.js +0 -65
- package/dist/shared/common/entities/TenantAwareRepository.js.map +0 -1
- package/dist/shared/common/entities/amenity.entity.d.ts +0 -4
- package/dist/shared/common/entities/amenity.entity.js +0 -28
- package/dist/shared/common/entities/amenity.entity.js.map +0 -1
- package/dist/shared/common/entities/common.entity.d.ts +0 -17
- package/dist/shared/common/entities/common.entity.js +0 -64
- package/dist/shared/common/entities/common.entity.js.map +0 -1
- package/dist/shared/common/entities/common.pure.entity.d.ts +0 -11
- package/dist/shared/common/entities/common.pure.entity.js +0 -52
- package/dist/shared/common/entities/common.pure.entity.js.map +0 -1
- package/dist/shared/common/entities/contract-document.entity.d.ts +0 -39
- package/dist/shared/common/entities/contract-document.entity.js +0 -115
- package/dist/shared/common/entities/contract-document.entity.js.map +0 -1
- package/dist/shared/common/entities/contract.entity.d.ts +0 -62
- package/dist/shared/common/entities/contract.entity.js +0 -191
- package/dist/shared/common/entities/contract.entity.js.map +0 -1
- package/dist/shared/common/entities/device_endpoint.entity.d.ts +0 -10
- package/dist/shared/common/entities/device_endpoint.entity.js +0 -50
- package/dist/shared/common/entities/device_endpoint.entity.js.map +0 -1
- package/dist/shared/common/entities/email_preference.entity.d.ts +0 -6
- package/dist/shared/common/entities/email_preference.entity.js +0 -42
- package/dist/shared/common/entities/email_preference.entity.js.map +0 -1
- package/dist/shared/common/entities/index.d.ts +0 -35
- package/dist/shared/common/entities/index.js +0 -52
- package/dist/shared/common/entities/index.js.map +0 -1
- package/dist/shared/common/entities/mortgage-document.entity.d.ts +0 -14
- package/dist/shared/common/entities/mortgage-document.entity.js +0 -58
- package/dist/shared/common/entities/mortgage-document.entity.js.map +0 -1
- package/dist/shared/common/entities/mortgage-downpayment-installment.entity.d.ts +0 -19
- package/dist/shared/common/entities/mortgage-downpayment-installment.entity.js +0 -63
- package/dist/shared/common/entities/mortgage-downpayment-installment.entity.js.map +0 -1
- package/dist/shared/common/entities/mortgage-downpayment-payment.entity.d.ts +0 -28
- package/dist/shared/common/entities/mortgage-downpayment-payment.entity.js +0 -84
- package/dist/shared/common/entities/mortgage-downpayment-payment.entity.js.map +0 -1
- package/dist/shared/common/entities/mortgage-downpayment.entity.d.ts +0 -22
- package/dist/shared/common/entities/mortgage-downpayment.entity.js +0 -66
- package/dist/shared/common/entities/mortgage-downpayment.entity.js.map +0 -1
- package/dist/shared/common/entities/mortgage-step.entity.d.ts +0 -12
- package/dist/shared/common/entities/mortgage-step.entity.js +0 -52
- package/dist/shared/common/entities/mortgage-step.entity.js.map +0 -1
- package/dist/shared/common/entities/mortgage-transition-event.entity.d.ts +0 -26
- package/dist/shared/common/entities/mortgage-transition-event.entity.js +0 -111
- package/dist/shared/common/entities/mortgage-transition-event.entity.js.map +0 -1
- package/dist/shared/common/entities/mortgage-transition.entity.d.ts +0 -25
- package/dist/shared/common/entities/mortgage-transition.entity.js +0 -91
- package/dist/shared/common/entities/mortgage-transition.entity.js.map +0 -1
- package/dist/shared/common/entities/mortgage-type.entity.d.ts +0 -10
- package/dist/shared/common/entities/mortgage-type.entity.js +0 -46
- package/dist/shared/common/entities/mortgage-type.entity.js.map +0 -1
- package/dist/shared/common/entities/mortgage.entity.d.ts +0 -37
- package/dist/shared/common/entities/mortgage.entity.js +0 -124
- package/dist/shared/common/entities/mortgage.entity.js.map +0 -1
- package/dist/shared/common/entities/password_reset_tokens.entity.d.ts +0 -7
- package/dist/shared/common/entities/password_reset_tokens.entity.js +0 -45
- package/dist/shared/common/entities/password_reset_tokens.entity.js.map +0 -1
- package/dist/shared/common/entities/payment-installment.entity.d.ts +0 -39
- package/dist/shared/common/entities/payment-installment.entity.js +0 -134
- package/dist/shared/common/entities/payment-installment.entity.js.map +0 -1
- package/dist/shared/common/entities/payment-plan.entity.d.ts +0 -62
- package/dist/shared/common/entities/payment-plan.entity.js +0 -174
- package/dist/shared/common/entities/payment-plan.entity.js.map +0 -1
- package/dist/shared/common/entities/payment-schedule.entity.d.ts +0 -44
- package/dist/shared/common/entities/payment-schedule.entity.js +0 -134
- package/dist/shared/common/entities/payment-schedule.entity.js.map +0 -1
- package/dist/shared/common/entities/payment.entity.d.ts +0 -55
- package/dist/shared/common/entities/payment.entity.js +0 -157
- package/dist/shared/common/entities/payment.entity.js.map +0 -1
- package/dist/shared/common/entities/permission.entity.d.ts +0 -6
- package/dist/shared/common/entities/permission.entity.js +0 -30
- package/dist/shared/common/entities/permission.entity.js.map +0 -1
- package/dist/shared/common/entities/property-document.entity.d.ts +0 -6
- package/dist/shared/common/entities/property-document.entity.js +0 -34
- package/dist/shared/common/entities/property-document.entity.js.map +0 -1
- package/dist/shared/common/entities/property-media.entity.d.ts +0 -6
- package/dist/shared/common/entities/property-media.entity.js +0 -37
- package/dist/shared/common/entities/property-media.entity.js.map +0 -1
- package/dist/shared/common/entities/property.entity.d.ts +0 -39
- package/dist/shared/common/entities/property.entity.js +0 -193
- package/dist/shared/common/entities/property.entity.js.map +0 -1
- package/dist/shared/common/entities/refresh_token.entity.d.ts +0 -7
- package/dist/shared/common/entities/refresh_token.entity.js +0 -35
- package/dist/shared/common/entities/refresh_token.entity.js.map +0 -1
- package/dist/shared/common/entities/role.entity.d.ts +0 -8
- package/dist/shared/common/entities/role.entity.js +0 -39
- package/dist/shared/common/entities/role.entity.js.map +0 -1
- package/dist/shared/common/entities/settings.entity.d.ts +0 -17
- package/dist/shared/common/entities/settings.entity.js +0 -81
- package/dist/shared/common/entities/settings.entity.js.map +0 -1
- package/dist/shared/common/entities/social.entity.d.ts +0 -8
- package/dist/shared/common/entities/social.entity.js +0 -48
- package/dist/shared/common/entities/social.entity.js.map +0 -1
- package/dist/shared/common/entities/tenant.entity.d.ts +0 -29
- package/dist/shared/common/entities/tenant.entity.js +0 -82
- package/dist/shared/common/entities/tenant.entity.js.map +0 -1
- package/dist/shared/common/entities/transaction.entity.d.ts +0 -17
- package/dist/shared/common/entities/transaction.entity.js +0 -87
- package/dist/shared/common/entities/transaction.entity.js.map +0 -1
- package/dist/shared/common/entities/user.entity.d.ts +0 -26
- package/dist/shared/common/entities/user.entity.js +0 -104
- package/dist/shared/common/entities/user.entity.js.map +0 -1
- package/dist/shared/common/entities/user_suspensions.entity.d.ts +0 -7
- package/dist/shared/common/entities/user_suspensions.entity.js +0 -44
- package/dist/shared/common/entities/user_suspensions.entity.js.map +0 -1
- package/dist/shared/common/entities/wallet.entity.d.ts +0 -17
- package/dist/shared/common/entities/wallet.entity.js +0 -79
- package/dist/shared/common/entities/wallet.entity.js.map +0 -1
- package/dist/shared/common/guard/index.d.ts +0 -2
- package/dist/shared/common/guard/index.js +0 -19
- package/dist/shared/common/guard/index.js.map +0 -1
- package/dist/shared/common/guard/permission.guard.d.ts +0 -10
- package/dist/shared/common/guard/permission.guard.js +0 -47
- package/dist/shared/common/guard/permission.guard.js.map +0 -1
- package/dist/shared/common/guard/swagger-auth.guard.d.ts +0 -1
- package/dist/shared/common/guard/swagger-auth.guard.js +0 -9
- package/dist/shared/common/guard/swagger-auth.guard.js.map +0 -1
- package/dist/shared/common/helpers/ArrayHelper.d.ts +0 -2
- package/dist/shared/common/helpers/ArrayHelper.js +0 -6
- package/dist/shared/common/helpers/ArrayHelper.js.map +0 -1
- package/dist/shared/common/helpers/ConstantHelper.d.ts +0 -36
- package/dist/shared/common/helpers/ConstantHelper.js +0 -90
- package/dist/shared/common/helpers/ConstantHelper.js.map +0 -1
- package/dist/shared/common/helpers/CustomNamingStrategy.d.ts +0 -7
- package/dist/shared/common/helpers/CustomNamingStrategy.js +0 -22
- package/dist/shared/common/helpers/CustomNamingStrategy.js.map +0 -1
- package/dist/shared/common/helpers/DateHelper.d.ts +0 -3
- package/dist/shared/common/helpers/DateHelper.js +0 -20
- package/dist/shared/common/helpers/DateHelper.js.map +0 -1
- package/dist/shared/common/helpers/EmailHelper.d.ts +0 -4
- package/dist/shared/common/helpers/EmailHelper.js +0 -65
- package/dist/shared/common/helpers/EmailHelper.js.map +0 -1
- package/dist/shared/common/helpers/FileSystemHelper.d.ts +0 -15
- package/dist/shared/common/helpers/FileSystemHelper.js +0 -112
- package/dist/shared/common/helpers/FileSystemHelper.js.map +0 -1
- package/dist/shared/common/helpers/index.d.ts +0 -5
- package/dist/shared/common/helpers/index.js +0 -22
- package/dist/shared/common/helpers/index.js.map +0 -1
- package/dist/shared/common/index.d.ts +0 -9
- package/dist/shared/common/index.js +0 -26
- package/dist/shared/common/index.js.map +0 -1
- package/dist/shared/common/middleware/AccessLoggerMiddleware.d.ts +0 -6
- package/dist/shared/common/middleware/AccessLoggerMiddleware.js +0 -64
- package/dist/shared/common/middleware/AccessLoggerMiddleware.js.map +0 -1
- package/dist/shared/common/middleware/AuthenticationMiddleware.d.ts +0 -5
- package/dist/shared/common/middleware/AuthenticationMiddleware.js +0 -19
- package/dist/shared/common/middleware/AuthenticationMiddleware.js.map +0 -1
- package/dist/shared/common/middleware/TenantMiddleware.d.ts +0 -14
- package/dist/shared/common/middleware/TenantMiddleware.js +0 -49
- package/dist/shared/common/middleware/TenantMiddleware.js.map +0 -1
- package/dist/shared/common/middleware/index.d.ts +0 -3
- package/dist/shared/common/middleware/index.js +0 -20
- package/dist/shared/common/middleware/index.js.map +0 -1
- package/dist/shared/common/pagination/index.d.ts +0 -2
- package/dist/shared/common/pagination/index.js +0 -19
- package/dist/shared/common/pagination/index.js.map +0 -1
- package/dist/shared/common/pagination/pagination.helper.d.ts +0 -7
- package/dist/shared/common/pagination/pagination.helper.js +0 -40
- package/dist/shared/common/pagination/pagination.helper.js.map +0 -1
- package/dist/shared/common/pagination/pagination.types.d.ts +0 -19
- package/dist/shared/common/pagination/pagination.types.js +0 -3
- package/dist/shared/common/pagination/pagination.types.js.map +0 -1
- package/dist/shared/common/standard-response.d.ts +0 -7
- package/dist/shared/common/standard-response.js +0 -27
- package/dist/shared/common/standard-response.js.map +0 -1
- package/dist/shared/common/types/common.type.d.ts +0 -54
- package/dist/shared/common/types/common.type.js +0 -55
- package/dist/shared/common/types/common.type.js.map +0 -1
- package/dist/shared/common/types/index.d.ts +0 -8
- package/dist/shared/common/types/index.js +0 -25
- package/dist/shared/common/types/index.js.map +0 -1
- package/dist/shared/common/types/mortgage-fsm.type.d.ts +0 -180
- package/dist/shared/common/types/mortgage-fsm.type.js +0 -130
- package/dist/shared/common/types/mortgage-fsm.type.js.map +0 -1
- package/dist/shared/common/types/permission.type.d.ts +0 -42
- package/dist/shared/common/types/permission.type.js +0 -47
- package/dist/shared/common/types/permission.type.js.map +0 -1
- package/dist/shared/common/types/policy.type.d.ts +0 -18
- package/dist/shared/common/types/policy.type.js +0 -3
- package/dist/shared/common/types/policy.type.js.map +0 -1
- package/dist/shared/common/types/property.type.d.ts +0 -9
- package/dist/shared/common/types/property.type.js +0 -15
- package/dist/shared/common/types/property.type.js.map +0 -1
- package/dist/shared/common/types/tenant.type.d.ts +0 -13
- package/dist/shared/common/types/tenant.type.js +0 -19
- package/dist/shared/common/types/tenant.type.js.map +0 -1
- package/dist/shared/common/types/transaction.type.d.ts +0 -8
- package/dist/shared/common/types/transaction.type.js +0 -14
- package/dist/shared/common/types/transaction.type.js.map +0 -1
- package/dist/shared/common/types/user.type.d.ts +0 -10
- package/dist/shared/common/types/user.type.js +0 -16
- package/dist/shared/common/types/user.type.js.map +0 -1
- package/dist/types/mortgage-fsm.types.d.ts +0 -180
- package/dist/types/mortgage-fsm.types.js +0 -130
- package/dist/types/mortgage-fsm.types.js.map +0 -1
- package/dist/types/permission.enums.d.ts +0 -42
- package/dist/types/permission.enums.js +0 -47
- package/dist/types/permission.enums.js.map +0 -1
- package/dist/types/policy.types.d.ts +0 -18
- package/dist/types/policy.types.js +0 -3
- package/dist/types/policy.types.js.map +0 -1
- package/dist/types/social.enums.d.ts +0 -12
- package/dist/types/social.enums.js +0 -18
- package/dist/types/social.enums.js.map +0 -1
- package/dist/types/tenant.enums.d.ts +0 -13
- package/dist/types/tenant.enums.js +0 -19
- package/dist/types/tenant.enums.js.map +0 -1
- package/dist/types/user.enums.d.ts +0 -10
- package/dist/types/user.enums.js +0 -16
- package/dist/types/user.enums.js.map +0 -1
|
@@ -1,64 +0,0 @@
|
|
|
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.AbstractBaseMediaEntity = exports.AbstractBaseDocumentEntity = exports.AbstractBaseReviewableEntity = void 0;
|
|
13
|
-
const user_entity_1 = require("./user.entity");
|
|
14
|
-
const typeorm_1 = require("typeorm");
|
|
15
|
-
const common_type_1 = require("../types/common.type");
|
|
16
|
-
const common_pure_entity_1 = require("./common.pure.entity");
|
|
17
|
-
class AbstractBaseReviewableEntity extends common_pure_entity_1.AbstractTenantAwareEntity {
|
|
18
|
-
}
|
|
19
|
-
exports.AbstractBaseReviewableEntity = AbstractBaseReviewableEntity;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { eager: true }),
|
|
22
|
-
(0, typeorm_1.JoinColumn)({ name: 'reviewed_by' }),
|
|
23
|
-
__metadata("design:type", user_entity_1.User)
|
|
24
|
-
], AbstractBaseReviewableEntity.prototype, "reviewer", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ name: 'reviewed_at', type: 'timestamp', nullable: true }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], AbstractBaseReviewableEntity.prototype, "reviewedAt", void 0);
|
|
29
|
-
class AbstractBaseDocumentEntity extends AbstractBaseReviewableEntity {
|
|
30
|
-
}
|
|
31
|
-
exports.AbstractBaseDocumentEntity = AbstractBaseDocumentEntity;
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({
|
|
34
|
-
name: 'status',
|
|
35
|
-
type: 'enum',
|
|
36
|
-
enum: common_type_1.DocumentStatus,
|
|
37
|
-
default: common_type_1.DocumentStatus.PENDING,
|
|
38
|
-
}),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], AbstractBaseDocumentEntity.prototype, "status", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ name: 'comment', nullable: true }),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], AbstractBaseDocumentEntity.prototype, "comment", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ name: 'url', type: 'text', nullable: false }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], AbstractBaseDocumentEntity.prototype, "url", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ name: 'description', nullable: true }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], AbstractBaseDocumentEntity.prototype, "description", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ name: 'name', nullable: true }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], AbstractBaseDocumentEntity.prototype, "name", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ name: 'size', nullable: false, comment: "In bytes" }),
|
|
59
|
-
__metadata("design:type", Number)
|
|
60
|
-
], AbstractBaseDocumentEntity.prototype, "size", void 0);
|
|
61
|
-
class AbstractBaseMediaEntity extends AbstractBaseDocumentEntity {
|
|
62
|
-
}
|
|
63
|
-
exports.AbstractBaseMediaEntity = AbstractBaseMediaEntity;
|
|
64
|
-
//# sourceMappingURL=common.entity.js.map
|
|
@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I,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;;wDACnD;AAGd,MAAsB,uBAAwB,SAAQ,0BAA0B;CAG/E;AAHD,0DAGC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Tenant } from "./tenant.entity";
|
|
2
|
-
export declare abstract class AbstractBaseEntity {
|
|
3
|
-
id: number;
|
|
4
|
-
createdAt: Date;
|
|
5
|
-
updatedAt: Date;
|
|
6
|
-
deletedAt: Date;
|
|
7
|
-
}
|
|
8
|
-
export declare abstract class AbstractTenantAwareEntity extends AbstractBaseEntity {
|
|
9
|
-
tenant: Tenant;
|
|
10
|
-
tenantId: number;
|
|
11
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AbstractTenantAwareEntity = exports.AbstractBaseEntity = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const tenant_entity_1 = require("./tenant.entity");
|
|
15
|
-
class AbstractBaseEntity {
|
|
16
|
-
}
|
|
17
|
-
exports.AbstractBaseEntity = AbstractBaseEntity;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
20
|
-
__metadata("design:type", Number)
|
|
21
|
-
], AbstractBaseEntity.prototype, "id", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
24
|
-
__metadata("design:type", Date)
|
|
25
|
-
], AbstractBaseEntity.prototype, "createdAt", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.UpdateDateColumn)({
|
|
28
|
-
name: 'updated_at',
|
|
29
|
-
type: 'timestamp',
|
|
30
|
-
default: () => 'CURRENT_TIMESTAMP',
|
|
31
|
-
onUpdate: 'CURRENT_TIMESTAMP',
|
|
32
|
-
}),
|
|
33
|
-
__metadata("design:type", Date)
|
|
34
|
-
], AbstractBaseEntity.prototype, "updatedAt", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, typeorm_1.DeleteDateColumn)({ name: 'deleted_at', nullable: true, default: null }),
|
|
37
|
-
__metadata("design:type", Date)
|
|
38
|
-
], AbstractBaseEntity.prototype, "deletedAt", void 0);
|
|
39
|
-
class AbstractTenantAwareEntity extends AbstractBaseEntity {
|
|
40
|
-
}
|
|
41
|
-
exports.AbstractTenantAwareEntity = AbstractTenantAwareEntity;
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.ManyToOne)(() => tenant_entity_1.Tenant, { onDelete: 'CASCADE' }),
|
|
44
|
-
(0, typeorm_1.JoinColumn)({ name: 'tenant_id' }),
|
|
45
|
-
__metadata("design:type", tenant_entity_1.Tenant)
|
|
46
|
-
], AbstractTenantAwareEntity.prototype, "tenant", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ name: 'tenant_id' }),
|
|
49
|
-
(0, typeorm_1.Index)(),
|
|
50
|
-
__metadata("design:type", Number)
|
|
51
|
-
], AbstractTenantAwareEntity.prototype, "tenantId", void 0);
|
|
52
|
-
//# sourceMappingURL=common.pure.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.pure.entity.js","sourceRoot":"","sources":["../../../../entities/common.pure.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAA6I;AAC7I,mDAAyC;AAGzC,MAAsB,kBAAkB;CAiBvC;AAjBD,gDAiBC;AAfG;IADC,IAAA,gCAAsB,GAAE;;8CACd;AAGX;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,EAAE,CAAC;8BACrF,IAAI;qDAAC;AAQhB;IANC,IAAA,0BAAgB,EAAC;QACd,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB;QAClC,QAAQ,EAAE,mBAAmB;KAChC,CAAC;8BACS,IAAI;qDAAC;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8BAC7D,IAAI;qDAAC;AAOpB,MAAsB,yBAA0B,SAAQ,kBAAkB;CAQzE;AARD,8DAQC;AALG;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAChD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC1B,sBAAM;yDAAC;AAIf;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IAC7B,IAAA,eAAK,GAAE;;2DACS"}
|
|
@@ -1,39 +0,0 @@
|
|
|
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;
|
|
@@ -1,115 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contract-document.entity.js","sourceRoot":"","sources":["../../../../entities/contract-document.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,mDAA+D;AAC/D,uDAA6C;AAC7C,+CAAqC;AAKrC,IAAY,oBAcX;AAdD,WAAY,oBAAoB;IAC5B,6CAAqB,CAAA;IACrB,6CAAqB,CAAA;IACrB,+CAAuB,CAAA;IACvB,iDAAyB,CAAA;IACzB,2DAAmC,CAAA;IACnC,mDAA2B,CAAA;IAC3B,uDAA+B,CAAA;IAC/B,yDAAiC,CAAA;IACjC,iDAAyB,CAAA;IACzB,+CAAuB,CAAA;IACvB,iDAAyB,CAAA;IACzB,+CAAuB,CAAA;IACvB,uCAAe,CAAA;AACnB,CAAC,EAdW,oBAAoB,oCAApB,oBAAoB,QAc/B;AAOM,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,4CAA4B;CAyDjE,CAAA;AAzDY,4CAAgB;AAGzB;IAFC,IAAA,mBAAS,EAAC,GAAG,EA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AI;oDAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAC3B;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACvD,IAAI;oDAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACvD,IAAI;oDAAC;AAIjB;IAFC,IAAA,mBAAS,EAAC,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,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAC3B;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACpB;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC3B;2BAxDL,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;GACzB,gBAAgB,CAyD5B;AAED,kBAAe,gBAAgB,CAAC"}
|
|
@@ -1,62 +0,0 @@
|
|
|
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;
|
|
@@ -1,191 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACxE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;8BAC3B,iCAAW;6CAAC;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC9B;AAItB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACl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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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AbstractBaseEntity } from '../../../services/notifications/src/common/common.entity';
|
|
2
|
-
import { User } from '../user/user.entity';
|
|
3
|
-
export declare class DeviceEndpoint extends AbstractBaseEntity {
|
|
4
|
-
userId: number;
|
|
5
|
-
user: User;
|
|
6
|
-
userAgent: string;
|
|
7
|
-
endpointArn: string;
|
|
8
|
-
token: string;
|
|
9
|
-
userData: string;
|
|
10
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var _a;
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.DeviceEndpoint = void 0;
|
|
14
|
-
const typeorm_1 = require("typeorm");
|
|
15
|
-
const common_entity_1 = require("../../../services/notifications/src/common/common.entity");
|
|
16
|
-
const user_entity_1 = require("../user/user.entity");
|
|
17
|
-
let DeviceEndpoint = class DeviceEndpoint extends common_entity_1.AbstractBaseEntity {
|
|
18
|
-
};
|
|
19
|
-
exports.DeviceEndpoint = DeviceEndpoint;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
22
|
-
__metadata("design:type", Number)
|
|
23
|
-
], DeviceEndpoint.prototype, "userId", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, user => user.deviceEndpoints),
|
|
26
|
-
(0, typeorm_1.JoinColumn)({ name: 'user_id' }),
|
|
27
|
-
__metadata("design:type", typeof (_a = typeof user_entity_1.User !== "undefined" && user_entity_1.User) === "function" ? _a : Object)
|
|
28
|
-
], DeviceEndpoint.prototype, "user", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], DeviceEndpoint.prototype, "userAgent", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], DeviceEndpoint.prototype, "endpointArn", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], DeviceEndpoint.prototype, "token", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({
|
|
43
|
-
nullable: true
|
|
44
|
-
}),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], DeviceEndpoint.prototype, "userData", void 0);
|
|
47
|
-
exports.DeviceEndpoint = DeviceEndpoint = __decorate([
|
|
48
|
-
(0, typeorm_1.Entity)({ name: 'device_endpoints' })
|
|
49
|
-
], DeviceEndpoint);
|
|
50
|
-
//# sourceMappingURL=device_endpoint.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"device_endpoint.entity.js","sourceRoot":"","sources":["../../../../entities/device_endpoint.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAgE;AAChE,4FAA8F;AAC9F,qDAA2C;AAGpC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,kCAAkB;CAqBrD,CAAA;AArBY,wCAAc;AAEzB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;8CACb;AAIf;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC;IACnD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;kDAC1B,kBAAI,oBAAJ,kBAAI;4CAAA;AAGV;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;iDACV;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACb;AAKd;IAHC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;gDACc;yBApBL,cAAc;IAD1B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;GACxB,cAAc,CAqB1B"}
|