@valentine-efagene/qshelter-common 2.0.2 → 2.0.4
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/{src/config → config}/config.service.d.ts +44 -0
- package/dist/{src/config → config}/config.service.js +64 -17
- package/dist/config/index.js +1 -0
- package/dist/index.d.ts +3 -16
- package/dist/index.js +3 -33
- package/dist/types/prisma.d.ts +2 -0
- package/dist/types/prisma.js +2 -0
- package/dist/types/response.d.ts +15 -0
- package/dist/types/response.js +6 -0
- package/dist/utils/errors.d.ts +21 -0
- package/dist/utils/errors.js +28 -0
- package/package.json +34 -99
- package/prisma/schema.prisma +636 -0
- package/dist/OpenApiHelper.d.ts +0 -9
- package/dist/OpenApiHelper.js +0 -118
- package/dist/OpenApiHelper.js.map +0 -1
- package/dist/decorator/index.d.ts +0 -2
- package/dist/decorator/index.js +0 -19
- package/dist/decorator/index.js.map +0 -1
- package/dist/decorator/permission.decorator.d.ts +0 -2
- package/dist/decorator/permission.decorator.js +0 -6
- package/dist/decorator/permission.decorator.js.map +0 -1
- package/dist/decorator/tenant.decorator.d.ts +0 -2
- package/dist/decorator/tenant.decorator.js +0 -13
- package/dist/decorator/tenant.decorator.js.map +0 -1
- package/dist/encryption/encryption.module.d.ts +0 -2
- package/dist/encryption/encryption.module.js +0 -24
- package/dist/encryption/encryption.module.js.map +0 -1
- package/dist/encryption/encryption.service.d.ts +0 -17
- package/dist/encryption/encryption.service.js +0 -85
- package/dist/encryption/encryption.service.js.map +0 -1
- package/dist/entities/TenantAwareEntity.d.ts +0 -9
- package/dist/entities/TenantAwareEntity.js +0 -48
- package/dist/entities/TenantAwareEntity.js.map +0 -1
- package/dist/entities/TenantAwareRepository.d.ts +0 -13
- package/dist/entities/TenantAwareRepository.js +0 -65
- package/dist/entities/TenantAwareRepository.js.map +0 -1
- package/dist/entities/amenity.entity.d.ts +0 -4
- package/dist/entities/amenity.entity.js +0 -28
- package/dist/entities/amenity.entity.js.map +0 -1
- package/dist/entities/common.entity.d.ts +0 -16
- package/dist/entities/common.entity.js +0 -63
- package/dist/entities/common.entity.js.map +0 -1
- package/dist/entities/common.pure.entity.d.ts +0 -11
- package/dist/entities/common.pure.entity.js +0 -52
- package/dist/entities/common.pure.entity.js.map +0 -1
- package/dist/entities/contract-document.entity.d.ts +0 -39
- package/dist/entities/contract-document.entity.js +0 -115
- package/dist/entities/contract-document.entity.js.map +0 -1
- package/dist/entities/contract.entity.d.ts +0 -62
- package/dist/entities/contract.entity.js +0 -191
- package/dist/entities/contract.entity.js.map +0 -1
- package/dist/entities/device_endpoint.entity.d.ts +0 -10
- package/dist/entities/device_endpoint.entity.js +0 -50
- package/dist/entities/device_endpoint.entity.js.map +0 -1
- package/dist/entities/email_preference.entity.d.ts +0 -6
- package/dist/entities/email_preference.entity.js +0 -45
- package/dist/entities/email_preference.entity.js.map +0 -1
- package/dist/entities/index.d.ts +0 -36
- package/dist/entities/index.js +0 -53
- package/dist/entities/index.js.map +0 -1
- package/dist/entities/mortgage-document.entity.d.ts +0 -14
- package/dist/entities/mortgage-document.entity.js +0 -58
- package/dist/entities/mortgage-document.entity.js.map +0 -1
- package/dist/entities/mortgage-downpayment-installment.entity.d.ts +0 -19
- package/dist/entities/mortgage-downpayment-installment.entity.js +0 -63
- package/dist/entities/mortgage-downpayment-installment.entity.js.map +0 -1
- package/dist/entities/mortgage-downpayment-payment.entity.d.ts +0 -28
- package/dist/entities/mortgage-downpayment-payment.entity.js +0 -84
- package/dist/entities/mortgage-downpayment-payment.entity.js.map +0 -1
- package/dist/entities/mortgage-downpayment.entity.d.ts +0 -22
- package/dist/entities/mortgage-downpayment.entity.js +0 -66
- package/dist/entities/mortgage-downpayment.entity.js.map +0 -1
- package/dist/entities/mortgage-step.entity.d.ts +0 -12
- package/dist/entities/mortgage-step.entity.js +0 -52
- package/dist/entities/mortgage-step.entity.js.map +0 -1
- package/dist/entities/mortgage-transition-event.entity.d.ts +0 -26
- package/dist/entities/mortgage-transition-event.entity.js +0 -111
- package/dist/entities/mortgage-transition-event.entity.js.map +0 -1
- package/dist/entities/mortgage-transition.entity.d.ts +0 -25
- package/dist/entities/mortgage-transition.entity.js +0 -91
- package/dist/entities/mortgage-transition.entity.js.map +0 -1
- package/dist/entities/mortgage-type.entity.d.ts +0 -10
- package/dist/entities/mortgage-type.entity.js +0 -46
- package/dist/entities/mortgage-type.entity.js.map +0 -1
- package/dist/entities/mortgage.entity.d.ts +0 -37
- package/dist/entities/mortgage.entity.js +0 -124
- package/dist/entities/mortgage.entity.js.map +0 -1
- package/dist/entities/password_reset_tokens.entity.d.ts +0 -7
- package/dist/entities/password_reset_tokens.entity.js +0 -45
- package/dist/entities/password_reset_tokens.entity.js.map +0 -1
- package/dist/entities/payment-installment.entity.d.ts +0 -39
- package/dist/entities/payment-installment.entity.js +0 -134
- package/dist/entities/payment-installment.entity.js.map +0 -1
- package/dist/entities/payment-plan.entity.d.ts +0 -62
- package/dist/entities/payment-plan.entity.js +0 -174
- package/dist/entities/payment-plan.entity.js.map +0 -1
- package/dist/entities/payment-schedule.entity.d.ts +0 -44
- package/dist/entities/payment-schedule.entity.js +0 -134
- package/dist/entities/payment-schedule.entity.js.map +0 -1
- package/dist/entities/payment.entity.d.ts +0 -55
- package/dist/entities/payment.entity.js +0 -157
- package/dist/entities/payment.entity.js.map +0 -1
- package/dist/entities/permission.entity.d.ts +0 -6
- package/dist/entities/permission.entity.js +0 -30
- package/dist/entities/permission.entity.js.map +0 -1
- package/dist/entities/property-document.entity.d.ts +0 -6
- package/dist/entities/property-document.entity.js +0 -34
- package/dist/entities/property-document.entity.js.map +0 -1
- package/dist/entities/property-media.entity.d.ts +0 -6
- package/dist/entities/property-media.entity.js +0 -37
- package/dist/entities/property-media.entity.js.map +0 -1
- package/dist/entities/property.entity.d.ts +0 -40
- package/dist/entities/property.entity.js +0 -202
- package/dist/entities/property.entity.js.map +0 -1
- package/dist/entities/refresh_token.entity.d.ts +0 -7
- package/dist/entities/refresh_token.entity.js +0 -35
- package/dist/entities/refresh_token.entity.js.map +0 -1
- package/dist/entities/role.entity.d.ts +0 -8
- package/dist/entities/role.entity.js +0 -39
- package/dist/entities/role.entity.js.map +0 -1
- package/dist/entities/settings.entity.d.ts +0 -17
- package/dist/entities/settings.entity.js +0 -81
- package/dist/entities/settings.entity.js.map +0 -1
- package/dist/entities/social.entity.d.ts +0 -8
- package/dist/entities/social.entity.js +0 -48
- package/dist/entities/social.entity.js.map +0 -1
- package/dist/entities/tenant.entity.d.ts +0 -32
- package/dist/entities/tenant.entity.js +0 -101
- package/dist/entities/tenant.entity.js.map +0 -1
- package/dist/entities/transaction.entity.d.ts +0 -17
- package/dist/entities/transaction.entity.js +0 -87
- package/dist/entities/transaction.entity.js.map +0 -1
- package/dist/entities/user.entity.d.ts +0 -28
- package/dist/entities/user.entity.js +0 -109
- package/dist/entities/user.entity.js.map +0 -1
- package/dist/entities/user_suspensions.entity.d.ts +0 -7
- package/dist/entities/user_suspensions.entity.js +0 -44
- package/dist/entities/user_suspensions.entity.js.map +0 -1
- package/dist/entities/wallet.entity.d.ts +0 -17
- package/dist/entities/wallet.entity.js +0 -79
- package/dist/entities/wallet.entity.js.map +0 -1
- package/dist/guard/index.d.ts +0 -2
- package/dist/guard/index.js +0 -19
- package/dist/guard/index.js.map +0 -1
- package/dist/guard/permission.guard.d.ts +0 -10
- package/dist/guard/permission.guard.js +0 -47
- package/dist/guard/permission.guard.js.map +0 -1
- package/dist/guard/swagger-auth.guard.d.ts +0 -1
- package/dist/guard/swagger-auth.guard.js +0 -9
- package/dist/guard/swagger-auth.guard.js.map +0 -1
- package/dist/helpers/ArrayHelper.d.ts +0 -2
- package/dist/helpers/ArrayHelper.js +0 -6
- package/dist/helpers/ArrayHelper.js.map +0 -1
- package/dist/helpers/ConstantHelper.d.ts +0 -36
- package/dist/helpers/ConstantHelper.js +0 -90
- package/dist/helpers/ConstantHelper.js.map +0 -1
- package/dist/helpers/CustomNamingStrategy.d.ts +0 -7
- package/dist/helpers/CustomNamingStrategy.js +0 -22
- package/dist/helpers/CustomNamingStrategy.js.map +0 -1
- package/dist/helpers/DateHelper.d.ts +0 -3
- package/dist/helpers/DateHelper.js +0 -20
- package/dist/helpers/DateHelper.js.map +0 -1
- package/dist/helpers/EmailHelper.d.ts +0 -4
- package/dist/helpers/EmailHelper.js +0 -55
- package/dist/helpers/EmailHelper.js.map +0 -1
- package/dist/helpers/FileSystemHelper.d.ts +0 -15
- package/dist/helpers/FileSystemHelper.js +0 -102
- package/dist/helpers/FileSystemHelper.js.map +0 -1
- package/dist/helpers/index.d.ts +0 -5
- package/dist/helpers/index.js +0 -22
- package/dist/helpers/index.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/middleware/AccessLoggerMiddleware.d.ts +0 -6
- package/dist/middleware/AccessLoggerMiddleware.js +0 -64
- package/dist/middleware/AccessLoggerMiddleware.js.map +0 -1
- package/dist/middleware/AuthenticationMiddleware.d.ts +0 -5
- package/dist/middleware/AuthenticationMiddleware.js +0 -19
- package/dist/middleware/AuthenticationMiddleware.js.map +0 -1
- package/dist/middleware/TenantMiddleware.d.ts +0 -14
- package/dist/middleware/TenantMiddleware.js +0 -49
- package/dist/middleware/TenantMiddleware.js.map +0 -1
- package/dist/middleware/index.d.ts +0 -3
- package/dist/middleware/index.js +0 -20
- package/dist/middleware/index.js.map +0 -1
- package/dist/pagination/index.d.ts +0 -2
- package/dist/pagination/index.js +0 -19
- package/dist/pagination/index.js.map +0 -1
- package/dist/pagination/pagination.helper.d.ts +0 -7
- package/dist/pagination/pagination.helper.js +0 -40
- package/dist/pagination/pagination.helper.js.map +0 -1
- package/dist/pagination/pagination.types.d.ts +0 -19
- package/dist/pagination/pagination.types.js +0 -3
- package/dist/pagination/pagination.types.js.map +0 -1
- package/dist/qr-code/qr-code.dto.d.ts +0 -3
- package/dist/qr-code/qr-code.dto.js +0 -21
- package/dist/qr-code/qr-code.dto.js.map +0 -1
- package/dist/qr-code/qr-code.module.d.ts +0 -2
- package/dist/qr-code/qr-code.module.js +0 -24
- package/dist/qr-code/qr-code.module.js.map +0 -1
- package/dist/qr-code/qr-code.service.d.ts +0 -11
- package/dist/qr-code/qr-code.service.js +0 -89
- package/dist/qr-code/qr-code.service.js.map +0 -1
- package/dist/qr-code/qr-code.type.d.ts +0 -5
- package/dist/qr-code/qr-code.type.js +0 -3
- package/dist/qr-code/qr-code.type.js.map +0 -1
- package/dist/src/config/config.service.js.map +0 -1
- package/dist/src/config/index.js +0 -18
- package/dist/src/config/index.js.map +0 -1
- package/dist/standard-response.d.ts +0 -7
- package/dist/standard-response.js +0 -27
- package/dist/standard-response.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/types/common.type.d.ts +0 -54
- package/dist/types/common.type.js +0 -55
- package/dist/types/common.type.js.map +0 -1
- package/dist/types/index.d.ts +0 -8
- package/dist/types/index.js +0 -25
- package/dist/types/index.js.map +0 -1
- package/dist/types/mortgage-fsm.type.d.ts +0 -180
- package/dist/types/mortgage-fsm.type.js +0 -130
- package/dist/types/mortgage-fsm.type.js.map +0 -1
- package/dist/types/permission.type.d.ts +0 -42
- package/dist/types/permission.type.js +0 -47
- package/dist/types/permission.type.js.map +0 -1
- package/dist/types/policy.type.d.ts +0 -18
- package/dist/types/policy.type.js +0 -3
- package/dist/types/policy.type.js.map +0 -1
- package/dist/types/property.type.d.ts +0 -13
- package/dist/types/property.type.js +0 -20
- package/dist/types/property.type.js.map +0 -1
- package/dist/types/tenant.type.d.ts +0 -13
- package/dist/types/tenant.type.js +0 -19
- package/dist/types/tenant.type.js.map +0 -1
- package/dist/types/transaction.type.d.ts +0 -8
- package/dist/types/transaction.type.js +0 -14
- package/dist/types/transaction.type.js.map +0 -1
- package/dist/types/user.type.d.ts +0 -10
- package/dist/types/user.type.js +0 -16
- package/dist/types/user.type.js.map +0 -1
- /package/dist/{src/config → config}/index.d.ts +0 -0
|
@@ -1,157 +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.Payment = exports.PaymentMethod = exports.PaymentStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const common_pure_entity_1 = require("./common.pure.entity");
|
|
15
|
-
const payment_installment_entity_1 = require("./payment-installment.entity");
|
|
16
|
-
const payment_schedule_entity_1 = require("./payment-schedule.entity");
|
|
17
|
-
const payment_plan_entity_1 = require("./payment-plan.entity");
|
|
18
|
-
const user_entity_1 = require("./user.entity");
|
|
19
|
-
var PaymentStatus;
|
|
20
|
-
(function (PaymentStatus) {
|
|
21
|
-
PaymentStatus["INITIATED"] = "INITIATED";
|
|
22
|
-
PaymentStatus["PENDING"] = "PENDING";
|
|
23
|
-
PaymentStatus["PROCESSING"] = "PROCESSING";
|
|
24
|
-
PaymentStatus["COMPLETED"] = "COMPLETED";
|
|
25
|
-
PaymentStatus["FAILED"] = "FAILED";
|
|
26
|
-
PaymentStatus["CANCELLED"] = "CANCELLED";
|
|
27
|
-
PaymentStatus["REFUNDED"] = "REFUNDED";
|
|
28
|
-
PaymentStatus["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
|
|
29
|
-
})(PaymentStatus || (exports.PaymentStatus = PaymentStatus = {}));
|
|
30
|
-
var PaymentMethod;
|
|
31
|
-
(function (PaymentMethod) {
|
|
32
|
-
PaymentMethod["BANK_TRANSFER"] = "BANK_TRANSFER";
|
|
33
|
-
PaymentMethod["CREDIT_CARD"] = "CREDIT_CARD";
|
|
34
|
-
PaymentMethod["DEBIT_CARD"] = "DEBIT_CARD";
|
|
35
|
-
PaymentMethod["WALLET"] = "WALLET";
|
|
36
|
-
PaymentMethod["CASH"] = "CASH";
|
|
37
|
-
PaymentMethod["CHECK"] = "CHECK";
|
|
38
|
-
PaymentMethod["MOBILE_MONEY"] = "MOBILE_MONEY";
|
|
39
|
-
PaymentMethod["CRYPTO"] = "CRYPTO";
|
|
40
|
-
PaymentMethod["OTHER"] = "OTHER";
|
|
41
|
-
})(PaymentMethod || (exports.PaymentMethod = PaymentMethod = {}));
|
|
42
|
-
let Payment = class Payment extends common_pure_entity_1.AbstractBaseEntity {
|
|
43
|
-
};
|
|
44
|
-
exports.Payment = Payment;
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.ManyToOne)(() => payment_plan_entity_1.PaymentPlan, { onDelete: 'CASCADE' }),
|
|
47
|
-
(0, typeorm_1.JoinColumn)({ name: 'payment_plan_id' }),
|
|
48
|
-
__metadata("design:type", payment_plan_entity_1.PaymentPlan)
|
|
49
|
-
], Payment.prototype, "paymentPlan", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ name: 'payment_plan_id' }),
|
|
52
|
-
__metadata("design:type", Number)
|
|
53
|
-
], Payment.prototype, "paymentPlanId", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.ManyToOne)(() => payment_schedule_entity_1.PaymentSchedule, { nullable: true }),
|
|
56
|
-
(0, typeorm_1.JoinColumn)({ name: 'schedule_id' }),
|
|
57
|
-
__metadata("design:type", payment_schedule_entity_1.PaymentSchedule)
|
|
58
|
-
], Payment.prototype, "schedule", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, typeorm_1.Column)({ name: 'schedule_id', nullable: true }),
|
|
61
|
-
__metadata("design:type", Number)
|
|
62
|
-
], Payment.prototype, "scheduleId", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, typeorm_1.ManyToOne)(() => payment_installment_entity_1.PaymentInstallment, (installment) => installment.payments, { nullable: true }),
|
|
65
|
-
(0, typeorm_1.JoinColumn)({ name: 'installment_id' }),
|
|
66
|
-
__metadata("design:type", payment_installment_entity_1.PaymentInstallment)
|
|
67
|
-
], Payment.prototype, "installment", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ name: 'installment_id', nullable: true }),
|
|
70
|
-
__metadata("design:type", Number)
|
|
71
|
-
], Payment.prototype, "installmentId", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true }),
|
|
74
|
-
(0, typeorm_1.JoinColumn)({ name: 'payer_id' }),
|
|
75
|
-
__metadata("design:type", user_entity_1.User)
|
|
76
|
-
], Payment.prototype, "payer", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, typeorm_1.Column)({ name: 'payer_id', nullable: true }),
|
|
79
|
-
__metadata("design:type", Number)
|
|
80
|
-
], Payment.prototype, "payerId", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, typeorm_1.Column)({ type: 'double precision' }),
|
|
83
|
-
__metadata("design:type", Number)
|
|
84
|
-
], Payment.prototype, "amount", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, typeorm_1.Column)({ name: 'principal_amount', type: 'double precision', default: 0 }),
|
|
87
|
-
__metadata("design:type", Number)
|
|
88
|
-
], Payment.prototype, "principalAmount", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, typeorm_1.Column)({ name: 'interest_amount', type: 'double precision', default: 0 }),
|
|
91
|
-
__metadata("design:type", Number)
|
|
92
|
-
], Payment.prototype, "interestAmount", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, typeorm_1.Column)({ name: 'fee_amount', type: 'double precision', default: 0 }),
|
|
95
|
-
__metadata("design:type", Number)
|
|
96
|
-
], Payment.prototype, "feeAmount", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
(0, typeorm_1.Column)({ name: 'late_fee_amount', type: 'double precision', default: 0 }),
|
|
99
|
-
__metadata("design:type", Number)
|
|
100
|
-
], Payment.prototype, "lateFeeAmount", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: PaymentMethod, nullable: true }),
|
|
103
|
-
__metadata("design:type", String)
|
|
104
|
-
], Payment.prototype, "method", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: PaymentStatus, default: PaymentStatus.INITIATED }),
|
|
107
|
-
__metadata("design:type", String)
|
|
108
|
-
], Payment.prototype, "status", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
(0, typeorm_1.Column)({ name: 'provider_reference', nullable: true, unique: true }),
|
|
111
|
-
__metadata("design:type", String)
|
|
112
|
-
], Payment.prototype, "providerReference", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
(0, typeorm_1.Column)({ name: 'provider_name', nullable: true }),
|
|
115
|
-
__metadata("design:type", String)
|
|
116
|
-
], Payment.prototype, "providerName", void 0);
|
|
117
|
-
__decorate([
|
|
118
|
-
(0, typeorm_1.Column)({ name: 'transaction_id', nullable: true }),
|
|
119
|
-
__metadata("design:type", String)
|
|
120
|
-
], Payment.prototype, "transactionId", void 0);
|
|
121
|
-
__decorate([
|
|
122
|
-
(0, typeorm_1.Column)({ name: 'payment_date', type: 'timestamp' }),
|
|
123
|
-
__metadata("design:type", Date)
|
|
124
|
-
], Payment.prototype, "paymentDate", void 0);
|
|
125
|
-
__decorate([
|
|
126
|
-
(0, typeorm_1.Column)({ name: 'processed_at', type: 'timestamp', nullable: true }),
|
|
127
|
-
__metadata("design:type", Date)
|
|
128
|
-
], Payment.prototype, "processedAt", void 0);
|
|
129
|
-
__decorate([
|
|
130
|
-
(0, typeorm_1.Column)({ name: 'confirmed_at', type: 'timestamp', nullable: true }),
|
|
131
|
-
__metadata("design:type", Date)
|
|
132
|
-
], Payment.prototype, "confirmedAt", void 0);
|
|
133
|
-
__decorate([
|
|
134
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
135
|
-
__metadata("design:type", String)
|
|
136
|
-
], Payment.prototype, "notes", void 0);
|
|
137
|
-
__decorate([
|
|
138
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
139
|
-
__metadata("design:type", String)
|
|
140
|
-
], Payment.prototype, "description", void 0);
|
|
141
|
-
__decorate([
|
|
142
|
-
(0, typeorm_1.Column)({ name: 'receipt_url', nullable: true }),
|
|
143
|
-
__metadata("design:type", String)
|
|
144
|
-
], Payment.prototype, "receiptUrl", void 0);
|
|
145
|
-
__decorate([
|
|
146
|
-
(0, typeorm_1.Column)({ name: 'state_metadata', type: 'text', nullable: true }),
|
|
147
|
-
__metadata("design:type", String)
|
|
148
|
-
], Payment.prototype, "stateMetadata", void 0);
|
|
149
|
-
__decorate([
|
|
150
|
-
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
151
|
-
__metadata("design:type", Object)
|
|
152
|
-
], Payment.prototype, "metadata", void 0);
|
|
153
|
-
exports.Payment = Payment = __decorate([
|
|
154
|
-
(0, typeorm_1.Entity)({ name: 'payment' })
|
|
155
|
-
], Payment);
|
|
156
|
-
exports.default = Payment;
|
|
157
|
-
//# sourceMappingURL=payment.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment.entity.js","sourceRoot":"","sources":["../../entities/payment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,6DAA0D;AAC1D,6EAAkE;AAClE,uEAA4D;AAC5D,+DAAoD;AACpD,+CAAq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AE,gBAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC3C;AAItB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAC3B;kBAvFL,OAAO;IADnB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;GACf,OAAO,CAwFnB;AAED,kBAAe,OAAO,CAAC"}
|
|
@@ -1,30 +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.Permission = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const common_pure_entity_1 = require("./common.pure.entity");
|
|
15
|
-
const role_entity_1 = require("./role.entity");
|
|
16
|
-
let Permission = class Permission extends common_pure_entity_1.AbstractBaseEntity {
|
|
17
|
-
};
|
|
18
|
-
exports.Permission = Permission;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, typeorm_1.Column)({ name: 'name', 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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../entities/permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAqD;AACrD,6DAA0D;AAC1D,+CAAqC;AAG9B,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,uCAAkB;CAMjD,CAAA;AANY,gCAAU;AAErB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC7C;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"}
|
|
@@ -1,34 +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.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)({ name: 'property_id' }),
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;oDACb;2BATR,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;GACzB,gBAAgB,CAU5B"}
|
|
@@ -1,37 +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.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
|
-
name: 'property_id',
|
|
30
|
-
nullable: false
|
|
31
|
-
}),
|
|
32
|
-
__metadata("design:type", Number)
|
|
33
|
-
], PropertyMedia.prototype, "propertyId", void 0);
|
|
34
|
-
exports.PropertyMedia = PropertyMedia = __decorate([
|
|
35
|
-
(0, typeorm_1.Entity)({ name: 'property_media' })
|
|
36
|
-
], PropertyMedia);
|
|
37
|
-
//# sourceMappingURL=property-media.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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;CAazD,CAAA;AAbY,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;AAMnB;IAJC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,KAAK;KAChB,CAAC;;iDACgB;wBAZP,aAAa;IADzB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;GACtB,aAAa,CAazB"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { User } from './user.entity';
|
|
2
|
-
import { Amenity } from './amenity.entity';
|
|
3
|
-
import { AbstractBaseReviewableEntity } from './common.entity';
|
|
4
|
-
import { PropertyCategory, PropertyStatus } from '../types/property.type';
|
|
5
|
-
import { Currency } from '../types/common.type';
|
|
6
|
-
import { PropertyDocument } from './property-document.entity';
|
|
7
|
-
import { PropertyMedia } from './property-media.entity';
|
|
8
|
-
import { Mortgage } from './mortgage.entity';
|
|
9
|
-
import { PaymentPlan } from './payment-plan.entity';
|
|
10
|
-
import { Contract } from './contract.entity';
|
|
11
|
-
export declare class Property extends AbstractBaseReviewableEntity {
|
|
12
|
-
user: User;
|
|
13
|
-
userId: number;
|
|
14
|
-
documents?: PropertyDocument[];
|
|
15
|
-
amenities: Amenity[];
|
|
16
|
-
media?: PropertyMedia[];
|
|
17
|
-
mortgages?: Mortgage[];
|
|
18
|
-
paymentPlans?: PaymentPlan[];
|
|
19
|
-
contracts?: Contract[];
|
|
20
|
-
displayImage?: PropertyMedia;
|
|
21
|
-
displayImageId: number;
|
|
22
|
-
title: string;
|
|
23
|
-
category: PropertyCategory;
|
|
24
|
-
propertyType: string;
|
|
25
|
-
country: string;
|
|
26
|
-
currency: Currency;
|
|
27
|
-
city: string;
|
|
28
|
-
district: string;
|
|
29
|
-
zipCode: string;
|
|
30
|
-
streetAddress: string;
|
|
31
|
-
nBedrooms: string;
|
|
32
|
-
nBathrooms: string;
|
|
33
|
-
nParkingSpots: string;
|
|
34
|
-
price: number;
|
|
35
|
-
longitude: number;
|
|
36
|
-
latitude: number;
|
|
37
|
-
area: number;
|
|
38
|
-
description: string;
|
|
39
|
-
status: PropertyStatus;
|
|
40
|
-
}
|
|
@@ -1,202 +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.Property = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const user_entity_1 = require("./user.entity");
|
|
15
|
-
const amenity_entity_1 = require("./amenity.entity");
|
|
16
|
-
const common_entity_1 = require("./common.entity");
|
|
17
|
-
const property_type_1 = require("../types/property.type");
|
|
18
|
-
const common_type_1 = require("../types/common.type");
|
|
19
|
-
const property_document_entity_1 = require("./property-document.entity");
|
|
20
|
-
const property_media_entity_1 = require("./property-media.entity");
|
|
21
|
-
const mortgage_entity_1 = require("./mortgage.entity");
|
|
22
|
-
const payment_plan_entity_1 = require("./payment-plan.entity");
|
|
23
|
-
const contract_entity_1 = require("./contract.entity");
|
|
24
|
-
let Property = class Property extends common_entity_1.AbstractBaseReviewableEntity {
|
|
25
|
-
};
|
|
26
|
-
exports.Property = Property;
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
29
|
-
onDelete: 'CASCADE',
|
|
30
|
-
onUpdate: 'CASCADE',
|
|
31
|
-
}),
|
|
32
|
-
(0, typeorm_1.JoinColumn)({ name: 'user_id' }),
|
|
33
|
-
__metadata("design:type", user_entity_1.User)
|
|
34
|
-
], Property.prototype, "user", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ name: 'user_id', nullable: true }),
|
|
37
|
-
__metadata("design:type", Number)
|
|
38
|
-
], Property.prototype, "userId", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, typeorm_1.OneToMany)(() => property_document_entity_1.PropertyDocument, (doc) => doc.property),
|
|
41
|
-
__metadata("design:type", Array)
|
|
42
|
-
], Property.prototype, "documents", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, typeorm_1.ManyToMany)(() => amenity_entity_1.Amenity),
|
|
45
|
-
(0, typeorm_1.JoinTable)(),
|
|
46
|
-
__metadata("design:type", Array)
|
|
47
|
-
], Property.prototype, "amenities", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.OneToMany)(() => property_media_entity_1.PropertyMedia, (media) => media.property),
|
|
50
|
-
__metadata("design:type", Array)
|
|
51
|
-
], Property.prototype, "media", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.OneToMany)(() => mortgage_entity_1.Mortgage, (mortgage) => mortgage.property),
|
|
54
|
-
__metadata("design:type", Array)
|
|
55
|
-
], Property.prototype, "mortgages", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.OneToMany)(() => payment_plan_entity_1.PaymentPlan, (plan) => plan.property),
|
|
58
|
-
__metadata("design:type", Array)
|
|
59
|
-
], Property.prototype, "paymentPlans", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, typeorm_1.OneToMany)(() => contract_entity_1.Contract, (contract) => contract.property),
|
|
62
|
-
__metadata("design:type", Array)
|
|
63
|
-
], Property.prototype, "contracts", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, typeorm_1.OneToOne)(() => property_media_entity_1.PropertyMedia, {
|
|
66
|
-
onDelete: 'SET NULL',
|
|
67
|
-
onUpdate: 'CASCADE'
|
|
68
|
-
}),
|
|
69
|
-
(0, typeorm_1.JoinColumn)({ name: 'display_image_id' }),
|
|
70
|
-
__metadata("design:type", property_media_entity_1.PropertyMedia)
|
|
71
|
-
], Property.prototype, "displayImage", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({
|
|
74
|
-
name: 'display_image_id',
|
|
75
|
-
nullable: true
|
|
76
|
-
}),
|
|
77
|
-
__metadata("design:type", Number)
|
|
78
|
-
], Property.prototype, "displayImageId", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, typeorm_1.Column)({ name: 'title', nullable: true }),
|
|
81
|
-
__metadata("design:type", String)
|
|
82
|
-
], Property.prototype, "title", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, typeorm_1.Column)({
|
|
85
|
-
name: 'category',
|
|
86
|
-
nullable: true,
|
|
87
|
-
type: 'enum',
|
|
88
|
-
enum: property_type_1.PropertyCategory,
|
|
89
|
-
}),
|
|
90
|
-
__metadata("design:type", String)
|
|
91
|
-
], Property.prototype, "category", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, typeorm_1.Column)({
|
|
94
|
-
name: 'property_type',
|
|
95
|
-
nullable: true,
|
|
96
|
-
type: 'enum',
|
|
97
|
-
enum: property_type_1.PropertyType
|
|
98
|
-
}),
|
|
99
|
-
__metadata("design:type", String)
|
|
100
|
-
], Property.prototype, "propertyType", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
(0, typeorm_1.Column)({ name: 'country', nullable: true }),
|
|
103
|
-
__metadata("design:type", String)
|
|
104
|
-
], Property.prototype, "country", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
(0, typeorm_1.Column)({
|
|
107
|
-
name: 'currency',
|
|
108
|
-
nullable: true,
|
|
109
|
-
type: 'enum',
|
|
110
|
-
enum: common_type_1.Currency,
|
|
111
|
-
}),
|
|
112
|
-
__metadata("design:type", String)
|
|
113
|
-
], Property.prototype, "currency", void 0);
|
|
114
|
-
__decorate([
|
|
115
|
-
(0, typeorm_1.Column)({ name: 'city', nullable: true }),
|
|
116
|
-
__metadata("design:type", String)
|
|
117
|
-
], Property.prototype, "city", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
(0, typeorm_1.Column)({ name: 'district', nullable: true }),
|
|
120
|
-
__metadata("design:type", String)
|
|
121
|
-
], Property.prototype, "district", void 0);
|
|
122
|
-
__decorate([
|
|
123
|
-
(0, typeorm_1.Column)({ name: 'zip_code', nullable: true }),
|
|
124
|
-
__metadata("design:type", String)
|
|
125
|
-
], Property.prototype, "zipCode", void 0);
|
|
126
|
-
__decorate([
|
|
127
|
-
(0, typeorm_1.Column)({ name: 'street_address', nullable: true }),
|
|
128
|
-
__metadata("design:type", String)
|
|
129
|
-
], Property.prototype, "streetAddress", void 0);
|
|
130
|
-
__decorate([
|
|
131
|
-
(0, typeorm_1.Column)({ name: 'n_bedrooms', nullable: false }),
|
|
132
|
-
__metadata("design:type", String)
|
|
133
|
-
], Property.prototype, "nBedrooms", void 0);
|
|
134
|
-
__decorate([
|
|
135
|
-
(0, typeorm_1.Column)({ name: 'n_bathrooms', nullable: false }),
|
|
136
|
-
__metadata("design:type", String)
|
|
137
|
-
], Property.prototype, "nBathrooms", void 0);
|
|
138
|
-
__decorate([
|
|
139
|
-
(0, typeorm_1.Column)({ name: 'n_parking_spots', nullable: false }),
|
|
140
|
-
__metadata("design:type", String)
|
|
141
|
-
], Property.prototype, "nParkingSpots", void 0);
|
|
142
|
-
__decorate([
|
|
143
|
-
(0, typeorm_1.Column)({
|
|
144
|
-
name: 'price',
|
|
145
|
-
type: 'double precision',
|
|
146
|
-
scale: 2,
|
|
147
|
-
precision: 20,
|
|
148
|
-
nullable: true,
|
|
149
|
-
}),
|
|
150
|
-
__metadata("design:type", Number)
|
|
151
|
-
], Property.prototype, "price", void 0);
|
|
152
|
-
__decorate([
|
|
153
|
-
(0, typeorm_1.Column)({
|
|
154
|
-
name: 'longitude',
|
|
155
|
-
type: 'double precision',
|
|
156
|
-
scale: 2,
|
|
157
|
-
precision: 20,
|
|
158
|
-
nullable: true,
|
|
159
|
-
}),
|
|
160
|
-
__metadata("design:type", Number)
|
|
161
|
-
], Property.prototype, "longitude", void 0);
|
|
162
|
-
__decorate([
|
|
163
|
-
(0, typeorm_1.Column)({
|
|
164
|
-
name: 'latitude',
|
|
165
|
-
type: 'double precision',
|
|
166
|
-
scale: 2,
|
|
167
|
-
precision: 20,
|
|
168
|
-
nullable: true,
|
|
169
|
-
}),
|
|
170
|
-
__metadata("design:type", Number)
|
|
171
|
-
], Property.prototype, "latitude", void 0);
|
|
172
|
-
__decorate([
|
|
173
|
-
(0, typeorm_1.Column)({
|
|
174
|
-
name: 'area',
|
|
175
|
-
type: 'double precision',
|
|
176
|
-
scale: 2,
|
|
177
|
-
precision: 20,
|
|
178
|
-
nullable: true,
|
|
179
|
-
}),
|
|
180
|
-
__metadata("design:type", Number)
|
|
181
|
-
], Property.prototype, "area", void 0);
|
|
182
|
-
__decorate([
|
|
183
|
-
(0, typeorm_1.Column)({
|
|
184
|
-
name: 'description',
|
|
185
|
-
type: 'text',
|
|
186
|
-
nullable: true
|
|
187
|
-
}),
|
|
188
|
-
__metadata("design:type", String)
|
|
189
|
-
], Property.prototype, "description", void 0);
|
|
190
|
-
__decorate([
|
|
191
|
-
(0, typeorm_1.Column)({
|
|
192
|
-
name: 'status',
|
|
193
|
-
type: 'enum',
|
|
194
|
-
enum: property_type_1.PropertyStatus,
|
|
195
|
-
default: property_type_1.PropertyStatus.PENDING,
|
|
196
|
-
}),
|
|
197
|
-
__metadata("design:type", String)
|
|
198
|
-
], Property.prototype, "status", void 0);
|
|
199
|
-
exports.Property = Property = __decorate([
|
|
200
|
-
(0, typeorm_1.Entity)({ name: 'property' })
|
|
201
|
-
], Property);
|
|
202
|
-
//# sourceMappingURL=property.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1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AE;QACb,QAAQ,EAAE,IAAI;KACf,CAAC;;sCACU;AAOZ;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf,CAAC;;6CACiB;AAQnB;IANC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,8BAAc;QACpB,OAAO,EAAE,8BAAc,CAAC,OAAO;KAChC,CAAC;;wCACqB;mBAvJZ,QAAQ;IADpB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;GAChB,QAAQ,CAwJpB"}
|
|
@@ -1,35 +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.RefreshToken = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const common_pure_entity_1 = require("./common.pure.entity");
|
|
15
|
-
const user_entity_1 = require("./user.entity");
|
|
16
|
-
let RefreshToken = class RefreshToken extends common_pure_entity_1.AbstractBaseEntity {
|
|
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)({ name: 'user_id', nullable: true }),
|
|
26
|
-
__metadata("design:type", Number)
|
|
27
|
-
], RefreshToken.prototype, "userId", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ name: 'token', 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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"refresh_token.entity.js","sourceRoot":"","sources":["../../entities/refresh_token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,6DAA0D;AAC1D,+CAAqC;AAG9B,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,uCAAkB;CAUnD,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,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAC7B;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CAC3C;uBATH,YAAY;IADxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;GACtB,YAAY,CAUxB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Permission } from './permission.entity';
|
|
2
|
-
import { User } from './user.entity';
|
|
3
|
-
import { AbstractBaseEntity } from './common.pure.entity';
|
|
4
|
-
export declare class Role extends AbstractBaseEntity {
|
|
5
|
-
name: string;
|
|
6
|
-
permissions: Permission[];
|
|
7
|
-
users: User[];
|
|
8
|
-
}
|