@provis/provis-common-be-module 2.6.81 → 2.6.83

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.
@@ -0,0 +1,50 @@
1
+ declare const life: {
2
+ DOC_CLAIM_FORM: string;
3
+ DOC_DEATH_CERTIFICATE: string;
4
+ DOC_BURIAL_CERTIFICATE: string;
5
+ DOC_KBRI_CERTIFICATE: string;
6
+ DOC_IDENTITY_PARTICIPANT_HEIR: string;
7
+ DOC_REMAINING_INSTALLMENT: string;
8
+ DOC_POLICE_REPORT_ACCIDENT: string;
9
+ DOC_POLICE_REPORT_UNNATURAL_DEATH: string;
10
+ DOC_DOCTOR_CAUSE_OF_DEATH: string;
11
+ DOC_VISUM_ET_REPERTUM: string;
12
+ DOC_POWER_OF_ATTORNEY_HEIR: string;
13
+ DOC_OTHER: string;
14
+ LIST_DESC: Record<string, {
15
+ id: string;
16
+ en: string;
17
+ }>;
18
+ LIST_ACTIVE: string[];
19
+ RISK_TYPE: {
20
+ ACCIDENT: string;
21
+ SICKNESS: string;
22
+ };
23
+ LIST_RISK: {
24
+ code: string;
25
+ desc: {
26
+ id: string;
27
+ en: string;
28
+ };
29
+ }[];
30
+ RISK_CONFIG: Record<string, {
31
+ isRequiredFillClaimAmount: boolean;
32
+ desc: {
33
+ id: string;
34
+ en: string;
35
+ };
36
+ requiredDocument: string[];
37
+ optionalDocument: string[];
38
+ }>;
39
+ DOCUMENT_CONFIG: Record<string, {
40
+ desc: {
41
+ id: string;
42
+ en: string;
43
+ };
44
+ }>;
45
+ STATUS_DEADLINE: Record<string, {
46
+ deadline: number;
47
+ key?: string;
48
+ }>;
49
+ };
50
+ export default life;
@@ -0,0 +1,173 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const status_1 = require("./status");
4
+ const life = {
5
+ DOC_CLAIM_FORM: 'DOC_CLAIM_FORM',
6
+ DOC_DEATH_CERTIFICATE: 'DOC_DEATH_CERTIFICATE',
7
+ DOC_BURIAL_CERTIFICATE: 'DOC_BURIAL_CERTIFICATE',
8
+ DOC_KBRI_CERTIFICATE: 'DOC_KBRI_CERTIFICATE',
9
+ DOC_IDENTITY_PARTICIPANT_HEIR: 'DOC_IDENTITY_PARTICIPANT_HEIR',
10
+ DOC_REMAINING_INSTALLMENT: 'DOC_REMAINING_INSTALLMENT',
11
+ DOC_POLICE_REPORT_ACCIDENT: 'DOC_POLICE_REPORT_ACCIDENT',
12
+ DOC_POLICE_REPORT_UNNATURAL_DEATH: 'DOC_POLICE_REPORT_UNNATURAL_DEATH',
13
+ DOC_DOCTOR_CAUSE_OF_DEATH: 'DOC_DOCTOR_CAUSE_OF_DEATH',
14
+ DOC_VISUM_ET_REPERTUM: 'DOC_VISUM_ET_REPERTUM',
15
+ DOC_POWER_OF_ATTORNEY_HEIR: 'DOC_POWER_OF_ATTORNEY_HEIR',
16
+ DOC_OTHER: 'DOC_OTHER',
17
+ LIST_DESC: {},
18
+ LIST_ACTIVE: [],
19
+ RISK_TYPE: {
20
+ ACCIDENT: 'RISK_ACCIDENT',
21
+ SICKNESS: 'RISK_SICK',
22
+ },
23
+ LIST_RISK: [],
24
+ RISK_CONFIG: {},
25
+ DOCUMENT_CONFIG: {},
26
+ STATUS_DEADLINE: {},
27
+ };
28
+ life.LIST_DESC = {
29
+ [life.DOC_CLAIM_FORM]: {
30
+ id: 'Formulir Klaim yang dikeluarkan oleh Penanggung yang telah diisi lengkap dan benar (asli)',
31
+ en: 'Original claim form issued by the Insurer, completely and correctly filled out',
32
+ },
33
+ [life.DOC_DEATH_CERTIFICATE]: {
34
+ id: 'Surat keterangan meninggal dunia dari Instansi Pemerintah (akta kematian)',
35
+ en: 'Certificate of death from a Government Institution (death certificate)',
36
+ },
37
+ [life.DOC_BURIAL_CERTIFICATE]: {
38
+ id: 'Surat keterangan pemakaman / penguburan / kremasi yang dikeluarkan dari Instansi Pemerintah setempat. Apabila pemakaman menggunakan tanah wakaf desa maka dokumentasi foto berikut nama yang ada di nisan beserta alamat pemakaman',
39
+ en: 'Certificate of burial / interment / cremation issued by the local Government Institution. If the burial uses village endowment land, a photo documentation of the gravestone name along with the burial address is required',
40
+ },
41
+ [life.DOC_KBRI_CERTIFICATE]: {
42
+ id: 'Surat keterangan dari Kedutaan Besar Republik Indonesia (KBRI) setempat dalam hal meninggal dunianya di luar negeri',
43
+ en: 'Certificate from the local Embassy of the Republic of Indonesia (KBRI) in the event of death overseas',
44
+ },
45
+ [life.DOC_IDENTITY_PARTICIPANT_HEIR]: {
46
+ id: 'Fotokopi bukti identitas diri dari Peserta dan Ahli Waris yang masih berlaku, berupa: Kartu Keluarga, Akta Nikah, KTP/SIM/Paspor/KITAS/Surat Keterangan Domisili dari kelurahan',
47
+ en: 'Photocopy of valid identity documents of the Participant and Heir, consisting of: Family Card, Marriage Certificate, ID Card/Driving License/Passport/KITAS/Certificate of Domicile from the local sub-district office',
48
+ },
49
+ [life.DOC_REMAINING_INSTALLMENT]: {
50
+ id: 'Fotokopi daftar sisa angsuran yang diterbitkan oleh Pemegang Polis',
51
+ en: 'Photocopy of the remaining installment list issued by the Policyholder',
52
+ },
53
+ [life.DOC_POLICE_REPORT_ACCIDENT]: {
54
+ id: 'Surat keterangan dari Kepolisian dalam hal meninggal dunia karena kecelakaan',
55
+ en: 'Certificate from the Police in the event of death due to an accident',
56
+ },
57
+ [life.DOC_POLICE_REPORT_UNNATURAL_DEATH]: {
58
+ id: 'Surat keterangan dari Kepolisian dalam hal meninggal dunia tidak wajar',
59
+ en: 'Certificate from the Police in the event of an unnatural death',
60
+ },
61
+ [life.DOC_DOCTOR_CAUSE_OF_DEATH]: {
62
+ id: 'Surat keterangan sebab-sebab meninggal dunia dari dokter',
63
+ en: 'Certificate of cause of death from a doctor',
64
+ },
65
+ [life.DOC_VISUM_ET_REPERTUM]: {
66
+ id: 'Hasil visum et repertum',
67
+ en: 'Visum et repertum result',
68
+ },
69
+ [life.DOC_POWER_OF_ATTORNEY_HEIR]: {
70
+ id: 'Surat kuasa (asli) dari Ahli Waris apabila Ahli Waris lebih dari 1 (satu) orang',
71
+ en: 'Original power of attorney from the Heir if there is more than 1 (one) Heir',
72
+ },
73
+ [life.DOC_OTHER]: {
74
+ id: 'Dokumen lain yang dapat mendukung klaim ini',
75
+ en: 'Other documents that can support this claim',
76
+ },
77
+ };
78
+ life.LIST_ACTIVE = [
79
+ life.DOC_CLAIM_FORM,
80
+ life.DOC_DEATH_CERTIFICATE,
81
+ life.DOC_BURIAL_CERTIFICATE,
82
+ life.DOC_KBRI_CERTIFICATE,
83
+ life.DOC_IDENTITY_PARTICIPANT_HEIR,
84
+ life.DOC_REMAINING_INSTALLMENT,
85
+ life.DOC_POLICE_REPORT_ACCIDENT,
86
+ life.DOC_POLICE_REPORT_UNNATURAL_DEATH,
87
+ life.DOC_DOCTOR_CAUSE_OF_DEATH,
88
+ life.DOC_VISUM_ET_REPERTUM,
89
+ life.DOC_POWER_OF_ATTORNEY_HEIR,
90
+ life.DOC_OTHER,
91
+ ];
92
+ life.LIST_RISK = [
93
+ {
94
+ code: life.RISK_TYPE.ACCIDENT,
95
+ desc: {
96
+ en: 'Accident',
97
+ id: 'Kecelakaan',
98
+ },
99
+ },
100
+ {
101
+ code: life.RISK_TYPE.SICKNESS,
102
+ desc: {
103
+ en: 'Sickness',
104
+ id: 'Sakit',
105
+ },
106
+ },
107
+ ];
108
+ // Wajib - Kecelakaan
109
+ life.RISK_CONFIG[life.RISK_TYPE.ACCIDENT] = {
110
+ isRequiredFillClaimAmount: false,
111
+ desc: {
112
+ id: 'Meninggal Dunia Karena Kecelakaan',
113
+ en: 'Death Due to Accident',
114
+ },
115
+ requiredDocument: [
116
+ life.DOC_CLAIM_FORM,
117
+ life.DOC_DEATH_CERTIFICATE,
118
+ life.DOC_BURIAL_CERTIFICATE,
119
+ life.DOC_KBRI_CERTIFICATE,
120
+ life.DOC_IDENTITY_PARTICIPANT_HEIR,
121
+ life.DOC_REMAINING_INSTALLMENT,
122
+ life.DOC_POLICE_REPORT_ACCIDENT,
123
+ ],
124
+ optionalDocument: [
125
+ life.DOC_POLICE_REPORT_UNNATURAL_DEATH,
126
+ life.DOC_DOCTOR_CAUSE_OF_DEATH,
127
+ life.DOC_VISUM_ET_REPERTUM,
128
+ life.DOC_POWER_OF_ATTORNEY_HEIR,
129
+ life.DOC_OTHER,
130
+ ],
131
+ };
132
+ // Wajib - Sakit
133
+ life.RISK_CONFIG[life.RISK_TYPE.SICKNESS] = {
134
+ isRequiredFillClaimAmount: false,
135
+ desc: {
136
+ id: 'Meninggal Dunia Karena Sakit',
137
+ en: 'Death Due to Sickness',
138
+ },
139
+ requiredDocument: [
140
+ life.DOC_CLAIM_FORM,
141
+ life.DOC_DEATH_CERTIFICATE,
142
+ life.DOC_BURIAL_CERTIFICATE,
143
+ life.DOC_KBRI_CERTIFICATE,
144
+ life.DOC_IDENTITY_PARTICIPANT_HEIR,
145
+ life.DOC_REMAINING_INSTALLMENT,
146
+ ],
147
+ optionalDocument: [
148
+ life.DOC_POLICE_REPORT_UNNATURAL_DEATH,
149
+ life.DOC_DOCTOR_CAUSE_OF_DEATH,
150
+ life.DOC_VISUM_ET_REPERTUM,
151
+ life.DOC_POWER_OF_ATTORNEY_HEIR,
152
+ life.DOC_OTHER,
153
+ ],
154
+ };
155
+ life.LIST_ACTIVE.forEach((value) => {
156
+ life.DOCUMENT_CONFIG[value] = {
157
+ desc: {
158
+ id: life.LIST_DESC[value]['id'],
159
+ en: life.LIST_DESC[value]['en'],
160
+ },
161
+ };
162
+ });
163
+ life.STATUS_DEADLINE[status_1.default.WAIT_DOCUMENT_COMPLETION.code] = {
164
+ deadline: 75,
165
+ key: 'deathDate', // berdasarkan tanggal meninggal
166
+ };
167
+ life.STATUS_DEADLINE[status_1.default.WAIT_LOD_SIGN.code] = {
168
+ deadline: 5,
169
+ };
170
+ life.STATUS_DEADLINE[status_1.default.REVISION_DOCUMENT.code] = {
171
+ deadline: 7,
172
+ };
173
+ exports.default = life;
@@ -126,6 +126,13 @@ declare const statusClaim: {
126
126
  id: string;
127
127
  };
