@valentine-efagene/qshelter-common 1.2.8 → 1.2.10
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,8 +1,7 @@
|
|
|
1
|
-
import { User } from './user.entity';
|
|
2
1
|
import { DocumentStatus } from '../types/common.type';
|
|
3
2
|
import { AbstractTenantAwareEntity } from './common.pure.entity';
|
|
4
3
|
export declare abstract class AbstractBaseReviewableEntity extends AbstractTenantAwareEntity {
|
|
5
|
-
reviewer:
|
|
4
|
+
reviewer: any;
|
|
6
5
|
reviewedAt: string;
|
|
7
6
|
}
|
|
8
7
|
export declare abstract class AbstractBaseDocumentEntity extends AbstractBaseReviewableEntity {
|
|
@@ -10,7 +10,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AbstractBaseMediaEntity = exports.AbstractBaseDocumentEntity = exports.AbstractBaseReviewableEntity = void 0;
|
|
13
|
-
const user_entity_1 = require("./user.entity");
|
|
14
13
|
const typeorm_1 = require("typeorm");
|
|
15
14
|
const common_type_1 = require("../types/common.type");
|
|
16
15
|
const common_pure_entity_1 = require("./common.pure.entity");
|
|
@@ -18,9 +17,9 @@ class AbstractBaseReviewableEntity extends common_pure_entity_1.AbstractTenantAw
|
|
|
18
17
|
}
|
|
19
18
|
exports.AbstractBaseReviewableEntity = AbstractBaseReviewableEntity;
|
|
20
19
|
__decorate([
|
|
21
|
-
(0, typeorm_1.ManyToOne)(
|
|
20
|
+
(0, typeorm_1.ManyToOne)('User', { eager: true }),
|
|
22
21
|
(0, typeorm_1.JoinColumn)({ name: 'reviewed_by' }),
|
|
23
|
-
__metadata("design:type",
|
|
22
|
+
__metadata("design:type", Object)
|
|
24
23
|
], AbstractBaseReviewableEntity.prototype, "reviewer", void 0);
|
|
25
24
|
__decorate([
|
|
26
25
|
(0, typeorm_1.Column)({ name: 'reviewed_at', type: 'timestamp', nullable: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.entity.js","sourceRoot":"","sources":["../../entities/common.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"common.entity.js","sourceRoot":"","sources":["../../entities/common.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAIiB;AACjB,sDAAsD;AACtD,6DAAiE;AAEjE,MAAsB,4BAA6B,SAAQ,8CAAyB;CAOnF;AAPD,oEAOC;AAJC;IAFC,IAAA,mBAAS,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAClC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;8DACtB;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEAChD;AAGrB,MAAsB,0BAA2B,SAAQ,4BAA4B;CAuBpF;AAvBD,gEAuBC;AAhBC;IANC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,4BAAc;QACpB,OAAO,EAAE,4BAAc,CAAC,OAAO;KAChC,CAAC;;0DACqB;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DAC5B;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;uDAC3C;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+DAC5B;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDAC5B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;;wDACnD;AAGd,MAAsB,uBAAwB,SAAQ,0BAA0B;CAG/E;AAHD,0DAGC"}
|