sysone-api-mapper 1.0.106 → 1.0.108

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.106",
3
+ "version": "1.0.108",
4
4
  "description": "Paquete mapper para portal de productores",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -65,6 +65,16 @@ const configurationModule = {
65
65
  responseMapper: (response) => response.data,
66
66
  },
67
67
  },
68
+
69
+ GET_POWERBI_TOKEN: {
70
+ cnp: {
71
+ url: 'ui-configuration/v1/token/microsoft',
72
+ method: methods.GET,
73
+ source: "https://developers-test.cnp.com.ar/api-details#api=openapi-ui-configuration&operation=get-v1-token-microsoft",
74
+ requestMapper: request => ({ mappedParams: request }),
75
+ responseMapper: (response) => response.data,
76
+ },
77
+ }
68
78
  };
69
79
 
70
80
  // ============================================================================
@@ -246,7 +246,7 @@ const getPolicyDetail_CNP = async (data) => {
246
246
  },
247
247
  documentationData: {
248
248
  files: [],
249
- comments: "N/A",
249
+ comments: "",
250
250
  },
251
251
  endorsementData: {
252
252
  number: data?.endorsementNumber
@@ -257,13 +257,13 @@ const getPolicyDetail_CNP = async (data) => {
257
257
  minimumAge: 0,
258
258
  maximumAge: 0,
259
259
  maximumQuantityInsuredByEvent: 0,
260
- maximumAmountToIndemnify: "N/A",
260
+ maximumAmountToIndemnify: 0,
261
261
  insurables: data?.insured ? [{
262
262
  type: {
263
263
  name: data?.insured?.type?.name || null,
264
264
  code: data?.insured?.type?.code || null,
265
265
  },
266
- wording: "N/A",
266
+ wording: null,
267
267
  minimumEntryAge: 0,
268
268
  maximumEntryAge: 0,
269
269
  endingAgePrincipalCoverage: 0,