@provis/provis-common-be-module 2.5.28 → 2.5.30
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.
- package/dist/class/main.repository.js +4 -4
- package/dist/constants/claim/cargo.d.ts +1 -117
- package/dist/constants/claim/kalog.js +1 -1
- package/dist/constants/claim/loket.js +40 -40
- package/dist/constants/claim/motorVehicle.js +1 -1
- package/dist/constants/claim/travel.js +1 -1
- package/dist/constants/config.js +2 -2
- package/dist/constants/invoice.d.ts +23 -20
- package/dist/constants/invoice.js +3 -2
- package/dist/constants/product/mv/mv.d.ts +9 -0
- package/dist/constants/product/mv/mv.js +34 -2
- package/dist/constants/product/mv.d.ts +30 -0
- package/dist/constants/product/mv.js +158 -0
- package/dist/constants/product/property/occupation.d.ts +5 -0
- package/dist/constants/product/property/occupation.js +1725 -0
- package/dist/constants/product.js +12 -12
- package/dist/helpers/amountDescription.js +1 -1
- package/dist/helpers/axiosGet.js +1 -1
- package/dist/helpers/axiosPost.js +1 -1
- package/dist/helpers/axiosPut.js +1 -1
- package/dist/helpers/calculateByType.js +1 -1
- package/dist/helpers/calculateForNullable.js +5 -5
- package/dist/helpers/getHeaderUser.js +4 -4
- package/dist/helpers/loop.js +2 -2
- package/dist/helpers/loopBackward.js +2 -2
- package/dist/helpers/readExcel.d.ts +2 -0
- package/package.json +1 -1
|
@@ -116,8 +116,8 @@ class MainRepository extends typeorm_1.Repository {
|
|
|
116
116
|
return result;
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
-
summaryField(
|
|
120
|
-
return __awaiter(this,
|
|
119
|
+
summaryField({ fieldToSum, search, additionalSearchOr, relations, }) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
121
|
let query = this.createQueryBuilder()
|
|
122
122
|
.select([
|
|
123
123
|
'COUNT(1) AS totalRows',
|
|
@@ -132,8 +132,8 @@ class MainRepository extends typeorm_1.Repository {
|
|
|
132
132
|
return query.getRawOne();
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
|
-
findAllAndCount(
|
|
136
|
-
return __awaiter(this,
|
|
135
|
+
findAllAndCount({ search, additionalSearchOr, relations, sortBy, offset = 1, maxCount = 50, }) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
137
|
const skipItems = ((offset < 1 ? 1 : offset) - 1) * maxCount;
|
|
138
138
|
let query = this.createQueryBuilder().select(this.selectFieldOnFindAllAndCount());
|
|
139
139
|
query = this.applySearchConditions({
|
|
@@ -1,122 +1,6 @@
|
|
|
1
|
-
declare const docDef: {
|
|
2
|
-
DOC_CLAIM: string;
|
|
3
|
-
DOC_AIRWAY: string;
|
|
4
|
-
DOC_DELIVERY_RECEIPT: string;
|
|
5
|
-
DOC_PACKING_LIST: string;
|
|
6
|
-
DOC_INVOICE: string;
|
|
7
|
-
DOC_CLAIM_REPORT: string;
|
|
8
|
-
DOC_DOCUMENTATION: string;
|
|
9
|
-
DOC_EIR: string;
|
|
10
|
-
DOC_TALLY_SHEET: string;
|
|
11
|
-
DOC_POLICE_REPORT: string;
|
|
12
|
-
DOC_OTHER: string;
|
|
13
|
-
DOC_LOD: string;
|
|
14
|
-
DOC_LOD_SIGNED: string;
|
|
15
|
-
DOC_PAYMENT: string;
|
|
16
|
-
DOC_SPGR: string;
|
|
17
|
-
DOC_STP3: string;
|
|
18
|
-
DOC_INFORMATION_DESTROYED_GOODS: string;
|
|
19
|
-
DOC_DOCUMENTATION_DESTROYED_GOODS: string;
|
|
20
|
-
};
|
|
21
1
|
declare const _default: {
|
|
22
2
|
LIST_DESC: {
|
|
23
|
-
[
|
|
24
|
-
desc: {
|
|
25
|
-
en: string;
|
|
26
|
-
id: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
[docDef.DOC_AIRWAY]: {
|
|
30
|
-
desc: {
|
|
31
|
-
en: string;
|
|
32
|
-
id: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
[docDef.DOC_DELIVERY_RECEIPT]: {
|
|
36
|
-
desc: {
|
|
37
|
-
en: string;
|
|
38
|
-
id: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
[docDef.DOC_PACKING_LIST]: {
|
|
42
|
-
desc: {
|
|
43
|
-
en: string;
|
|
44
|
-
id: string;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
[docDef.DOC_INVOICE]: {
|
|
48
|
-
desc: {
|
|
49
|
-
en: string;
|
|
50
|
-
id: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
[docDef.DOC_CLAIM_REPORT]: {
|
|
54
|
-
desc: {
|
|
55
|
-
en: string;
|
|
56
|
-
id: string;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
[docDef.DOC_DOCUMENTATION]: {
|
|
60
|
-
desc: {
|
|
61
|
-
en: string;
|
|
62
|
-
id: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
[docDef.DOC_EIR]: {
|
|
66
|
-
desc: {
|
|
67
|
-
en: string;
|
|
68
|
-
id: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
[docDef.DOC_TALLY_SHEET]: {
|
|
72
|
-
desc: {
|
|
73
|
-
en: string;
|
|
74
|
-
id: string;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
[docDef.DOC_POLICE_REPORT]: {
|
|
78
|
-
desc: {
|
|
79
|
-
en: string;
|
|
80
|
-
id: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
[docDef.DOC_OTHER]: {
|
|
84
|
-
desc: {
|
|
85
|
-
en: string;
|
|
86
|
-
id: string;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
[docDef.DOC_LOD]: {
|
|
90
|
-
desc: {
|
|
91
|
-
en: string;
|
|
92
|
-
id: string;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
[docDef.DOC_LOD_SIGNED]: {
|
|
96
|
-
desc: {
|
|
97
|
-
en: string;
|
|
98
|
-
id: string;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
[docDef.DOC_PAYMENT]: {
|
|
102
|
-
desc: {
|
|
103
|
-
en: string;
|
|
104
|
-
id: string;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
[docDef.DOC_STP3]: {
|
|
108
|
-
desc: {
|
|
109
|
-
en: string;
|
|
110
|
-
id: string;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
[docDef.DOC_INFORMATION_DESTROYED_GOODS]: {
|
|
114
|
-
desc: {
|
|
115
|
-
en: string;
|
|
116
|
-
id: string;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
[docDef.DOC_DOCUMENTATION_DESTROYED_GOODS]: {
|
|
3
|
+
[x: string]: {
|
|
120
4
|
desc: {
|
|
121
5
|
en: string;
|
|
122
6
|
id: string;
|
|
@@ -4,51 +4,51 @@ const status_1 = require("./status");
|
|
|
4
4
|
const config_1 = require("../config");
|
|
5
5
|
const loket = {
|
|
6
6
|
// LIST RESIKO
|
|
7
|
-
RISK_CLK001: 'CLK001',
|
|
8
|
-
RISK_CLK007: 'CLK007',
|
|
9
|
-
RISK_CLK002: 'CLK002',
|
|
10
|
-
RISK_CLK003: 'CLK003',
|
|
11
|
-
RISK_CLK004: 'CLK004',
|
|
12
|
-
RISK_CLK008: 'CLK008',
|
|
13
|
-
RISK_CLK006: 'CLK006',
|
|
14
|
-
RISK_CLK009: 'CLK009',
|
|
7
|
+
RISK_CLK001: 'CLK001',
|
|
8
|
+
RISK_CLK007: 'CLK007',
|
|
9
|
+
RISK_CLK002: 'CLK002',
|
|
10
|
+
RISK_CLK003: 'CLK003',
|
|
11
|
+
RISK_CLK004: 'CLK004',
|
|
12
|
+
RISK_CLK008: 'CLK008',
|
|
13
|
+
RISK_CLK006: 'CLK006',
|
|
14
|
+
RISK_CLK009: 'CLK009',
|
|
15
15
|
// INI dropdown buat CLK008
|
|
16
|
-
RISK_CLK010: 'CLK010',
|
|
17
|
-
RISK_CLK005: 'CLK005',
|
|
18
|
-
RISK_CLK011: 'CLK011',
|
|
19
|
-
RISK_CLK012: 'CLK012',
|
|
20
|
-
RISK_CLK013: 'CLK013',
|
|
21
|
-
RISK_CLK014: 'CLK014',
|
|
16
|
+
RISK_CLK010: 'CLK010',
|
|
17
|
+
RISK_CLK005: 'CLK005',
|
|
18
|
+
RISK_CLK011: 'CLK011',
|
|
19
|
+
RISK_CLK012: 'CLK012',
|
|
20
|
+
RISK_CLK013: 'CLK013',
|
|
21
|
+
RISK_CLK014: 'CLK014',
|
|
22
22
|
// LIST DOCUMENT
|
|
23
|
-
DOCUMENT_DLK001: 'DLK001',
|
|
24
|
-
DOCUMENT_DLK002: 'DLK002',
|
|
25
|
-
DOCUMENT_DLK003: 'DLK003',
|
|
26
|
-
DOCUMENT_DLK004: 'DLK004',
|
|
27
|
-
DOCUMENT_DLK005: 'DLK005',
|
|
28
|
-
DOCUMENT_DLK006: 'DLK006',
|
|
29
|
-
DOCUMENT_DLK007: 'DLK007',
|
|
30
|
-
DOCUMENT_DLK008: 'DLK008',
|
|
31
|
-
DOCUMENT_DLK009: 'DLK009',
|
|
32
|
-
DOCUMENT_DLK010: 'DLK010',
|
|
33
|
-
DOCUMENT_DLK011: 'DLK011',
|
|
34
|
-
DOCUMENT_DLK012: 'DLK012',
|
|
35
|
-
DOCUMENT_DLK013: 'DLK013',
|
|
36
|
-
DOCUMENT_DLK014: 'DLK014',
|
|
37
|
-
DOCUMENT_DLK015: 'DLK015',
|
|
38
|
-
DOCUMENT_DLK016: 'DLK016',
|
|
39
|
-
DOCUMENT_DLK017: 'DLK017',
|
|
40
|
-
DOCUMENT_DLK018: 'DLK018',
|
|
41
|
-
DOCUMENT_DLK019: 'DLK019',
|
|
42
|
-
DOCUMENT_DLK020: 'DLK020',
|
|
43
|
-
DOCUMENT_DLK021: 'DLK021',
|
|
44
|
-
DOCUMENT_DLK022: 'DLK022',
|
|
45
|
-
DOCUMENT_DLK023: 'DLK023',
|
|
46
|
-
DOCUMENT_DLK024: 'DLK024',
|
|
47
|
-
DOCUMENT_DLK025: 'DLK025',
|
|
23
|
+
DOCUMENT_DLK001: 'DLK001',
|
|
24
|
+
DOCUMENT_DLK002: 'DLK002',
|
|
25
|
+
DOCUMENT_DLK003: 'DLK003',
|
|
26
|
+
DOCUMENT_DLK004: 'DLK004',
|
|
27
|
+
DOCUMENT_DLK005: 'DLK005',
|
|
28
|
+
DOCUMENT_DLK006: 'DLK006',
|
|
29
|
+
DOCUMENT_DLK007: 'DLK007',
|
|
30
|
+
DOCUMENT_DLK008: 'DLK008',
|
|
31
|
+
DOCUMENT_DLK009: 'DLK009',
|
|
32
|
+
DOCUMENT_DLK010: 'DLK010',
|
|
33
|
+
DOCUMENT_DLK011: 'DLK011',
|
|
34
|
+
DOCUMENT_DLK012: 'DLK012',
|
|
35
|
+
DOCUMENT_DLK013: 'DLK013',
|
|
36
|
+
DOCUMENT_DLK014: 'DLK014',
|
|
37
|
+
DOCUMENT_DLK015: 'DLK015',
|
|
38
|
+
DOCUMENT_DLK016: 'DLK016',
|
|
39
|
+
DOCUMENT_DLK017: 'DLK017',
|
|
40
|
+
DOCUMENT_DLK018: 'DLK018',
|
|
41
|
+
DOCUMENT_DLK019: 'DLK019',
|
|
42
|
+
DOCUMENT_DLK020: 'DLK020',
|
|
43
|
+
DOCUMENT_DLK021: 'DLK021',
|
|
44
|
+
DOCUMENT_DLK022: 'DLK022',
|
|
45
|
+
DOCUMENT_DLK023: 'DLK023',
|
|
46
|
+
DOCUMENT_DLK024: 'DLK024',
|
|
47
|
+
DOCUMENT_DLK025: 'DLK025',
|
|
48
48
|
DOCUMENT_DT001: 'DT001',
|
|
49
49
|
DOCUMENT_DT002: 'DT002',
|
|
50
50
|
DOCUMENT_DT003: 'DT003',
|
|
51
|
-
LIST_RISK: [],
|
|
51
|
+
LIST_RISK: [],
|
|
52
52
|
RISK_CONFIG: {},
|
|
53
53
|
DOCUMENT_CONFIG: {},
|
|
54
54
|
STATUS_DEADLINE: {},
|
|
@@ -33,7 +33,7 @@ const motorVehicle = {
|
|
|
33
33
|
VCDOC022: { key: 'VCDOC022', descEn: '', desc: 'Kuitansi dari Rumah Sakit' },
|
|
34
34
|
VCDOC023: { key: 'VCDOC023', descEn: '', desc: 'Sertifikat Kematian - Untuk kematian Pihak Ketiga' },
|
|
35
35
|
VCDOC024: { key: 'VCDOC024', descEn: '', desc: 'Seluruh korespondensi dengan pihak ketiga yang mengalami luka/kematian' },
|
|
36
|
-
LIST_RISK: [],
|
|
36
|
+
LIST_RISK: [],
|
|
37
37
|
RISK_CONFIG: {},
|
|
38
38
|
DOCUMENT_CONFIG: {},
|
|
39
39
|
STATUS_DEADLINE: {},
|
|
@@ -73,7 +73,7 @@ const travel = {
|
|
|
73
73
|
TCDOC044: { key: 'TCDOC044', descEn: '', desc: 'Tanda terima bagasi (berisi jam & tanggal bagasi diterima)' },
|
|
74
74
|
TCDOC045: { key: 'TCDOC045', descEn: '', desc: 'Ticket & Boarding Pass' },
|
|
75
75
|
TCDOC046: { key: 'TCDOC046', descEn: '', desc: 'Visum et Repertum' },
|
|
76
|
-
LIST_RISK: [],
|
|
76
|
+
LIST_RISK: [],
|
|
77
77
|
RISK_CONFIG: {},
|
|
78
78
|
DOCUMENT_CONFIG: {},
|
|
79
79
|
STATUS_DEADLINE: {},
|
package/dist/constants/config.js
CHANGED
|
@@ -11,8 +11,8 @@ const config = {
|
|
|
11
11
|
date_simple_format_withoud_dash: 'YYYYMMDD',
|
|
12
12
|
date_format_full_datetime_only: 'DD/MM/YYYY HH:ii:ss',
|
|
13
13
|
date_format_timestamp: 'timestamp',
|
|
14
|
-
date_format_indonesia_format: 'D M Y',
|
|
15
|
-
date_format_english_format: 'DD MMM YYYY',
|
|
14
|
+
date_format_indonesia_format: 'D M Y',
|
|
15
|
+
date_format_english_format: 'DD MMM YYYY',
|
|
16
16
|
date_simple_indonesia_format: 'DD-MM-YYYY',
|
|
17
17
|
// GENDER
|
|
18
18
|
GENDER_MALE: 'M',
|
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
export declare const invoiceStatusCode: {
|
|
2
|
-
INITIAL: {
|
|
3
|
-
code:
|
|
4
|
-
name:
|
|
2
|
+
readonly INITIAL: {
|
|
3
|
+
readonly code: 0;
|
|
4
|
+
readonly name: "Initial";
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
code:
|
|
8
|
-
name:
|
|
6
|
+
readonly PAID: {
|
|
7
|
+
readonly code: 100;
|
|
8
|
+
readonly name: "Paid";
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
code:
|
|
12
|
-
name:
|
|
10
|
+
readonly SUBMIT: {
|
|
11
|
+
readonly code: 200;
|
|
12
|
+
readonly name: "Submit";
|
|
13
13
|
};
|
|
14
|
-
CANCEL: {
|
|
15
|
-
code:
|
|
16
|
-
name:
|
|
14
|
+
readonly CANCEL: {
|
|
15
|
+
readonly code: 300;
|
|
16
|
+
readonly name: "Cancel";
|
|
17
17
|
};
|
|
18
|
-
EXPIRED: {
|
|
19
|
-
code:
|
|
20
|
-
name:
|
|
18
|
+
readonly EXPIRED: {
|
|
19
|
+
readonly code: 399;
|
|
20
|
+
readonly name: "Expired";
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
[
|
|
26
|
-
[invoiceStatusCode.CANCEL.code]: string;
|
|
27
|
-
[invoiceStatusCode.EXPIRED.code]: string;
|
|
23
|
+
type InvoiceStatusCode = typeof invoiceStatusCode[keyof typeof invoiceStatusCode]['code'];
|
|
24
|
+
type InvoiceStatusNameMap = {
|
|
25
|
+
[key in InvoiceStatusCode]: string;
|
|
28
26
|
};
|
|
27
|
+
export declare const invoiceinvoiceStatusCodeName: InvoiceStatusNameMap;
|
|
28
|
+
export interface InvoiceWithStatus {
|
|
29
|
+
status: InvoiceStatusCode;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -6,11 +6,11 @@ exports.invoiceStatusCode = {
|
|
|
6
6
|
code: 0,
|
|
7
7
|
name: 'Initial',
|
|
8
8
|
},
|
|
9
|
-
|
|
9
|
+
PAID: {
|
|
10
10
|
code: 100,
|
|
11
11
|
name: 'Paid',
|
|
12
12
|
},
|
|
13
|
-
|
|
13
|
+
SUBMIT: {
|
|
14
14
|
code: 200,
|
|
15
15
|
name: 'Submit',
|
|
16
16
|
},
|
|
@@ -25,6 +25,7 @@ exports.invoiceStatusCode = {
|
|
|
25
25
|
};
|
|
26
26
|
exports.invoiceinvoiceStatusCodeName = {
|
|
27
27
|
[exports.invoiceStatusCode.INITIAL.code]: exports.invoiceStatusCode.INITIAL.name,
|
|
28
|
+
[exports.invoiceStatusCode.PAID.code]: exports.invoiceStatusCode.PAID.name,
|
|
28
29
|
[exports.invoiceStatusCode.SUBMIT.code]: exports.invoiceStatusCode.SUBMIT.name,
|
|
29
30
|
[exports.invoiceStatusCode.CANCEL.code]: exports.invoiceStatusCode.CANCEL.name,
|
|
30
31
|
[exports.invoiceStatusCode.EXPIRED.code]: exports.invoiceStatusCode.EXPIRED.name,
|
|
@@ -39,6 +39,10 @@ declare const additionalCoverage: ({
|
|
|
39
39
|
id: string;
|
|
40
40
|
en: string;
|
|
41
41
|
};
|
|
42
|
+
wordingDesc: {
|
|
43
|
+
id: string;
|
|
44
|
+
en: string;
|
|
45
|
+
};
|
|
42
46
|
isVisible: boolean;
|
|
43
47
|
isInputSumInsured: boolean;
|
|
44
48
|
isInputQty: boolean;
|
|
@@ -51,6 +55,10 @@ declare const additionalCoverage: ({
|
|
|
51
55
|
id: string;
|
|
52
56
|
en: string;
|
|
53
57
|
};
|
|
58
|
+
wordingDesc: {
|
|
59
|
+
id: string;
|
|
60
|
+
en: string;
|
|
61
|
+
};
|
|
54
62
|
isVisible: boolean;
|
|
55
63
|
isInputSumInsured: boolean;
|
|
56
64
|
isInputQty: boolean;
|
|
@@ -67,6 +75,7 @@ declare const additionalCoverage: ({
|
|
|
67
75
|
isInputSumInsured: boolean;
|
|
68
76
|
isInputQty: boolean;
|
|
69
77
|
order: number;
|
|
78
|
+
wordingDesc?: undefined;
|
|
70
79
|
deductible?: undefined;
|
|
71
80
|
replaceWording?: undefined;
|
|
72
81
|
})[];
|
|
@@ -126,6 +126,10 @@ const additionalCoverage = [
|
|
|
126
126
|
id: "Topan, Badai, Banjir, Kerusakan Akibat Air",
|
|
127
127
|
en: "Typhoon, Storm, Flood, Water Damage (TSFWD)",
|
|
128
128
|
},
|
|
129
|
+
wordingDesc: {
|
|
130
|
+
id: "Topan, Badai, Banjir, Kerusakan Akibat Air",
|
|
131
|
+
en: "Typhoon, Storm, Flood, Water Damage (TSFWD)",
|
|
132
|
+
},
|
|
129
133
|
isVisible: true,
|
|
130
134
|
isInputSumInsured: false,
|
|
131
135
|
isInputQty: false,
|
|
@@ -140,6 +144,10 @@ const additionalCoverage = [
|
|
|
140
144
|
id: "Gempa Bumi, Letusan Gunung Berapi dan Tsunami",
|
|
141
145
|
en: "Earthquake, Volcanic Eruption and Tsunami (EQVET)",
|
|
142
146
|
},
|
|
147
|
+
wordingDesc: {
|
|
148
|
+
id: "Gempa Bumi, Letusan Gunung Berapi dan Tsunami",
|
|
149
|
+
en: "Earthquake, Volcanic Eruption and Tsunami (EQVET)",
|
|
150
|
+
},
|
|
143
151
|
isVisible: true,
|
|
144
152
|
isInputSumInsured: false,
|
|
145
153
|
isInputQty: false,
|
|
@@ -154,6 +162,10 @@ const additionalCoverage = [
|
|
|
154
162
|
id: "Mogok Kerja, Kerusuhan dan Kerusuhan Sipil",
|
|
155
163
|
en: "Strike Riot Civil Commotion Malicious Damage (SRCCMD)",
|
|
156
164
|
},
|
|
165
|
+
wordingDesc: {
|
|
166
|
+
id: "Mogok Kerja, Kerusuhan dan Kerusuhan Sipil",
|
|
167
|
+
en: "Strike Riot Civil Commotion Malicious Damage (SRCCMD)",
|
|
168
|
+
},
|
|
157
169
|
isVisible: true,
|
|
158
170
|
isInputSumInsured: false,
|
|
159
171
|
isInputQty: false,
|
|
@@ -168,6 +180,10 @@ const additionalCoverage = [
|
|
|
168
180
|
id: "Terorisme dan Sabotase",
|
|
169
181
|
en: "Terrorism and Sabotage (PSATSI)",
|
|
170
182
|
},
|
|
183
|
+
wordingDesc: {
|
|
184
|
+
id: "Terorisme dan Sabotase",
|
|
185
|
+
en: "Terrorism and Sabotage (PSATSI)",
|
|
186
|
+
},
|
|
171
187
|
isVisible: true,
|
|
172
188
|
isInputSumInsured: false,
|
|
173
189
|
isInputQty: false,
|
|
@@ -179,6 +195,10 @@ const additionalCoverage = [
|
|
|
179
195
|
{
|
|
180
196
|
code: "TPL",
|
|
181
197
|
desc: {
|
|
198
|
+
id: "Tanggung Jawab Hukum Pihak Ketiga",
|
|
199
|
+
en: "Third Party Liability (TPL)",
|
|
200
|
+
},
|
|
201
|
+
wordingDesc: {
|
|
182
202
|
id: "Tanggung Jawab Hukum Pihak Ketiga",
|
|
183
203
|
en: "Third Party Liability IDR {{sumInsured}}",
|
|
184
204
|
},
|
|
@@ -197,7 +217,11 @@ const additionalCoverage = [
|
|
|
197
217
|
code: "PAD",
|
|
198
218
|
desc: {
|
|
199
219
|
id: "Kecelakaan Pengemudi",
|
|
200
|
-
en: "Personal Accident (
|
|
220
|
+
en: "Personal Accident Driver (PAD)",
|
|
221
|
+
},
|
|
222
|
+
wordingDesc: {
|
|
223
|
+
id: "Kecelakaan Pengemudi",
|
|
224
|
+
en: "Personal Accident (PA): For unnamed Driver up to IDR {{sumInsured}} per Driver & Medical Expense up to maximum 10% of Personal Accident per vehicle",
|
|
201
225
|
},
|
|
202
226
|
isVisible: true,
|
|
203
227
|
isInputSumInsured: true,
|
|
@@ -214,7 +238,11 @@ const additionalCoverage = [
|
|
|
214
238
|
code: "PAP",
|
|
215
239
|
desc: {
|
|
216
240
|
id: "Kecelakaan Penumpang",
|
|
217
|
-
en: "Personal Accident (
|
|
241
|
+
en: "Personal Accident Passenger (PAP)",
|
|
242
|
+
},
|
|
243
|
+
wordingDesc: {
|
|
244
|
+
id: "Kecelakaan Penumpang",
|
|
245
|
+
en: "Personal Accident (PA): For unnamed Passenger up to IDR {{sumInsured}} per Passenger, maximum {{qty}} Passanger & Medical Expense up to maximum 10% of Personal Accident per vehicle",
|
|
218
246
|
},
|
|
219
247
|
isVisible: true,
|
|
220
248
|
isInputSumInsured: true,
|
|
@@ -234,6 +262,10 @@ const additionalCoverage = [
|
|
|
234
262
|
id: "Biaya Medis, Izin Bengkel, Tunjangan Ambulans, Ban dan Velg",
|
|
235
263
|
en: "TBOD, Authorize Workshop, Ambulance Allowance, Tire and Wheel", // TBOD -> Theft By Own Driver / Employee
|
|
236
264
|
},
|
|
265
|
+
wordingDesc: {
|
|
266
|
+
id: "Biaya Medis, Izin Bengkel, Tunjangan Ambulans, Ban dan Velg",
|
|
267
|
+
en: "TBOD, Authorize Workshop, Ambulance Allowance, Tire and Wheel", // TBOD -> Theft By Own Driver / Employee
|
|
268
|
+
},
|
|
237
269
|
isVisible: true,
|
|
238
270
|
isInputSumInsured: false,
|
|
239
271
|
isInputQty: false,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const insuranceType: {
|
|
2
|
+
code: string;
|
|
3
|
+
desc: {
|
|
4
|
+
id: string;
|
|
5
|
+
en: string;
|
|
6
|
+
};
|
|
7
|
+
}[];
|
|
8
|
+
declare const regionCode: {
|
|
9
|
+
code: string;
|
|
10
|
+
desc: {
|
|
11
|
+
id: string;
|
|
12
|
+
en: string;
|
|
13
|
+
};
|
|
14
|
+
}[];
|
|
15
|
+
declare const vehicleTypeCode: {
|
|
16
|
+
code: string;
|
|
17
|
+
desc: {
|
|
18
|
+
id: string;
|
|
19
|
+
en: string;
|
|
20
|
+
};
|
|
21
|
+
}[];
|
|
22
|
+
declare const additionalCoverage: {
|
|
23
|
+
code: string;
|
|
24
|
+
desc: {
|
|
25
|
+
id: string;
|
|
26
|
+
en: string;
|
|
27
|
+
};
|
|
28
|
+
isVisible: boolean;
|
|
29
|
+
}[];
|
|
30
|
+
export { insuranceType, regionCode, vehicleTypeCode, additionalCoverage, };
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.additionalCoverage = exports.vehicleTypeCode = exports.regionCode = exports.insuranceType = void 0;
|
|
4
|
+
const insuranceType = [
|
|
5
|
+
{
|
|
6
|
+
code: "all-risk",
|
|
7
|
+
desc: {
|
|
8
|
+
id: "Komprehensif",
|
|
9
|
+
en: "Comprehensive",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
code: "total-loss",
|
|
14
|
+
desc: {
|
|
15
|
+
id: "Kerugian Total",
|
|
16
|
+
en: "Total Loss",
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
exports.insuranceType = insuranceType;
|
|
21
|
+
const regionCode = [
|
|
22
|
+
{
|
|
23
|
+
code: "RC001",
|
|
24
|
+
desc: {
|
|
25
|
+
id: "Wilayah 1",
|
|
26
|
+
en: "Region 1",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
code: "RC002",
|
|
31
|
+
desc: {
|
|
32
|
+
id: "Wilayah 2",
|
|
33
|
+
en: "Region 2",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
code: "RC003",
|
|
38
|
+
desc: {
|
|
39
|
+
id: "Wilayah 3",
|
|
40
|
+
en: "Region 3",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
exports.regionCode = regionCode;
|
|
45
|
+
const vehicleTypeCode = [
|
|
46
|
+
{
|
|
47
|
+
code: "VT001",
|
|
48
|
+
desc: {
|
|
49
|
+
id: "Jenis Kendaraan Non Bus dan Non Truk",
|
|
50
|
+
en: "Types of Non-Bus and Non-Truck Vehicles",
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
code: "VT002",
|
|
55
|
+
desc: {
|
|
56
|
+
id: "Jenis Kendaraan Truk dan Pickup",
|
|
57
|
+
en: "Vehicle Types Truck and Pickup",
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
code: "VT003",
|
|
62
|
+
desc: {
|
|
63
|
+
id: "Jenis Kendaraan Bus",
|
|
64
|
+
en: "Vehicle Types Bus",
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
code: "VT004",
|
|
69
|
+
desc: {
|
|
70
|
+
id: "Jenis Kendaraan Roda 2 (dua)",
|
|
71
|
+
en: "Type of 2 (two) Wheeled Vehicle",
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
];
|
|
75
|
+
exports.vehicleTypeCode = vehicleTypeCode;
|
|
76
|
+
const additionalCoverage = [
|
|
77
|
+
{
|
|
78
|
+
code: "TSFWD",
|
|
79
|
+
desc: {
|
|
80
|
+
id: "Topan, Badai, Banjir, Kerusakan Akibat Air",
|
|
81
|
+
en: "Typhoon, Storm, Flood, Water Damage",
|
|
82
|
+
},
|
|
83
|
+
isVisible: true,
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
code: "EQVET",
|
|
87
|
+
desc: {
|
|
88
|
+
id: "Gempa Bumi, Letusan Gunung Berapi dan Tsunami",
|
|
89
|
+
en: "Earthquake, Volcanic Eruption and Tsunami",
|
|
90
|
+
},
|
|
91
|
+
isVisible: true,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
code: "SRCC",
|
|
95
|
+
desc: {
|
|
96
|
+
id: "Mogok Kerja, Kerusuhan dan Kerusuhan Sipil",
|
|
97
|
+
en: "Strike, Riot & Civil Commotion",
|
|
98
|
+
},
|
|
99
|
+
isVisible: true,
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
code: "PSATSI",
|
|
103
|
+
desc: {
|
|
104
|
+
id: "Terorisme dan Sabotase",
|
|
105
|
+
en: "Terrorism and Sabotage",
|
|
106
|
+
},
|
|
107
|
+
isVisible: true,
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
code: "TPL",
|
|
111
|
+
desc: {
|
|
112
|
+
id: "Tanggung Jawab Hukum Pihak Ketiga",
|
|
113
|
+
en: "Third Party Liability",
|
|
114
|
+
},
|
|
115
|
+
isVisible: true,
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
code: "PAD",
|
|
119
|
+
desc: {
|
|
120
|
+
id: "Kecelakaan Pengemudi",
|
|
121
|
+
en: "Personal Accident Driver",
|
|
122
|
+
},
|
|
123
|
+
isVisible: true,
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
code: "PAP",
|
|
127
|
+
desc: {
|
|
128
|
+
id: " Kcelakaan Penumpang",
|
|
129
|
+
en: "Personal Accident Passenger",
|
|
130
|
+
},
|
|
131
|
+
isVisible: true,
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
code: "TBOD",
|
|
135
|
+
desc: {
|
|
136
|
+
id: "Biaya Medis, Izin Bengkel, Tunjangan Ambulans, Ban dan Velg",
|
|
137
|
+
en: "TBOD, Authorize Workshop, Ambulance Allowance, Tire and Wheel",
|
|
138
|
+
},
|
|
139
|
+
isVisible: true,
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
code: "CASCO",
|
|
143
|
+
desc: {
|
|
144
|
+
id: "",
|
|
145
|
+
en: "",
|
|
146
|
+
},
|
|
147
|
+
isVisible: false,
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
code: "TLO",
|
|
151
|
+
desc: {
|
|
152
|
+
id: "",
|
|
153
|
+
en: "",
|
|
154
|
+
},
|
|
155
|
+
isVisible: false,
|
|
156
|
+
},
|
|
157
|
+
];
|
|
158
|
+
exports.additionalCoverage = additionalCoverage;
|