sysone-api-mapper 1.0.84 → 1.0.86
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
CHANGED
|
@@ -589,30 +589,23 @@ const quotationModule = {
|
|
|
589
589
|
method: methods.GET,
|
|
590
590
|
requestMapper: (request) => ({
|
|
591
591
|
mappedParams: request,
|
|
592
|
-
responseType: "arraybuffer"
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
if (response?.data instanceof ArrayBuffer) {
|
|
596
|
-
return response.data;
|
|
597
|
-
}
|
|
598
|
-
if (response instanceof ArrayBuffer) {
|
|
599
|
-
return response;
|
|
592
|
+
responseType: "arraybuffer",
|
|
593
|
+
headers: {
|
|
594
|
+
'Accept': 'application/pdf',
|
|
600
595
|
}
|
|
601
|
-
|
|
602
|
-
|
|
596
|
+
}),
|
|
597
|
+
responseMapper: (response) => response
|
|
603
598
|
},
|
|
604
599
|
cnp: {
|
|
605
600
|
url: '/quotation/v1/quotations/{0}/report',
|
|
606
601
|
method: methods.GET,
|
|
607
602
|
requestMapper: (request) => ({
|
|
608
603
|
mappedParams: request,
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
if (response?.data) {
|
|
612
|
-
return response.data;
|
|
604
|
+
headers: {
|
|
605
|
+
'Accept': 'application/json',
|
|
613
606
|
}
|
|
614
|
-
|
|
615
|
-
|
|
607
|
+
}),
|
|
608
|
+
responseMapper: (response) => response
|
|
616
609
|
}
|
|
617
610
|
},
|
|
618
611
|
|