128
128
  };
129
+ CLAIM_WAITING_TRANSFER_SLIP: {
130
+ code: string;
131
+ desc: {
132
+ en: string;
133
+ id: string;
134
+ };
135
+ };
129
136
  CLAIM_PAID: {
130
137
  code: string;
131
138
  desc: {
@@ -27,7 +27,7 @@ const statusClaim = {
27
27
  code: '103',
28
28
  desc: {
29
29
  en: 'Initial report revision',
30
- id: 'Pelaporan klaim revisi'
30
+ id: 'Pelaporan klaim pertama yang direvisi'
31
31
  },
32
32
  },
33
33
  WAIT_DOCUMENT_COMPLETION: {
@@ -123,6 +123,13 @@ const statusClaim = {
123
123
  },
124
124
  CLAIM_WAITING_PAYMENT_CLAIM: {
125
125
  code: '301',
126
+ desc: {
127
+ en: 'Waiting Payment Claim',
128
+ id: 'Menunggu Pembayaran Claim'
129
+ },
130
+ },
131
+ CLAIM_WAITING_TRANSFER_SLIP: {
132
+ code: '302',
126
133
  desc: {
127
134
  en: 'Waiting Transfer Slip',
128
135
  id: 'Menunggu Bukti Bayar'
@@ -132,7 +139,7 @@ const statusClaim = {
132
139
  code: '310',
133
140
  desc: {
134
141
  en: 'Claim Paid',
135
- id: 'Klaim berhasil dibayar'
142
+ id: 'Klaim Berhasil Dibayarkan'
136
143
  },
137
144
  },
138
145
  CLAIM_REJECTED: {
@@ -169,6 +176,7 @@ statusClaim.LIST_ACTIVE = [
169
176
  statusClaim.SUBMIT_DOC_CLAIM_TO_INSURANCE.code,
170
177
  statusClaim.CLAIM_APPROVED.code,
171
178
  statusClaim.CLAIM_WAITING_PAYMENT_CLAIM.code,
179
+ statusClaim.CLAIM_WAITING_TRANSFER_SLIP.code,
172
180
  statusClaim.CLAIM_REJECTED.code,
173
181
  statusClaim.CLAIM_PAID.code,
174
182
  statusClaim.CLAIM_WITHDRAWAL.code,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provis/provis-common-be-module",
3
- "version": "2.6.81",
3
+ "version": "2.6.83",
4
4
  "description": "This common module for Provis internal backend use lib",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {