@valentine-efagene/qshelter-common 1.2.6 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/index.d.ts +2 -2
- package/dist/entities/index.js +2 -2
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/property.entity.d.ts +10 -10
- package/dist/entities/property.entity.js +6 -6
- package/dist/entities/property.entity.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
export * from './common.pure.entity';
|
|
2
|
+
export * from './common.entity';
|
|
1
3
|
export * from './TenantAwareEntity';
|
|
2
4
|
export * from './TenantAwareRepository';
|
|
3
5
|
export * from './amenity.entity';
|
|
4
|
-
export * from './common.entity';
|
|
5
|
-
export * from './common.pure.entity';
|
|
6
6
|
export * from './contract-document.entity';
|
|
7
7
|
export * from './contract.entity';
|
|
8
8
|
export * from './device_endpoint.entity';
|
package/dist/entities/index.js
CHANGED
|
@@ -14,11 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./common.pure.entity"), exports);
|
|
18
|
+
__exportStar(require("./common.entity"), exports);
|
|
17
19
|
__exportStar(require("./TenantAwareEntity"), exports);
|
|
18
20
|
__exportStar(require("./TenantAwareRepository"), exports);
|
|
19
21
|
__exportStar(require("./amenity.entity"), exports);
|
|
20
|
-
__exportStar(require("./common.entity"), exports);
|
|
21
|
-
__exportStar(require("./common.pure.entity"), exports);
|
|
22
22
|
__exportStar(require("./contract-document.entity"), exports);
|
|
23
23
|
__exportStar(require("./contract.entity"), exports);
|
|
24
24
|
__exportStar(require("./device_endpoint.entity"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,uDAAqC;AACrC,kDAAgC;AAChC,sDAAoC;AACpC,0DAAwC;AAGxC,mDAAiC;AACjC,6DAA2C;AAC3C,oDAAkC;AAClC,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,4EAA0D;AAC1D,wEAAsD;AACtD,gEAA8C;AAC9C,yDAAuC;AACvC,qEAAmD;AACnD,+DAA6C;AAC7C,yDAAuC;AACvC,oDAAkC;AAClC,iEAA+C;AAC/C,+DAA6C;AAC7C,wDAAsC;AACtC,4DAA0C;AAC1C,mDAAiC;AACjC,sDAAoC;AACpC,6DAA2C;AAC3C,0DAAwC;AACxC,oDAAkC;AAClC,yDAAuC;AACvC,gDAA8B;AAC9B,oDAAkC;AAClC,kDAAgC;AAChC,kDAAgC;AAChC,uDAAqC;AACrC,gDAA8B;AAC9B,4DAA0C;AAC1C,kDAAgC"}
|
|
@@ -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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