sysone-api-mapper 1.0.31 → 1.0.32

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.31",
3
+ "version": "1.0.32",
4
4
  "description": "Paquete mapper para portal de productores",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -1,7 +1,7 @@
1
1
  // import { methods } from "./mapper";
2
2
  import { getClaims_CNP } from "./modules/claim";
3
3
  import { getModules, getModules_Request } from "./modules/general";
4
- import { getCountries, getIdentificationTypes, getProvinces } from "./modules/party";
4
+ import { getCountries, getIdentificationTypes, getMaritalStatuses, getProvinces } from "./modules/party";
5
5
  import { getEndorsements_CNP, getEndorsements_Request, getInsureds_CNP, getInsureds_CNP_Request, getPolicies_CNP, getPolicies_CNP_Request, getPolicyCollectiveDetail_CNP, getPolicyCollectiveDetail_Request, getPolicyDetail_CNP, getPolicyIndividualDetail_Request, postInsureds_CNP } from "./modules/policy";
6
6
  import { getActivityList, getQuotationByCode, getQuotationByCode_Request, getQuotations_Request, getQuotationsList, quotationStandardPlanCreationMapped, quotationVariablePlanCreationMapped } from "./modules/quotation";
7
7
 
@@ -35,7 +35,7 @@ export const tenantsConfig = {
35
35
 
36
36
  GET_IDENTIFICATION_TYPES: {
37
37
  default: {
38
- url: 'party/v1/sectors',
38
+ url: 'party/v1/identification-types',
39
39
  method: methods.GET,
40
40
  source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1identification-types/get',
41
41
  requestMapper: (request) => ({ mappedParams: request }),
@@ -109,13 +109,24 @@ export const tenantsConfig = {
109
109
  responseMapper: (response) => response,
110
110
  },
111
111
  cnp: {
112
- url: 'quotation/v1/activity',
112
+ url: 'party/v1/activities',
113
113
  method: methods.GET,
114
114
  source: "https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=get-v1-activity",
115
115
  requestMapper: request => ({ mappedParams: request }),
116
116
  responseMapper: (response) => getActivityList(response),
117
117
  },
118
118
  },
119
+ GET_BLOOD_PRESSURES: {
120
+ cnp: {
121
+ url: 'party/v1/blood-pressures',
122
+ method: methods.GET,
123
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-blood-pressures",
124
+ requestMapper: request => ({ mappedParams: request }),
125
+ responseMapper: (response) => response
126
+ },
127
+ },
128
+
129
+ //------------------------------------------------
119
130
  GET_CLAIMS: {
120
131
  default: {
121
132
  url: 'claim/v1/claims',
@@ -335,6 +346,22 @@ export const tenantsConfig = {
335
346
  responseMapper: (response) => response,
336
347
  }
337
348
  },
349
+ POST_AGE: {
350
+ default: {
351
+ url: '',
352
+ method: methods.POST,
353
+ source: '',
354
+ requestMapper: (params) => ({ mappedBody: params }),
355
+ responseMapper: (response) => response,
356
+ },
357
+ cnp: {
358
+ url: 'party/v1/age',
359
+ method: methods.POST,
360
+ source: 'https://developers-test.cnp.com.ar/api-details#api=party-api&operation=post-v1-age',
361
+ requestMapper: (params) => ({ mappedBody: params }),
362
+ responseMapper: (response) => response,
363
+ }
364
+ },
338
365
 
339
366
  //------------- PUT ------------------------------
340
367
  CREATE_INSURED: {