plac-micro-common 1.2.32 → 1.2.33
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_underwriting_answer.entity.d.ts +1 -1
- package/dist/models/application/underwriting_question.entity.d.ts +3 -0
- package/dist/models/application/underwriting_question.entity.js +13 -1
- package/dist/models/customer/customer_contact.entity.js +1 -1
- package/dist/models/customer/customer_identifier.entity.js +5 -1
- package/dist/types/application.type.d.ts +5 -4
- package/dist/types/application.type.js +5 -4
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ export declare class AppUnderwritingAnswerEntity extends _BaseEntity {
|
|
|
13
13
|
answer_number: string | null;
|
|
14
14
|
answer_date: string | null;
|
|
15
15
|
answer_bool: boolean | null;
|
|
16
|
-
remark
|
|
16
|
+
remark?: string | null;
|
|
17
17
|
sequence_no: number;
|
|
18
18
|
application?: ApplicationEntity;
|
|
19
19
|
application_person?: AppPerson | null;
|
|
@@ -7,6 +7,9 @@ export declare class UnderwritingQuestionEntity extends _BaseEntity {
|
|
|
7
7
|
question_text_kh?: string;
|
|
8
8
|
value_type: UwAnswerValueType;
|
|
9
9
|
is_required: boolean;
|
|
10
|
+
is_remark_required_if_true_or_yes: boolean;
|
|
11
|
+
remark_label?: string;
|
|
12
|
+
remark_label_kh?: string;
|
|
10
13
|
sequence_no: number;
|
|
11
14
|
is_active: boolean;
|
|
12
15
|
}
|
|
@@ -38,9 +38,21 @@ __decorate([
|
|
|
38
38
|
__metadata("design:type", String)
|
|
39
39
|
], UnderwritingQuestionEntity.prototype, "value_type", void 0);
|
|
40
40
|
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ type: 'boolean', default:
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
42
42
|
__metadata("design:type", Boolean)
|
|
43
43
|
], UnderwritingQuestionEntity.prototype, "is_required", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
46
|
+
__metadata("design:type", Boolean)
|
|
47
|
+
], UnderwritingQuestionEntity.prototype, "is_remark_required_if_true_or_yes", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: 500 }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], UnderwritingQuestionEntity.prototype, "remark_label", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: 500 }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], UnderwritingQuestionEntity.prototype, "remark_label_kh", void 0);
|
|
44
56
|
__decorate([
|
|
45
57
|
(0, typeorm_1.Column)({ type: 'integer', default: 1 }),
|
|
46
58
|
__metadata("design:type", Number)
|
|
@@ -50,5 +50,5 @@ __decorate([
|
|
|
50
50
|
exports.CustomerContactEntity = CustomerContactEntity = __decorate([
|
|
51
51
|
(0, typeorm_1.Entity)({ schema: "customer", name: "customer_contacts" }),
|
|
52
52
|
(0, typeorm_1.Index)(["customer_id", "is_primary"]),
|
|
53
|
-
(0, typeorm_1.Unique)("unique_contact_type_value", ["contact_type", "value"])
|
|
53
|
+
(0, typeorm_1.Unique)("unique_contact_type_value", ["customer_id", "contact_type", "value"])
|
|
54
54
|
], CustomerContactEntity);
|
|
@@ -64,5 +64,9 @@ __decorate([
|
|
|
64
64
|
exports.CustomerIdentifierEntity = CustomerIdentifierEntity = __decorate([
|
|
65
65
|
(0, typeorm_1.Entity)({ schema: "customer", name: "customer_identifiers" }),
|
|
66
66
|
(0, typeorm_1.Index)(["identifier_type", "value"]),
|
|
67
|
-
(0, typeorm_1.Unique)("unique_identifier_type_value", [
|
|
67
|
+
(0, typeorm_1.Unique)("unique_identifier_type_value", [
|
|
68
|
+
"customer_id",
|
|
69
|
+
"identifier_type",
|
|
70
|
+
"value",
|
|
71
|
+
])
|
|
68
72
|
], CustomerIdentifierEntity);
|
|
@@ -23,8 +23,9 @@ export declare enum AppCoverageType {
|
|
|
23
23
|
Rider = "rider"
|
|
24
24
|
}
|
|
25
25
|
export declare enum UwAnswerValueType {
|
|
26
|
-
Boolean = "
|
|
27
|
-
Text = "
|
|
28
|
-
Number = "
|
|
29
|
-
Date = "
|
|
26
|
+
Boolean = "boolean",
|
|
27
|
+
Text = "text",
|
|
28
|
+
Number = "number",
|
|
29
|
+
Date = "date",
|
|
30
|
+
YesOrNo = "yesno"
|
|
30
31
|
}
|
|
@@ -31,8 +31,9 @@ var AppCoverageType;
|
|
|
31
31
|
})(AppCoverageType || (exports.AppCoverageType = AppCoverageType = {}));
|
|
32
32
|
var UwAnswerValueType;
|
|
33
33
|
(function (UwAnswerValueType) {
|
|
34
|
-
UwAnswerValueType["Boolean"] = "
|
|
35
|
-
UwAnswerValueType["Text"] = "
|
|
36
|
-
UwAnswerValueType["Number"] = "
|
|
37
|
-
UwAnswerValueType["Date"] = "
|
|
34
|
+
UwAnswerValueType["Boolean"] = "boolean";
|
|
35
|
+
UwAnswerValueType["Text"] = "text";
|
|
36
|
+
UwAnswerValueType["Number"] = "number";
|
|
37
|
+
UwAnswerValueType["Date"] = "date";
|
|
38
|
+
UwAnswerValueType["YesOrNo"] = "yesno";
|
|
38
39
|
})(UwAnswerValueType || (exports.UwAnswerValueType = UwAnswerValueType = {}));
|