@provis/provis-common-be-module 1.4.43 → 1.4.45

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.
Files changed (67) hide show
  1. package/package.json +1 -1
  2. package/dist/constants/claim/document-container.d.ts +0 -14
  3. package/dist/constants/claim/document-container.js +0 -65
  4. package/dist/constants/claim/loket.d.ts +0 -36
  5. package/dist/constants/claim/loket.js +0 -290
  6. package/dist/constants/claim/status.d.ts +0 -2
  7. package/dist/constants/claim/status.js +0 -142
  8. package/dist/constants/claim/travel.d.ts +0 -358
  9. package/dist/constants/claim/travel.js +0 -235
  10. package/dist/constants/config.d.ts +0 -2
  11. package/dist/constants/config.js +0 -22
  12. package/dist/constants/currency.d.ts +0 -2
  13. package/dist/constants/currency.js +0 -7
  14. package/dist/constants/index.d.ts +0 -5
  15. package/dist/constants/index.js +0 -11
  16. package/dist/constants/operator.d.ts +0 -2
  17. package/dist/constants/operator.js +0 -12
  18. package/dist/constants/product.d.ts +0 -65
  19. package/dist/constants/product.js +0 -314
  20. package/dist/helpers/addDateTime.d.ts +0 -6
  21. package/dist/helpers/addDateTime.js +0 -30
  22. package/dist/helpers/amountDescription.d.ts +0 -1
  23. package/dist/helpers/amountDescription.js +0 -44
  24. package/dist/helpers/axiosGet.d.ts +0 -8
  25. package/dist/helpers/axiosGet.js +0 -47
  26. package/dist/helpers/axiosPost.d.ts +0 -8
  27. package/dist/helpers/axiosPost.js +0 -46
  28. package/dist/helpers/axiosPut.d.ts +0 -8
  29. package/dist/helpers/axiosPut.js +0 -46
  30. package/dist/helpers/compareDiffObj.d.ts +0 -2
  31. package/dist/helpers/compareDiffObj.js +0 -14
  32. package/dist/helpers/convertCurrencySymbol.d.ts +0 -2
  33. package/dist/helpers/convertCurrencySymbol.js +0 -20
  34. package/dist/helpers/convertDateTimeFormat.d.ts +0 -6
  35. package/dist/helpers/convertDateTimeFormat.js +0 -110
  36. package/dist/helpers/convertObjToNumber.d.ts +0 -2
  37. package/dist/helpers/convertObjToNumber.js +0 -14
  38. package/dist/helpers/convertToCurrency.d.ts +0 -2
  39. package/dist/helpers/convertToCurrency.js +0 -21
  40. package/dist/helpers/excelDateToJsDate.d.ts +0 -4
  41. package/dist/helpers/excelDateToJsDate.js +0 -30
  42. package/dist/helpers/filterObj.d.ts +0 -2
  43. package/dist/helpers/filterObj.js +0 -9
  44. package/dist/helpers/generateRelationId.d.ts +0 -2
  45. package/dist/helpers/generateRelationId.js +0 -15
  46. package/dist/helpers/getCurrentDate.d.ts +0 -2
  47. package/dist/helpers/getCurrentDate.js +0 -11
  48. package/dist/helpers/getDiffValue.d.ts +0 -2
  49. package/dist/helpers/getDiffValue.js +0 -24
  50. package/dist/helpers/getObjByKeys.d.ts +0 -2
  51. package/dist/helpers/getObjByKeys.js +0 -19
  52. package/dist/helpers/index.d.ts +0 -20
  53. package/dist/helpers/index.js +0 -41
  54. package/dist/helpers/loop.d.ts +0 -2
  55. package/dist/helpers/loop.js +0 -21
  56. package/dist/helpers/loopBackward.d.ts +0 -2
  57. package/dist/helpers/loopBackward.js +0 -21
  58. package/dist/helpers/readExcel.d.ts +0 -4
  59. package/dist/helpers/readExcel.js +0 -115
  60. package/dist/helpers/searchValue.d.ts +0 -7
  61. package/dist/helpers/searchValue.js +0 -63
  62. package/dist/index.d.ts +0 -3
  63. package/dist/index.js +0 -7
  64. package/dist/interface/axios.interface.d.ts +0 -5
  65. package/dist/interface/axios.interface.js +0 -2
  66. package/dist/interface/read.excel.interface.d.ts +0 -12
  67. package/dist/interface/read.excel.interface.js +0 -2
