plac-micro-common 1.3.103 → 1.3.105
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/app_person.entity.d.ts +2 -0
- package/dist/models/application/app_person.entity.js +8 -0
- package/dist/models/application/application.entity.d.ts +1 -0
- package/dist/models/application/application.entity.js +4 -0
- package/dist/models/customer/customer_individual_profile.entity.d.ts +1 -0
- package/dist/models/customer/customer_individual_profile.entity.js +4 -0
- package/dist/models/quotation/quotation.entity.d.ts +4 -1
- package/dist/models/quotation/quotation.entity.js +17 -0
- package/dist/types/upload.type.d.ts +2 -1
- package/dist/types/upload.type.js +1 -0
- package/package.json +1 -1
- package/pnpm-workspace.yaml +2 -0
|
@@ -20,6 +20,8 @@ export declare class AppPersonEntity extends _BaseEntity {
|
|
|
20
20
|
nationality_id?: string | null;
|
|
21
21
|
marital_status_id?: string | null;
|
|
22
22
|
occupation_id?: string | null;
|
|
23
|
+
occupation_detail?: string | null;
|
|
24
|
+
number_of_children?: number | null;
|
|
23
25
|
identifier_type?: IdentifierType | null;
|
|
24
26
|
identifier_no?: string | null;
|
|
25
27
|
phone_number?: string | null;
|
|
@@ -92,6 +92,14 @@ __decorate([
|
|
|
92
92
|
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
93
93
|
__metadata("design:type", Object)
|
|
94
94
|
], AppPersonEntity.prototype, "occupation_id", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
97
|
+
__metadata("design:type", Object)
|
|
98
|
+
], AppPersonEntity.prototype, "occupation_detail", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
101
|
+
__metadata("design:type", Object)
|
|
102
|
+
], AppPersonEntity.prototype, "number_of_children", void 0);
|
|
95
103
|
__decorate([
|
|
96
104
|
(0, typeorm_1.Index)(),
|
|
97
105
|
(0, typeorm_1.Column)({
|
|
@@ -61,6 +61,7 @@ export declare class ApplicationEntity extends _BaseEntity {
|
|
|
61
61
|
reviewed_remark?: string | null;
|
|
62
62
|
is_active: boolean;
|
|
63
63
|
is_migrated: boolean;
|
|
64
|
+
metadata?: Record<string, any> | null;
|
|
64
65
|
org: OrganizationEntity;
|
|
65
66
|
owner_org_staff: OrganizationStaffEntity;
|
|
66
67
|
assigned_org_staff?: OrganizationStaffEntity | null;
|
|
@@ -298,6 +298,10 @@ __decorate([
|
|
|
298
298
|
(0, typeorm_1.Column)({ type: "boolean", default: false }),
|
|
299
299
|
__metadata("design:type", Boolean)
|
|
300
300
|
], ApplicationEntity.prototype, "is_migrated", void 0);
|
|
301
|
+
__decorate([
|
|
302
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
303
|
+
__metadata("design:type", Object)
|
|
304
|
+
], ApplicationEntity.prototype, "metadata", void 0);
|
|
301
305
|
__decorate([
|
|
302
306
|
(0, typeorm_1.ManyToOne)(() => core_1.OrganizationEntity, { onDelete: "RESTRICT" }),
|
|
303
307
|
(0, typeorm_1.JoinColumn)({ name: "org_id" }),
|
|
@@ -14,6 +14,7 @@ export declare class CustomerIndividualProfileEntity extends _BaseEntity {
|
|
|
14
14
|
marital_status_id?: string | null;
|
|
15
15
|
nationality_id?: string | null;
|
|
16
16
|
occupation_id?: string | null;
|
|
17
|
+
number_of_children?: number | null;
|
|
17
18
|
customer: CustomerEntity;
|
|
18
19
|
marital_status?: MaritalStatusEntity;
|
|
19
20
|
nationality?: NationalityEntity;
|
|
@@ -69,6 +69,10 @@ __decorate([
|
|
|
69
69
|
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
70
70
|
__metadata("design:type", Object)
|
|
71
71
|
], CustomerIndividualProfileEntity.prototype, "occupation_id", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], CustomerIndividualProfileEntity.prototype, "number_of_children", void 0);
|
|
72
76
|
__decorate([
|
|
73
77
|
(0, typeorm_1.OneToOne)(() => customer_entity_1.CustomerEntity, (c) => c.individual_profile, {
|
|
74
78
|
onDelete: "CASCADE",
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { _BaseEntity } from "../_base_entity";
|
|
2
|
-
import { Gender, QuotationStatus } from "../../types";
|
|
2
|
+
import { AppPhLaRelation, Gender, QuotationStatus } from "../../types";
|
|
3
3
|
import { QuotationCalculationLogEntity } from "./quotation_calculation_log.entity";
|
|
4
4
|
import { CustomerEntity } from "../customer";
|
|
5
5
|
import { OrganizationEntity, OrganizationStaffEntity, PaymentModeEntity, ProductEntity, PromotionEntity, RiderEntity, TermEntity } from "../core";
|
|
6
6
|
export declare class QuotationEntity extends _BaseEntity {
|
|
7
7
|
id: string;
|
|
8
8
|
quotation_no?: string | null;
|
|
9
|
+
legacy_id?: string | null;
|
|
9
10
|
status: QuotationStatus;
|
|
10
11
|
calculation_log_id?: string | null;
|
|
11
12
|
product_id: string;
|
|
@@ -15,6 +16,7 @@ export declare class QuotationEntity extends _BaseEntity {
|
|
|
15
16
|
term_id: string;
|
|
16
17
|
sum_assured: number;
|
|
17
18
|
customer_id?: string;
|
|
19
|
+
ph_la_relation: AppPhLaRelation;
|
|
18
20
|
date_of_birth: string;
|
|
19
21
|
gender: Gender;
|
|
20
22
|
ph_first_name: string;
|
|
@@ -33,6 +35,7 @@ export declare class QuotationEntity extends _BaseEntity {
|
|
|
33
35
|
org_id?: string;
|
|
34
36
|
org_staff_id?: string | null;
|
|
35
37
|
branch_id?: string | null;
|
|
38
|
+
metadata?: Record<string, any> | null;
|
|
36
39
|
calculation_log?: QuotationCalculationLogEntity | null;
|
|
37
40
|
customer?: CustomerEntity;
|
|
38
41
|
product: ProductEntity;
|
|
@@ -28,6 +28,10 @@ __decorate([
|
|
|
28
28
|
(0, typeorm_1.Column)({ type: "varchar", length: 30, unique: true, nullable: true }),
|
|
29
29
|
__metadata("design:type", Object)
|
|
30
30
|
], QuotationEntity.prototype, "quotation_no", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 30, unique: true, nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], QuotationEntity.prototype, "legacy_id", void 0);
|
|
31
35
|
__decorate([
|
|
32
36
|
(0, typeorm_1.Column)({
|
|
33
37
|
type: "varchar",
|
|
@@ -71,6 +75,15 @@ __decorate([
|
|
|
71
75
|
(0, typeorm_1.Index)(),
|
|
72
76
|
__metadata("design:type", String)
|
|
73
77
|
], QuotationEntity.prototype, "customer_id", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({
|
|
80
|
+
type: "varchar",
|
|
81
|
+
length: 50,
|
|
82
|
+
default: types_1.AppPhLaRelation.SamePerson,
|
|
83
|
+
comment: (0, utils_1.enumToCommentString)(types_1.AppPhLaRelation),
|
|
84
|
+
}),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], QuotationEntity.prototype, "ph_la_relation", void 0);
|
|
74
87
|
__decorate([
|
|
75
88
|
(0, typeorm_1.Column)({ type: "date" }),
|
|
76
89
|
__metadata("design:type", String)
|
|
@@ -144,6 +157,10 @@ __decorate([
|
|
|
144
157
|
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
145
158
|
__metadata("design:type", Object)
|
|
146
159
|
], QuotationEntity.prototype, "branch_id", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
162
|
+
__metadata("design:type", Object)
|
|
163
|
+
], QuotationEntity.prototype, "metadata", void 0);
|
|
147
164
|
__decorate([
|
|
148
165
|
(0, typeorm_1.ManyToOne)(() => quotation_calculation_log_entity_1.QuotationCalculationLogEntity, { nullable: true }),
|
|
149
166
|
(0, typeorm_1.JoinColumn)({ name: "calculation_log_id" }),
|
package/package.json
CHANGED