plac-micro-common 1.3.114 → 1.3.116
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,6 @@
|
|
|
1
1
|
import { _BaseEntity } from "../_base_entity";
|
|
2
2
|
import { AppFormType, ApplicationStatus, AppPhLaRelation, AppSourceType, UWDecisionMetadata, UWDecisionType } from "../../types";
|
|
3
|
-
import { OrganizationBranchEntity, OrganizationEntity, OrganizationStaffEntity, OrgReferralEntity, SourceCodeEntity, SourceSubTypeEntity, SourceTypeEntity } from "../core";
|
|
3
|
+
import { OrganizationBranchEntity, OrganizationEntity, OrganizationStaffEntity, OrgReferralEntity, PromotionEntity, SourceCodeEntity, SourceSubTypeEntity, SourceTypeEntity } from "../core";
|
|
4
4
|
import { AppCoverageEntity } from "./app_coverage.entity";
|
|
5
5
|
import { AppPersonEntity } from "./app_person.entity";
|
|
6
6
|
import { AppBeneficiaryEntity } from "./app_beneficiary.entity";
|
|
@@ -26,6 +26,7 @@ export declare class ApplicationEntity extends _BaseEntity {
|
|
|
26
26
|
org_id: string;
|
|
27
27
|
org_branch_id?: string | null;
|
|
28
28
|
channel_id?: string | null;
|
|
29
|
+
promotion_id?: string | null;
|
|
29
30
|
org_referral_id?: string | null;
|
|
30
31
|
owner_org_staff_id: string;
|
|
31
32
|
assigned_org_staff_id?: string | null;
|
|
@@ -81,4 +82,5 @@ export declare class ApplicationEntity extends _BaseEntity {
|
|
|
81
82
|
app_uw_answers?: AppUnderwritingAnswerEntity[];
|
|
82
83
|
app_documents?: AppDocumentEntity[];
|
|
83
84
|
app_payments?: AppPaymentEntity[];
|
|
85
|
+
promotion?: PromotionEntity | null;
|
|
84
86
|
}
|
|
@@ -109,6 +109,11 @@ __decorate([
|
|
|
109
109
|
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
110
110
|
__metadata("design:type", Object)
|
|
111
111
|
], ApplicationEntity.prototype, "channel_id", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Index)(),
|
|
114
|
+
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
115
|
+
__metadata("design:type", Object)
|
|
116
|
+
], ApplicationEntity.prototype, "promotion_id", void 0);
|
|
112
117
|
__decorate([
|
|
113
118
|
(0, typeorm_1.Index)(),
|
|
114
119
|
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
@@ -399,6 +404,11 @@ __decorate([
|
|
|
399
404
|
(0, typeorm_1.OneToMany)(() => app_payment_entity_1.AppPaymentEntity, (d) => d.application, { nullable: true }),
|
|
400
405
|
__metadata("design:type", Array)
|
|
401
406
|
], ApplicationEntity.prototype, "app_payments", void 0);
|
|
407
|
+
__decorate([
|
|
408
|
+
(0, typeorm_1.ManyToOne)(() => core_1.PromotionEntity, { nullable: true, onDelete: "SET NULL" }),
|
|
409
|
+
(0, typeorm_1.JoinColumn)({ name: "promotion_id" }),
|
|
410
|
+
__metadata("design:type", Object)
|
|
411
|
+
], ApplicationEntity.prototype, "promotion", void 0);
|
|
402
412
|
exports.ApplicationEntity = ApplicationEntity = __decorate([
|
|
403
413
|
(0, typeorm_1.Entity)({ schema: "application", name: "applications" })
|
|
404
414
|
], ApplicationEntity);
|
|
@@ -31,6 +31,10 @@ __decorate([
|
|
|
31
31
|
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
32
32
|
__metadata("design:type", Object)
|
|
33
33
|
], PromotionEntity.prototype, "name_kh", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], PromotionEntity.prototype, "description", void 0);
|
|
34
38
|
__decorate([
|
|
35
39
|
(0, typeorm_1.Column)({ type: "bool", default: true }),
|
|
36
40
|
__metadata("design:type", Boolean)
|