plac-micro-common 1.2.65 → 1.2.67
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,6 +1,11 @@
|
|
|
1
1
|
import { _BaseEntity } from "../_base_entity";
|
|
2
2
|
import { ApplicationStatus, AppPhLaRelation } from "../../types";
|
|
3
3
|
import { OrganizationBranchEntity, OrganizationEntity, OrganizationStaffEntity } from "../core";
|
|
4
|
+
import { AppCoverageEntity } from "./app_coverage.entity";
|
|
5
|
+
import { AppPersonEntity } from "./app_person.entity";
|
|
6
|
+
import { AppBeneficiaryEntity } from "./app_beneficiary.entity";
|
|
7
|
+
import { AppUnderwritingInfoEntity } from "./app_underwriting_info.entity";
|
|
8
|
+
import { AppUnderwritingAnswerEntity } from "./app_underwriting_answer.entity";
|
|
4
9
|
export declare class ApplicationEntity extends _BaseEntity {
|
|
5
10
|
id: string;
|
|
6
11
|
application_no: string;
|
|
@@ -33,4 +38,9 @@ export declare class ApplicationEntity extends _BaseEntity {
|
|
|
33
38
|
owner_org_staff: OrganizationStaffEntity;
|
|
34
39
|
assigned_org_staff?: OrganizationStaffEntity | null;
|
|
35
40
|
org_branch?: OrganizationBranchEntity | null;
|
|
41
|
+
app_coverages?: AppCoverageEntity[];
|
|
42
|
+
app_persons?: AppPersonEntity[];
|
|
43
|
+
app_beneficiaries?: AppBeneficiaryEntity[];
|
|
44
|
+
app_uw_infos?: AppUnderwritingInfoEntity[];
|
|
45
|
+
app_uw_answers?: AppUnderwritingAnswerEntity[];
|
|
36
46
|
}
|
|
@@ -15,6 +15,11 @@ const _base_entity_1 = require("../_base_entity");
|
|
|
15
15
|
const types_1 = require("../../types");
|
|
16
16
|
const core_1 = require("../core");
|
|
17
17
|
const utils_1 = require("../../utils");
|
|
18
|
+
const app_coverage_entity_1 = require("./app_coverage.entity");
|
|
19
|
+
const app_person_entity_1 = require("./app_person.entity");
|
|
20
|
+
const app_beneficiary_entity_1 = require("./app_beneficiary.entity");
|
|
21
|
+
const app_underwriting_info_entity_1 = require("./app_underwriting_info.entity");
|
|
22
|
+
const app_underwriting_answer_entity_1 = require("./app_underwriting_answer.entity");
|
|
18
23
|
let ApplicationEntity = class ApplicationEntity extends _base_entity_1._BaseEntity {
|
|
19
24
|
};
|
|
20
25
|
exports.ApplicationEntity = ApplicationEntity;
|
|
@@ -170,6 +175,32 @@ __decorate([
|
|
|
170
175
|
(0, typeorm_1.JoinColumn)({ name: "org_branch_id" }),
|
|
171
176
|
__metadata("design:type", Object)
|
|
172
177
|
], ApplicationEntity.prototype, "org_branch", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
(0, typeorm_1.OneToMany)(() => app_coverage_entity_1.AppCoverageEntity, (c) => c.application, { nullable: true }),
|
|
180
|
+
__metadata("design:type", Array)
|
|
181
|
+
], ApplicationEntity.prototype, "app_coverages", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, typeorm_1.OneToMany)(() => app_person_entity_1.AppPersonEntity, (p) => p.application, { nullable: true }),
|
|
184
|
+
__metadata("design:type", Array)
|
|
185
|
+
], ApplicationEntity.prototype, "app_persons", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
(0, typeorm_1.OneToMany)(() => app_beneficiary_entity_1.AppBeneficiaryEntity, (b) => b.application, {
|
|
188
|
+
nullable: true,
|
|
189
|
+
}),
|
|
190
|
+
__metadata("design:type", Array)
|
|
191
|
+
], ApplicationEntity.prototype, "app_beneficiaries", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
(0, typeorm_1.OneToMany)(() => app_underwriting_info_entity_1.AppUnderwritingInfoEntity, (r) => r.application, {
|
|
194
|
+
nullable: true,
|
|
195
|
+
}),
|
|
196
|
+
__metadata("design:type", Array)
|
|
197
|
+
], ApplicationEntity.prototype, "app_uw_infos", void 0);
|
|
198
|
+
__decorate([
|
|
199
|
+
(0, typeorm_1.OneToMany)(() => app_underwriting_answer_entity_1.AppUnderwritingAnswerEntity, (r) => r.application, {
|
|
200
|
+
nullable: true,
|
|
201
|
+
}),
|
|
202
|
+
__metadata("design:type", Array)
|
|
203
|
+
], ApplicationEntity.prototype, "app_uw_answers", void 0);
|
|
173
204
|
exports.ApplicationEntity = ApplicationEntity = __decorate([
|
|
174
205
|
(0, typeorm_1.Entity)({ schema: "application", name: "applications" }),
|
|
175
206
|
(0, typeorm_1.Unique)("uq_application_org_app_no", ["org_id", "application_no"])
|
|
@@ -25,7 +25,7 @@ __decorate([
|
|
|
25
25
|
__metadata("design:type", String)
|
|
26
26
|
], QuotationEntity.prototype, "id", void 0);
|
|
27
27
|
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ length: 30, unique: true, nullable: true }),
|
|
28
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 30, unique: true, nullable: true }),
|
|
29
29
|
__metadata("design:type", Object)
|
|
30
30
|
], QuotationEntity.prototype, "quotation_no", void 0);
|
|
31
31
|
__decorate([
|