@provis/provis-common-be-module 2.3.30 → 2.4.1
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 +12 -70
- package/dist/constants/claim/cargo.js +136 -39
- package/dist/constants/claim/kalog.js +1 -1
- package/dist/constants/claim/loket.js +27 -27
- package/dist/constants/claim/motorVehicle.js +1 -1
- package/dist/constants/claim/status.d.ts +14 -0
- package/dist/constants/claim/status.js +16 -0
- package/dist/constants/claim/travel.js +1 -1
- package/dist/constants/product/mv.d.ts +30 -0
- package/dist/constants/product/mv.js +158 -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 -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,76 +1,18 @@
|
|
|
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
|
-
};
|
|
19
1
|
declare const _default: {
|
|
20
2
|
LIST_DESC: {
|
|
21
|
-
[
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
text: string;
|
|
27
|
-
mandatory: boolean;
|
|
28
|
-
};
|
|
29
|
-
[docDef.DOC_DELIVERY_RECEIPT]: {
|
|
30
|
-
text: string;
|
|
31
|
-
mandatory: boolean;
|
|
32
|
-
};
|
|
33
|
-
[docDef.DOC_PACKING_LIST]: {
|
|
34
|
-
text: string;
|
|
35
|
-
mandatory: boolean;
|
|
36
|
-
};
|
|
37
|
-
[docDef.DOC_INVOICE]: {
|
|
38
|
-
text: string;
|
|
39
|
-
mandatory: boolean;
|
|
40
|
-
};
|
|
41
|
-
[docDef.DOC_CLAIM_REPORT]: {
|
|
42
|
-
text: string;
|
|
43
|
-
mandatory: boolean;
|
|
44
|
-
};
|
|
45
|
-
[docDef.DOC_DOCUMENTATION]: {
|
|
46
|
-
text: string;
|
|
47
|
-
mandatory: boolean;
|
|
48
|
-
};
|
|
49
|
-
[docDef.DOC_EIR]: {
|
|
50
|
-
text: string;
|
|
51
|
-
};
|
|
52
|
-
[docDef.DOC_TALLY_SHEET]: {
|
|
53
|
-
text: string;
|
|
54
|
-
};
|
|
55
|
-
[docDef.DOC_POLICE_REPORT]: {
|
|
56
|
-
text: string;
|
|
57
|
-
};
|
|
58
|
-
[docDef.DOC_OTHER]: {
|
|
59
|
-
text: string;
|
|
60
|
-
};
|
|
61
|
-
[docDef.DOC_LOD]: {
|
|
62
|
-
text: string;
|
|
63
|
-
};
|
|
64
|
-
[docDef.DOC_LOD_SIGNED]: {
|
|
65
|
-
text: string;
|
|
66
|
-
};
|
|
67
|
-
[docDef.DOC_PAYMENT]: {
|
|
68
|
-
text: string;
|
|
69
|
-
};
|
|
70
|
-
[docDef.DOC_STP3]: {
|
|
71
|
-
text: string;
|
|
3
|
+
[x: string]: {
|
|
4
|
+
desc: {
|
|
5
|
+
en: string;
|
|
6
|
+
id: string;
|
|
7
|
+
};
|
|
72
8
|
};
|
|
73
9
|
};
|
|
74
|
-
|
|
10
|
+
LIST_ALL_DOC: string[];
|
|
11
|
+
LIST_REQUIREMENT_WAITING_DOC: string[];
|
|
12
|
+
LIST_ADDITIONAL_SHORTAGE_WAITING_DOC: string[];
|
|
13
|
+
LIST_ADDITIONAL_DAMAGE_WAITING_DOC: string[];
|
|
14
|
+
LIST_REQUIREMENT_LOD_SPGR: string[];
|
|
15
|
+
LIST_REQUIREMENT_LOD_SIGNED: string[];
|
|
16
|
+
LIST_REQUIREMENT_PAYMENT: string[];
|
|
75
17
|
};
|
|
76
18
|
export default _default;
|
|
@@ -16,51 +16,116 @@ const docDef = {
|
|
|
16
16
|
DOC_LOD_SIGNED: "DOC_LOD_SIGNED",
|
|
17
17
|
DOC_PAYMENT: "DOC_PAYMENT",
|
|
18
18
|
DOC_SPGR: "DOC_SPGR",
|
|
19
|
-
DOC_STP3: "DOC_STP3"
|
|
19
|
+
DOC_STP3: "DOC_STP3",
|
|
20
|
+
DOC_INFORMATION_DESTROYED_GOODS: 'DOC_INFORMATION_DESTROYED_GOODS',
|
|
21
|
+
DOC_DOCUMENTATION_DESTROYED_GOODS: 'DOC_DOCUMENTATION_DESTROYED_GOODS',
|
|
20
22
|
};
|
|
21
23
|
exports.default = {
|
|
22
24
|
LIST_DESC: {
|
|
23
25
|
[docDef.DOC_CLAIM]: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
desc: {
|
|
27
|
+
en: "Document Claim",
|
|
28
|
+
id: "Document Claim",
|
|
29
|
+
},
|
|
26
30
|
},
|
|
27
31
|
[docDef.DOC_AIRWAY]: {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
32
|
+
desc: {
|
|
33
|
+
en: "Bills of Lading / Airway",
|
|
34
|
+
id: "Bills of Lading / Airway",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
[docDef.DOC_DELIVERY_RECEIPT]: {
|
|
38
|
+
desc: {
|
|
39
|
+
en: "Surat Jalan / Delivery Receipt",
|
|
40
|
+
id: "Surat Jalan / Delivery Receipt",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
[docDef.DOC_PACKING_LIST]: {
|
|
44
|
+
desc: {
|
|
45
|
+
en: "Packing List",
|
|
46
|
+
id: "Packing List",
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
[docDef.DOC_INVOICE]: {
|
|
50
|
+
desc: {
|
|
51
|
+
en: "Invoice Nilai Rinci Seluruh Muatan",
|
|
52
|
+
id: "Invoice Nilai Rinci Seluruh Muatan",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
[docDef.DOC_CLAIM_REPORT]: {
|
|
56
|
+
desc: {
|
|
57
|
+
en: "Berita Acara Kerugian",
|
|
58
|
+
id: "Berita Acara Kerugian",
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
[docDef.DOC_DOCUMENTATION]: {
|
|
62
|
+
desc: {
|
|
63
|
+
en: "Foto - Foto Dokumentasi",
|
|
64
|
+
id: "Foto - Foto Dokumentasi",
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
[docDef.DOC_EIR]: {
|
|
68
|
+
desc: {
|
|
69
|
+
en: "EIR Sebelum Stuffing",
|
|
70
|
+
id: "EIR Sebelum Stuffing",
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
[docDef.DOC_TALLY_SHEET]: {
|
|
74
|
+
desc: {
|
|
75
|
+
en: "Tally Sheet",
|
|
76
|
+
id: "Tally Sheet",
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
[docDef.DOC_POLICE_REPORT]: {
|
|
80
|
+
desc: {
|
|
81
|
+
en: "Surat Laporan Kepolisian",
|
|
82
|
+
id: "Surat Laporan Kepolisian",
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
[docDef.DOC_OTHER]: {
|
|
86
|
+
desc: {
|
|
87
|
+
en: "Lainnya",
|
|
88
|
+
id: "Lainnya",
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
[docDef.DOC_LOD]: {
|
|
92
|
+
desc: {
|
|
93
|
+
en: "LOD",
|
|
94
|
+
id: "LOD",
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
[docDef.DOC_LOD_SIGNED]: {
|
|
98
|
+
desc: {
|
|
99
|
+
en: "LOD Sign",
|
|
100
|
+
id: "LOD Sign",
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
[docDef.DOC_PAYMENT]: {
|
|
104
|
+
desc: {
|
|
105
|
+
en: "Payment Receipt",
|
|
106
|
+
id: "Payment Receipt",
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
[docDef.DOC_STP3]: {
|
|
110
|
+
desc: {
|
|
111
|
+
en: "Surat Tuntutan Pihak Ke-3",
|
|
112
|
+
id: "Surat Tuntutan Pihak Ke-3",
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
[docDef.DOC_INFORMATION_DESTROYED_GOODS]: {
|
|
116
|
+
desc: {
|
|
117
|
+
en: "Berita Acara Pemusnahan Barang",
|
|
118
|
+
id: "Berita Acara Pemusnahan Barang",
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
[docDef.DOC_DOCUMENTATION_DESTROYED_GOODS]: {
|
|
122
|
+
desc: {
|
|
123
|
+
en: "Dokumentasi Pemusnahan Barang",
|
|
124
|
+
id: "Dokumentasi Pemusnahan Barang",
|
|
125
|
+
},
|
|
126
|
+
},
|
|
62
127
|
},
|
|
63
|
-
|
|
128
|
+
LIST_ALL_DOC: [
|
|
64
129
|
docDef.DOC_CLAIM,
|
|
65
130
|
docDef.DOC_AIRWAY,
|
|
66
131
|
docDef.DOC_DELIVERY_RECEIPT,
|
|
@@ -76,6 +141,38 @@ exports.default = {
|
|
|
76
141
|
docDef.DOC_LOD_SIGNED,
|
|
77
142
|
docDef.DOC_PAYMENT,
|
|
78
143
|
docDef.DOC_SPGR,
|
|
79
|
-
docDef.DOC_STP3
|
|
144
|
+
docDef.DOC_STP3,
|
|
145
|
+
docDef.DOC_INFORMATION_DESTROYED_GOODS,
|
|
146
|
+
docDef.DOC_DOCUMENTATION_DESTROYED_GOODS,
|
|
147
|
+
],
|
|
148
|
+
LIST_REQUIREMENT_WAITING_DOC: [
|
|
149
|
+
docDef.DOC_CLAIM,
|
|
150
|
+
docDef.DOC_AIRWAY,
|
|
151
|
+
docDef.DOC_DELIVERY_RECEIPT,
|
|
152
|
+
docDef.DOC_PACKING_LIST,
|
|
153
|
+
docDef.DOC_INVOICE,
|
|
154
|
+
docDef.DOC_CLAIM_REPORT,
|
|
155
|
+
docDef.DOC_DOCUMENTATION,
|
|
156
|
+
docDef.DOC_STP3,
|
|
157
|
+
docDef.DOC_INFORMATION_DESTROYED_GOODS,
|
|
158
|
+
docDef.DOC_DOCUMENTATION_DESTROYED_GOODS,
|
|
159
|
+
],
|
|
160
|
+
LIST_ADDITIONAL_SHORTAGE_WAITING_DOC: [
|
|
161
|
+
docDef.DOC_EIR,
|
|
162
|
+
docDef.DOC_TALLY_SHEET,
|
|
163
|
+
docDef.DOC_POLICE_REPORT,
|
|
164
|
+
],
|
|
165
|
+
LIST_ADDITIONAL_DAMAGE_WAITING_DOC: [
|
|
166
|
+
docDef.DOC_EIR,
|
|
167
|
+
],
|
|
168
|
+
LIST_REQUIREMENT_LOD_SPGR: [
|
|
169
|
+
docDef.DOC_LOD,
|
|
170
|
+
docDef.DOC_SPGR,
|
|
171
|
+
],
|
|
172
|
+
LIST_REQUIREMENT_LOD_SIGNED: [
|
|
173
|
+
docDef.DOC_LOD_SIGNED,
|
|
174
|
+
],
|
|
175
|
+
LIST_REQUIREMENT_PAYMENT: [
|
|
176
|
+
docDef.DOC_PAYMENT,
|
|
80
177
|
],
|
|
81
178
|
};
|
|
@@ -3,37 +3,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const status_1 = require("./status");
|
|
4
4
|
const loket = {
|
|
5
5
|
// LIST RESIKO
|
|
6
|
-
RISK_CLK001: 'CLK001',
|
|
7
|
-
RISK_CLK002: 'CLK002',
|
|
8
|
-
RISK_CLK003: 'CLK003',
|
|
9
|
-
RISK_CLK004: 'CLK004',
|
|
10
|
-
RISK_CLK005: 'CLK005',
|
|
11
|
-
RISK_CLK006: 'CLK006',
|
|
12
|
-
RISK_CLK007: 'CLK007',
|
|
6
|
+
RISK_CLK001: 'CLK001',
|
|
7
|
+
RISK_CLK002: 'CLK002',
|
|
8
|
+
RISK_CLK003: 'CLK003',
|
|
9
|
+
RISK_CLK004: 'CLK004',
|
|
10
|
+
RISK_CLK005: 'CLK005',
|
|
11
|
+
RISK_CLK006: 'CLK006',
|
|
12
|
+
RISK_CLK007: 'CLK007',
|
|
13
13
|
// LIST DOCUMENT
|
|
14
|
-
DOCUMENT_DLK001: 'DLK001',
|
|
15
|
-
DOCUMENT_DLK002: 'DLK002',
|
|
16
|
-
DOCUMENT_DLK003: 'DLK003',
|
|
17
|
-
DOCUMENT_DLK004: 'DLK004',
|
|
18
|
-
DOCUMENT_DLK005: 'DLK005',
|
|
19
|
-
DOCUMENT_DLK006: 'DLK006',
|
|
20
|
-
DOCUMENT_DLK007: 'DLK007',
|
|
21
|
-
DOCUMENT_DLK008: 'DLK008',
|
|
22
|
-
DOCUMENT_DLK009: 'DLK009',
|
|
23
|
-
DOCUMENT_DLK010: 'DLK010',
|
|
24
|
-
DOCUMENT_DLK011: 'DLK011',
|
|
25
|
-
DOCUMENT_DLK012: 'DLK012',
|
|
26
|
-
DOCUMENT_DLK013: 'DLK013',
|
|
27
|
-
DOCUMENT_DLK014: 'DLK014',
|
|
28
|
-
DOCUMENT_DLK015: 'DLK015',
|
|
29
|
-
DOCUMENT_DLK016: 'DLK016',
|
|
30
|
-
DOCUMENT_DLK017: 'DLK017',
|
|
31
|
-
DOCUMENT_DLK018: 'DLK018',
|
|
32
|
-
DOCUMENT_DLK019: 'DLK019',
|
|
14
|
+
DOCUMENT_DLK001: 'DLK001',
|
|
15
|
+
DOCUMENT_DLK002: 'DLK002',
|
|
16
|
+
DOCUMENT_DLK003: 'DLK003',
|
|
17
|
+
DOCUMENT_DLK004: 'DLK004',
|
|
18
|
+
DOCUMENT_DLK005: 'DLK005',
|
|
19
|
+
DOCUMENT_DLK006: 'DLK006',
|
|
20
|
+
DOCUMENT_DLK007: 'DLK007',
|
|
21
|
+
DOCUMENT_DLK008: 'DLK008',
|
|
22
|
+
DOCUMENT_DLK009: 'DLK009',
|
|
23
|
+
DOCUMENT_DLK010: 'DLK010',
|
|
24
|
+
DOCUMENT_DLK011: 'DLK011',
|
|
25
|
+
DOCUMENT_DLK012: 'DLK012',
|
|
26
|
+
DOCUMENT_DLK013: 'DLK013',
|
|
27
|
+
DOCUMENT_DLK014: 'DLK014',
|
|
28
|
+
DOCUMENT_DLK015: 'DLK015',
|
|
29
|
+
DOCUMENT_DLK016: 'DLK016',
|
|
30
|
+
DOCUMENT_DLK017: 'DLK017',
|
|
31
|
+
DOCUMENT_DLK018: 'DLK018',
|
|
32
|
+
DOCUMENT_DLK019: 'DLK019',
|
|
33
33
|
DOCUMENT_DT001: 'DT001',
|
|
34
34
|
DOCUMENT_DT002: 'DT002',
|
|
35
35
|
DOCUMENT_DT003: 'DT003',
|
|
36
|
-
LIST_RISK: [],
|
|
36
|
+
LIST_RISK: [],
|
|
37
37
|
RISK_CONFIG: {},
|
|
38
38
|
DOCUMENT_CONFIG: {},
|
|
39
39
|
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: {},
|
|
@@ -63,6 +63,20 @@ declare const statusClaim: {
|
|
|
63
63
|
id: string;
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
|
+
REVIEW_LOD_PROVIS: {
|
|
67
|
+
code: string;
|
|
68
|
+
desc: {
|
|
69
|
+
en: string;
|
|
70
|
+
id: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
REVISION_LOD_INSURANCE: {
|
|
74
|
+
code: string;
|
|
75
|
+
desc: {
|
|
76
|
+
en: string;
|
|
77
|
+
id: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
66
80
|
WAIT_LOD_SIGN: {
|
|
67
81
|
code: string;
|
|
68
82
|
desc: {
|
|
@@ -65,6 +65,20 @@ const statusClaim = {
|
|
|
65
65
|
id: 'Dokumen LOD berhasil Dikeluarkan'
|
|
66
66
|
},
|
|
67
67
|
},
|
|
68
|
+
REVIEW_LOD_PROVIS: {
|
|
69
|
+
code: '131',
|
|
70
|
+
desc: {
|
|
71
|
+
en: 'LOD Review By Provis',
|
|
72
|
+
id: 'Dokumen LOD dalam pemeriksaan Provis'
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
REVISION_LOD_INSURANCE: {
|
|
76
|
+
code: '132',
|
|
77
|
+
desc: {
|
|
78
|
+
en: 'LOD Revision By Insurance',
|
|
79
|
+
id: 'Dokumen LOD direvisi oleh Asuransi'
|
|
80
|
+
},
|
|
81
|
+
},
|
|
68
82
|
WAIT_LOD_SIGN: {
|
|
69
83
|
code: '140',
|
|
70
84
|
desc: {
|
|
@@ -146,6 +160,8 @@ statusClaim.LIST_ACTIVE = [
|
|
|
146
160
|
statusClaim.CHECK_DOCUMENT.code,
|
|
147
161
|
statusClaim.REVIEW_PROVIS.code,
|
|
148
162
|
statusClaim.SUBMIT_LOD.code,
|
|
163
|
+
statusClaim.REVIEW_LOD_PROVIS.code,
|
|
164
|
+
statusClaim.REVISION_LOD_INSURANCE.code,
|
|
149
165
|
statusClaim.WAIT_LOD_SIGN.code,
|
|
150
166
|
statusClaim.SUBMIT_LOD_SIGN.code,
|
|
151
167
|
statusClaim.SUBMIT_CLAIM_TO_INSURANCE.code,
|
|
@@ -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: {},
|
|
@@ -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;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const occupation_1 = require("./product/occupation");
|
|
4
4
|
const product = {
|
|
5
|
-
LIST: {},
|
|
6
|
-
MANUAL_LIST: [],
|
|
5
|
+
LIST: {},
|
|
6
|
+
MANUAL_LIST: [],
|
|
7
7
|
CARGO_BY_SYSTEM_LIST: [],
|
|
8
8
|
PRODUCT_CODE_PROPERTY_ALL_RISK: 'polismall-property-allrisk',
|
|
9
9
|
PRODUCT_CODE_EARTHQUAKE: 'polismall-earthquake',
|
|
@@ -52,17 +52,17 @@ const product = {
|
|
|
52
52
|
PRODUCT_CODE_CARGO_BUNDLE: 'polismall-cargo-bundle',
|
|
53
53
|
PRODUCT_CODE_MERIMEN_CARGO: 'polismall-merimen-cargo',
|
|
54
54
|
PRODUCT_CODE_CARGO_TEMAS: 'polismall-cargo-temas',
|
|
55
|
-
PRODUCT_CODE_CARGO_SINGLE_SHIPMENT: 'polismall-cargo-single-shipment',
|
|
55
|
+
PRODUCT_CODE_CARGO_SINGLE_SHIPMENT: 'polismall-cargo-single-shipment',
|
|
56
56
|
// OTTO
|
|
57
|
-
PRODUCT_CODE_OTTO_CI: 'polismall-otto-critical-illness',
|
|
58
|
-
PRODUCT_CODE_OTTO_FLEXAS: 'polismall-otto-flexas',
|
|
59
|
-
PRODUCT_CODE_OTTO_CRACK_SCREEN: 'polismall-otto-crack',
|
|
60
|
-
PRODUCT_CODE_OTTO_AUM_GP: 'polismall-otto-aum-gp',
|
|
61
|
-
PRODUCT_CODE_OTTO_AUM_PLN: 'polismall-otto-aum-pln',
|
|
62
|
-
PRODUCT_CODE_OTTO_AUM_PDAM: 'polismall-otto-aum-pdam',
|
|
63
|
-
PRODUCT_CODE_OTTO_AUM_SB: 'polismall-otto-aum-sb',
|
|
64
|
-
PRODUCT_CODE_OTTO_AUM_FB: 'polismall-otto-aum-fb',
|
|
65
|
-
PRODUCT_CODE_OTTO_AUM_FBK: 'polismall-otto-aum-fbk',
|
|
57
|
+
PRODUCT_CODE_OTTO_CI: 'polismall-otto-critical-illness',
|
|
58
|
+
PRODUCT_CODE_OTTO_FLEXAS: 'polismall-otto-flexas',
|
|
59
|
+
PRODUCT_CODE_OTTO_CRACK_SCREEN: 'polismall-otto-crack',
|
|
60
|
+
PRODUCT_CODE_OTTO_AUM_GP: 'polismall-otto-aum-gp',
|
|
61
|
+
PRODUCT_CODE_OTTO_AUM_PLN: 'polismall-otto-aum-pln',
|
|
62
|
+
PRODUCT_CODE_OTTO_AUM_PDAM: 'polismall-otto-aum-pdam',
|
|
63
|
+
PRODUCT_CODE_OTTO_AUM_SB: 'polismall-otto-aum-sb',
|
|
64
|
+
PRODUCT_CODE_OTTO_AUM_FB: 'polismall-otto-aum-fb',
|
|
65
|
+
PRODUCT_CODE_OTTO_AUM_FBK: 'polismall-otto-aum-fbk',
|
|
66
66
|
// BDKI
|
|
67
67
|
PRODUCT_CODE_BDKI_MOTOR: 'polismall-bdki-motor',
|
|
68
68
|
PRODUCT_CODE_BDKI_RUMAH: 'polismall-bdki-rumah',
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = terbilang;
|
|
4
3
|
function terbilang(value) {
|
|
5
4
|
const satuan = ['', 'satu', 'dua', 'tiga', 'empat', 'lima', 'enam', 'tujuh', 'delapan', 'sembilan'];
|
|
6
5
|
const belasan = ['sepuluh', 'sebelas', 'dua belas', 'tiga belas', 'empat belas', 'lima belas', 'enam belas', 'tujuh belas', 'delapan belas', 'sembilan belas'];
|
|
@@ -42,3 +41,4 @@ function terbilang(value) {
|
|
|
42
41
|
// Menghilangkan spasi yang double
|
|
43
42
|
return result.replace(/\s+/g, ' ').trim();
|
|
44
43
|
}
|
|
44
|
+
exports.default = terbilang;
|
package/dist/helpers/axiosGet.js
CHANGED
|
@@ -13,7 +13,7 @@ const axios_1 = require("axios");
|
|
|
13
13
|
const generateRelationId_1 = require("./generateRelationId");
|
|
14
14
|
const getCurrentDate_1 = require("./getCurrentDate");
|
|
15
15
|
const constants_1 = require("../constants");
|
|
16
|
-
exports.default = (
|
|
16
|
+
exports.default = ({ url, headers, params, callback, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
17
|
return yield axios_1.default.get(url, {
|
|
18
18
|
params,
|
|
19
19
|
headers: Object.assign({ 'Content-Type': 'application/json', 'X-Correlation-Id': (0, generateRelationId_1.default)(24), 'X-Transmission-Date-Time': (0, getCurrentDate_1.default)() }, headers),
|
|
@@ -13,7 +13,7 @@ const axios_1 = require("axios");
|
|
|
13
13
|
const generateRelationId_1 = require("./generateRelationId");
|
|
14
14
|
const getCurrentDate_1 = require("./getCurrentDate");
|
|
15
15
|
const constants_1 = require("../constants");
|
|
16
|
-
exports.default = (
|
|
16
|
+
exports.default = ({ url, headers, body, callback, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
17
|
return yield axios_1.default.post(url, body, {
|
|
18
18
|
headers: Object.assign({ 'Content-Type': 'application/json', 'X-Correlation-Id': (0, generateRelationId_1.default)(24), 'X-Transmission-Date-Time': (0, getCurrentDate_1.default)() }, headers),
|
|
19
19
|
}).then((result) => __awaiter(void 0, void 0, void 0, function* () {
|
package/dist/helpers/axiosPut.js
CHANGED
|
@@ -13,7 +13,7 @@ const axios_1 = require("axios");
|
|
|
13
13
|
const constants_1 = require("../constants");
|
|
14
14
|
const generateRelationId_1 = require("./generateRelationId");
|
|
15
15
|
const getCurrentDate_1 = require("./getCurrentDate");
|
|
16
|
-
exports.default = (
|
|
16
|
+
exports.default = ({ url, headers, body, callback, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
17
|
return yield axios_1.default.put(url, body, {
|
|
18
18
|
headers: Object.assign({ 'Content-Type': 'application/json', 'X-Correlation-Id': (0, generateRelationId_1.default)(24), 'X-Transmission-Date-Time': (0, getCurrentDate_1.default)() }, headers),
|
|
19
19
|
}).then((result) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = default_1;
|
|
4
3
|
const brokerage_1 = require("../constants/brokerage");
|
|
5
4
|
function default_1(request) {
|
|
6
5
|
try {
|
|
@@ -17,3 +16,4 @@ function default_1(request) {
|
|
|
17
16
|
return null;
|
|
18
17
|
}
|
|
19
18
|
}
|
|
19
|
+
exports.default = default_1;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sum =
|
|
4
|
-
exports.minus = minus;
|
|
5
|
-
exports.multiple = multiple;
|
|
6
|
-
exports.divide = divide;
|
|
3
|
+
exports.divide = exports.multiple = exports.minus = exports.sum = void 0;
|
|
7
4
|
function sum(a, b) {
|
|
8
5
|
try {
|
|
9
6
|
if (a == null && b == null)
|
|
@@ -14,6 +11,7 @@ function sum(a, b) {
|
|
|
14
11
|
return null;
|
|
15
12
|
}
|
|
16
13
|
}
|
|
14
|
+
exports.sum = sum;
|
|
17
15
|
function minus(a, b) {
|
|
18
16
|
try {
|
|
19
17
|
if (a == null && b == null)
|
|
@@ -24,6 +22,7 @@ function minus(a, b) {
|
|
|
24
22
|
return null;
|
|
25
23
|
}
|
|
26
24
|
}
|
|
25
|
+
exports.minus = minus;
|
|
27
26
|
function multiple(a, b) {
|
|
28
27
|
try {
|
|
29
28
|
if (a == null && b == null)
|
|
@@ -34,6 +33,7 @@ function multiple(a, b) {
|
|
|
34
33
|
return null;
|
|
35
34
|
}
|
|
36
35
|
}
|
|
36
|
+
exports.multiple = multiple;
|
|
37
37
|
function divide(a, b) {
|
|
38
38
|
try {
|
|
39
39
|
if (a == null && b == null)
|
|
@@ -44,3 +44,4 @@ function divide(a, b) {
|
|
|
44
44
|
return null;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
+
exports.divide = divide;
|
package/dist/helpers/loop.js
CHANGED
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
function loop(
|
|
13
|
-
return __awaiter(this,
|
|
12
|
+
function loop(list, callback, result = []) {
|
|
13
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14
14
|
if (list && list.length > 0) {
|
|
15
15
|
const [head, ...tail] = list;
|
|
16
16
|
return loop(tail, callback, [yield callback(head), ...result]);
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
function loop(
|
|
13
|
-
return __awaiter(this,
|
|
12
|
+
function loop(list, callback, result = []) {
|
|
13
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14
14
|
if (list && list.length > 0) {
|
|
15
15
|
const [head, ...tail] = list;
|
|
16
16
|
return loop(tail, callback, [...result, yield callback(head)]);
|