plac-micro-common 1.3.73 → 1.3.74

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.
@@ -90,5 +90,6 @@ exports.AppUnderwritingAnswerEntity = AppUnderwritingAnswerEntity = __decorate([
90
90
  "application_person_id",
91
91
  "app_coverage_id",
92
92
  "question_id",
93
+ "question_component_id",
93
94
  ])
94
95
  ], AppUnderwritingAnswerEntity);
@@ -1,4 +1,4 @@
1
- import { UwAnswerValueType } from "../../types";
1
+ import { UwAnswerValueType, UWComponentMeta } from "../../types";
2
2
  import { _BaseEntity } from "../_base_entity";
3
3
  import { UnderwritingQuestionEntity } from "./underwriting_question.entity";
4
4
  export declare class UnderwritingQuestionComponentEntity extends _BaseEntity {
@@ -10,7 +10,7 @@ export declare class UnderwritingQuestionComponentEntity extends _BaseEntity {
10
10
  value_type: UwAnswerValueType;
11
11
  is_required: boolean;
12
12
  sequence_no: number;
13
- meta?: Record<string, any>;
13
+ meta?: UWComponentMeta | null;
14
14
  is_active: boolean;
15
15
  question?: UnderwritingQuestionEntity;
16
16
  }
@@ -4,3 +4,56 @@ export declare enum UnderwritingSIOQuestionCode {
4
4
  Q_Hospitalized = "Q-SIO-HOSPITALIZED",
5
5
  Q_Diagnosis = "Q-SIO-DIAGNOSIS"
6
6
  }
7
+ export declare enum UnderwritingQuestionGroupCode {
8
+ GC_Insurance = "GC-INSURANCE",
9
+ GC_Lifestyle = "GC-LIFESTYLE",
10
+ GC_Health = "GC-Q-HEALTH",
11
+ GC_HealthAdditional = "GC-Q-HEALTH-ADDITIONAL"
12
+ }
13
+ export declare enum UnderwritingBaseQuestionCode {
14
+ Q_LS_USA = "Q-LS-USA",
15
+ Q_LS_Military = "Q-LS-MILITARY",
16
+ Q_LS_Scuba = "Q-LS-SCUBA",
17
+ Q_LS_Parachute = "Q-LS-PARACHUTE",
18
+ Q_LS_Resident = "Q-LS-RESIDENT",
19
+ Q_LS_Details = "Q-LS-DETAILS",
20
+ Q_INS_Policy = "Q-INS-POLICY",
21
+ Q_INS_Apply = "Q-INS-APPLY",
22
+ Q_INS_Proposal = "Q-INS-PROPOSAL",
23
+ Q_GH_Weight = "Q-GH-WEIGHT",
24
+ Q_GH_Smoke = "Q-GH-SMOKE",
25
+ Q_GH_Drink = "Q-GH-DRINK",
26
+ Q_GH_Drug = "Q-GH-DRUG",
27
+ Q_GH_Family = "Q-GH-FAMILY",
28
+ Q_HA_Diabetes = "Q-HA-DIABETES",
29
+ Q_HA_Asthma = "Q-HA-ASTHMA",
30
+ Q_HA_Alzheimer = "Q-HA-ALZHEIMER",
31
+ Q_HA_Heart = "Q-HA-HEART",
32
+ Q_HA_Gout = "Q-HA-GOUT",
33
+ Q_HA_Prostate = "Q-HA-PROSTATE",
34
+ Q_HA_Disease_Disorder = "Q-HA-DISEASE-DISORDER",
35
+ Q_HA_Thyroid = "Q-HA-THYROID",
36
+ Q_HA_Tumors = "Q-HA-TUMORS",
37
+ Q_HA_Anaemia = "Q-HA-ANAEMIA",
38
+ Q_HA_STD = "Q-HA-STD",
39
+ Q_HA_Other = "Q-HA-OTHER",
40
+ Q_HA_Surgery = "Q-HA-SURGERY",
41
+ Q_HA_WorkInability = "Q-HA-WORK-INABILITY",
42
+ Q_HA_MedicalTests = "Q-HA-MEDICAL-TESTS",
43
+ Q_HA_Pregnancy = "Q-HA-PREGNANCY",
44
+ Q_HA_PregnancyComplications = "Q-HA-PREGNANCY-COMPLICATIONS",
45
+ Q_HA_Details = "Q-HA-DETAILS"
46
+ }
47
+ export type UWDropdownOption = {
48
+ value: string;
49
+ label: string;
50
+ label_kh?: string;
51
+ };
52
+ export type UWDropdownApiKey = "relationship" | "occupation";
53
+ export type UWComponentMeta = {
54
+ type: "dropdown" | "text" | "number" | "date" | "boolean";
55
+ placeholder?: string;
56
+ data_source?: "static" | "api";
57
+ options?: UWDropdownOption[];
58
+ api_key?: UWDropdownApiKey;
59
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnderwritingSIOQuestionCode = void 0;
3
+ exports.UnderwritingBaseQuestionCode = exports.UnderwritingQuestionGroupCode = exports.UnderwritingSIOQuestionCode = void 0;
4
4
  var UnderwritingSIOQuestionCode;
5
5
  (function (UnderwritingSIOQuestionCode) {
6
6
  UnderwritingSIOQuestionCode["Q_Smoke"] = "Q-SIO-SMOKE";
@@ -8,3 +8,49 @@ var UnderwritingSIOQuestionCode;
8
8
  UnderwritingSIOQuestionCode["Q_Hospitalized"] = "Q-SIO-HOSPITALIZED";
9
9
  UnderwritingSIOQuestionCode["Q_Diagnosis"] = "Q-SIO-DIAGNOSIS";
10
10
  })(UnderwritingSIOQuestionCode || (exports.UnderwritingSIOQuestionCode = UnderwritingSIOQuestionCode = {}));
11
+ var UnderwritingQuestionGroupCode;
12
+ (function (UnderwritingQuestionGroupCode) {
13
+ UnderwritingQuestionGroupCode["GC_Insurance"] = "GC-INSURANCE";
14
+ UnderwritingQuestionGroupCode["GC_Lifestyle"] = "GC-LIFESTYLE";
15
+ UnderwritingQuestionGroupCode["GC_Health"] = "GC-Q-HEALTH";
16
+ UnderwritingQuestionGroupCode["GC_HealthAdditional"] = "GC-Q-HEALTH-ADDITIONAL";
17
+ })(UnderwritingQuestionGroupCode || (exports.UnderwritingQuestionGroupCode = UnderwritingQuestionGroupCode = {}));
18
+ var UnderwritingBaseQuestionCode;
19
+ (function (UnderwritingBaseQuestionCode) {
20
+ // Life Style
21
+ UnderwritingBaseQuestionCode["Q_LS_USA"] = "Q-LS-USA";
22
+ UnderwritingBaseQuestionCode["Q_LS_Military"] = "Q-LS-MILITARY";
23
+ UnderwritingBaseQuestionCode["Q_LS_Scuba"] = "Q-LS-SCUBA";
24
+ UnderwritingBaseQuestionCode["Q_LS_Parachute"] = "Q-LS-PARACHUTE";
25
+ UnderwritingBaseQuestionCode["Q_LS_Resident"] = "Q-LS-RESIDENT";
26
+ UnderwritingBaseQuestionCode["Q_LS_Details"] = "Q-LS-DETAILS";
27
+ // Insurance
28
+ UnderwritingBaseQuestionCode["Q_INS_Policy"] = "Q-INS-POLICY";
29
+ UnderwritingBaseQuestionCode["Q_INS_Apply"] = "Q-INS-APPLY";
30
+ UnderwritingBaseQuestionCode["Q_INS_Proposal"] = "Q-INS-PROPOSAL";
31
+ // General Health
32
+ UnderwritingBaseQuestionCode["Q_GH_Weight"] = "Q-GH-WEIGHT";
33
+ UnderwritingBaseQuestionCode["Q_GH_Smoke"] = "Q-GH-SMOKE";
34
+ UnderwritingBaseQuestionCode["Q_GH_Drink"] = "Q-GH-DRINK";
35
+ UnderwritingBaseQuestionCode["Q_GH_Drug"] = "Q-GH-DRUG";
36
+ UnderwritingBaseQuestionCode["Q_GH_Family"] = "Q-GH-FAMILY";
37
+ // Health Additional Questions
38
+ UnderwritingBaseQuestionCode["Q_HA_Diabetes"] = "Q-HA-DIABETES";
39
+ UnderwritingBaseQuestionCode["Q_HA_Asthma"] = "Q-HA-ASTHMA";
40
+ UnderwritingBaseQuestionCode["Q_HA_Alzheimer"] = "Q-HA-ALZHEIMER";
41
+ UnderwritingBaseQuestionCode["Q_HA_Heart"] = "Q-HA-HEART";
42
+ UnderwritingBaseQuestionCode["Q_HA_Gout"] = "Q-HA-GOUT";
43
+ UnderwritingBaseQuestionCode["Q_HA_Prostate"] = "Q-HA-PROSTATE";
44
+ UnderwritingBaseQuestionCode["Q_HA_Disease_Disorder"] = "Q-HA-DISEASE-DISORDER";
45
+ UnderwritingBaseQuestionCode["Q_HA_Thyroid"] = "Q-HA-THYROID";
46
+ UnderwritingBaseQuestionCode["Q_HA_Tumors"] = "Q-HA-TUMORS";
47
+ UnderwritingBaseQuestionCode["Q_HA_Anaemia"] = "Q-HA-ANAEMIA";
48
+ UnderwritingBaseQuestionCode["Q_HA_STD"] = "Q-HA-STD";
49
+ UnderwritingBaseQuestionCode["Q_HA_Other"] = "Q-HA-OTHER";
50
+ UnderwritingBaseQuestionCode["Q_HA_Surgery"] = "Q-HA-SURGERY";
51
+ UnderwritingBaseQuestionCode["Q_HA_WorkInability"] = "Q-HA-WORK-INABILITY";
52
+ UnderwritingBaseQuestionCode["Q_HA_MedicalTests"] = "Q-HA-MEDICAL-TESTS";
53
+ UnderwritingBaseQuestionCode["Q_HA_Pregnancy"] = "Q-HA-PREGNANCY";
54
+ UnderwritingBaseQuestionCode["Q_HA_PregnancyComplications"] = "Q-HA-PREGNANCY-COMPLICATIONS";
55
+ UnderwritingBaseQuestionCode["Q_HA_Details"] = "Q-HA-DETAILS";
56
+ })(UnderwritingBaseQuestionCode || (exports.UnderwritingBaseQuestionCode = UnderwritingBaseQuestionCode = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.3.73",
3
+ "version": "1.3.74",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {