@valentine-efagene/qshelter-common 1.2.6 → 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.
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { PropertyDocument } from './property-document.entity';
|
|
2
|
-
import { PropertyMedia } from './property-media.entity';
|
|
3
1
|
import { User } from './user.entity';
|
|
4
2
|
import { Amenity } from './amenity.entity';
|
|
5
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';
|
|
6
8
|
import { Mortgage } from './mortgage.entity';
|
|
7
9
|
import { PaymentPlan } from './payment-plan.entity';
|
|
8
10
|
import { Contract } from './contract.entity';
|
|
9
|
-
import { PropertyCategory, PropertyStatus } from '../types/property.type';
|
|
10
|
-
import { Currency } from '../types/common.type';
|
|
11
11
|
export declare class Property extends AbstractBaseReviewableEntity {
|
|
12
12
|
user: User;
|
|
13
13
|
userId: number;
|
|
14
|
-
documents
|
|
14
|
+
documents?: PropertyDocument[];
|
|
15
15
|
amenities: Amenity[];
|
|
16
|
-
media
|
|
17
|
-
mortgages
|
|
18
|
-
paymentPlans
|
|
19
|
-
contracts
|
|
20
|
-
displayImage
|
|
16
|
+
media?: PropertyMedia[];
|
|
17
|
+
mortgages?: Mortgage[];
|
|
18
|
+
paymentPlans?: PaymentPlan[];
|
|
19
|
+
contracts?: Contract[];
|
|
20
|
+
displayImage?: PropertyMedia;
|
|
21
21
|
displayImageId: number;
|
|
22
22
|
title: string;
|
|
23
23
|
category: PropertyCategory;
|
|
@@ -11,16 +11,16 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Property = void 0;
|
|
13
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
14
|
const user_entity_1 = require("./user.entity");
|
|
17
15
|
const amenity_entity_1 = require("./amenity.entity");
|
|
18
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");
|
|
19
21
|
const mortgage_entity_1 = require("./mortgage.entity");
|
|
20
22
|
const payment_plan_entity_1 = require("./payment-plan.entity");
|
|
21
23
|
const contract_entity_1 = require("./contract.entity");
|
|
22
|
-
const property_type_1 = require("../types/property.type");
|
|
23
|
-
const common_type_1 = require("../types/common.type");
|
|
24
24
|
let Property = class Property extends common_entity_1.AbstractBaseReviewableEntity {
|
|
25
25
|
};
|
|
26
26
|
exports.Property = Property;
|
|
@@ -37,7 +37,7 @@ __decorate([
|
|
|
37
37
|
__metadata("design:type", Number)
|
|
38
38
|
], Property.prototype, "userId", void 0);
|
|
39
39
|
__decorate([
|
|
40
|
-
(0, typeorm_1.OneToMany)(() => property_document_entity_1.PropertyDocument, (
|
|
40
|
+
(0, typeorm_1.OneToMany)(() => property_document_entity_1.PropertyDocument, (doc) => doc.property),
|
|
41
41
|
__metadata("design:type", Array)
|
|
42
42
|
], Property.prototype, "documents", void 0);
|
|
43
43
|
__decorate([
|
|
@@ -46,7 +46,7 @@ __decorate([
|
|
|
46
46
|
__metadata("design:type", Array)
|
|
47
47
|
], Property.prototype, "amenities", void 0);
|
|
48
48
|
__decorate([
|
|
49
|
-
(0, typeorm_1.OneToMany)(() => property_media_entity_1.PropertyMedia, (
|
|
49
|
+
(0, typeorm_1.OneToMany)(() => property_media_entity_1.PropertyMedia, (media) => media.property),
|
|
50
50
|
__metadata("design:type", Array)
|
|
51
51
|
], Property.prototype, "media", void 0);
|
|
52
52
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property.entity.js","sourceRoot":"","sources":["../../entities/property.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4G;AAC5G
|
|
1
|
+
{"version":3,"file":"property.entity.js","sourceRoot":"","sources":["../../entities/property.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4G;AAC5G,+CAAqC;AACrC,qDAA2C;AAC3C,mDAA+D;AAC/D,0DAAwF;AACxF,sDAAgD;AAChD,yEAA8D;AAC9D,mEAAwD;AACxD,uDAA6C;AAC7C,+DAAoD;AACpD,uDAA6C;AAGtC,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,4CAA4B;CAwJzD,CAAA;AAxJY,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,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC7B;AAMf;IAJC,IAAA,mBAAS,EACR,GAAG,EAAE,CAAC,2CAAgB,EACtB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CACtB;;2CAC8B;AAI/B;IAFC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;IACzB,IAAA,mBAAS,GAAE;;2CACQ;AAOpB;IALC,IAAA,mBAAS,EACR,GAAG,EAAE,CAAC,qCAAa,EACnB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAC1B;;uCAEuB;AAGxB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,EAAE,CAAC,Q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