@provis/provis-common-be-module 1.4.37 → 1.4.38
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/package.json +1 -1
- package/dist/constants/claim/document-container.d.ts +0 -14
- package/dist/constants/claim/document-container.js +0 -65
- package/dist/constants/claim/loket.d.ts +0 -36
- package/dist/constants/claim/loket.js +0 -290
- package/dist/constants/claim/status.d.ts +0 -2
- package/dist/constants/claim/status.js +0 -142
- package/dist/constants/claim/travel.d.ts +0 -358
- package/dist/constants/claim/travel.js +0 -240
- package/dist/constants/config.d.ts +0 -2
- package/dist/constants/config.js +0 -22
- package/dist/constants/currency.d.ts +0 -2
- package/dist/constants/currency.js +0 -7
- package/dist/constants/index.d.ts +0 -5
- package/dist/constants/index.js +0 -11
- package/dist/constants/operator.d.ts +0 -2
- package/dist/constants/operator.js +0 -12
- package/dist/constants/product.d.ts +0 -64
- package/dist/constants/product.js +0 -309
- package/dist/helpers/addDateTime.d.ts +0 -6
- package/dist/helpers/addDateTime.js +0 -30
- package/dist/helpers/amountDescription.d.ts +0 -1
- package/dist/helpers/amountDescription.js +0 -44
- package/dist/helpers/axiosGet.d.ts +0 -8
- package/dist/helpers/axiosGet.js +0 -47
- package/dist/helpers/axiosPost.d.ts +0 -8
- package/dist/helpers/axiosPost.js +0 -46
- package/dist/helpers/axiosPut.d.ts +0 -8
- package/dist/helpers/axiosPut.js +0 -46
- package/dist/helpers/compareDiffObj.d.ts +0 -2
- package/dist/helpers/compareDiffObj.js +0 -14
- package/dist/helpers/convertCurrencySymbol.d.ts +0 -2
- package/dist/helpers/convertCurrencySymbol.js +0 -20
- package/dist/helpers/convertDateTimeFormat.d.ts +0 -6
- package/dist/helpers/convertDateTimeFormat.js +0 -110
- package/dist/helpers/convertObjToNumber.d.ts +0 -2
- package/dist/helpers/convertObjToNumber.js +0 -14
- package/dist/helpers/convertToCurrency.d.ts +0 -2
- package/dist/helpers/convertToCurrency.js +0 -21
- package/dist/helpers/excelDateToJsDate.d.ts +0 -4
- package/dist/helpers/excelDateToJsDate.js +0 -30
- package/dist/helpers/filterObj.d.ts +0 -2
- package/dist/helpers/filterObj.js +0 -9
- package/dist/helpers/generateRelationId.d.ts +0 -2
- package/dist/helpers/generateRelationId.js +0 -15
- package/dist/helpers/getCurrentDate.d.ts +0 -2
- package/dist/helpers/getCurrentDate.js +0 -11
- package/dist/helpers/getDiffValue.d.ts +0 -2
- package/dist/helpers/getDiffValue.js +0 -24
- package/dist/helpers/getObjByKeys.d.ts +0 -2
- package/dist/helpers/getObjByKeys.js +0 -19
- package/dist/helpers/index.d.ts +0 -20
- package/dist/helpers/index.js +0 -41
- package/dist/helpers/loop.d.ts +0 -2
- package/dist/helpers/loop.js +0 -21
- package/dist/helpers/loopBackward.d.ts +0 -2
- package/dist/helpers/loopBackward.js +0 -21
- package/dist/helpers/readExcel.d.ts +0 -4
- package/dist/helpers/readExcel.js +0 -115
- package/dist/helpers/searchValue.d.ts +0 -7
- package/dist/helpers/searchValue.js +0 -63
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -7
- package/dist/interface/axios.interface.d.ts +0 -5
- package/dist/interface/axios.interface.js +0 -2
- package/dist/interface/read.excel.interface.d.ts +0 -12
- package/dist/interface/read.excel.interface.js +0 -2
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
declare const product: {
|
|
2
|
-
LIST: {};
|
|
3
|
-
PRODUCT_POLISMALL_CARGO_MERATUS: string;
|
|
4
|
-
PRODUCT_POLISMALL_CARGO: string;
|
|
5
|
-
PRODUCT_CODE_PROPERTY_ALL_RISK: string;
|
|
6
|
-
PRODUCT_CODE_EARTHQUAKE: string;
|
|
7
|
-
PRODUCT_CODE_VEHICLE: string;
|
|
8
|
-
PRODUCT_CODE_PUBLIC_LIABILITY: string;
|
|
9
|
-
PRODUCT_CODE_MACHINERYR_BREAKDOWN: string;
|
|
10
|
-
PRODUCT_CODE_TERRORISM_SABOTAGE: string;
|
|
11
|
-
PRODUCT_CODE_COMPREHENSIVE_LIABILITY: string;
|
|
12
|
-
PRODUCT_CODE_CONTAINER: string;
|
|
13
|
-
PRODUCT_CODE_GROUP_HEALTH: string;
|
|
14
|
-
PRODUCT_CODE_TRAVEL: string;
|
|
15
|
-
PRODUCT_CODE_HOSPITAL_CASH_PLAN: string;
|
|
16
|
-
PRODUCT_CODE_TERM_LIFE: string;
|
|
17
|
-
PRODUCT_CODE_PERSONAL_ACCIDENT: string;
|
|
18
|
-
PRODUCT_CODE_TAILOR_MADE: string;
|
|
19
|
-
PRODUCT_CODE_CRITICAL_ILLNESS: string;
|
|
20
|
-
PRODUCT_CODE_FREIGHT_FORWARDER_LIABILITY: string;
|
|
21
|
-
PRODUCT_CODE_MARINE_HULL: string;
|
|
22
|
-
PRODUCT_CODE_CREDIT_LIFE: string;
|
|
23
|
-
PRODUCT_CODE_TRADITIONAL_WHOLE_LIFE: string;
|
|
24
|
-
PRODUCT_CODE_CARPAKR_LIABILITY: string;
|
|
25
|
-
PRODUCT_CODE_DIRECTOR_OFFICER_LIABILITY: string;
|
|
26
|
-
PRODUCT_CODE_PROFESIONAL_INDEMNITY: string;
|
|
27
|
-
PRODUCT_CODE_GENERAL_LIABILITY: string;
|
|
28
|
-
PRODUCT_CODE_WEDDING: string;
|
|
29
|
-
PRODUCT_CODE_PENSIUN_FUND: string;
|
|
30
|
-
PRODUCT_CODE_PENSION_FUND: string;
|
|
31
|
-
PRODUCT_CODE_ENVIRONMENTAL_LIABILITY: string;
|
|
32
|
-
PRODUCT_CODE_PROTECTION_INDEMNITY: string;
|
|
33
|
-
PRODUCT_CODE_STUDENT_PROTECTION: string;
|
|
34
|
-
PRODUCT_CODE_GADGET: string;
|
|
35
|
-
PRODUCT_CODE_ELECTRONIC_EQUIPMENT: string;
|
|
36
|
-
PRODUCT_CODE_CPM: string;
|
|
37
|
-
PRODUCT_CODE_CONSTRUCTION_ALLRISK: string;
|
|
38
|
-
PRODUCT_CODE_MERIMEN_CARGO: string;
|
|
39
|
-
PRODUCT_CODE_HCI_MOTOR: string;
|
|
40
|
-
PRODUCT_CODE_HCP5_DISEASE: string;
|
|
41
|
-
PRODUCT_CODE_EXIM: string;
|
|
42
|
-
PRODUCT_CODE_MOVEABLE_ALL_RISK: string;
|
|
43
|
-
PRODUCT_CODE_SURETY_BOND: string;
|
|
44
|
-
PRODUCT_CODE_ERECTION_ALL_RISK: string;
|
|
45
|
-
PRODUCT_CODE_OTTO_CI: string;
|
|
46
|
-
PRODUCT_CODE_OTTO_FLEXAS: string;
|
|
47
|
-
PRODUCT_CODE_OTTO_CRACK_SCREEN: string;
|
|
48
|
-
PRODUCT_CODE_OTTO_AUM_GP: string;
|
|
49
|
-
PRODUCT_CODE_OTTO_AUM_PLN: string;
|
|
50
|
-
PRODUCT_CODE_OTTO_AUM_PDAM: string;
|
|
51
|
-
PRODUCT_CODE_OTTO_AUM_SB: string;
|
|
52
|
-
PRODUCT_CODE_OTTO_AUM_FB: string;
|
|
53
|
-
PRODUCT_CODE_OTTO_AUM_FBK: string;
|
|
54
|
-
PRODUCT_CODE_BDKI_MOTOR: string;
|
|
55
|
-
PRODUCT_CODE_BDKI_RUMAH: string;
|
|
56
|
-
PRODUCT_CODE_BNI_MOBIL: string;
|
|
57
|
-
PRODUCT_CODE_BNI_MOTOR: string;
|
|
58
|
-
PRODUCT_CODE_BNI_RUMAH: string;
|
|
59
|
-
PRODUCT_CODE_CARGO_BUNDLE: string;
|
|
60
|
-
PRODUCT_CODE_RETAIL_LOKET_PA: string;
|
|
61
|
-
PRODUCT_CODE_RETAIL_KALOG_CARGO: string;
|
|
62
|
-
PRODUCT_CODE_RETAIL_POS_CARGO: string;
|
|
63
|
-
};
|
|
64
|
-
export default product;
|
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const product = {
|
|
4
|
-
LIST: {},
|
|
5
|
-
PRODUCT_POLISMALL_CARGO_MERATUS: 'polismall-cargo-meratus',
|
|
6
|
-
PRODUCT_POLISMALL_CARGO: 'polismall-cargo',
|
|
7
|
-
PRODUCT_CODE_PROPERTY_ALL_RISK: 'polismall-property-allrisk',
|
|
8
|
-
PRODUCT_CODE_EARTHQUAKE: 'polismall-earthquake',
|
|
9
|
-
PRODUCT_CODE_VEHICLE: 'polismall-vehicle',
|
|
10
|
-
PRODUCT_CODE_PUBLIC_LIABILITY: 'polismall-public-liability',
|
|
11
|
-
PRODUCT_CODE_MACHINERYR_BREAKDOWN: 'polismall-machinery-breakdown',
|
|
12
|
-
PRODUCT_CODE_TERRORISM_SABOTAGE: 'polismall-terrorism-sabotage',
|
|
13
|
-
PRODUCT_CODE_COMPREHENSIVE_LIABILITY: 'polismall-comprehensive-liability',
|
|
14
|
-
PRODUCT_CODE_CONTAINER: 'polismall-container',
|
|
15
|
-
PRODUCT_CODE_GROUP_HEALTH: 'polismall-group-health',
|
|
16
|
-
PRODUCT_CODE_TRAVEL: 'polismall-travel',
|
|
17
|
-
PRODUCT_CODE_HOSPITAL_CASH_PLAN: 'polismall-hospital-cash-plan',
|
|
18
|
-
PRODUCT_CODE_TERM_LIFE: 'polismall-term-life',
|
|
19
|
-
PRODUCT_CODE_PERSONAL_ACCIDENT: 'polismall-personal-accident',
|
|
20
|
-
PRODUCT_CODE_TAILOR_MADE: 'polismall-tailor-made',
|
|
21
|
-
PRODUCT_CODE_CRITICAL_ILLNESS: 'polismall-critical-illness',
|
|
22
|
-
PRODUCT_CODE_FREIGHT_FORWARDER_LIABILITY: 'polismall-freight-forwarder-liability',
|
|
23
|
-
PRODUCT_CODE_MARINE_HULL: 'polismall-marine-hull',
|
|
24
|
-
PRODUCT_CODE_CREDIT_LIFE: 'polismall-credit-life',
|
|
25
|
-
PRODUCT_CODE_TRADITIONAL_WHOLE_LIFE: 'polismall-traditional-whole-life',
|
|
26
|
-
PRODUCT_CODE_CARPAKR_LIABILITY: 'polismall-carpark-liability',
|
|
27
|
-
PRODUCT_CODE_DIRECTOR_OFFICER_LIABILITY: 'polismall-director-officer-liability',
|
|
28
|
-
PRODUCT_CODE_PROFESIONAL_INDEMNITY: 'polismall-professional-indemnity',
|
|
29
|
-
PRODUCT_CODE_GENERAL_LIABILITY: 'polismall-general-liability',
|
|
30
|
-
PRODUCT_CODE_WEDDING: 'polismall-wedding',
|
|
31
|
-
PRODUCT_CODE_PENSIUN_FUND: 'polismall-pensiun-fund',
|
|
32
|
-
PRODUCT_CODE_PENSION_FUND: 'polismall-pension-fund',
|
|
33
|
-
PRODUCT_CODE_ENVIRONMENTAL_LIABILITY: 'polismall-environmental-liability',
|
|
34
|
-
PRODUCT_CODE_PROTECTION_INDEMNITY: 'polismall-protection-indemnity',
|
|
35
|
-
PRODUCT_CODE_STUDENT_PROTECTION: 'polismall-student-protection',
|
|
36
|
-
PRODUCT_CODE_GADGET: 'polismall-gadget',
|
|
37
|
-
PRODUCT_CODE_ELECTRONIC_EQUIPMENT: 'polismall-electronic-equipment',
|
|
38
|
-
PRODUCT_CODE_CPM: 'polismall-cpm',
|
|
39
|
-
PRODUCT_CODE_CONSTRUCTION_ALLRISK: 'polismall-construction-allrisk',
|
|
40
|
-
PRODUCT_CODE_MERIMEN_CARGO: 'polismall-merimen-cargo',
|
|
41
|
-
PRODUCT_CODE_HCI_MOTOR: 'polismall-hci-motor',
|
|
42
|
-
PRODUCT_CODE_HCP5_DISEASE: 'polismall-hcp5-disease',
|
|
43
|
-
PRODUCT_CODE_EXIM: 'polismall-exim',
|
|
44
|
-
PRODUCT_CODE_MOVEABLE_ALL_RISK: 'polismall-moveable-all-risk',
|
|
45
|
-
PRODUCT_CODE_SURETY_BOND: 'polismall-surety-bond',
|
|
46
|
-
PRODUCT_CODE_ERECTION_ALL_RISK: 'polismall-erection-all-risk',
|
|
47
|
-
// OTTO
|
|
48
|
-
PRODUCT_CODE_OTTO_CI: 'polismall-otto-critical-illness',
|
|
49
|
-
PRODUCT_CODE_OTTO_FLEXAS: 'polismall-otto-flexas',
|
|
50
|
-
PRODUCT_CODE_OTTO_CRACK_SCREEN: 'polismall-otto-crack',
|
|
51
|
-
PRODUCT_CODE_OTTO_AUM_GP: 'polismall-otto-aum-gp',
|
|
52
|
-
PRODUCT_CODE_OTTO_AUM_PLN: 'polismall-otto-aum-pln',
|
|
53
|
-
PRODUCT_CODE_OTTO_AUM_PDAM: 'polismall-otto-aum-pdam',
|
|
54
|
-
PRODUCT_CODE_OTTO_AUM_SB: 'polismall-otto-aum-sb',
|
|
55
|
-
PRODUCT_CODE_OTTO_AUM_FB: 'polismall-otto-aum-fb',
|
|
56
|
-
PRODUCT_CODE_OTTO_AUM_FBK: 'polismall-otto-aum-fbk',
|
|
57
|
-
// BDKI
|
|
58
|
-
PRODUCT_CODE_BDKI_MOTOR: 'polismall-bdki-motor',
|
|
59
|
-
PRODUCT_CODE_BDKI_RUMAH: 'polismall-bdki-rumah',
|
|
60
|
-
// BNI
|
|
61
|
-
PRODUCT_CODE_BNI_MOBIL: 'polismall-bni-mobil',
|
|
62
|
-
PRODUCT_CODE_BNI_MOTOR: 'polismall-bni-motor',
|
|
63
|
-
PRODUCT_CODE_BNI_RUMAH: 'polismall-bni-rumah',
|
|
64
|
-
// BUNDLE
|
|
65
|
-
PRODUCT_CODE_CARGO_BUNDLE: 'polismall-cargo-bundle',
|
|
66
|
-
// [PM] POLISMALL RETAIL
|
|
67
|
-
PRODUCT_CODE_RETAIL_LOKET_PA: 'polismall-loket-pa',
|
|
68
|
-
PRODUCT_CODE_RETAIL_KALOG_CARGO: 'polismall-kalog-cargo',
|
|
69
|
-
PRODUCT_CODE_RETAIL_POS_CARGO: 'polismall-pos-cargo',
|
|
70
|
-
};
|
|
71
|
-
product.LIST = {
|
|
72
|
-
[product.PRODUCT_CODE_BNI_MOBIL]: {
|
|
73
|
-
value: product.PRODUCT_CODE_BNI_MOBIL,
|
|
74
|
-
name: "BNI Oto Warranty Plus",
|
|
75
|
-
},
|
|
76
|
-
[product.PRODUCT_CODE_BNI_MOTOR]: {
|
|
77
|
-
value: product.PRODUCT_CODE_BNI_MOTOR,
|
|
78
|
-
name: "BNI Motor Guard",
|
|
79
|
-
},
|
|
80
|
-
[product.PRODUCT_CODE_BNI_RUMAH]: {
|
|
81
|
-
value: product.PRODUCT_CODE_BNI_RUMAH,
|
|
82
|
-
name: "BNI Home Guard",
|
|
83
|
-
},
|
|
84
|
-
[product.PRODUCT_CODE_OTTO_CI]: {
|
|
85
|
-
value: product.PRODUCT_CODE_OTTO_CI,
|
|
86
|
-
name: "Otto Critical Illness",
|
|
87
|
-
},
|
|
88
|
-
[product.PRODUCT_CODE_OTTO_FLEXAS]: {
|
|
89
|
-
value: product.PRODUCT_CODE_OTTO_FLEXAS,
|
|
90
|
-
name: "Otto Biller Protection",
|
|
91
|
-
},
|
|
92
|
-
[product.PRODUCT_CODE_OTTO_CRACK_SCREEN]: {
|
|
93
|
-
value: product.PRODUCT_CODE_OTTO_CRACK_SCREEN,
|
|
94
|
-
name: "Smartphone Protection",
|
|
95
|
-
},
|
|
96
|
-
[product.PRODUCT_POLISMALL_CARGO]: {
|
|
97
|
-
value: product.PRODUCT_POLISMALL_CARGO,
|
|
98
|
-
name: "Polismall Marine Cargo",
|
|
99
|
-
},
|
|
100
|
-
[product.PRODUCT_POLISMALL_CARGO_MERATUS]: {
|
|
101
|
-
value: product.PRODUCT_POLISMALL_CARGO_MERATUS,
|
|
102
|
-
name: "Microsite Marine Cargo",
|
|
103
|
-
},
|
|
104
|
-
[product.PRODUCT_CODE_PROPERTY_ALL_RISK]: {
|
|
105
|
-
value: product.PRODUCT_CODE_PROPERTY_ALL_RISK,
|
|
106
|
-
name: "Property All Risk",
|
|
107
|
-
},
|
|
108
|
-
[product.PRODUCT_CODE_EARTHQUAKE]: {
|
|
109
|
-
value: product.PRODUCT_CODE_EARTHQUAKE,
|
|
110
|
-
name: "Earthquake",
|
|
111
|
-
},
|
|
112
|
-
[product.PRODUCT_CODE_VEHICLE]: {
|
|
113
|
-
value: product.PRODUCT_CODE_VEHICLE,
|
|
114
|
-
name: "Motor Vehicle",
|
|
115
|
-
},
|
|
116
|
-
[product.PRODUCT_CODE_PUBLIC_LIABILITY]: {
|
|
117
|
-
value: product.PRODUCT_CODE_PUBLIC_LIABILITY,
|
|
118
|
-
name: "Public Liability",
|
|
119
|
-
},
|
|
120
|
-
[product.PRODUCT_CODE_MACHINERYR_BREAKDOWN]: {
|
|
121
|
-
value: product.PRODUCT_CODE_MACHINERYR_BREAKDOWN,
|
|
122
|
-
name: "Machinery Breakdown",
|
|
123
|
-
},
|
|
124
|
-
[product.PRODUCT_CODE_TERRORISM_SABOTAGE]: {
|
|
125
|
-
value: product.PRODUCT_CODE_TERRORISM_SABOTAGE,
|
|
126
|
-
name: "Terrorism and Sabotage",
|
|
127
|
-
},
|
|
128
|
-
[product.PRODUCT_CODE_COMPREHENSIVE_LIABILITY]: {
|
|
129
|
-
value: product.PRODUCT_CODE_COMPREHENSIVE_LIABILITY,
|
|
130
|
-
name: "Comprehensive General Liability",
|
|
131
|
-
},
|
|
132
|
-
[product.PRODUCT_CODE_CONTAINER]: {
|
|
133
|
-
value: product.PRODUCT_CODE_CONTAINER,
|
|
134
|
-
name: "Container Insurance",
|
|
135
|
-
},
|
|
136
|
-
[product.PRODUCT_CODE_GROUP_HEALTH]: {
|
|
137
|
-
value: product.PRODUCT_CODE_GROUP_HEALTH,
|
|
138
|
-
name: "Group Health Insurance",
|
|
139
|
-
},
|
|
140
|
-
[product.PRODUCT_CODE_TRAVEL]: {
|
|
141
|
-
value: product.PRODUCT_CODE_TRAVEL,
|
|
142
|
-
name: "Travel",
|
|
143
|
-
},
|
|
144
|
-
[product.PRODUCT_CODE_HOSPITAL_CASH_PLAN]: {
|
|
145
|
-
value: product.PRODUCT_CODE_HOSPITAL_CASH_PLAN,
|
|
146
|
-
name: "Hospital Cash Plan",
|
|
147
|
-
},
|
|
148
|
-
[product.PRODUCT_CODE_TERM_LIFE]: {
|
|
149
|
-
value: product.PRODUCT_CODE_TERM_LIFE,
|
|
150
|
-
name: "Term Life",
|
|
151
|
-
},
|
|
152
|
-
[product.PRODUCT_CODE_PERSONAL_ACCIDENT]: {
|
|
153
|
-
value: product.PRODUCT_CODE_PERSONAL_ACCIDENT,
|
|
154
|
-
name: "Personal Accident",
|
|
155
|
-
},
|
|
156
|
-
[product.PRODUCT_CODE_TAILOR_MADE]: {
|
|
157
|
-
value: product.PRODUCT_CODE_TAILOR_MADE,
|
|
158
|
-
name: "Tailor Made",
|
|
159
|
-
},
|
|
160
|
-
[product.PRODUCT_CODE_CRITICAL_ILLNESS]: {
|
|
161
|
-
value: product.PRODUCT_CODE_CRITICAL_ILLNESS,
|
|
162
|
-
name: "Critical Illness",
|
|
163
|
-
},
|
|
164
|
-
[product.PRODUCT_CODE_FREIGHT_FORWARDER_LIABILITY]: {
|
|
165
|
-
value: product.PRODUCT_CODE_FREIGHT_FORWARDER_LIABILITY,
|
|
166
|
-
name: "Freight Forwarder Liability",
|
|
167
|
-
},
|
|
168
|
-
[product.PRODUCT_CODE_MARINE_HULL]: {
|
|
169
|
-
value: product.PRODUCT_CODE_MARINE_HULL,
|
|
170
|
-
name: "Marine Hull",
|
|
171
|
-
},
|
|
172
|
-
[product.PRODUCT_CODE_CREDIT_LIFE]: {
|
|
173
|
-
value: product.PRODUCT_CODE_CREDIT_LIFE,
|
|
174
|
-
name: "Credit Life",
|
|
175
|
-
},
|
|
176
|
-
[product.PRODUCT_CODE_TRADITIONAL_WHOLE_LIFE]: {
|
|
177
|
-
value: product.PRODUCT_CODE_TRADITIONAL_WHOLE_LIFE,
|
|
178
|
-
name: "Traditional Whole Life",
|
|
179
|
-
},
|
|
180
|
-
[product.PRODUCT_CODE_CARPAKR_LIABILITY]: {
|
|
181
|
-
value: product.PRODUCT_CODE_CARPAKR_LIABILITY,
|
|
182
|
-
name: "Carpark Liability",
|
|
183
|
-
},
|
|
184
|
-
[product.PRODUCT_CODE_DIRECTOR_OFFICER_LIABILITY]: {
|
|
185
|
-
value: product.PRODUCT_CODE_DIRECTOR_OFFICER_LIABILITY,
|
|
186
|
-
name: "Director Officer Liability",
|
|
187
|
-
},
|
|
188
|
-
[product.PRODUCT_CODE_PROFESIONAL_INDEMNITY]: {
|
|
189
|
-
value: product.PRODUCT_CODE_PROFESIONAL_INDEMNITY,
|
|
190
|
-
name: "Professional Indemnity",
|
|
191
|
-
},
|
|
192
|
-
[product.PRODUCT_CODE_GENERAL_LIABILITY]: {
|
|
193
|
-
value: product.PRODUCT_CODE_GENERAL_LIABILITY,
|
|
194
|
-
name: "General Liability",
|
|
195
|
-
},
|
|
196
|
-
[product.PRODUCT_CODE_WEDDING]: {
|
|
197
|
-
value: product.PRODUCT_CODE_WEDDING,
|
|
198
|
-
name: "General Wedding",
|
|
199
|
-
},
|
|
200
|
-
[product.PRODUCT_CODE_PENSIUN_FUND]: {
|
|
201
|
-
value: product.PRODUCT_CODE_PENSIUN_FUND,
|
|
202
|
-
name: "Pensiun Fund",
|
|
203
|
-
},
|
|
204
|
-
[product.PRODUCT_CODE_ENVIRONMENTAL_LIABILITY]: {
|
|
205
|
-
value: product.PRODUCT_CODE_ENVIRONMENTAL_LIABILITY,
|
|
206
|
-
name: "Environmental Liability",
|
|
207
|
-
},
|
|
208
|
-
[product.PRODUCT_CODE_PROTECTION_INDEMNITY]: {
|
|
209
|
-
value: product.PRODUCT_CODE_PROTECTION_INDEMNITY,
|
|
210
|
-
name: "Protection Indemnity",
|
|
211
|
-
},
|
|
212
|
-
[product.PRODUCT_CODE_STUDENT_PROTECTION]: {
|
|
213
|
-
value: product.PRODUCT_CODE_STUDENT_PROTECTION,
|
|
214
|
-
name: "Student Protection",
|
|
215
|
-
},
|
|
216
|
-
[product.PRODUCT_CODE_GADGET]: {
|
|
217
|
-
value: product.PRODUCT_CODE_GADGET,
|
|
218
|
-
name: "Gadget",
|
|
219
|
-
},
|
|
220
|
-
[product.PRODUCT_CODE_ELECTRONIC_EQUIPMENT]: {
|
|
221
|
-
value: product.PRODUCT_CODE_ELECTRONIC_EQUIPMENT,
|
|
222
|
-
name: "Electronic Equipment Insurance",
|
|
223
|
-
},
|
|
224
|
-
[product.PRODUCT_CODE_CPM]: {
|
|
225
|
-
value: product.PRODUCT_CODE_CPM,
|
|
226
|
-
name: "Contractor's Plant and Machinery",
|
|
227
|
-
},
|
|
228
|
-
[product.PRODUCT_CODE_CONSTRUCTION_ALLRISK]: {
|
|
229
|
-
value: product.PRODUCT_CODE_CONSTRUCTION_ALLRISK,
|
|
230
|
-
name: "Construction All Risk",
|
|
231
|
-
},
|
|
232
|
-
[product.PRODUCT_CODE_MERIMEN_CARGO]: {
|
|
233
|
-
value: product.PRODUCT_CODE_MERIMEN_CARGO,
|
|
234
|
-
name: "Merimen Cargo",
|
|
235
|
-
},
|
|
236
|
-
[product.PRODUCT_CODE_HCI_MOTOR]: {
|
|
237
|
-
value: product.PRODUCT_CODE_HCI_MOTOR,
|
|
238
|
-
name: "HCI Santunan Motor",
|
|
239
|
-
},
|
|
240
|
-
[product.PRODUCT_CODE_HCP5_DISEASE]: {
|
|
241
|
-
value: product.PRODUCT_CODE_HCP5_DISEASE,
|
|
242
|
-
name: "HCP 5 Disease",
|
|
243
|
-
},
|
|
244
|
-
[product.PRODUCT_CODE_EXIM]: {
|
|
245
|
-
value: product.PRODUCT_CODE_EXIM,
|
|
246
|
-
name: "Polismall EXIM",
|
|
247
|
-
},
|
|
248
|
-
[product.PRODUCT_CODE_BDKI_MOTOR]: {
|
|
249
|
-
value: product.PRODUCT_CODE_BDKI_MOTOR,
|
|
250
|
-
name: "Polismall BDKI motor",
|
|
251
|
-
},
|
|
252
|
-
[product.PRODUCT_CODE_BDKI_RUMAH]: {
|
|
253
|
-
value: product.PRODUCT_CODE_BDKI_RUMAH,
|
|
254
|
-
name: "Polismall BDKI rumah",
|
|
255
|
-
},
|
|
256
|
-
[product.PRODUCT_CODE_MOVEABLE_ALL_RISK]: {
|
|
257
|
-
value: product.PRODUCT_CODE_MOVEABLE_ALL_RISK,
|
|
258
|
-
name: "Polismall Moveable All Risk",
|
|
259
|
-
},
|
|
260
|
-
[product.PRODUCT_CODE_SURETY_BOND]: {
|
|
261
|
-
value: product.PRODUCT_CODE_SURETY_BOND,
|
|
262
|
-
name: "Surety Bond",
|
|
263
|
-
},
|
|
264
|
-
[product.PRODUCT_CODE_ERECTION_ALL_RISK]: {
|
|
265
|
-
value: product.PRODUCT_CODE_ERECTION_ALL_RISK,
|
|
266
|
-
name: "Erection All Risk",
|
|
267
|
-
},
|
|
268
|
-
[product.PRODUCT_CODE_CARGO_BUNDLE]: {
|
|
269
|
-
value: product.PRODUCT_CODE_CARGO_BUNDLE,
|
|
270
|
-
name: "Polismall Cargo Bundle",
|
|
271
|
-
},
|
|
272
|
-
[product.PRODUCT_CODE_RETAIL_LOKET_PA]: {
|
|
273
|
-
value: product.PRODUCT_CODE_RETAIL_LOKET_PA,
|
|
274
|
-
name: "Polismall Loket Personal Accident",
|
|
275
|
-
},
|
|
276
|
-
[product.PRODUCT_CODE_RETAIL_KALOG_CARGO]: {
|
|
277
|
-
value: product.PRODUCT_CODE_RETAIL_KALOG_CARGO,
|
|
278
|
-
name: "Polismall Kalog Cargo Retail",
|
|
279
|
-
},
|
|
280
|
-
[product.PRODUCT_CODE_RETAIL_POS_CARGO]: {
|
|
281
|
-
value: product.PRODUCT_CODE_RETAIL_POS_CARGO,
|
|
282
|
-
name: "Polismall Pos Cargo Retail",
|
|
283
|
-
},
|
|
284
|
-
[product.PRODUCT_CODE_OTTO_AUM_GP]: {
|
|
285
|
-
value: product.PRODUCT_CODE_OTTO_AUM_GP,
|
|
286
|
-
name: "Gamers Protection",
|
|
287
|
-
},
|
|
288
|
-
[product.PRODUCT_CODE_OTTO_AUM_PLN]: {
|
|
289
|
-
value: product.PRODUCT_CODE_OTTO_AUM_PLN,
|
|
290
|
-
name: "OTTO PLN",
|
|
291
|
-
},
|
|
292
|
-
[product.PRODUCT_CODE_OTTO_AUM_PDAM]: {
|
|
293
|
-
value: product.PRODUCT_CODE_OTTO_AUM_PDAM,
|
|
294
|
-
name: "OTTO PDAM",
|
|
295
|
-
},
|
|
296
|
-
[product.PRODUCT_CODE_OTTO_AUM_SB]: {
|
|
297
|
-
value: product.PRODUCT_CODE_OTTO_AUM_SB,
|
|
298
|
-
name: "Merchant Protection Stock",
|
|
299
|
-
},
|
|
300
|
-
[product.PRODUCT_CODE_OTTO_AUM_FB]: {
|
|
301
|
-
value: product.PRODUCT_CODE_OTTO_AUM_FB,
|
|
302
|
-
name: "Merchant Protection Flexas - Flood",
|
|
303
|
-
},
|
|
304
|
-
[product.PRODUCT_CODE_OTTO_AUM_FBK]: {
|
|
305
|
-
value: product.PRODUCT_CODE_OTTO_AUM_FBK,
|
|
306
|
-
name: "Merchant Protection Flexas - Flood - Burglary",
|
|
307
|
-
},
|
|
308
|
-
};
|
|
309
|
-
exports.default = product;
|
|
@@ -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;
|
package/dist/helpers/axiosGet.js
DELETED
|
@@ -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;
|
package/dist/helpers/axiosPut.js
DELETED
|
@@ -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,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
|
-
};
|