plac-micro-common 1.3.87 → 1.3.88

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.
@@ -1,5 +1,5 @@
1
1
  import { _BaseEntity } from "../_base_entity";
2
- import { AppFormType, ApplicationStatus, AppPhLaRelation, UWDecisionType } from "../../types";
2
+ import { AppFormType, ApplicationStatus, AppPhLaRelation, 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";
@@ -36,9 +36,11 @@ export declare class ApplicationEntity extends _BaseEntity {
36
36
  transferred_at?: Date | null;
37
37
  uw_decision_type?: UWDecisionType | null;
38
38
  additional_premium_amount?: number | null;
39
+ deducted_premium_amount?: number | null;
39
40
  uw_decision_remark?: string | null;
40
41
  uw_decision_at?: Date | null;
41
42
  uw_decision_by?: string | null;
43
+ uw_decision_metadata?: UWDecisionMetadata | null;
42
44
  quotation_id?: string | null;
43
45
  payment_method_id?: string | null;
44
46
  annual_premium_amount?: number | null;
@@ -168,6 +168,16 @@ __decorate([
168
168
  }),
169
169
  __metadata("design:type", Object)
170
170
  ], ApplicationEntity.prototype, "additional_premium_amount", void 0);
171
+ __decorate([
172
+ (0, typeorm_1.Column)({
173
+ type: "numeric",
174
+ precision: 18,
175
+ scale: 2,
176
+ default: 0,
177
+ nullable: true,
178
+ }),
179
+ __metadata("design:type", Object)
180
+ ], ApplicationEntity.prototype, "deducted_premium_amount", void 0);
171
181
  __decorate([
172
182
  (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
173
183
  __metadata("design:type", Object)
@@ -180,6 +190,10 @@ __decorate([
180
190
  (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
181
191
  __metadata("design:type", Object)
182
192
  ], ApplicationEntity.prototype, "uw_decision_by", void 0);
193
+ __decorate([
194
+ (0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
195
+ __metadata("design:type", Object)
196
+ ], ApplicationEntity.prototype, "uw_decision_metadata", void 0);
183
197
  __decorate([
184
198
  (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
185
199
  __metadata("design:type", Object)
@@ -80,3 +80,12 @@ export type UWComponentMeta = {
80
80
  options?: UWDropdownOption[];
81
81
  api_key?: UWDropdownApiKey;
82
82
  };
83
+ export declare enum DeclinedBenefitType {
84
+ ACCIDENTAL_DEATH = "adb",
85
+ TOTAL_PERMANENT_DISABILITY = "tpd",
86
+ CRITICAL_ILLNESS = "ci"
87
+ }
88
+ export interface UWDecisionMetadata {
89
+ declined_benefits?: DeclinedBenefitType[];
90
+ witness_full_name?: string | null;
91
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UWDecisionType = exports.UnderwritingQuestionComponents = exports.UnderwritingBaseQuestionCode = exports.UnderwritingQuestionGroupCode = exports.UnderwritingSIOQuestionCode = void 0;
3
+ exports.DeclinedBenefitType = exports.UWDecisionType = exports.UnderwritingQuestionComponents = exports.UnderwritingBaseQuestionCode = exports.UnderwritingQuestionGroupCode = exports.UnderwritingSIOQuestionCode = void 0;
4
4
  var UnderwritingSIOQuestionCode;
5
5
  (function (UnderwritingSIOQuestionCode) {
6
6
  UnderwritingSIOQuestionCode["Q_USA"] = "Q-SIO-USA";
@@ -80,3 +80,9 @@ var UWDecisionType;
80
80
  UWDecisionType["DECLINED_COVERAGE"] = "d.cvg";
81
81
  UWDecisionType["REJECTED"] = "rejected";
82
82
  })(UWDecisionType || (exports.UWDecisionType = UWDecisionType = {}));
83
+ var DeclinedBenefitType;
84
+ (function (DeclinedBenefitType) {
85
+ DeclinedBenefitType["ACCIDENTAL_DEATH"] = "adb";
86
+ DeclinedBenefitType["TOTAL_PERMANENT_DISABILITY"] = "tpd";
87
+ DeclinedBenefitType["CRITICAL_ILLNESS"] = "ci";
88
+ })(DeclinedBenefitType || (exports.DeclinedBenefitType = DeclinedBenefitType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.3.87",
3
+ "version": "1.3.88",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {