plac-micro-common 1.3.86 → 1.3.88
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,5 +1,5 @@
|
|
|
1
1
|
import { _BaseEntity } from "../_base_entity";
|
|
2
|
-
import { AppFormType, ApplicationStatus, AppPhLaRelation } from "../../types";
|
|
2
|
+
import { AppFormType, ApplicationStatus, AppPhLaRelation, UWDecisionMetadata, UWDecisionType } from "../../types";
|
|
3
3
|
import { OrganizationBranchEntity, OrganizationEntity, OrganizationStaffEntity, OrgReferralEntity } from "../core";
|
|
4
4
|
import { AppCoverageEntity } from "./app_coverage.entity";
|
|
5
5
|
import { AppPersonEntity } from "./app_person.entity";
|
|
@@ -24,6 +24,7 @@ export declare class ApplicationEntity extends _BaseEntity {
|
|
|
24
24
|
org_referral_id?: string | null;
|
|
25
25
|
owner_org_staff_id: string;
|
|
26
26
|
assigned_org_staff_id?: string | null;
|
|
27
|
+
agent_commission_code?: string | null;
|
|
27
28
|
status: ApplicationStatus;
|
|
28
29
|
completed_at?: Date | null;
|
|
29
30
|
submitted_at?: Date | null;
|
|
@@ -33,6 +34,13 @@ export declare class ApplicationEntity extends _BaseEntity {
|
|
|
33
34
|
rejected_at?: Date | null;
|
|
34
35
|
rejection_reason?: string | null;
|
|
35
36
|
transferred_at?: Date | null;
|
|
37
|
+
uw_decision_type?: UWDecisionType | null;
|
|
38
|
+
additional_premium_amount?: number | null;
|
|
39
|
+
deducted_premium_amount?: number | null;
|
|
40
|
+
uw_decision_remark?: string | null;
|
|
41
|
+
uw_decision_at?: Date | null;
|
|
42
|
+
uw_decision_by?: string | null;
|
|
43
|
+
uw_decision_metadata?: UWDecisionMetadata | null;
|
|
36
44
|
quotation_id?: string | null;
|
|
37
45
|
payment_method_id?: string | null;
|
|
38
46
|
annual_premium_amount?: number | null;
|
|
@@ -102,6 +102,11 @@ __decorate([
|
|
|
102
102
|
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
103
103
|
__metadata("design:type", Object)
|
|
104
104
|
], ApplicationEntity.prototype, "assigned_org_staff_id", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.Index)(),
|
|
107
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
|
|
108
|
+
__metadata("design:type", Object)
|
|
109
|
+
], ApplicationEntity.prototype, "agent_commission_code", void 0);
|
|
105
110
|
__decorate([
|
|
106
111
|
(0, typeorm_1.Index)(),
|
|
107
112
|
(0, typeorm_1.Column)({
|
|
@@ -143,6 +148,52 @@ __decorate([
|
|
|
143
148
|
(0, typeorm_1.Column)({ type: "timestamptz", nullable: true }),
|
|
144
149
|
__metadata("design:type", Object)
|
|
145
150
|
], ApplicationEntity.prototype, "transferred_at", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, typeorm_1.Index)(),
|
|
153
|
+
(0, typeorm_1.Column)({
|
|
154
|
+
type: "varchar",
|
|
155
|
+
length: 30,
|
|
156
|
+
comment: (0, utils_1.enumToCommentString)(types_1.UWDecisionType),
|
|
157
|
+
nullable: true,
|
|
158
|
+
}),
|
|
159
|
+
__metadata("design:type", Object)
|
|
160
|
+
], ApplicationEntity.prototype, "uw_decision_type", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, typeorm_1.Column)({
|
|
163
|
+
type: "numeric",
|
|
164
|
+
precision: 18,
|
|
165
|
+
scale: 2,
|
|
166
|
+
default: 0,
|
|
167
|
+
nullable: true,
|
|
168
|
+
}),
|
|
169
|
+
__metadata("design:type", Object)
|
|
170
|
+
], ApplicationEntity.prototype, "additional_premium_amount", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, typeorm_1.Column)({
|
|
173
|
+
type: "numeric",
|
|
174
|
+
precision: 18,
|
|
175
|
+
scale: 2,
|
|
176
|
+
default: 0,
|
|
177
|
+
nullable: true,
|
|
178
|
+
}),
|
|
179
|
+
__metadata("design:type", Object)
|
|
180
|
+
], ApplicationEntity.prototype, "deducted_premium_amount", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
183
|
+
__metadata("design:type", Object)
|
|
184
|
+
], ApplicationEntity.prototype, "uw_decision_remark", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
(0, typeorm_1.Column)({ type: "timestamptz", nullable: true }),
|
|
187
|
+
__metadata("design:type", Object)
|
|
188
|
+
], ApplicationEntity.prototype, "uw_decision_at", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
191
|
+
__metadata("design:type", Object)
|
|
192
|
+
], ApplicationEntity.prototype, "uw_decision_by", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
195
|
+
__metadata("design:type", Object)
|
|
196
|
+
], ApplicationEntity.prototype, "uw_decision_metadata", void 0);
|
|
146
197
|
__decorate([
|
|
147
198
|
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
148
199
|
__metadata("design:type", Object)
|
|
@@ -62,6 +62,11 @@ export declare enum UnderwritingQuestionComponents {
|
|
|
62
62
|
Q_USA_COMP_1 = "Q-USA-COMP-1",
|
|
63
63
|
Q_USA_COMP_2 = "Q-USA-COMP-2"
|
|
64
64
|
}
|
|
65
|
+
export declare enum UWDecisionType {
|
|
66
|
+
COUNTER_OFFER = "ctof",
|
|
67
|
+
DECLINED_COVERAGE = "d.cvg",
|
|
68
|
+
REJECTED = "rejected"
|
|
69
|
+
}
|
|
65
70
|
export type UWDropdownOption = {
|
|
66
71
|
value: string;
|
|
67
72
|
label: string;
|
|
@@ -75,3 +80,12 @@ export type UWComponentMeta = {
|
|
|
75
80
|
options?: UWDropdownOption[];
|
|
76
81
|
api_key?: UWDropdownApiKey;
|
|
77
82
|
};
|
|
83
|
+
export declare enum DeclinedBenefitType {
|
|
84
|
+
ACCIDENTAL_DEATH = "adb",
|
|
85
|
+
TOTAL_PERMANENT_DISABILITY = "tpd",
|
|
86
|
+
CRITICAL_ILLNESS = "ci"
|
|
87
|
+
}
|
|
88
|
+
export interface UWDecisionMetadata {
|
|
89
|
+
declined_benefits?: DeclinedBenefitType[];
|
|
90
|
+
witness_full_name?: string | null;
|
|
91
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnderwritingQuestionComponents = exports.UnderwritingBaseQuestionCode = exports.UnderwritingQuestionGroupCode = exports.UnderwritingSIOQuestionCode = void 0;
|
|
3
|
+
exports.DeclinedBenefitType = exports.UWDecisionType = exports.UnderwritingQuestionComponents = exports.UnderwritingBaseQuestionCode = exports.UnderwritingQuestionGroupCode = exports.UnderwritingSIOQuestionCode = void 0;
|
|
4
4
|
var UnderwritingSIOQuestionCode;
|
|
5
5
|
(function (UnderwritingSIOQuestionCode) {
|
|
6
6
|
UnderwritingSIOQuestionCode["Q_USA"] = "Q-SIO-USA";
|
|
@@ -74,3 +74,15 @@ var UnderwritingQuestionComponents;
|
|
|
74
74
|
UnderwritingQuestionComponents["Q_USA_COMP_1"] = "Q-USA-COMP-1";
|
|
75
75
|
UnderwritingQuestionComponents["Q_USA_COMP_2"] = "Q-USA-COMP-2";
|
|
76
76
|
})(UnderwritingQuestionComponents || (exports.UnderwritingQuestionComponents = UnderwritingQuestionComponents = {}));
|
|
77
|
+
var UWDecisionType;
|
|
78
|
+
(function (UWDecisionType) {
|
|
79
|
+
UWDecisionType["COUNTER_OFFER"] = "ctof";
|
|
80
|
+
UWDecisionType["DECLINED_COVERAGE"] = "d.cvg";
|
|
81
|
+
UWDecisionType["REJECTED"] = "rejected";
|
|
82
|
+
})(UWDecisionType || (exports.UWDecisionType = UWDecisionType = {}));
|
|
83
|
+
var DeclinedBenefitType;
|
|
84
|
+
(function (DeclinedBenefitType) {
|
|
85
|
+
DeclinedBenefitType["ACCIDENTAL_DEATH"] = "adb";
|
|
86
|
+
DeclinedBenefitType["TOTAL_PERMANENT_DISABILITY"] = "tpd";
|
|
87
|
+
DeclinedBenefitType["CRITICAL_ILLNESS"] = "ci";
|
|
88
|
+
})(DeclinedBenefitType || (exports.DeclinedBenefitType = DeclinedBenefitType = {}));
|