@@ -1,65 +0,0 @@
1
- declare const product: {
2
- LIST: {};
3
- PRODUCT_CODE_PROPERTY_ALL_RISK: string;
4
- PRODUCT_CODE_EARTHQUAKE: string;
5
- PRODUCT_CODE_VEHICLE: string;
6
- PRODUCT_CODE_PUBLIC_LIABILITY: string;
7
- PRODUCT_CODE_MACHINERYR_BREAKDOWN: string;
8
- PRODUCT_CODE_TERRORISM_SABOTAGE: string;
9
- PRODUCT_CODE_COMPREHENSIVE_LIABILITY: string;
10
- PRODUCT_CODE_CONTAINER: string;
11
- PRODUCT_CODE_GROUP_HEALTH: string;
12
- PRODUCT_CODE_TRAVEL: string;
13
- PRODUCT_CODE_HOSPITAL_CASH_PLAN: string;
14
- PRODUCT_CODE_TERM_LIFE: string;
15
- PRODUCT_CODE_PERSONAL_ACCIDENT: string;
16
- PRODUCT_CODE_TAILOR_MADE: string;
17
- PRODUCT_CODE_CRITICAL_ILLNESS: string;
18
- PRODUCT_CODE_FREIGHT_FORWARDER_LIABILITY: string;
19
- PRODUCT_CODE_MARINE_HULL: string;
20
- PRODUCT_CODE_CREDIT_LIFE: string;
21
- PRODUCT_CODE_TRADITIONAL_WHOLE_LIFE: string;
22
- PRODUCT_CODE_CARPAKR_LIABILITY: string;
23
- PRODUCT_CODE_DIRECTOR_OFFICER_LIABILITY: string;
24
- PRODUCT_CODE_PROFESIONAL_INDEMNITY: string;
25
- PRODUCT_CODE_GENERAL_LIABILITY: string;
26
- PRODUCT_CODE_WEDDING: string;
27
- PRODUCT_CODE_PENSIUN_FUND: string;
28
- PRODUCT_CODE_PENSION_FUND: string;
29
- PRODUCT_CODE_ENVIRONMENTAL_LIABILITY: string;
30
- PRODUCT_CODE_PROTECTION_INDEMNITY: string;
31
- PRODUCT_CODE_STUDENT_PROTECTION: string;
32
- PRODUCT_CODE_GADGET: string;
33
- PRODUCT_CODE_ELECTRONIC_EQUIPMENT: string;
34
- PRODUCT_CODE_CPM: string;
35
- PRODUCT_CODE_CONSTRUCTION_ALLRISK: string;
36
- PRODUCT_CODE_HCI_MOTOR: string;
37
- PRODUCT_CODE_HCP5_DISEASE: string;
38
- PRODUCT_CODE_MOVEABLE_ALL_RISK: string;
39
- PRODUCT_CODE_SURETY_BOND: string;
40
- PRODUCT_CODE_ERECTION_ALL_RISK: string;
41
- PRODUCT_POLISMALL_CARGO_MERATUS: string;
42
- PRODUCT_POLISMALL_CARGO: string;
43
- PRODUCT_CODE_EXIM: string;
44
- PRODUCT_CODE_CARGO_BUNDLE: string;
45
- PRODUCT_CODE_MERIMEN_CARGO: string;
46
- PRODUCT_CODE_CARGO_TEMAS: string;
47
- PRODUCT_CODE_OTTO_CI: string;
48
- PRODUCT_CODE_OTTO_FLEXAS: string;
49
- PRODUCT_CODE_OTTO_CRACK_SCREEN: string;
50
- PRODUCT_CODE_OTTO_AUM_GP: string;
51
- PRODUCT_CODE_OTTO_AUM_PLN: string;
52
- PRODUCT_CODE_OTTO_AUM_PDAM: string;
53
- PRODUCT_CODE_OTTO_AUM_SB: string;
54
- PRODUCT_CODE_OTTO_AUM_FB: string;
55
- PRODUCT_CODE_OTTO_AUM_FBK: string;
56
- PRODUCT_CODE_BDKI_MOTOR: string;
57
- PRODUCT_CODE_BDKI_RUMAH: string;
58
- PRODUCT_CODE_BNI_MOBIL: string;
59
- PRODUCT_CODE_BNI_MOTOR: string;
60
- PRODUCT_CODE_BNI_RUMAH: string;
61
- PRODUCT_CODE_RETAIL_LOKET_PA: string;
62
- PRODUCT_CODE_RETAIL_KALOG_CARGO: string;
63
- PRODUCT_CODE_RETAIL_POS_CARGO: string;
64
- };
65
- export default product;
@@ -1,314 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const product = {
4
- LIST: {},
5
- PRODUCT_CODE_PROPERTY_ALL_RISK: 'polismall-property-allrisk',
6
- PRODUCT_CODE_EARTHQUAKE: 'polismall-earthquake',
7
- PRODUCT_CODE_VEHICLE: 'polismall-vehicle',
8
- PRODUCT_CODE_PUBLIC_LIABILITY: 'polismall-public-liability',
9
- PRODUCT_CODE_MACHINERYR_BREAKDOWN: 'polismall-machinery-breakdown',
10
- PRODUCT_CODE_TERRORISM_SABOTAGE: 'polismall-terrorism-sabotage',
11
- PRODUCT_CODE_COMPREHENSIVE_LIABILITY: 'polismall-comprehensive-liability',
12
- PRODUCT_CODE_CONTAINER: 'polismall-container',
13
- PRODUCT_CODE_GROUP_HEALTH: 'polismall-group-health',
14
- PRODUCT_CODE_TRAVEL: 'polismall-travel',
15
- PRODUCT_CODE_HOSPITAL_CASH_PLAN: 'polismall-hospital-cash-plan',
16
- PRODUCT_CODE_TERM_LIFE: 'polismall-term-life',
17
- PRODUCT_CODE_PERSONAL_ACCIDENT: 'polismall-personal-accident',
18
- PRODUCT_CODE_TAILOR_MADE: 'polismall-tailor-made',
19
- PRODUCT_CODE_CRITICAL_ILLNESS: 'polismall-critical-illness',
20
- PRODUCT_CODE_FREIGHT_FORWARDER_LIABILITY: 'polismall-freight-forwarder-liability',
21
- PRODUCT_CODE_MARINE_HULL: 'polismall-marine-hull',
22
- PRODUCT_CODE_CREDIT_LIFE: 'polismall-credit-life',
23
- PRODUCT_CODE_TRADITIONAL_WHOLE_LIFE: 'polismall-traditional-whole-life',
24
- PRODUCT_CODE_CARPAKR_LIABILITY: 'polismall-carpark-liability',
25
- PRODUCT_CODE_DIRECTOR_OFFICER_LIABILITY: 'polismall-director-officer-liability',
26
- PRODUCT_CODE_PROFESIONAL_INDEMNITY: 'polismall-professional-indemnity',
27
- PRODUCT_CODE_GENERAL_LIABILITY: 'polismall-general-liability',
28
- PRODUCT_CODE_WEDDING: 'polismall-wedding',
29
- PRODUCT_CODE_PENSIUN_FUND: 'polismall-pensiun-fund',
30
- PRODUCT_CODE_PENSION_FUND: 'polismall-pension-fund',
31
- PRODUCT_CODE_ENVIRONMENTAL_LIABILITY: 'polismall-environmental-liability',
32
- PRODUCT_CODE_PROTECTION_INDEMNITY: 'polismall-protection-indemnity',
33
- PRODUCT_CODE_STUDENT_PROTECTION: 'polismall-student-protection',
34
- PRODUCT_CODE_GADGET: 'polismall-gadget',
35
- PRODUCT_CODE_ELECTRONIC_EQUIPMENT: 'polismall-electronic-equipment',
36
- PRODUCT_CODE_CPM: 'polismall-cpm',
37
- PRODUCT_CODE_CONSTRUCTION_ALLRISK: 'polismall-construction-allrisk',
38
- PRODUCT_CODE_HCI_MOTOR: 'polismall-hci-motor',
39
- PRODUCT_CODE_HCP5_DISEASE: 'polismall-hcp5-disease',
40
- PRODUCT_CODE_MOVEABLE_ALL_RISK: 'polismall-moveable-all-risk',
41
- PRODUCT_CODE_SURETY_BOND: 'polismall-surety-bond',
42
- PRODUCT_CODE_ERECTION_ALL_RISK: 'polismall-erection-all-risk',
43
- // CARGO
44
- PRODUCT_POLISMALL_CARGO_MERATUS: 'polismall-cargo-meratus-paliside',
45
- PRODUCT_POLISMALL_CARGO: 'polismall-cargo',
46
- PRODUCT_CODE_EXIM: 'polismall-exim',
47
- PRODUCT_CODE_CARGO_BUNDLE: 'polismall-cargo-bundle',
48
- PRODUCT_CODE_MERIMEN_CARGO: 'polismall-merimen-cargo',
49
- PRODUCT_CODE_CARGO_TEMAS: 'polismall-cargo-temas',
50
- // OTTO
51
- PRODUCT_CODE_OTTO_CI: 'polismall-otto-critical-illness',
52
- PRODUCT_CODE_OTTO_FLEXAS: 'polismall-otto-flexas',
53
- PRODUCT_CODE_OTTO_CRACK_SCREEN: 'polismall-otto-crack',
54
- PRODUCT_CODE_OTTO_AUM_GP: 'polismall-otto-aum-gp',
55
- PRODUCT_CODE_OTTO_AUM_PLN: 'polismall-otto-aum-pln',
56
- PRODUCT_CODE_OTTO_AUM_PDAM: 'polismall-otto-aum-pdam',
57
- PRODUCT_CODE_OTTO_AUM_SB: 'polismall-otto-aum-sb',
58
- PRODUCT_CODE_OTTO_AUM_FB: 'polismall-otto-aum-fb',
59
- PRODUCT_CODE_OTTO_AUM_FBK: 'polismall-otto-aum-fbk',
60
- // BDKI
61
- PRODUCT_CODE_BDKI_MOTOR: 'polismall-bdki-motor',
62
- PRODUCT_CODE_BDKI_RUMAH: 'polismall-bdki-rumah',
63
- // BNI
64
- PRODUCT_CODE_BNI_MOBIL: 'polismall-bni-mobil',
65
- PRODUCT_CODE_BNI_MOTOR: 'polismall-bni-motor',
66
- PRODUCT_CODE_BNI_RUMAH: 'polismall-bni-rumah',
67
- // [PM] POLISMALL RETAIL
68
- PRODUCT_CODE_RETAIL_LOKET_PA: 'polismall-loket-pa',
69
- PRODUCT_CODE_RETAIL_KALOG_CARGO: 'polismall-kalog-cargo',
70
- PRODUCT_CODE_RETAIL_POS_CARGO: 'polismall-pos-cargo',
71
- };
72
- product.LIST = {
73
- [product.PRODUCT_CODE_BNI_MOBIL]: {
74
- value: product.PRODUCT_CODE_BNI_MOBIL,
75
- name: "BNI Oto Warranty Plus",
76
- },
77
- [product.PRODUCT_CODE_BNI_MOTOR]: {
78
- value: product.PRODUCT_CODE_BNI_MOTOR,
79
- name: "BNI Motor Guard",
80
- },
81
- [product.PRODUCT_CODE_BNI_RUMAH]: {
82
- value: product.PRODUCT_CODE_BNI_RUMAH,
83
- name: "BNI Home Guard",
84
- },
85
- [product.PRODUCT_CODE_OTTO_CI]: {
86
- value: product.PRODUCT_CODE_OTTO_CI,
87
- name: "Otto Critical Illness",
88
- },
89
- [product.PRODUCT_CODE_OTTO_FLEXAS]: {
90
- value: product.PRODUCT_CODE_OTTO_FLEXAS,
91
- name: "Otto Biller Protection",
92
- },
93
- [product.PRODUCT_CODE_OTTO_CRACK_SCREEN]: {
94
- value: product.PRODUCT_CODE_OTTO_CRACK_SCREEN,
95
- name: "Smartphone Protection",
96
- },
97
- [product.PRODUCT_POLISMALL_CARGO]: {
98
- value: product.PRODUCT_POLISMALL_CARGO,
99
- name: "Polismall Marine Cargo",
100
- },
101
- [product.PRODUCT_POLISMALL_CARGO_MERATUS]: {
102
- value: product.PRODUCT_POLISMALL_CARGO_MERATUS,
103
- name: "Microsite Marine Cargo",
104
- },
105
- [product.PRODUCT_CODE_PROPERTY_ALL_RISK]: {
106
- value: product.PRODUCT_CODE_PROPERTY_ALL_RISK,
107
- name: "Property All Risk",
108
- },
109
- [product.PRODUCT_CODE_EARTHQUAKE]: {
110
- value: product.PRODUCT_CODE_EARTHQUAKE,
111
- name: "Earthquake",
112
- },
113
- [product.PRODUCT_CODE_VEHICLE]: {
114
- value: product.PRODUCT_CODE_VEHICLE,
115
- name: "Motor Vehicle",
116
- },
117
- [product.PRODUCT_CODE_PUBLIC_LIABILITY]: {
118
- value: product.PRODUCT_CODE_PUBLIC_LIABILITY,
119
- name: "Public Liability",
120
- },
121
- [product.PRODUCT_CODE_MACHINERYR_BREAKDOWN]: {
122
- value: product.PRODUCT_CODE_MACHINERYR_BREAKDOWN,
123
- name: "Machinery Breakdown",
124
- },
125
- [product.PRODUCT_CODE_TERRORISM_SABOTAGE]: {
126
- value: product.PRODUCT_CODE_TERRORISM_SABOTAGE,
127
- name: "Terrorism and Sabotage",
128
- },
129
- [product.PRODUCT_CODE_COMPREHENSIVE_LIABILITY]: {
130
- value: product.PRODUCT_CODE_COMPREHENSIVE_LIABILITY,
131
- name: "Comprehensive General Liability",
132
- },
133
- [product.PRODUCT_CODE_CONTAINER]: {
134
- value: product.PRODUCT_CODE_CONTAINER,
135
- name: "Container Insurance",
136
- },
137
- [product.PRODUCT_CODE_GROUP_HEALTH]: {
138
- value: product.PRODUCT_CODE_GROUP_HEALTH,
139
- name: "Group Health Insurance",
140
- },
141
- [product.PRODUCT_CODE_TRAVEL]: {
142
- value: product.PRODUCT_CODE_TRAVEL,
143
- name: "Travel",
144
- },
145
- [product.PRODUCT_CODE_HOSPITAL_CASH_PLAN]: {
146
- value: product.PRODUCT_CODE_HOSPITAL_CASH_PLAN,
147
- name: "Hospital Cash Plan",
148
- },
149
- [product.PRODUCT_CODE_TERM_LIFE]: {
150
- value: product.PRODUCT_CODE_TERM_LIFE,
151
- name: "Term Life",
152
- },
153
- [product.PRODUCT_CODE_PERSONAL_ACCIDENT]: {
154
- value: product.PRODUCT_CODE_PERSONAL_ACCIDENT,
155
- name: "Personal Accident",
156
- },
157
- [product.PRODUCT_CODE_TAILOR_MADE]: {
158
- value: product.PRODUCT_CODE_TAILOR_MADE,
159
- name: "Tailor Made",
160
- },
161
- [product.PRODUCT_CODE_CRITICAL_ILLNESS]: {
162
- value: product.PRODUCT_CODE_CRITICAL_ILLNESS,
163
- name: "Critical Illness",
164
- },
165
- [product.PRODUCT_CODE_FREIGHT_FORWARDER_LIABILITY]: {
166
- value: product.PRODUCT_CODE_FREIGHT_FORWARDER_LIABILITY,
167
- name: "Freight Forwarder Liability",
168
- },
169
- [product.PRODUCT_CODE_MARINE_HULL]: {
170
- value: product.PRODUCT_CODE_MARINE_HULL,
171
- name: "Marine Hull",
172
- },
173
- [product.PRODUCT_CODE_CREDIT_LIFE]: {
174
- value: product.PRODUCT_CODE_CREDIT_LIFE,
175
- name: "Credit Life",
176
- },
177
- [product.PRODUCT_CODE_TRADITIONAL_WHOLE_LIFE]: {
178
- value: product.PRODUCT_CODE_TRADITIONAL_WHOLE_LIFE,
179
- name: "Traditional Whole Life",
180
- },
181
- [product.PRODUCT_CODE_CARPAKR_LIABILITY]: {
182
- value: product.PRODUCT_CODE_CARPAKR_LIABILITY,
183
- name: "Carpark Liability",
184
- },
185
- [product.PRODUCT_CODE_DIRECTOR_OFFICER_LIABILITY]: {
186
- value: product.PRODUCT_CODE_DIRECTOR_OFFICER_LIABILITY,
187
- name: "Director Officer Liability",
188
- },
189
- [product.PRODUCT_CODE_PROFESIONAL_INDEMNITY]: {
190
- value: product.PRODUCT_CODE_PROFESIONAL_INDEMNITY,
191
- name: "Professional Indemnity",
192
- },
193
- [product.PRODUCT_CODE_GENERAL_LIABILITY]: {
194
- value: product.PRODUCT_CODE_GENERAL_LIABILITY,
195
- name: "General Liability",
196
- },
197
- [product.PRODUCT_CODE_WEDDING]: {
198
- value: product.PRODUCT_CODE_WEDDING,
199
- name: "General Wedding",
200
- },
201
- [product.PRODUCT_CODE_PENSIUN_FUND]: {
202
- value: product.PRODUCT_CODE_PENSIUN_FUND,
203
- name: "Pensiun Fund",
204
- },
205
- [product.PRODUCT_CODE_ENVIRONMENTAL_LIABILITY]: {
206
- value: product.PRODUCT_CODE_ENVIRONMENTAL_LIABILITY,
207
- name: "Environmental Liability",
208
- },
209
- [product.PRODUCT_CODE_PROTECTION_INDEMNITY]: {
210
- value: product.PRODUCT_CODE_PROTECTION_INDEMNITY,
211
- name: "Protection Indemnity",
212
- },
213
- [product.PRODUCT_CODE_STUDENT_PROTECTION]: {
214
- value: product.PRODUCT_CODE_STUDENT_PROTECTION,
215
- name: "Student Protection",
216
- },
217
- [product.PRODUCT_CODE_GADGET]: {
218
- value: product.PRODUCT_CODE_GADGET,
219
- name: "Gadget",
220
- },
221
- [product.PRODUCT_CODE_ELECTRONIC_EQUIPMENT]: {
222
- value: product.PRODUCT_CODE_ELECTRONIC_EQUIPMENT,
223
- name: "Electronic Equipment Insurance",
224
- },
225
- [product.PRODUCT_CODE_CPM]: {
226
- value: product.PRODUCT_CODE_CPM,
227
- name: "Contractor's Plant and Machinery",
228
- },
229
- [product.PRODUCT_CODE_CONSTRUCTION_ALLRISK]: {
230
- value: product.PRODUCT_CODE_CONSTRUCTION_ALLRISK,
231
- name: "Construction All Risk",
232
- },
233
- [product.PRODUCT_CODE_MERIMEN_CARGO]: {
234
- value: product.PRODUCT_CODE_MERIMEN_CARGO,
235
- name: "Merimen Cargo",
236
- },
237
- [product.PRODUCT_CODE_HCI_MOTOR]: {
238
- value: product.PRODUCT_CODE_HCI_MOTOR,
239
- name: "HCI Santunan Motor",
240
- },
241
- [product.PRODUCT_CODE_HCP5_DISEASE]: {
242
- value: product.PRODUCT_CODE_HCP5_DISEASE,
243
- name: "HCP 5 Disease",
244
- },
245
- [product.PRODUCT_CODE_EXIM]: {
246
- value: product.PRODUCT_CODE_EXIM,
247
- name: "Polismall EXIM",
248
- },
249
- [product.PRODUCT_CODE_BDKI_MOTOR]: {
250
- value: product.PRODUCT_CODE_BDKI_MOTOR,
251
- name: "Polismall BDKI motor",
252
- },
253
- [product.PRODUCT_CODE_BDKI_RUMAH]: {
254
- value: product.PRODUCT_CODE_BDKI_RUMAH,
255
- name: "Polismall BDKI rumah",
256
- },
257
- [product.PRODUCT_CODE_MOVEABLE_ALL_RISK]: {
258
- value: product.PRODUCT_CODE_MOVEABLE_ALL_RISK,
259
- name: "Polismall Moveable All Risk",
260
- },
261
- [product.PRODUCT_CODE_SURETY_BOND]: {
262
- value: product.PRODUCT_CODE_SURETY_BOND,
263
- name: "Surety Bond",
264
- },
265
- [product.PRODUCT_CODE_ERECTION_ALL_RISK]: {
266
- value: product.PRODUCT_CODE_ERECTION_ALL_RISK,
267
- name: "Erection All Risk",
268
- },
269
- [product.PRODUCT_CODE_CARGO_BUNDLE]: {
270
- value: product.PRODUCT_CODE_CARGO_BUNDLE,
271
- name: "Polismall Cargo Bundle",
272
- },
273
- [product.PRODUCT_CODE_RETAIL_LOKET_PA]: {
274
- value: product.PRODUCT_CODE_RETAIL_LOKET_PA,
275
- name: "Polismall Loket Personal Accident",
276
- },
277
- [product.PRODUCT_CODE_RETAIL_KALOG_CARGO]: {
278
- value: product.PRODUCT_CODE_RETAIL_KALOG_CARGO,
279
- name: "Polismall Kalog Cargo Retail",
280
- },
281
- [product.PRODUCT_CODE_RETAIL_POS_CARGO]: {
282
- value: product.PRODUCT_CODE_RETAIL_POS_CARGO,
283
- name: "Polismall Pos Cargo Retail",
284
- },
285
- [product.PRODUCT_CODE_OTTO_AUM_GP]: {
286
- value: product.PRODUCT_CODE_OTTO_AUM_GP,
287
- name: "Gamers Protection",
288
- },
289
- [product.PRODUCT_CODE_OTTO_AUM_PLN]: {
290
- value: product.PRODUCT_CODE_OTTO_AUM_PLN,
291
- name: "OTTO PLN",
292
- },
293
- [product.PRODUCT_CODE_OTTO_AUM_PDAM]: {
294
- value: product.PRODUCT_CODE_OTTO_AUM_PDAM,
295
- name: "OTTO PDAM",
296
- },
297
- [product.PRODUCT_CODE_OTTO_AUM_SB]: {
298
- value: product.PRODUCT_CODE_OTTO_AUM_SB,
299
- name: "Merchant Protection Stock",
300
- },
301
- [product.PRODUCT_CODE_OTTO_AUM_FB]: {
302
- value: product.PRODUCT_CODE_OTTO_AUM_FB,
303
- name: "Merchant Protection Flexas - Flood",
304
- },
305
- [product.PRODUCT_CODE_OTTO_AUM_FBK]: {
306
- value: product.PRODUCT_CODE_OTTO_AUM_FBK,
307
- name: "Merchant Protection Flexas - Flood - Burglary",
308
- },
309
- [product.PRODUCT_CODE_CARGO_TEMAS]: {
310
- value: product.PRODUCT_CODE_CARGO_TEMAS,
311
- name: "Polismall Cargo Temas",
312
- },
313
- };
314
- exports.default = product;
@@ -1,6 +0,0 @@
1
- declare const _default: ({ datetime, addDatetime, type, }: {
2
- datetime: number;
3
- addDatetime: string;
4
- type: string;
5
- }) => number | null;
6
- export default _default;
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const config_1 = require("../constants/config");
4
- exports.default = ({ datetime, addDatetime, type, }) => {
5
- try {
6
- switch (type) {
7
- case config_1.default.date_time_type_for_days: /** addDatetime = 2 => how many date */
8
- return (datetime + (parseInt(addDatetime) * 3600000 * 24));
9
- case config_1.default.date_time_type_for_time: /** addDatetime = 18:00:00 => only time */
10
- const time = addDatetime.split(':'); // 0->hour, 1->minute, 2->second
11
- return (datetime
12
- + (parseInt(time[0]) * 3600000)
13
- + (parseInt(time[1]) * 60000)
14
- + (parseInt(time[2]) * 1000));
15
- case config_1.default.date_time_type_for_set_time:
16
- const date = new Date(datetime); /** addDatetime = 18:00:00 => only time */
17
- const settime = addDatetime.split(':'); // 0->hour, 1->minute, 2->second
18
- date.setHours(parseInt(settime[0]));
19
- date.setMinutes(parseInt(settime[1]));
20
- date.setSeconds(parseInt(settime[2]));
21
- return date.getTime();
22
- default:
23
- return null;
24
- }
25
- }
26
- catch (err) {
27
- console.log(`[error] ${err.message}`);
28
- return null;
29
- }
30
- };
@@ -1 +0,0 @@
1
- export default function terbilang(value: number): string;
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- function terbilang(value) {
4
- const satuan = ['', 'satu', 'dua', 'tiga', 'empat', 'lima', 'enam', 'tujuh', 'delapan', 'sembilan'];
5
- const belasan = ['sepuluh', 'sebelas', 'dua belas', 'tiga belas', 'empat belas', 'lima belas', 'enam belas', 'tujuh belas', 'delapan belas', 'sembilan belas'];
6
- const puluhan = ['', '', 'dua puluh', 'tiga puluh', 'empat puluh', 'lima puluh', 'enam puluh', 'tujuh puluh', 'delapan puluh', 'sembilan puluh'];
7
- let result = '';
8
- if (value < 10) {
9
- result = satuan[value];
10
- }
11
- else if (value < 20) {
12
- result = belasan[value - 10];
13
- }
14
- else if (value < 100) {
15
- result = puluhan[Math.floor(value / 10)] + ' ' + satuan[value % 10];
16
- }
17
- else if (value < 200) {
18
- result = 'seratus ' + terbilang(value - 100);
19
- }
20
- else if (value < 1000) {
21
- result = satuan[Math.floor(value / 100)] + ' ratus ' + terbilang(value % 100);
22
- }
23
- else if (value < 2000) {
24
- result = 'seribu ' + terbilang(value - 1000);
25
- }
26
- else if (value < 1000000) {
27
- result = terbilang(Math.floor(value / 1000)) + ' ribu ' + terbilang(value % 1000);
28
- }
29
- else if (value < 1000000000) {
30
- result = terbilang(Math.floor(value / 1000000)) + ' juta ' + terbilang(value % 1000000);
31
- }
32
- else if (value < 1000000000000) {
33
- result = terbilang(Math.floor(value / 1000000000)) + ' milyar ' + terbilang(value % 1000000000);
34
- }
35
- else if (value < 1000000000000000) {
36
- result = terbilang(Math.floor(value / 1000000000000)) + ' triliun ' + terbilang(value % 1000000000000);
37
- }
38
- else {
39
- result = 'Angka terlalu besar';
40
- }
41
- // Menghilangkan spasi yang double
42
- return result.replace(/\s+/g, ' ').trim();
43
- }
44
- exports.default = terbilang;
@@ -1,8 +0,0 @@
1
- import IAxios from '../interface/axios.interface';
2
- declare const _default: ({ url, headers, params, callback, }: {
3
- url: string;
4
- headers: any;
5
- params?: any;
6
- callback?: (response: any) => Promise<IAxios<any>>;
7
- }) => Promise<IAxios<any>>;
8
- export default _default;
@@ -1,47 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const axios_1 = require("axios");
13
- const generateRelationId_1 = require("./generateRelationId");
14
- const getCurrentDate_1 = require("./getCurrentDate");
15
- const constants_1 = require("../constants");
16
- exports.default = ({ url, headers, params, callback, }) => __awaiter(void 0, void 0, void 0, function* () {
17
- return yield axios_1.default.get(url, {
18
- params,
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),
20
- }).then((result) => __awaiter(void 0, void 0, void 0, function* () {
21
- if (result.data.statusCode === constants_1.config.HTTP_STATUS_OK) {
22
- if (callback) {
23
- return yield callback(result.data).catch((err) => {
24
- console.log(`[error][${(0, getCurrentDate_1.default)()}]. Error: ${err.message}`);
25
- return {
26
- statusCode: constants_1.config.HTTP_STATUS_SERVER_ERROR,
27
- message: err.message,
28
- };
29
- });
30
- }
31
- else {
32
- return {
33
- statusCode: result.data.statusCode,
34
- data: result.data.data,
35
- };
36
- }
37
- }
38
- else {
39
- return {
40
- statusCode: result.data.statusCode,
41
- message: result.data.message,
42
- };
43
- }
44
- })).catch((err) => {
45
- throw new Error(err);
46
- });
47
- });
@@ -1,8 +0,0 @@
1
- import IAxios from '../interface/axios.interface';
2
- declare const _default: ({ url, headers, body, callback, }: {
3
- url: string;
4
- headers: any;
5
- body: any;
6
- callback?: (response: any) => Promise<IAxios<any>>;
7
- }) => Promise<IAxios<any>>;
8
- export default _default;
@@ -1,46 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const axios_1 = require("axios");
13
- const generateRelationId_1 = require("./generateRelationId");
14
- const getCurrentDate_1 = require("./getCurrentDate");
15
- const constants_1 = require("../constants");
16
- exports.default = ({ url, headers, body, callback, }) => __awaiter(void 0, void 0, void 0, function* () {
17
- return yield axios_1.default.post(url, body, {
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
- }).then((result) => __awaiter(void 0, void 0, void 0, function* () {
20
- if (result.data.statusCode === constants_1.config.HTTP_STATUS_OK) {
21
- if (callback) {
22
- return yield callback(result.data).catch((err) => {
23
- console.log(`[error][${(0, getCurrentDate_1.default)()}]. Error: ${err.message}`);
24
- return {
25
- statusCode: constants_1.config.HTTP_STATUS_SERVER_ERROR,
26
- message: err.message,
27
- };
28
- });
29
- }
30
- else {
31
- return {
32
- statusCode: result.data.statusCode,
33
- data: result.data.data,
34
- };
35
- }
36
- }
37
- else {
38
- return {
39
- statusCode: result.data.statusCode,
40
- message: result.data.message,
41
- };
42
- }
43
- })).catch((err) => {
44
- throw new Error(err);
45
- });
46
- });
@@ -1,8 +0,0 @@
1
- import IAxios from '../interface/axios.interface';
2
- declare const _default: ({ url, headers, body, callback, }: {
3
- url: string;
4
- headers: any;
5
- body: any;
6
- callback?: (response: any) => Promise<IAxios<any>>;
7
- }) => Promise<IAxios<any>>;
8
- export default _default;
@@ -1,46 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const axios_1 = require("axios");
13
- const constants_1 = require("../constants");
14
- const generateRelationId_1 = require("./generateRelationId");
15
- const getCurrentDate_1 = require("./getCurrentDate");
16
- exports.default = ({ url, headers, body, callback, }) => __awaiter(void 0, void 0, void 0, function* () {
17
- return yield axios_1.default.put(url, body, {
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
- }).then((result) => __awaiter(void 0, void 0, void 0, function* () {
20
- if (result.data.statusCode === constants_1.config.HTTP_STATUS_OK) {
21
- if (callback) {
22
- return yield callback(result.data).catch((err) => {
23
- console.log(`[error][${(0, getCurrentDate_1.default)()}]. Error: ${err.message}`);
24
- return {
25
- statusCode: constants_1.config.HTTP_STATUS_SERVER_ERROR,
26
- message: err.message,
27
- };
28
- });
29
- }
30
- else {
31
- return {
32
- statusCode: result.data.statusCode,
33
- data: result.data.data,
34
- };
35
- }
36
- }
37
- else {
38
- return {
39
- statusCode: result.data.statusCode,
40
- message: result.data.message,
41
- };
42
- }
43
- })).catch((err) => {
44
- throw new Error(err);
45
- });
46
- });
@@ -1,2 +0,0 @@
1
- declare const _default: (oldObj: any, newObj: any) => any;
2
- export default _default;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
4
- exports.default = (oldObj, newObj) => {
5
- return [...Object.keys(newObj), ...Object.keys(oldObj)].reduce((arr, key) => {
6
- if (newObj[key] === undefined)
7
- return Object.assign(Object.assign({}, arr), { [key]: oldObj[key] });
8
- if (oldObj[key] === undefined)
9
- return Object.assign(Object.assign({}, arr), { [key]: newObj[key] });
10
- if (oldObj[key] != newObj[key])
11
- return Object.assign(Object.assign({}, arr), { [key]: oldObj[key] });
12
- return arr;
13
- }, {});
14
- };
@@ -1,2 +0,0 @@
1
- declare const _default: (currencyCode: string) => string | null;
2
- export default _default;