@provis/provis-common-be-module 2.5.8 → 2.5.10

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.
@@ -8,6 +8,11 @@ declare const loket: {
8
8
  RISK_CLK007: string;
9
9
  RISK_CLK008: string;
10
10
  RISK_CLK009: string;
11
+ RISK_CLK010: string;
12
+ RISK_CLK011: string;
13
+ RISK_CLK012: string;
14
+ RISK_CLK013: string;
15
+ RISK_CLK014: string;
11
16
  DOCUMENT_DLK001: string;
12
17
  DOCUMENT_DLK002: string;
13
18
  DOCUMENT_DLK003: string;
@@ -28,6 +33,10 @@ declare const loket: {
28
33
  DOCUMENT_DLK018: string;
29
34
  DOCUMENT_DLK019: string;
30
35
  DOCUMENT_DLK020: string;
36
+ DOCUMENT_DLK021: string;
37
+ DOCUMENT_DLK022: string;
38
+ DOCUMENT_DLK023: string;
39
+ DOCUMENT_DLK024: string;
31
40
  DOCUMENT_DT001: string;
32
41
  DOCUMENT_DT002: string;
33
42
  DOCUMENT_DT003: string;
@@ -12,6 +12,11 @@ const loket = {
12
12
  RISK_CLK007: 'CLK007',
13
13
  RISK_CLK008: 'CLK008',
14
14
  RISK_CLK009: 'CLK009',
15
+ RISK_CLK010: 'CLK010',
16
+ RISK_CLK011: 'CLK011',
17
+ RISK_CLK012: 'CLK012',
18
+ RISK_CLK013: 'CLK013',
19
+ RISK_CLK014: 'CLK014',
15
20
  // LIST DOCUMENT
16
21
  DOCUMENT_DLK001: 'DLK001',
17
22
  DOCUMENT_DLK002: 'DLK002',
@@ -33,6 +38,10 @@ const loket = {
33
38
  DOCUMENT_DLK018: 'DLK018',
34
39
  DOCUMENT_DLK019: 'DLK019',
35
40
  DOCUMENT_DLK020: 'DLK020',
41
+ DOCUMENT_DLK021: 'DLK021',
42
+ DOCUMENT_DLK022: 'DLK022',
43
+ DOCUMENT_DLK023: 'DLK023',
44
+ DOCUMENT_DLK024: 'DLK024',
36
45
  DOCUMENT_DT001: 'DT001',
37
46
  DOCUMENT_DT002: 'DT002',
38
47
  DOCUMENT_DT003: 'DT003',
@@ -51,6 +60,11 @@ loket.LIST_RISK.push(loket.RISK_CLK006);
51
60
  loket.LIST_RISK.push(loket.RISK_CLK007);
52
61
  loket.LIST_RISK.push(loket.RISK_CLK008);
53
62
  loket.LIST_RISK.push(loket.RISK_CLK009);
63
+ loket.LIST_RISK.push(loket.RISK_CLK010);
64
+ loket.LIST_RISK.push(loket.RISK_CLK011);
65
+ loket.LIST_RISK.push(loket.RISK_CLK012);
66
+ loket.LIST_RISK.push(loket.RISK_CLK013);
67
+ loket.LIST_RISK.push(loket.RISK_CLK014);
54
68
  loket.RISK_CONFIG[loket.RISK_CLK001] = {
55
69
  isRequiredFillClaimAmount: false,
56
70
  desc: {
@@ -183,6 +197,71 @@ loket.RISK_CONFIG[loket.RISK_CLK009] = {
183
197
  loket.DOCUMENT_DLK020,
184
198
  ],
185
199
  };
200
+ loket.RISK_CONFIG[loket.RISK_CLK010] = {
201
+ isRequiredFillClaimAmount: false,
202
+ desc: {
203
+ id: 'Pembatalan Karena Cedera atau Penyakit serius atau meninggal dunia yang dialami Tertanggung atau keluarga inti*',
204
+ en: 'Cancellation due to serious injury, serious illness, or death suffered by the Insured or an immediate family member*',
205
+ },
206
+ requiredDocument: [
207
+ loket.DOCUMENT_DLK001,
208
+ loket.DOCUMENT_DLK002,
209
+ loket.DOCUMENT_DLK003,
210
+ loket.DOCUMENT_DLK009,
211
+ ],
212
+ };
213
+ loket.RISK_CONFIG[loket.RISK_CLK011] = {
214
+ isRequiredFillClaimAmount: false,
215
+ desc: {
216
+ id: 'Pembatalan Karena Panggilan untuk menjadi saksi pengadilan, yang tidak diberitahukan lebih dahulu kepada anda sebelum anda mengambil Polis ini',
217
+ en: 'Cancellation due to a court summons requiring you to appear as a witness, provided that such summons was not issued or notified to you prior to the issuance of this Policy',
218
+ },
219
+ requiredDocument: [
220
+ loket.DOCUMENT_DLK001,
221
+ loket.DOCUMENT_DLK002,
222
+ loket.DOCUMENT_DLK003,
223
+ loket.DOCUMENT_DLK021,
224
+ ],
225
+ };
226
+ loket.RISK_CONFIG[loket.RISK_CLK012] = {
227
+ isRequiredFillClaimAmount: false,
228
+ desc: {
229
+ id: 'Pembatalan Karena Terjadinya pemogokan, kerusuhan atau huru-hara yang tidak terduga dimana keadaan tersebut terjadi di tempat tujuan (lokasi acara) yang direncanakan diluar kendali anda',
230
+ en: 'Cancellation due to unexpected strikes, riots, or civil commotions occurring at the intended destination (event location), which are beyond your control',
231
+ },
232
+ requiredDocument: [
233
+ loket.DOCUMENT_DLK001,
234
+ loket.DOCUMENT_DLK002,
235
+ loket.DOCUMENT_DLK003,
236
+ loket.DOCUMENT_DLK022,
237
+ ],
238
+ };
239
+ loket.RISK_CONFIG[loket.RISK_CLK013] = {
240
+ isRequiredFillClaimAmount: false,
241
+ desc: {
242
+ id: 'Pembatalan Karena Tempat tinggal anda atau Tempat usaha anda di Indonesia mengalami kerusakan besar** karena kebakaran, banjir atau bencana alam sejenis dan kehadiran anda diperlukan pada tempatnya saat atau setelah tanggal keberangkatan',
243
+ en: 'Cancellation due to substantial damage** to your residence or business premises in Indonesia caused by fire, flood, or similar natural disasters, requiring your presence at the location on or after the scheduled departure date',
244
+ },
245
+ requiredDocument: [
246
+ loket.DOCUMENT_DLK001,
247
+ loket.DOCUMENT_DLK002,
248
+ loket.DOCUMENT_DLK003,
249
+ loket.DOCUMENT_DLK023,
250
+ ],
251
+ };
252
+ loket.RISK_CONFIG[loket.RISK_CLK014] = {
253
+ isRequiredFillClaimAmount: false,
254
+ desc: {
255
+ id: 'Pembatalan Karena Pesawat delay min 4 jam dan/atau penerbangan pesawat dibatalkan karena bencana alam, akibat pemogokan, aksi buruh sektor industri, cuaca buruk, kerusakan mekanis atau penutupan bandara atau pelabuhan keberangkatan',
256
+ en: 'Cancellation due to a flight delay of not less than four (4) hours and/or flight cancellation resulting from force majeure events, including but not limited to natural disasters, strikes or industrial actions, adverse weather conditions, mechanical breakdown, or closure of the designated departure airport or seaport',
257
+ },
258
+ requiredDocument: [
259
+ loket.DOCUMENT_DLK001,
260
+ loket.DOCUMENT_DLK002,
261
+ loket.DOCUMENT_DLK003,
262
+ loket.DOCUMENT_DLK024,
263
+ ],
264
+ };
186
265
  loket.DOCUMENT_CONFIG[loket.DOCUMENT_DLK001] = {
187
266
  desc: {
188
267
  id: 'KTP',
@@ -303,6 +382,30 @@ loket.DOCUMENT_CONFIG[loket.DOCUMENT_DLK020] = {
303
382
  en: 'Proof of Payment for Accommodation and Transportation - Invoices, hotel receipts, proof of reservation, scheduled transportation tickets (e.g. train, plane)',
304
383
  },
305
384
  };
385
+ loket.DOCUMENT_CONFIG[loket.DOCUMENT_DLK021] = {
386
+ desc: {
387
+ id: 'Surat panggilan pengadilan (jika batal akibat menjadi saksi)',
388
+ en: 'Court Summons (in the event of cancellation due to being required to appear as a witness)',
389
+ },
390
+ };
391
+ loket.DOCUMENT_CONFIG[loket.DOCUMENT_DLK022] = {
392
+ desc: {
393
+ id: 'Surat keterangan dari penyelenggara acara, kepolisian, pemerintah setempat, dan/atau media yang menyatakan bahwa terjadi pemogokan, kerusuhan, atau huru-hara di lokasi acara',
394
+ en: 'Official statement from the event organizer, police, local authorities, and/or media confirming the occurrence of a strike, riot, or civil commotion at the event location',
395
+ },
396
+ };
397
+ loket.DOCUMENT_CONFIG[loket.DOCUMENT_DLK023] = {
398
+ desc: {
399
+ id: 'Surat keterangan RT/RW dan foto-foto pendukung (jika tempat tinggal atau tempat usaha rusak)',
400
+ en: 'Certificate from the neighborhood authority (RT/RW) and supporting photographs (in the event of damage to the residence or business premises)',
401
+ },
402
+ };
403
+ loket.DOCUMENT_CONFIG[loket.DOCUMENT_DLK024] = {
404
+ desc: {
405
+ id: 'Surat keterangan dari Maskapai Penerbangan (jika penerbangan delay atau dibatalkan)',
406
+ en: 'Certificate or official statement from the Airline (in the event of flight delay or cancellation)',
407
+ },
408
+ };
306
409
  loket.DOCUMENT_CONFIG[loket.DOCUMENT_DT001] = {
307
410
  desc: {
308
411
  id: "Dokumen Surat Kuasa",
@@ -340,16 +443,25 @@ loket.BENEFIT_BASE_ON_PRODUCT = {
340
443
  loket.RISK_CLK007,
341
444
  loket.RISK_CLK008,
342
445
  loket.RISK_CLK009,
446
+ loket.RISK_CLK010,
447
+ loket.RISK_CLK011,
448
+ loket.RISK_CLK012,
449
+ loket.RISK_CLK013,
450
+ loket.RISK_CLK014,
343
451
  ],
344
452
  'P126': [
345
453
  loket.RISK_CLK001,
346
454
  loket.RISK_CLK002,
347
455
  loket.RISK_CLK003,
348
- loket.RISK_CLK004,
349
456
  loket.RISK_CLK005,
350
457
  loket.RISK_CLK006,
351
458
  loket.RISK_CLK007,
352
459
  loket.RISK_CLK008,
460
+ loket.RISK_CLK010,
461
+ loket.RISK_CLK011,
462
+ loket.RISK_CLK012,
463
+ loket.RISK_CLK013,
464
+ loket.RISK_CLK014,
353
465
  ],
354
466
  };
355
467
  exports.default = loket;
@@ -1,9 +1,9 @@
1
1
  import IUser from "../interface/user.interface";
2
2
  declare const _default: (user: IUser) => {
3
- 'x-user': string;
4
- 'x-username': string;
5
- 'x-useremail': string;
6
- 'x-admin': string;
7
3
  'x-public': string;
4
+ 'x-admin': string;
5
+ 'x-useremail': string;
6
+ 'x-username': string;
7
+ 'x-user': string;
8
8
  };
9
9
  export default _default;
@@ -1,11 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = (user) => {
4
- return {
5
- 'x-user': user.userCode,
6
- 'x-username': user.username,
7
- 'x-useremail': user.userEmail,
8
- 'x-admin': user.isAdmin,
9
- 'x-public': user.isPublic,
10
- };
4
+ return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (user.userCode ? { 'x-user': user.userCode } : undefined)), (user.username ? { 'x-username': user.username } : undefined)), (user.userEmail ? { 'x-useremail': user.userEmail } : undefined)), (user.isAdmin ? { 'x-admin': user.isAdmin } : undefined)), (user.isPublic ? { 'x-public': user.isPublic } : undefined));
11
5
  };
@@ -1,7 +1,7 @@
1
1
  export default interface IUser {
2
2
  id?: number;
3
3
  userCode: string;
4
- username: string;
4
+ username?: string;
5
5
  userEmail?: string;
6
6
  source?: string;
7
7
  isAdmin?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provis/provis-common-be-module",
3
- "version": "2.5.8",
3
+ "version": "2.5.10",
4
4
  "description": "This common module for Provis internal backend use lib",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {