plac-micro-common 1.3.52 → 1.3.53
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/types/pdf-form/base-app-form.type.d.ts +160 -0
- package/dist/types/pdf-form/base-app-form.type.js +2 -0
- package/dist/types/pdf-form/index.d.ts +4 -1
- package/dist/types/pdf-form/index.js +3 -0
- package/dist/types/pdf-form/quotation-form.type.d.ts +56 -0
- package/dist/types/pdf-form/quotation-form.type.js +2 -0
- package/dist/utils/frontend/data.util.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
export interface IBaseAppFormData {
|
|
2
|
+
application_no: string;
|
|
3
|
+
form_type: "PH = LA" | "PH != LA";
|
|
4
|
+
ph_is_not_us_citizen: boolean;
|
|
5
|
+
ph: IPHInfo;
|
|
6
|
+
la: ILAInfo;
|
|
7
|
+
la_lifestyle: ILALifeStyleInfo;
|
|
8
|
+
policy_info: IPolicyInfo;
|
|
9
|
+
beneficiaries: IBeneficiaryInfo[];
|
|
10
|
+
existing_insurance_info: IExistingInsuranceInfo;
|
|
11
|
+
health_info: IHealthInfo;
|
|
12
|
+
signature_info: ISignatureInfo;
|
|
13
|
+
rep_certification_info: IRepCertificationInfo;
|
|
14
|
+
agent_source_info: IAgentSourceInfo;
|
|
15
|
+
}
|
|
16
|
+
interface IPHInfo {
|
|
17
|
+
full_name: string;
|
|
18
|
+
present_address: string;
|
|
19
|
+
contact_info: string;
|
|
20
|
+
ph_la_relationship: string;
|
|
21
|
+
nationality: string;
|
|
22
|
+
identifier_no: string;
|
|
23
|
+
gender: string;
|
|
24
|
+
age: string;
|
|
25
|
+
dob_and_pob: string;
|
|
26
|
+
martial_status: string;
|
|
27
|
+
number_of_children: string;
|
|
28
|
+
name_and_address_of_employer: string;
|
|
29
|
+
job_title: string;
|
|
30
|
+
annual_salary: string;
|
|
31
|
+
}
|
|
32
|
+
interface ILAInfo extends IPHInfo {
|
|
33
|
+
}
|
|
34
|
+
interface ILALifeStyleInfo {
|
|
35
|
+
military_or_flying: boolean;
|
|
36
|
+
diving_or_climbing: boolean;
|
|
37
|
+
parachuting_or_racing: boolean;
|
|
38
|
+
activity_detail_desc: string;
|
|
39
|
+
reside_or_travel_abroad: boolean;
|
|
40
|
+
travel_detail_desc: string;
|
|
41
|
+
}
|
|
42
|
+
interface IPolicyProductInfo {
|
|
43
|
+
product: string;
|
|
44
|
+
sum_assured: string;
|
|
45
|
+
premium: string;
|
|
46
|
+
}
|
|
47
|
+
interface IPolicyInfo {
|
|
48
|
+
products: IPolicyProductInfo[];
|
|
49
|
+
rider: IPolicyProductInfo;
|
|
50
|
+
total_premium: string;
|
|
51
|
+
payment_mode: "Monthly" | "Quarterly" | "Semi-Annually" | "Annually" | "Single";
|
|
52
|
+
payment_method: "Direct Debit" | "Cheque" | "Credit Card" | "Bank Transfer" | "Cash" | "Other";
|
|
53
|
+
cheque_info: string;
|
|
54
|
+
credit_card_info: string;
|
|
55
|
+
credit_card_type: "Visa" | "Master" | "American Express" | "";
|
|
56
|
+
credit_card_expiry_date: string;
|
|
57
|
+
other_payment_method_desc: string;
|
|
58
|
+
}
|
|
59
|
+
interface IBeneficiaryInfo {
|
|
60
|
+
full_name: string;
|
|
61
|
+
age: string;
|
|
62
|
+
relationship: string;
|
|
63
|
+
identifier_and_birth_info: string;
|
|
64
|
+
percentage: string;
|
|
65
|
+
}
|
|
66
|
+
interface IExistingPolicyInfo {
|
|
67
|
+
insurance_company: string;
|
|
68
|
+
type_of_policy: string;
|
|
69
|
+
sum_assured: string;
|
|
70
|
+
}
|
|
71
|
+
interface IExistingInsuranceInfo {
|
|
72
|
+
has_existing_insurance: boolean;
|
|
73
|
+
existing_policy_info: IExistingPolicyInfo[];
|
|
74
|
+
is_intended_to_replace: boolean;
|
|
75
|
+
replacement_detail_desc: string;
|
|
76
|
+
is_rejected_by_other_insurer: boolean;
|
|
77
|
+
rejected_insurance_company: string;
|
|
78
|
+
rejected_policy_type: string;
|
|
79
|
+
rejected_reason: string;
|
|
80
|
+
}
|
|
81
|
+
interface IHereditaryRelativeInfo {
|
|
82
|
+
full_name: string;
|
|
83
|
+
relationship: string;
|
|
84
|
+
illness: string;
|
|
85
|
+
living_or_deceased: string;
|
|
86
|
+
}
|
|
87
|
+
interface IHealthAdditionalQuestionInfo {
|
|
88
|
+
q2: boolean;
|
|
89
|
+
q2_detail: string;
|
|
90
|
+
q3: boolean;
|
|
91
|
+
q3_detail: string;
|
|
92
|
+
q4: boolean;
|
|
93
|
+
q4_detail: string;
|
|
94
|
+
q5: boolean;
|
|
95
|
+
q5_detail: string;
|
|
96
|
+
q6: boolean;
|
|
97
|
+
q6_detail: string;
|
|
98
|
+
q7: boolean;
|
|
99
|
+
q7_detail: string;
|
|
100
|
+
q8: boolean;
|
|
101
|
+
q8_detail: string;
|
|
102
|
+
q9: boolean;
|
|
103
|
+
q9_detail: string;
|
|
104
|
+
q10: boolean;
|
|
105
|
+
q10_detail: string;
|
|
106
|
+
q11: boolean;
|
|
107
|
+
q11_detail: string;
|
|
108
|
+
q12: boolean;
|
|
109
|
+
q12_detail: string;
|
|
110
|
+
q13: boolean;
|
|
111
|
+
q13_detail: string;
|
|
112
|
+
q14: boolean;
|
|
113
|
+
q14_detail: string;
|
|
114
|
+
q15: boolean;
|
|
115
|
+
q15_detail: string;
|
|
116
|
+
q16: boolean;
|
|
117
|
+
q16_detail: string;
|
|
118
|
+
q17_a: boolean;
|
|
119
|
+
q17_a_detail: string;
|
|
120
|
+
q17_b: boolean;
|
|
121
|
+
q17_b_detail: string;
|
|
122
|
+
}
|
|
123
|
+
interface IHealthInfo {
|
|
124
|
+
height: string;
|
|
125
|
+
weight: string;
|
|
126
|
+
is_weight_changed: boolean;
|
|
127
|
+
is_smoke: boolean;
|
|
128
|
+
smoke_detail: string;
|
|
129
|
+
is_drug_or_substance: boolean;
|
|
130
|
+
drug_type: string;
|
|
131
|
+
drug_duration: string;
|
|
132
|
+
drug_stopped: string;
|
|
133
|
+
is_alcohol: boolean;
|
|
134
|
+
alcohol_detail: string;
|
|
135
|
+
is_hereditary_disease: boolean;
|
|
136
|
+
hereditary_relative_info: IHereditaryRelativeInfo[];
|
|
137
|
+
additional_question_info: IHealthAdditionalQuestionInfo;
|
|
138
|
+
}
|
|
139
|
+
interface ISignatureInfo {
|
|
140
|
+
ph_full_name: string;
|
|
141
|
+
ph_signature_date: string;
|
|
142
|
+
la_full_name: string;
|
|
143
|
+
la_signature_date: string;
|
|
144
|
+
agent_full_name: string;
|
|
145
|
+
agent_signature_date: string;
|
|
146
|
+
}
|
|
147
|
+
interface IRepCertificationInfo {
|
|
148
|
+
identifier_no: string;
|
|
149
|
+
date_of_birth: string;
|
|
150
|
+
rep_full_name: string;
|
|
151
|
+
}
|
|
152
|
+
interface IAgentSourceInfo {
|
|
153
|
+
application_no: string;
|
|
154
|
+
client_no: string;
|
|
155
|
+
policy_no: string;
|
|
156
|
+
source_code: string;
|
|
157
|
+
advisor_code: string;
|
|
158
|
+
advisor_contact: string;
|
|
159
|
+
}
|
|
160
|
+
export {};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
export * from "./base-app-form.type";
|
|
1
2
|
export * from "./cover-note-form.type";
|
|
2
3
|
export * from "./official-receipt-form.type";
|
|
4
|
+
export * from "./quotation-form.type";
|
|
3
5
|
export * from "./sio-form.type";
|
|
4
6
|
export declare enum FormDocumentType {
|
|
5
7
|
ApplicationForm = "application_form",
|
|
6
8
|
CoverNote = "cover_note",
|
|
7
|
-
OfficialReceipt = "official_receipt"
|
|
9
|
+
OfficialReceipt = "official_receipt",
|
|
10
|
+
Quotation = "quotation"
|
|
8
11
|
}
|
|
@@ -15,12 +15,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.FormDocumentType = void 0;
|
|
18
|
+
__exportStar(require("./base-app-form.type"), exports);
|
|
18
19
|
__exportStar(require("./cover-note-form.type"), exports);
|
|
19
20
|
__exportStar(require("./official-receipt-form.type"), exports);
|
|
21
|
+
__exportStar(require("./quotation-form.type"), exports);
|
|
20
22
|
__exportStar(require("./sio-form.type"), exports);
|
|
21
23
|
var FormDocumentType;
|
|
22
24
|
(function (FormDocumentType) {
|
|
23
25
|
FormDocumentType["ApplicationForm"] = "application_form";
|
|
24
26
|
FormDocumentType["CoverNote"] = "cover_note";
|
|
25
27
|
FormDocumentType["OfficialReceipt"] = "official_receipt";
|
|
28
|
+
FormDocumentType["Quotation"] = "quotation";
|
|
26
29
|
})(FormDocumentType || (exports.FormDocumentType = FormDocumentType = {}));
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export interface IQuotationFormData {
|
|
2
|
+
header: IQuotationHeaderInfo;
|
|
3
|
+
benefit: IQuotationBenefitInfo;
|
|
4
|
+
signature_info: IQuotationSignatureInfo;
|
|
5
|
+
footer_info: string;
|
|
6
|
+
}
|
|
7
|
+
interface IQuotationHeaderInfo {
|
|
8
|
+
ph_full_name: string;
|
|
9
|
+
la_full_name: string;
|
|
10
|
+
dob_year: string;
|
|
11
|
+
dob_month: string;
|
|
12
|
+
dob_day: string;
|
|
13
|
+
gender: string;
|
|
14
|
+
age: string;
|
|
15
|
+
payment_mode: string;
|
|
16
|
+
currency: string;
|
|
17
|
+
basic: IQuotationProductInfo;
|
|
18
|
+
rider: IQuotationProductInfo;
|
|
19
|
+
total_premium_mode: string;
|
|
20
|
+
total_premium_annual: string;
|
|
21
|
+
total_premium_after_discount: string;
|
|
22
|
+
}
|
|
23
|
+
interface IQuotationProductInfo {
|
|
24
|
+
name: string;
|
|
25
|
+
policy_term: string;
|
|
26
|
+
payment_term: string;
|
|
27
|
+
sum_assured: string;
|
|
28
|
+
premium_mode: string;
|
|
29
|
+
premium_annual: string;
|
|
30
|
+
premium_after_discount: string;
|
|
31
|
+
}
|
|
32
|
+
interface IBenefitRowInfo {
|
|
33
|
+
policy_year: string;
|
|
34
|
+
age: string;
|
|
35
|
+
premium_basic: string;
|
|
36
|
+
premium_rider: string;
|
|
37
|
+
premium_total: string;
|
|
38
|
+
sa_death_tpd_illness: string;
|
|
39
|
+
sa_death_tpd_accident: string;
|
|
40
|
+
sa_ci_early_stage: string;
|
|
41
|
+
sa_ci_later_stage: string;
|
|
42
|
+
guaranteed_cash_value: string;
|
|
43
|
+
}
|
|
44
|
+
interface IQuotationBenefitInfo {
|
|
45
|
+
rows: IBenefitRowInfo[];
|
|
46
|
+
total_guaranteed_cash_value: string;
|
|
47
|
+
}
|
|
48
|
+
interface IQuotationSignatureInfo {
|
|
49
|
+
advisor_name: string;
|
|
50
|
+
advisor_code: string;
|
|
51
|
+
advisor_signature_date: string;
|
|
52
|
+
applicant_name: string;
|
|
53
|
+
printed_date: string;
|
|
54
|
+
expiry_date: string;
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AddressType, AppDocumentType, ApplicationActionType, AppPhLaRelation, ContactType, Gender, IdentifierType } from "../../types";
|
|
2
2
|
export declare function getGenderDesc(val: Gender): "Male" | "Female";
|
|
3
3
|
export declare function getAppPhLaRelationDesc(val: AppPhLaRelation): "Same Person" | "Different Person";
|
|
4
|
-
export declare function getIdentifierTypeDesc(val: IdentifierType): "National ID" | "Passport" | "Birth Certificate" | "Tax ID" | "Company Registration"
|
|
4
|
+
export declare function getIdentifierTypeDesc(val: IdentifierType): "Other" | "National ID" | "Passport" | "Birth Certificate" | "Tax ID" | "Company Registration";
|
|
5
5
|
export declare function getContactTypeDesc(val: ContactType): "Other" | "Phone Number" | "Email" | "Website" | "Social Media";
|
|
6
6
|
export declare function getAddressTypeDesc(val: AddressType): "Other" | "Home" | "Work" | "Billing";
|
|
7
|
-
export declare function getAppDocumentTypeDesc(val: AppDocumentType): "
|
|
7
|
+
export declare function getAppDocumentTypeDesc(val: AppDocumentType): "Other" | "National ID" | "Passport" | "Application Form" | "Quotation Form" | "Claim Form";
|
|
8
8
|
export declare function getAppActionTypeDesc(val: ApplicationActionType): ApplicationActionType.Created | ApplicationActionType.DraftSaved | ApplicationActionType.Completed | ApplicationActionType.EditCompleted | ApplicationActionType.TakenForReview | ApplicationActionType.Assigned | ApplicationActionType.Unassigned | ApplicationActionType.DocumentRemoved | ApplicationActionType.DataUpdated | "Submit" | "Re-Submit" | "Approve" | "Reject" | "Request Edit" | "Request More Documents" | "Cancel" | "Transfer" | "Add Note" | "Upload Document";
|