@valentine-efagene/qshelter-common 1.0.0
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/OpenApiHelper.ts +121 -0
- package/decorator/permission.decorator.ts +4 -0
- package/decorator/tenant.decorator.ts +16 -0
- package/dist/entities/BaseEntity.d.ts +11 -0
- package/dist/entities/BaseEntity.js +54 -0
- package/dist/entities/BaseEntity.js.map +1 -0
- package/dist/entities/TenantAwareEntity.d.ts +10 -0
- package/dist/entities/TenantAwareEntity.js +52 -0
- package/dist/entities/TenantAwareEntity.js.map +1 -0
- package/dist/entities/TenantAwareRepository.d.ts +13 -0
- package/dist/entities/TenantAwareRepository.js +65 -0
- package/dist/entities/TenantAwareRepository.js.map +1 -0
- package/dist/entities/amenity.entity.d.ts +4 -0
- package/dist/entities/amenity.entity.js +27 -0
- package/dist/entities/amenity.entity.js.map +1 -0
- package/dist/entities/common.entity.d.ts +17 -0
- package/dist/entities/common.entity.js +63 -0
- package/dist/entities/common.entity.js.map +1 -0
- package/dist/entities/common.pure.entity.d.ts +11 -0
- package/dist/entities/common.pure.entity.js +51 -0
- package/dist/entities/common.pure.entity.js.map +1 -0
- package/dist/entities/index.d.ts +27 -0
- package/dist/entities/index.js +44 -0
- package/dist/entities/index.js.map +1 -0
- package/dist/entities/mortgage-document.entity.d.ts +14 -0
- package/dist/entities/mortgage-document.entity.js +58 -0
- package/dist/entities/mortgage-document.entity.js.map +1 -0
- package/dist/entities/mortgage-downpayment-installment.entity.d.ts +19 -0
- package/dist/entities/mortgage-downpayment-installment.entity.js +63 -0
- package/dist/entities/mortgage-downpayment-installment.entity.js.map +1 -0
- package/dist/entities/mortgage-downpayment-payment.entity.d.ts +28 -0
- package/dist/entities/mortgage-downpayment-payment.entity.js +84 -0
- package/dist/entities/mortgage-downpayment-payment.entity.js.map +1 -0
- package/dist/entities/mortgage-downpayment.entity.d.ts +22 -0
- package/dist/entities/mortgage-downpayment.entity.js +66 -0
- package/dist/entities/mortgage-downpayment.entity.js.map +1 -0
- package/dist/entities/mortgage-step.entity.d.ts +12 -0
- package/dist/entities/mortgage-step.entity.js +52 -0
- package/dist/entities/mortgage-step.entity.js.map +1 -0
- package/dist/entities/mortgage-type.entity.d.ts +10 -0
- package/dist/entities/mortgage-type.entity.js +46 -0
- package/dist/entities/mortgage-type.entity.js.map +1 -0
- package/dist/entities/mortgage.entity.d.ts +37 -0
- package/dist/entities/mortgage.entity.js +124 -0
- package/dist/entities/mortgage.entity.js.map +1 -0
- package/dist/entities/password_reset_tokens.entity.d.ts +7 -0
- package/dist/entities/password_reset_tokens.entity.js +43 -0
- package/dist/entities/password_reset_tokens.entity.js.map +1 -0
- package/dist/entities/permission.entity.d.ts +6 -0
- package/dist/entities/permission.entity.js +30 -0
- package/dist/entities/permission.entity.js.map +1 -0
- package/dist/entities/property-document.entity.d.ts +6 -0
- package/dist/entities/property-document.entity.js +34 -0
- package/dist/entities/property-document.entity.js.map +1 -0
- package/dist/entities/property-media.entity.d.ts +6 -0
- package/dist/entities/property-media.entity.js +36 -0
- package/dist/entities/property-media.entity.js.map +1 -0
- package/dist/entities/property.entity.d.ts +36 -0
- package/dist/entities/property.entity.js +182 -0
- package/dist/entities/property.entity.js.map +1 -0
- package/dist/entities/refresh_token.entity.d.ts +7 -0
- package/dist/entities/refresh_token.entity.js +35 -0
- package/dist/entities/refresh_token.entity.js.map +1 -0
- package/dist/entities/role.entity.d.ts +8 -0
- package/dist/entities/role.entity.js +39 -0
- package/dist/entities/role.entity.js.map +1 -0
- package/dist/entities/settings.entity.d.ts +17 -0
- package/dist/entities/settings.entity.js +79 -0
- package/dist/entities/settings.entity.js.map +1 -0
- package/dist/entities/social.entity.d.ts +8 -0
- package/dist/entities/social.entity.js +46 -0
- package/dist/entities/social.entity.js.map +1 -0
- package/dist/entities/tenant.entity.d.ts +29 -0
- package/dist/entities/tenant.entity.js +82 -0
- package/dist/entities/tenant.entity.js.map +1 -0
- package/dist/entities/transaction.entity.d.ts +17 -0
- package/dist/entities/transaction.entity.js +84 -0
- package/dist/entities/transaction.entity.js.map +1 -0
- package/dist/entities/user.entity.d.ts +26 -0
- package/dist/entities/user.entity.js +103 -0
- package/dist/entities/user.entity.js.map +1 -0
- package/dist/entities/user_suspensions.entity.d.ts +7 -0
- package/dist/entities/user_suspensions.entity.js +42 -0
- package/dist/entities/user_suspensions.entity.js.map +1 -0
- package/dist/entities/wallet.entity.d.ts +17 -0
- package/dist/entities/wallet.entity.js +79 -0
- package/dist/entities/wallet.entity.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/pagination/index.d.ts +2 -0
- package/dist/pagination/index.js +19 -0
- package/dist/pagination/index.js.map +1 -0
- package/dist/pagination/pagination.helper.d.ts +7 -0
- package/dist/pagination/pagination.helper.js +40 -0
- package/dist/pagination/pagination.helper.js.map +1 -0
- package/dist/pagination/pagination.types.d.ts +19 -0
- package/dist/pagination/pagination.types.js +3 -0
- package/dist/pagination/pagination.types.js.map +1 -0
- package/dist/standard-response.d.ts +7 -0
- package/dist/standard-response.js +27 -0
- package/dist/standard-response.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/common.type.d.ts +26 -0
- package/dist/types/common.type.js +26 -0
- package/dist/types/common.type.js.map +1 -0
- package/dist/types/mortgage-fsm.types.d.ts +180 -0
- package/dist/types/mortgage-fsm.types.js +130 -0
- package/dist/types/mortgage-fsm.types.js.map +1 -0
- package/dist/types/policy.types.d.ts +18 -0
- package/dist/types/policy.types.js +3 -0
- package/dist/types/policy.types.js.map +1 -0
- package/dist/types/property.type.d.ts +9 -0
- package/dist/types/property.type.js +15 -0
- package/dist/types/property.type.js.map +1 -0
- package/dist/types/social.enums.d.ts +15 -0
- package/dist/types/social.enums.js +22 -0
- package/dist/types/social.enums.js.map +1 -0
- package/dist/types/tenant.enums.d.ts +13 -0
- package/dist/types/tenant.enums.js +19 -0
- package/dist/types/tenant.enums.js.map +1 -0
- package/dist/types/transaction.type.d.ts +8 -0
- package/dist/types/transaction.type.js +14 -0
- package/dist/types/transaction.type.js.map +1 -0
- package/dist/types/user.enums.d.ts +10 -0
- package/dist/types/user.enums.js +16 -0
- package/dist/types/user.enums.js.map +1 -0
- package/entities/BaseEntity.ts +34 -0
- package/entities/TenantAwareEntity.ts +34 -0
- package/entities/TenantAwareRepository.ts +100 -0
- package/entities/amenity.entity.ts +10 -0
- package/entities/common.entity.ts +46 -0
- package/entities/common.pure.entity.ts +36 -0
- package/entities/index.ts +27 -0
- package/entities/mortgage-document.entity.ts +37 -0
- package/entities/mortgage-downpayment-installment.entity.ts +40 -0
- package/entities/mortgage-downpayment-payment.entity.ts +61 -0
- package/entities/mortgage-downpayment.entity.ts +43 -0
- package/entities/mortgage-step.entity.ts +33 -0
- package/entities/mortgage-type.entity.ts +31 -0
- package/entities/mortgage.entity.ts +89 -0
- package/entities/password_reset_tokens.entity.ts +25 -0
- package/entities/permission.entity.ts +12 -0
- package/entities/property-document.entity.ts +21 -0
- package/entities/property-media.entity.ts +23 -0
- package/entities/property.entity.ts +147 -0
- package/entities/refresh_token.entity.ts +16 -0
- package/entities/role.entity.ts +20 -0
- package/entities/settings.entity.ts +56 -0
- package/entities/social.entity.ts +27 -0
- package/entities/tenant.entity.ts +65 -0
- package/entities/transaction.entity.ts +56 -0
- package/entities/user.entity.ts +89 -0
- package/entities/user_suspensions.entity.ts +24 -0
- package/entities/wallet.entity.ts +54 -0
- package/guard/permission.guard.ts +42 -0
- package/guard/swagger-auth.guard.ts +9 -0
- package/helpers/ArrayHelper.ts +1 -0
- package/helpers/ConstantHelper.ts +101 -0
- package/helpers/CustomNamingStrategy.ts +27 -0
- package/helpers/DateHelper.ts +21 -0
- package/helpers/EmailHelper.ts +38 -0
- package/helpers/FileSystemHelper.ts +101 -0
- package/index.ts +9 -0
- package/middleware/TenantMiddleware.ts +52 -0
- package/package.json +46 -0
- package/pagination/index.ts +2 -0
- package/pagination/pagination.helper.ts +57 -0
- package/pagination/pagination.types.ts +21 -0
- package/standard-response.ts +16 -0
- package/tsconfig.json +33 -0
- package/types/common.type.ts +32 -0
- package/types/mortgage-fsm.types.ts +279 -0
- package/types/policy.types.ts +21 -0
- package/types/property.type.ts +10 -0
- package/types/social.enums.ts +17 -0
- package/types/tenant.enums.ts +14 -0
- package/types/transaction.type.ts +9 -0
- package/types/user.enums.ts +11 -0
|
@@ -0,0 +1,124 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.Mortgage = exports.MortgageStatus = void 0;
|
|
16
|
+
const typeorm_1 = require("typeorm");
|
|
17
|
+
const common_entity_1 = require("./common.entity");
|
|
18
|
+
const property_entity_1 = require("./property.entity");
|
|
19
|
+
const user_entity_1 = require("./user.entity");
|
|
20
|
+
const mortgage_document_entity_1 = __importDefault(require("./mortgage-document.entity"));
|
|
21
|
+
const mortgage_step_entity_1 = __importDefault(require("./mortgage-step.entity"));
|
|
22
|
+
const mortgage_type_entity_1 = require("./mortgage-type.entity");
|
|
23
|
+
const mortgage_downpayment_entity_1 = require("./mortgage-downpayment.entity");
|
|
24
|
+
const mortgage_fsm_types_1 = require("../types/mortgage-fsm.types");
|
|
25
|
+
var MortgageStatus;
|
|
26
|
+
(function (MortgageStatus) {
|
|
27
|
+
MortgageStatus["DRAFT"] = "DRAFT";
|
|
28
|
+
MortgageStatus["PENDING"] = "PENDING";
|
|
29
|
+
MortgageStatus["ACTIVE"] = "ACTIVE";
|
|
30
|
+
MortgageStatus["COMPLETED"] = "COMPLETED";
|
|
31
|
+
MortgageStatus["CANCELLED"] = "CANCELLED";
|
|
32
|
+
})(MortgageStatus || (exports.MortgageStatus = MortgageStatus = {}));
|
|
33
|
+
let Mortgage = class Mortgage extends common_entity_1.AbstractBaseReviewableEntity {
|
|
34
|
+
};
|
|
35
|
+
exports.Mortgage = Mortgage;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.ManyToOne)(() => property_entity_1.Property, (property) => property.mortgages, { onDelete: 'CASCADE' }),
|
|
38
|
+
(0, typeorm_1.JoinColumn)({ name: 'property_id' }),
|
|
39
|
+
__metadata("design:type", property_entity_1.Property)
|
|
40
|
+
], Mortgage.prototype, "property", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], Mortgage.prototype, "propertyId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true }),
|
|
47
|
+
(0, typeorm_1.JoinColumn)({ name: 'borrower_id' }),
|
|
48
|
+
__metadata("design:type", user_entity_1.User)
|
|
49
|
+
], Mortgage.prototype, "borrower", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], Mortgage.prototype, "borrowerId", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'double precision', nullable: true }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], Mortgage.prototype, "principal", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'double precision', nullable: true }),
|
|
60
|
+
__metadata("design:type", Number)
|
|
61
|
+
], Mortgage.prototype, "downPayment", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], Mortgage.prototype, "termMonths", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: 'double precision', nullable: true }),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], Mortgage.prototype, "interestRate", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: 'double precision', nullable: true }),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], Mortgage.prototype, "monthlyPayment", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: MortgageStatus, default: MortgageStatus.DRAFT }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], Mortgage.prototype, "status", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'varchar', default: mortgage_fsm_types_1.MortgageState.DRAFT }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], Mortgage.prototype, "state", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], Mortgage.prototype, "stateMetadata", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.OneToMany)(() => mortgage_document_entity_1.default, (doc) => doc.mortgage),
|
|
88
|
+
__metadata("design:type", Array)
|
|
89
|
+
], Mortgage.prototype, "documents", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.OneToMany)(() => mortgage_step_entity_1.default, (step) => step.mortgage, { cascade: true }),
|
|
92
|
+
__metadata("design:type", Array)
|
|
93
|
+
], Mortgage.prototype, "steps", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.ManyToOne)(() => mortgage_type_entity_1.MortgageType, { nullable: true }),
|
|
96
|
+
(0, typeorm_1.JoinColumn)({ name: 'mortgage_type_id' }),
|
|
97
|
+
__metadata("design:type", mortgage_type_entity_1.MortgageType)
|
|
98
|
+
], Mortgage.prototype, "mortgageType", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
101
|
+
__metadata("design:type", Number)
|
|
102
|
+
], Mortgage.prototype, "mortgageTypeId", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
105
|
+
__metadata("design:type", Date)
|
|
106
|
+
], Mortgage.prototype, "lastReminderSentAt", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.OneToOne)(() => mortgage_downpayment_entity_1.MortgageDownpaymentPlan, { nullable: true }),
|
|
109
|
+
(0, typeorm_1.JoinColumn)({ name: 'downpayment_plan_id' }),
|
|
110
|
+
__metadata("design:type", mortgage_downpayment_entity_1.MortgageDownpaymentPlan)
|
|
111
|
+
], Mortgage.prototype, "downpaymentPlan", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
114
|
+
__metadata("design:type", Number)
|
|
115
|
+
], Mortgage.prototype, "downpaymentPlanId", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, typeorm_1.Column)({ type: 'double precision', nullable: true }),
|
|
118
|
+
__metadata("design:type", Number)
|
|
119
|
+
], Mortgage.prototype, "downPaymentPaid", void 0);
|
|
120
|
+
exports.Mortgage = Mortgage = __decorate([
|
|
121
|
+
(0, typeorm_1.Entity)({ name: 'mortgage' })
|
|
122
|
+
], Mortgage);
|
|
123
|
+
exports.default = Mortgage;
|
|
124
|
+
//# sourceMappingURL=mortgage.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mortgage.entity.js","sourceRoot":"","sources":["../../entities/mortgage.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qCAAqF;AACrF,mDAA+D;AAC/D,uDAA6C;AAC7C,+CAAqC;AACrC,0FAA0D;AAC1D,kFAAkD;AAClD,iEAAsD;AACtD,+EAAwE;AACxE,oEAA4D;AAG5D,IAAY,cAMX;AAND,WAAY,cAAc;IACtB,iCAAe,CAAA;IACf,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;AAC3B,CAAC,EANW,cAAc,8BAAd,cAAc,QAMzB;AAGM,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,4CAA4B;CAkEzD,CAAA;AAlEY,4BAAQ;AAGjB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACpF,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAC1B,0BAAQ;0CAAC;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACR;AAInB;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;8BAC1B,kBAAI;0CAAC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAA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,mCAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACjD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;8BAC3B,mCAAY;8CAAC;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACJ;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC1B,IAAI;oDAAC;AAIzB;IAFC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,qDAAuB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3D,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;8BAC3B,qDAAuB;iDAAC;AAGzC;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACD;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAC7B;mBAjEf,QAAQ;IADpB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;GAChB,QAAQ,CAkEpB;AAED,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.PasswordResetToken = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const user_entity_1 = require("./user.entity");
|
|
15
|
+
const BaseEntity_1 = require("./BaseEntity");
|
|
16
|
+
let PasswordResetToken = class PasswordResetToken extends BaseEntity_1.BaseEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.PasswordResetToken = PasswordResetToken;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.OneToOne)(() => user_entity_1.User, {
|
|
21
|
+
onDelete: 'CASCADE',
|
|
22
|
+
onUpdate: 'CASCADE',
|
|
23
|
+
}),
|
|
24
|
+
(0, typeorm_1.JoinColumn)({ name: 'user_id' }),
|
|
25
|
+
__metadata("design:type", user_entity_1.User)
|
|
26
|
+
], PasswordResetToken.prototype, "user", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({
|
|
29
|
+
nullable: true
|
|
30
|
+
}),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], PasswordResetToken.prototype, "tokenHash", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.DeleteDateColumn)({
|
|
35
|
+
nullable: true,
|
|
36
|
+
default: null
|
|
37
|
+
}),
|
|
38
|
+
__metadata("design:type", Date)
|
|
39
|
+
], PasswordResetToken.prototype, "expiresAt", void 0);
|
|
40
|
+
exports.PasswordResetToken = PasswordResetToken = __decorate([
|
|
41
|
+
(0, typeorm_1.Entity)({ name: 'password_reset_token' })
|
|
42
|
+
], PasswordResetToken);
|
|
43
|
+
//# sourceMappingURL=password_reset_tokens.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"password_reset_tokens.entity.js","sourceRoot":"","sources":["../../entities/password_reset_tokens.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAiF;AACjF,+CAAqC;AACrC,6CAA0C;AAGnC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,uBAAU;CAmBjD,CAAA;AAnBY,gDAAkB;AAO7B;IANC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QAEpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,kBAAI;gDAAC;AAKX;IAHC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;qDACe;AAMjB;IAJC,IAAA,0BAAgB,EAAC;QAChB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACd,CAAC;8BACS,IAAI;qDAAC;6BAlBL,kBAAkB;IAD9B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC;GAC5B,kBAAkB,CAmB9B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.Permission = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseEntity_1 = require("./BaseEntity");
|
|
15
|
+
const role_entity_1 = require("./role.entity");
|
|
16
|
+
let Permission = class Permission extends BaseEntity_1.BaseEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.Permission = Permission;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], Permission.prototype, "name", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.ManyToMany)(() => role_entity_1.Role, role => role.permissions),
|
|
25
|
+
__metadata("design:type", Array)
|
|
26
|
+
], Permission.prototype, "roles", void 0);
|
|
27
|
+
exports.Permission = Permission = __decorate([
|
|
28
|
+
(0, typeorm_1.Entity)({ name: 'permissions' })
|
|
29
|
+
], Permission);
|
|
30
|
+
//# sourceMappingURL=permission.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../entities/permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAqD;AACrD,6CAA0C;AAC1C,+CAAqC;AAG9B,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,uBAAU;CAMzC,CAAA;AANY,gCAAU;AAErB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC/B;AAGb;IADC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC;;yCACpC;qBALF,UAAU;IADtB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;GACnB,UAAU,CAMtB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.PropertyDocument = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const property_entity_1 = require("./property.entity");
|
|
15
|
+
const common_entity_1 = require("./common.entity");
|
|
16
|
+
let PropertyDocument = class PropertyDocument extends common_entity_1.AbstractBaseDocumentEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.PropertyDocument = PropertyDocument;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.ManyToOne)(() => property_entity_1.Property, (property) => property.documents, {
|
|
21
|
+
onDelete: 'CASCADE',
|
|
22
|
+
onUpdate: 'CASCADE',
|
|
23
|
+
}),
|
|
24
|
+
(0, typeorm_1.JoinColumn)({ name: 'property_id' }),
|
|
25
|
+
__metadata("design:type", property_entity_1.Property)
|
|
26
|
+
], PropertyDocument.prototype, "property", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)(),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], PropertyDocument.prototype, "propertyId", void 0);
|
|
31
|
+
exports.PropertyDocument = PropertyDocument = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'property-document' })
|
|
33
|
+
], PropertyDocument);
|
|
34
|
+
//# sourceMappingURL=property-document.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property-document.entity.js","sourceRoot":"","sources":["../../entities/property-document.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAKiB;AACjB,uDAA6C;AAC7C,mDAA6D;AAGtD,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,0CAA0B;CAU/D,CAAA;AAVY,4CAAgB;AAM3B;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,SAAS,EAAE;QAC3D,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAC1B,0BAAQ;kDAAC;AAGnB;IADC,IAAA,gBAAM,GAAE;;oDACU;2BATR,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;GACzB,gBAAgB,CAU5B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.PropertyMedia = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const property_entity_1 = require("./property.entity");
|
|
15
|
+
const common_entity_1 = require("./common.entity");
|
|
16
|
+
let PropertyMedia = class PropertyMedia extends common_entity_1.AbstractBaseMediaEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.PropertyMedia = PropertyMedia;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.ManyToOne)(() => property_entity_1.Property, (property) => property.media, {
|
|
21
|
+
onDelete: 'CASCADE',
|
|
22
|
+
onUpdate: 'CASCADE',
|
|
23
|
+
}),
|
|
24
|
+
(0, typeorm_1.JoinColumn)({ name: 'property_id' }),
|
|
25
|
+
__metadata("design:type", property_entity_1.Property)
|
|
26
|
+
], PropertyMedia.prototype, "property", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({
|
|
29
|
+
nullable: false
|
|
30
|
+
}),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], PropertyMedia.prototype, "propertyId", void 0);
|
|
33
|
+
exports.PropertyMedia = PropertyMedia = __decorate([
|
|
34
|
+
(0, typeorm_1.Entity)({ name: 'property_media' })
|
|
35
|
+
], PropertyMedia);
|
|
36
|
+
//# sourceMappingURL=property-media.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property-media.entity.js","sourceRoot":"","sources":["../../entities/property-media.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAKiB;AACjB,uDAA6C;AAC7C,mDAA0D;AAGnD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,uCAAuB;CAYzD,CAAA;AAZY,sCAAa;AAMxB;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,EAAE;QACvD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAC1B,0BAAQ;+CAAC;AAKnB;IAHC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,KAAK;KAChB,CAAC;;iDACgB;wBAXP,aAAa;IADzB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;GACtB,aAAa,CAYzB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PropertyDocument } from './property-document.entity';
|
|
2
|
+
import { PropertyMedia } from './property-media.entity';
|
|
3
|
+
import { User } from './user.entity';
|
|
4
|
+
import { Amenity } from './amenity.entity';
|
|
5
|
+
import { AbstractBaseReviewableEntity } from './common.entity';
|
|
6
|
+
import { Mortgage } from './mortgage.entity';
|
|
7
|
+
import { PropertyStatus } from '../types/property.type';
|
|
8
|
+
import { Currency, PropertyCategory } from '../types/social.enums';
|
|
9
|
+
export declare class Property extends AbstractBaseReviewableEntity {
|
|
10
|
+
user: User;
|
|
11
|
+
userId: number;
|
|
12
|
+
documents: PropertyDocument[];
|
|
13
|
+
amenities: Amenity[];
|
|
14
|
+
media: PropertyMedia[];
|
|
15
|
+
mortgages: Mortgage[];
|
|
16
|
+
displayImage: PropertyMedia;
|
|
17
|
+
displayImageId: number;
|
|
18
|
+
title: string;
|
|
19
|
+
category: PropertyCategory;
|
|
20
|
+
propertyType: string;
|
|
21
|
+
country: string;
|
|
22
|
+
currency: Currency;
|
|
23
|
+
city: string;
|
|
24
|
+
district: string;
|
|
25
|
+
zipCode: string;
|
|
26
|
+
streetAddress: string;
|
|
27
|
+
nBedrooms: string;
|
|
28
|
+
nBathrooms: string;
|
|
29
|
+
nParkingSpots: string;
|
|
30
|
+
price: number;
|
|
31
|
+
longitude: number;
|
|
32
|
+
latitude: number;
|
|
33
|
+
area: number;
|
|
34
|
+
description: string;
|
|
35
|
+
status: PropertyStatus;
|
|
36
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
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.Property = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const property_document_entity_1 = require("./property-document.entity");
|
|
15
|
+
const property_media_entity_1 = require("./property-media.entity");
|
|
16
|
+
const user_entity_1 = require("./user.entity");
|
|
17
|
+
const amenity_entity_1 = require("./amenity.entity");
|
|
18
|
+
const common_entity_1 = require("./common.entity");
|
|
19
|
+
const mortgage_entity_1 = require("./mortgage.entity");
|
|
20
|
+
const property_type_1 = require("../types/property.type");
|
|
21
|
+
const social_enums_1 = require("../types/social.enums");
|
|
22
|
+
let Property = class Property extends common_entity_1.AbstractBaseReviewableEntity {
|
|
23
|
+
};
|
|
24
|
+
exports.Property = Property;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
27
|
+
onDelete: 'CASCADE',
|
|
28
|
+
onUpdate: 'CASCADE',
|
|
29
|
+
}),
|
|
30
|
+
(0, typeorm_1.JoinColumn)({ name: 'user_id' }),
|
|
31
|
+
__metadata("design:type", user_entity_1.User)
|
|
32
|
+
], Property.prototype, "user", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], Property.prototype, "userId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.OneToMany)(() => property_document_entity_1.PropertyDocument, (propertyDocument) => propertyDocument.property),
|
|
39
|
+
__metadata("design:type", Array)
|
|
40
|
+
], Property.prototype, "documents", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.ManyToMany)(() => amenity_entity_1.Amenity),
|
|
43
|
+
(0, typeorm_1.JoinTable)(),
|
|
44
|
+
__metadata("design:type", Array)
|
|
45
|
+
], Property.prototype, "amenities", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.OneToMany)(() => property_media_entity_1.PropertyMedia, (propertyDocument) => propertyDocument.property),
|
|
48
|
+
__metadata("design:type", Array)
|
|
49
|
+
], Property.prototype, "media", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.OneToMany)(() => mortgage_entity_1.Mortgage, (mortgage) => mortgage.property),
|
|
52
|
+
__metadata("design:type", Array)
|
|
53
|
+
], Property.prototype, "mortgages", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.OneToOne)(() => property_media_entity_1.PropertyMedia, {
|
|
56
|
+
onDelete: 'SET NULL',
|
|
57
|
+
onUpdate: 'CASCADE'
|
|
58
|
+
}),
|
|
59
|
+
(0, typeorm_1.JoinColumn)({ name: 'display_image_id' }),
|
|
60
|
+
__metadata("design:type", property_media_entity_1.PropertyMedia)
|
|
61
|
+
], Property.prototype, "displayImage", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({
|
|
64
|
+
nullable: true
|
|
65
|
+
}),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], Property.prototype, "displayImageId", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], Property.prototype, "title", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({
|
|
74
|
+
nullable: true,
|
|
75
|
+
type: 'enum',
|
|
76
|
+
enum: social_enums_1.PropertyCategory,
|
|
77
|
+
}),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], Property.prototype, "category", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({
|
|
82
|
+
nullable: true,
|
|
83
|
+
type: 'enum',
|
|
84
|
+
enum: property_type_1.PropertyType
|
|
85
|
+
}),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], Property.prototype, "propertyType", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], Property.prototype, "country", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({
|
|
94
|
+
nullable: true,
|
|
95
|
+
type: 'enum',
|
|
96
|
+
enum: social_enums_1.Currency,
|
|
97
|
+
}),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], Property.prototype, "currency", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], Property.prototype, "city", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], Property.prototype, "district", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
110
|
+
__metadata("design:type", String)
|
|
111
|
+
], Property.prototype, "zipCode", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], Property.prototype, "streetAddress", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], Property.prototype, "nBedrooms", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
122
|
+
__metadata("design:type", String)
|
|
123
|
+
], Property.prototype, "nBathrooms", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
126
|
+
__metadata("design:type", String)
|
|
127
|
+
], Property.prototype, "nParkingSpots", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, typeorm_1.Column)({
|
|
130
|
+
type: 'double precision',
|
|
131
|
+
scale: 2,
|
|
132
|
+
precision: 20,
|
|
133
|
+
nullable: true,
|
|
134
|
+
}),
|
|
135
|
+
__metadata("design:type", Number)
|
|
136
|
+
], Property.prototype, "price", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, typeorm_1.Column)({
|
|
139
|
+
type: 'double precision',
|
|
140
|
+
scale: 2,
|
|
141
|
+
precision: 20,
|
|
142
|
+
nullable: true,
|
|
143
|
+
}),
|
|
144
|
+
__metadata("design:type", Number)
|
|
145
|
+
], Property.prototype, "longitude", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, typeorm_1.Column)({
|
|
148
|
+
type: 'double precision',
|
|
149
|
+
scale: 2,
|
|
150
|
+
precision: 20,
|
|
151
|
+
nullable: true,
|
|
152
|
+
}),
|
|
153
|
+
__metadata("design:type", Number)
|
|
154
|
+
], Property.prototype, "latitude", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, typeorm_1.Column)({
|
|
157
|
+
type: 'double precision',
|
|
158
|
+
scale: 2,
|
|
159
|
+
precision: 20,
|
|
160
|
+
nullable: true,
|
|
161
|
+
}),
|
|
162
|
+
__metadata("design:type", Number)
|
|
163
|
+
], Property.prototype, "area", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, typeorm_1.Column)({
|
|
166
|
+
type: 'text',
|
|
167
|
+
nullable: true
|
|
168
|
+
}),
|
|
169
|
+
__metadata("design:type", String)
|
|
170
|
+
], Property.prototype, "description", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, typeorm_1.Column)({
|
|
173
|
+
type: 'enum',
|
|
174
|
+
enum: property_type_1.PropertyStatus,
|
|
175
|
+
default: property_type_1.PropertyStatus.PENDING,
|
|
176
|
+
}),
|
|
177
|
+
__metadata("design:type", String)
|
|
178
|
+
], Property.prototype, "status", void 0);
|
|
179
|
+
exports.Property = Property = __decorate([
|
|
180
|
+
(0, typeorm_1.Entity)({ name: 'property' })
|
|
181
|
+
], Property);
|
|
182
|
+
//# sourceMappingURL=property.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property.entity.js","sourceRoot":"","sources":["../../entities/property.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4G;AAC5G,yEAA8D;AAC9D,mEAAwD;AACxD,+CAAqC;AACrC,qDAA2C;AAC3C,mDAA+D;AAC/D,uDAA6C;AAC7C,0DAAsE;AACtE,wDAAmE;AAG5D,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,4CAA4B;CAuIzD,CAAA;AAvIY,4BAAQ;AAOnB;IANC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QAErB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,kBAAI;sCAAC;AAGX;IADC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f,CAAC;;sCACU;AAMZ;IAJC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf,CAAC;;6CACiB;AAOnB;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,8BAAc;QACpB,OAAO,EAAE,8BAAc,CAAC,OAAO;KAChC,CAAC;;wCACqB;mBAtIZ,QAAQ;IADpB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;GAChB,QAAQ,CAuIpB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.RefreshToken = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseEntity_1 = require("./BaseEntity");
|
|
15
|
+
const user_entity_1 = require("./user.entity");
|
|
16
|
+
let RefreshToken = class RefreshToken extends BaseEntity_1.BaseEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.RefreshToken = RefreshToken;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, (user) => user.refreshTokens),
|
|
21
|
+
(0, typeorm_1.JoinColumn)({ name: 'user_id' }),
|
|
22
|
+
__metadata("design:type", user_entity_1.User)
|
|
23
|
+
], RefreshToken.prototype, "user", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], RefreshToken.prototype, "userId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ nullable: false, type: 'text' }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], RefreshToken.prototype, "token", void 0);
|
|
32
|
+
exports.RefreshToken = RefreshToken = __decorate([
|
|
33
|
+
(0, typeorm_1.Entity)({ name: 'refresh_tokens' })
|
|
34
|
+
], RefreshToken);
|
|
35
|
+
//# sourceMappingURL=refresh_token.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refresh_token.entity.js","sourceRoot":"","sources":["../../entities/refresh_token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,6CAA0C;AAC1C,+CAAqC;AAG9B,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,uBAAU;CAU3C,CAAA;AAVY,oCAAY;AAGvB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC;IACnD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,kBAAI;0CAAC;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACZ;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CAC5B;uBATH,YAAY;IADxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;GACtB,YAAY,CAUxB"}
|