plac-micro-common 1.3.85 → 1.3.87

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 } from "../../types";
2
+ import { AppFormType, ApplicationStatus, AppPhLaRelation, 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";
@@ -24,6 +24,7 @@ export declare class ApplicationEntity extends _BaseEntity {
24
24
  org_referral_id?: string | null;
25
25
  owner_org_staff_id: string;
26
26
  assigned_org_staff_id?: string | null;
27
+ agent_commission_code?: string | null;
27
28
  status: ApplicationStatus;
28
29
  completed_at?: Date | null;
29
30
  submitted_at?: Date | null;
@@ -33,6 +34,11 @@ export declare class ApplicationEntity extends _BaseEntity {
33
34
  rejected_at?: Date | null;
34
35
  rejection_reason?: string | null;
35
36
  transferred_at?: Date | null;
37
+ uw_decision_type?: UWDecisionType | null;
38
+ additional_premium_amount?: number | null;
39
+ uw_decision_remark?: string | null;
40
+ uw_decision_at?: Date | null;
41
+ uw_decision_by?: string | null;
36
42
  quotation_id?: string | null;
37
43
  payment_method_id?: string | null;
38
44
  annual_premium_amount?: number | null;
@@ -102,6 +102,11 @@ __decorate([
102
102
  (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
103
103
  __metadata("design:type", Object)
104
104
  ], ApplicationEntity.prototype, "assigned_org_staff_id", void 0);
105
+ __decorate([
106
+ (0, typeorm_1.Index)(),
107
+ (0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
108
+ __metadata("design:type", Object)
109
+ ], ApplicationEntity.prototype, "agent_commission_code", void 0);
105
110
  __decorate([
106
111
  (0, typeorm_1.Index)(),
107
112
  (0, typeorm_1.Column)({
@@ -143,6 +148,38 @@ __decorate([
143
148
  (0, typeorm_1.Column)({ type: "timestamptz", nullable: true }),
144
149
  __metadata("design:type", Object)
145
150
  ], ApplicationEntity.prototype, "transferred_at", void 0);
151
+ __decorate([
152
+ (0, typeorm_1.Index)(),
153
+ (0, typeorm_1.Column)({
154
+ type: "varchar",
155
+ length: 30,
156
+ comment: (0, utils_1.enumToCommentString)(types_1.UWDecisionType),
157
+ nullable: true,
158
+ }),
159
+ __metadata("design:type", Object)
160
+ ], ApplicationEntity.prototype, "uw_decision_type", void 0);
161
+ __decorate([
162
+ (0, typeorm_1.Column)({
163
+ type: "numeric",
164
+ precision: 18,
165
+ scale: 2,
166
+ default: 0,
167
+ nullable: true,
168
+ }),
169
+ __metadata("design:type", Object)
170
+ ], ApplicationEntity.prototype, "additional_premium_amount", void 0);
171
+ __decorate([
172
+ (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
173
+ __metadata("design:type", Object)
174
+ ], ApplicationEntity.prototype, "uw_decision_remark", void 0);
175
+ __decorate([
176
+ (0, typeorm_1.Column)({ type: "timestamptz", nullable: true }),
177
+ __metadata("design:type", Object)
178
+ ], ApplicationEntity.prototype, "uw_decision_at", void 0);
179
+ __decorate([
180
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
181
+ __metadata("design:type", Object)
182
+ ], ApplicationEntity.prototype, "uw_decision_by", void 0);
146
183
  __decorate([
147
184
  (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
148
185
  __metadata("design:type", Object)
@@ -1,3 +1,4 @@
1
1
  import { _BaseGeneralEntity } from "../_base_general_entity";
2
2
  export declare class RelationshipEntity extends _BaseGeneralEntity {
3
+ code?: string | null;
3
4
  }
@@ -5,6 +5,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
8
11
  Object.defineProperty(exports, "__esModule", { value: true });
9
12
  exports.RelationshipEntity = void 0;
10
13
  const typeorm_1 = require("typeorm");
@@ -12,6 +15,10 @@ const _base_general_entity_1 = require("../_base_general_entity");
12
15
  let RelationshipEntity = class RelationshipEntity extends _base_general_entity_1._BaseGeneralEntity {
13
16
  };
14
17
  exports.RelationshipEntity = RelationshipEntity;
18
+ __decorate([
19
+ (0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
20
+ __metadata("design:type", Object)
21
+ ], RelationshipEntity.prototype, "code", void 0);
15
22
  exports.RelationshipEntity = RelationshipEntity = __decorate([
16
23
  (0, typeorm_1.Entity)({ schema: "core", name: "relationships" })
17
24
  ], RelationshipEntity);
@@ -62,6 +62,11 @@ export declare enum UnderwritingQuestionComponents {
62
62
  Q_USA_COMP_1 = "Q-USA-COMP-1",
63
63
  Q_USA_COMP_2 = "Q-USA-COMP-2"
64
64
  }
65
+ export declare enum UWDecisionType {
66
+ COUNTER_OFFER = "ctof",
67
+ DECLINED_COVERAGE = "d.cvg",
68
+ REJECTED = "rejected"
69
+ }
65
70
  export type UWDropdownOption = {
66
71
  value: string;
67
72
  label: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnderwritingQuestionComponents = exports.UnderwritingBaseQuestionCode = exports.UnderwritingQuestionGroupCode = exports.UnderwritingSIOQuestionCode = void 0;
3
+ 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";
@@ -74,3 +74,9 @@ var UnderwritingQuestionComponents;
74
74
  UnderwritingQuestionComponents["Q_USA_COMP_1"] = "Q-USA-COMP-1";
75
75
  UnderwritingQuestionComponents["Q_USA_COMP_2"] = "Q-USA-COMP-2";
76
76
  })(UnderwritingQuestionComponents || (exports.UnderwritingQuestionComponents = UnderwritingQuestionComponents = {}));
77
+ var UWDecisionType;
78
+ (function (UWDecisionType) {
79
+ UWDecisionType["COUNTER_OFFER"] = "ctof";
80
+ UWDecisionType["DECLINED_COVERAGE"] = "d.cvg";
81
+ UWDecisionType["REJECTED"] = "rejected";
82
+ })(UWDecisionType || (exports.UWDecisionType = UWDecisionType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.3.85",
3
+ "version": "1.3.87",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {