sysone-api-mapper 1.0.108 → 1.0.110

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.108",
3
+ "version": "1.0.110",
4
4
  "description": "Paquete mapper para portal de productores",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -68,9 +68,8 @@ const configurationModule = {
68
68
 
69
69
  GET_POWERBI_TOKEN: {
70
70
  cnp: {
71
- url: 'ui-configuration/v1/token/microsoft',
71
+ url: 'ui-configuration/v1/embedded-reports',
72
72
  method: methods.GET,
73
- source: "https://developers-test.cnp.com.ar/api-details#api=openapi-ui-configuration&operation=get-v1-token-microsoft",
74
73
  requestMapper: request => ({ mappedParams: request }),
75
74
  responseMapper: (response) => response.data,
76
75
  },
@@ -270,6 +270,15 @@ const getPolicyDetail_CNP = async (data) => {
270
270
  endingAgeAditionalCoverage: 0,
271
271
  }] : null
272
272
  },
273
+ savings: {
274
+ accountBalance: data?.accountBalance || null,
275
+ annualPremium: data?.annualPremium || null,
276
+ premium: data?.premium || null,
277
+ prize: data?.prize || null,
278
+ simpleEndorsementPremium: data?.simpleEndorsementPremium || null,
279
+ },
280
+ salesAgent: data?.salesAgent || null,
281
+ salesBranch: data?.salesBranch || null,
273
282
  };
274
283
  return objectMapped;
275
284
  }