plac-micro-common 1.3.42 → 1.3.44
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 +5 -1
- package/dist/models/application/application.entity.js +22 -1
- package/dist/types/application.type.d.ts +5 -0
- package/dist/types/application.type.js +7 -1
- package/dist/types/business.type.d.ts +3 -1
- package/dist/types/business.type.js +3 -1
- package/dist/utils/frontend/data.util.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _BaseEntity } from "../_base_entity";
|
|
2
|
-
import { ApplicationStatus, AppPhLaRelation } from "../../types";
|
|
2
|
+
import { AppFormType, ApplicationStatus, AppPhLaRelation } from "../../types";
|
|
3
3
|
import { OrganizationBranchEntity, OrganizationEntity, OrganizationStaffEntity } from "../core";
|
|
4
4
|
import { AppCoverageEntity } from "./app_coverage.entity";
|
|
5
5
|
import { AppPersonEntity } from "./app_person.entity";
|
|
@@ -10,7 +10,11 @@ import { AppDocumentEntity } from "./app_document.entity";
|
|
|
10
10
|
import { AppPaymentEntity } from "./app_payment.entity";
|
|
11
11
|
export declare class ApplicationEntity extends _BaseEntity {
|
|
12
12
|
id: string;
|
|
13
|
+
form_type: AppFormType;
|
|
13
14
|
application_no: string;
|
|
15
|
+
cover_note_no?: string | null;
|
|
16
|
+
policy_no?: string | null;
|
|
17
|
+
receipt_no?: string | null;
|
|
14
18
|
ph_la_relation: AppPhLaRelation;
|
|
15
19
|
external_ref?: string | null;
|
|
16
20
|
legacy_id?: string | null;
|
|
@@ -30,9 +30,30 @@ __decorate([
|
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], ApplicationEntity.prototype, "id", void 0);
|
|
32
32
|
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({
|
|
33
|
+
(0, typeorm_1.Column)({
|
|
34
|
+
type: "varchar",
|
|
35
|
+
length: 10,
|
|
36
|
+
comment: (0, utils_1.enumToCommentString)(types_1.AppFormType),
|
|
37
|
+
default: types_1.AppFormType.FullUnderwriting,
|
|
38
|
+
}),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], ApplicationEntity.prototype, "form_type", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 25, unique: true }),
|
|
34
43
|
__metadata("design:type", String)
|
|
35
44
|
], ApplicationEntity.prototype, "application_no", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 25, nullable: true, unique: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], ApplicationEntity.prototype, "cover_note_no", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 25, nullable: true, unique: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], ApplicationEntity.prototype, "policy_no", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 25, nullable: true, unique: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], ApplicationEntity.prototype, "receipt_no", void 0);
|
|
36
57
|
__decorate([
|
|
37
58
|
(0, typeorm_1.Column)({
|
|
38
59
|
type: "varchar",
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export declare enum AppFormType {
|
|
2
|
+
FullUnderwriting = "full_uw",
|
|
3
|
+
Simplified = "sio"
|
|
4
|
+
}
|
|
1
5
|
export declare enum ApplicationStatus {
|
|
2
6
|
New = "new",// Agent drafting
|
|
3
7
|
Completed = "completed",// Agent completed but not yet submitted
|
|
@@ -15,6 +19,7 @@ export declare enum ApplicationActionType {
|
|
|
15
19
|
Created = "created",
|
|
16
20
|
DraftSaved = "draft_saved",
|
|
17
21
|
Completed = "completed",
|
|
22
|
+
EditCompleted = "edit_completed",
|
|
18
23
|
Submitted = "submitted",
|
|
19
24
|
TakenForReview = "taken_for_review",
|
|
20
25
|
Assigned = "assigned",
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AppPaymentStatus = exports.AppPaymentType = exports.AppDocumentType = exports.UwAnswerValueType = exports.AppCoverageType = exports.AppPhLaRelation = exports.AppPersonRole = exports.ApplicationActionType = exports.ApplicationStatus = void 0;
|
|
3
|
+
exports.AppPaymentStatus = exports.AppPaymentType = exports.AppDocumentType = exports.UwAnswerValueType = exports.AppCoverageType = exports.AppPhLaRelation = exports.AppPersonRole = exports.ApplicationActionType = exports.ApplicationStatus = exports.AppFormType = void 0;
|
|
4
|
+
var AppFormType;
|
|
5
|
+
(function (AppFormType) {
|
|
6
|
+
AppFormType["FullUnderwriting"] = "full_uw";
|
|
7
|
+
AppFormType["Simplified"] = "sio";
|
|
8
|
+
})(AppFormType || (exports.AppFormType = AppFormType = {}));
|
|
4
9
|
var ApplicationStatus;
|
|
5
10
|
(function (ApplicationStatus) {
|
|
6
11
|
ApplicationStatus["New"] = "new";
|
|
@@ -20,6 +25,7 @@ var ApplicationActionType;
|
|
|
20
25
|
ApplicationActionType["Created"] = "created";
|
|
21
26
|
ApplicationActionType["DraftSaved"] = "draft_saved";
|
|
22
27
|
ApplicationActionType["Completed"] = "completed";
|
|
28
|
+
ApplicationActionType["EditCompleted"] = "edit_completed";
|
|
23
29
|
ApplicationActionType["Submitted"] = "submitted";
|
|
24
30
|
ApplicationActionType["TakenForReview"] = "taken_for_review";
|
|
25
31
|
ApplicationActionType["Assigned"] = "assigned";
|
|
@@ -17,7 +17,9 @@ export declare enum ChannelType {
|
|
|
17
17
|
}
|
|
18
18
|
export declare enum DocumentType {
|
|
19
19
|
Application = "application",
|
|
20
|
-
Policy = "policy",
|
|
21
20
|
Claim = "claim",
|
|
21
|
+
CoverNote = "cover_note",
|
|
22
|
+
OfficialReceipt = "official_receipt",
|
|
23
|
+
Policy = "policy",
|
|
22
24
|
Quotation = "quotation"
|
|
23
25
|
}
|
|
@@ -23,7 +23,9 @@ var ChannelType;
|
|
|
23
23
|
var DocumentType;
|
|
24
24
|
(function (DocumentType) {
|
|
25
25
|
DocumentType["Application"] = "application";
|
|
26
|
-
DocumentType["Policy"] = "policy";
|
|
27
26
|
DocumentType["Claim"] = "claim";
|
|
27
|
+
DocumentType["CoverNote"] = "cover_note";
|
|
28
|
+
DocumentType["OfficialReceipt"] = "official_receipt";
|
|
29
|
+
DocumentType["Policy"] = "policy";
|
|
28
30
|
DocumentType["Quotation"] = "quotation";
|
|
29
31
|
})(DocumentType || (exports.DocumentType = DocumentType = {}));
|
|
@@ -5,4 +5,4 @@ export declare function getIdentifierTypeDesc(val: IdentifierType): "National ID
|
|
|
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
7
|
export declare function getAppDocumentTypeDesc(val: AppDocumentType): "National ID" | "Passport" | "Other" | "Application Form" | "Quotation Form" | "Claim Form";
|
|
8
|
-
export declare function getAppActionTypeDesc(val: ApplicationActionType): ApplicationActionType.Created | ApplicationActionType.DraftSaved | ApplicationActionType.Completed | 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";
|
|
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";
|