sysone-api-mapper 1.0.81 → 1.0.82

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sysone-api-mapper",
3
- "version": "1.0.81",
3
+ "version": "1.0.82",
4
4
  "description": "Paquete mapper para portal de productores",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -583,6 +583,33 @@ const quotationModule = {
583
583
  }
584
584
  },
585
585
 
586
+ GET_QUOTATION_REPORT: {
587
+ default: {
588
+ url: '{0}/v1/quotations/{1}/report',
589
+ method: methods.GET,
590
+ requestMapper: (request) => ({
591
+ mappedParams: request,
592
+ headers: {
593
+ "Content-Type": "application/pdf",
594
+ },
595
+ responseType: "arraybuffer"
596
+ }),
597
+ responseMapper: (response) => response
598
+ },
599
+ cnp: {
600
+ url: '/quotation/v1/quotations/{0}/report',
601
+ method: methods.GET,
602
+ requestMapper: (request) => ({
603
+ mappedParams: request,
604
+ headers: {
605
+ "Content-Type": "application/pdf",
606
+ },
607
+ responseType: "arraybuffer"
608
+ }),
609
+ responseMapper: (response) => response
610
+ }
611
+ },
612
+
586
613
  POST_CREATE_QUOTATION_STANDARD_PLAN: {
587
614
  default: {
588
615
  url: 'quotation/v1/quotations',