plac-micro-common 1.3.98 → 1.3.100
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/models/application/application.entity.d.ts +2 -1
- package/dist/models/application/application.entity.js +9 -0
- package/dist/types/application.type.d.ts +5 -0
- package/dist/types/application.type.js +7 -1
- package/dist/types/report/rpt_cover_note.type.d.ts +5 -0
- package/dist/utils/frontend/data.util.d.ts +4 -3
- package/dist/utils/frontend/data.util.js +13 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _BaseEntity } from "../_base_entity";
|
|
2
|
-
import { AppFormType, ApplicationStatus, AppPhLaRelation, UWDecisionMetadata, UWDecisionType } from "../../types";
|
|
2
|
+
import { AppFormType, ApplicationStatus, AppPhLaRelation, AppSourceType, 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";
|
|
@@ -12,6 +12,7 @@ import { CustomerLoanInfoEntity } from "../customer";
|
|
|
12
12
|
export declare class ApplicationEntity extends _BaseEntity {
|
|
13
13
|
id: string;
|
|
14
14
|
form_type: AppFormType;
|
|
15
|
+
source_type: AppSourceType;
|
|
15
16
|
application_no: string;
|
|
16
17
|
cover_note_no?: string | null;
|
|
17
18
|
policy_no?: string | null;
|
|
@@ -39,6 +39,15 @@ __decorate([
|
|
|
39
39
|
}),
|
|
40
40
|
__metadata("design:type", String)
|
|
41
41
|
], ApplicationEntity.prototype, "form_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({
|
|
44
|
+
type: "varchar",
|
|
45
|
+
length: 25,
|
|
46
|
+
default: types_1.AppSourceType.Banca,
|
|
47
|
+
comment: (0, utils_1.enumToCommentString)(types_1.AppSourceType),
|
|
48
|
+
}),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], ApplicationEntity.prototype, "source_type", void 0);
|
|
42
51
|
__decorate([
|
|
43
52
|
(0, typeorm_1.Column)({ type: "varchar", length: 25, unique: true }),
|
|
44
53
|
__metadata("design:type", String)
|
|
@@ -2,6 +2,11 @@ export declare enum AppFormType {
|
|
|
2
2
|
Base = "base",
|
|
3
3
|
Simplified = "sio"
|
|
4
4
|
}
|
|
5
|
+
export declare enum AppSourceType {
|
|
6
|
+
Banca = "banca",
|
|
7
|
+
PersonalSales = "personal",
|
|
8
|
+
Agency = "agency"
|
|
9
|
+
}
|
|
5
10
|
export declare enum ApplicationStatus {
|
|
6
11
|
New = "new",// Agent drafting
|
|
7
12
|
Completed = "completed",// Agent completed but not yet submitted
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaymentMode = exports.CreditCardType = exports.PaymentMethod = exports.AppPaymentStatus = exports.AppPaymentType = exports.AppDocumentType = exports.UwAnswerValueType = exports.AppCoverageType = exports.AppPhLaRelation = exports.AppPersonRole = exports.ApplicationActionType = exports.ApplicationStatus = exports.AppFormType = void 0;
|
|
3
|
+
exports.PaymentMode = exports.CreditCardType = exports.PaymentMethod = exports.AppPaymentStatus = exports.AppPaymentType = exports.AppDocumentType = exports.UwAnswerValueType = exports.AppCoverageType = exports.AppPhLaRelation = exports.AppPersonRole = exports.ApplicationActionType = exports.ApplicationStatus = exports.AppSourceType = exports.AppFormType = void 0;
|
|
4
4
|
var AppFormType;
|
|
5
5
|
(function (AppFormType) {
|
|
6
6
|
AppFormType["Base"] = "base";
|
|
7
7
|
AppFormType["Simplified"] = "sio";
|
|
8
8
|
})(AppFormType || (exports.AppFormType = AppFormType = {}));
|
|
9
|
+
var AppSourceType;
|
|
10
|
+
(function (AppSourceType) {
|
|
11
|
+
AppSourceType["Banca"] = "banca";
|
|
12
|
+
AppSourceType["PersonalSales"] = "personal";
|
|
13
|
+
AppSourceType["Agency"] = "agency";
|
|
14
|
+
})(AppSourceType || (exports.AppSourceType = AppSourceType = {}));
|
|
9
15
|
var ApplicationStatus;
|
|
10
16
|
(function (ApplicationStatus) {
|
|
11
17
|
ApplicationStatus["New"] = "new";
|
|
@@ -16,4 +16,9 @@ export interface ReportCoverNoteRow {
|
|
|
16
16
|
branch_code?: string | null;
|
|
17
17
|
branch_name?: string | null;
|
|
18
18
|
remark?: string | null;
|
|
19
|
+
policy_year?: string | null;
|
|
20
|
+
basic_premium: number;
|
|
21
|
+
extra_premium: number;
|
|
22
|
+
ia_code?: string | null;
|
|
23
|
+
ia_full_name?: string | null;
|
|
19
24
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { AddressType, AppDocumentType, ApplicationActionType, AppPhLaRelation, ChannelType, ContactType, Gender, IdentifierType, OrgType, StaffStatus, StaffType } from "../../types";
|
|
1
|
+
import { AddressType, AppDocumentType, ApplicationActionType, AppPhLaRelation, AppSourceType, ChannelType, ContactType, Gender, IdentifierType, OrgType, StaffStatus, StaffType } from "../../types";
|
|
2
2
|
export declare function getGenderDesc(val: Gender): "Male" | "Female";
|
|
3
|
+
export declare function getAppSourceTypeDesc(val: AppSourceType): "Banca" | "Personal Sales" | "Agency";
|
|
3
4
|
export declare function getAppPhLaRelationDesc(val: AppPhLaRelation): "PH = LA" | "PH != LA";
|
|
4
5
|
export declare function getIdentifierTypeDesc(val: IdentifierType): "Other" | "National ID" | "Passport" | "Birth Certificate" | "Tax ID" | "Company Registration";
|
|
5
6
|
export declare function getContactTypeDesc(val: ContactType): "Other" | "Phone Number" | "Email" | "Website" | "Social Media";
|
|
6
7
|
export declare function getAddressTypeDesc(val: AddressType): "Other" | AddressType.PlaceOfBirth | "Home" | "Work" | "Billing";
|
|
7
8
|
export declare function getAppDocumentTypeDesc(val: AppDocumentType): "Other" | "National ID" | "Passport" | "Application Form" | "Quotation Form" | "Claim Form";
|
|
8
9
|
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";
|
|
9
|
-
export declare function getOrgTypeDesc(val: OrgType): "Internal" | "Bank" | "Micro Finance" | "
|
|
10
|
-
export declare function getChannelTypeDesc(val: ChannelType): "Other" | "
|
|
10
|
+
export declare function getOrgTypeDesc(val: OrgType): "Agency" | "Internal" | "Bank" | "Micro Finance" | "Broker";
|
|
11
|
+
export declare function getChannelTypeDesc(val: ChannelType): "Other" | "Agency" | "Bank" | "Broker" | "Direct" | "Online" | "Partner" | "Telesales";
|
|
11
12
|
export declare function getStaffTypeDesc(val: StaffType): "Other" | "Employee" | "Contractor" | "Intern";
|
|
12
13
|
export declare function getStaffStatusDesc(val: StaffStatus): "Active" | "Suspended" | "Resigned" | "Terminated";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getGenderDesc = getGenderDesc;
|
|
4
|
+
exports.getAppSourceTypeDesc = getAppSourceTypeDesc;
|
|
4
5
|
exports.getAppPhLaRelationDesc = getAppPhLaRelationDesc;
|
|
5
6
|
exports.getIdentifierTypeDesc = getIdentifierTypeDesc;
|
|
6
7
|
exports.getContactTypeDesc = getContactTypeDesc;
|
|
@@ -22,6 +23,18 @@ function getGenderDesc(val) {
|
|
|
22
23
|
return val;
|
|
23
24
|
}
|
|
24
25
|
}
|
|
26
|
+
function getAppSourceTypeDesc(val) {
|
|
27
|
+
switch (val) {
|
|
28
|
+
case types_1.AppSourceType.Banca:
|
|
29
|
+
return "Banca";
|
|
30
|
+
case types_1.AppSourceType.PersonalSales:
|
|
31
|
+
return "Personal Sales";
|
|
32
|
+
case types_1.AppSourceType.Agency:
|
|
33
|
+
return "Agency";
|
|
34
|
+
default:
|
|
35
|
+
return val;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
25
38
|
function getAppPhLaRelationDesc(val) {
|
|
26
39
|
switch (val) {
|
|
27
40
|
case types_1.AppPhLaRelation.SamePerson:
|