sysone-api-mapper 1.0.149 → 1.0.150

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.
@@ -1,12 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tenantsConfig = exports.methods = void 0;
1
4
  // Import modules organized by functionality
2
- import { getBillingsParams, getBillingsResponse, getBillingTypeResponse, getCollecionsResponse, getDebtorsResponse } from "./modules/billing";
3
- import { getClaims_CNP } from "./modules/claim";
4
- import { getModules, getModules_Request } from "./modules/general";
5
- import { getCountries, getCoverages, getGenders, getIdentificationTypes, getMaritalStatuses, getProductsBySubsections_Request, getProvinces, partySearch, partySearchParams } from "./modules/party";
6
- import { getEndorsements_CNP, getEndorsements_Request, getInsureds_CNP, getInsureds_CNP_Request, getPolicies_CNP, getPolicies_CNP_Request, getPolicyCollectiveDetail_CNP, getPolicyCollectiveDetail_Request, getPolicyDetail_CNP, getPolicyIndividualDetail_Request, getPolicyDetail_Request, postInsureds_CNP, getPolicyCollection_Request, getPolicyCollection } from "./modules/policy";
7
- import { getActivityList, getPaymentFrecuencies, getProductParameters, getProductsBySubsections, getQuotationByCode, getQuotationByCode_Request, getQuotationDetail, getQuotations_Request, getQuotationsList, quotationStandardPlanCreationMapped, quotationVariablePlanCreationMapped } from "./modules/quotation";
8
- import { getRequest_Params, getRequestDetail } from "./modules/request";
9
- export const methods = {
5
+ const billing_1 = require("./modules/billing");
6
+ const claim_1 = require("./modules/claim");
7
+ const general_1 = require("./modules/general");
8
+ const party_1 = require("./modules/party");
9
+ const policy_1 = require("./modules/policy");
10
+ const quotation_1 = require("./modules/quotation");
11
+ const request_1 = require("./modules/request");
12
+ exports.methods = {
10
13
  GET: "GET",
11
14
  POST: "POST",
12
15
  PUT: "PUT",
@@ -19,21 +22,21 @@ const configurationModule = {
19
22
  GET_MODULES: {
20
23
  default: {
21
24
  url: 'ui-configuration/v1/platforms/link-one/modules',
22
- method: methods.GET,
25
+ method: exports.methods.GET,
23
26
  requestMapper: (request) => ({ mappedParams: request }),
24
27
  responseMapper: (response) => response.data,
25
28
  },
26
29
  cnp: {
27
30
  url: 'ui-configuration/v1/modules',
28
- method: methods.GET,
29
- requestMapper: request => ({ mappedParams: getModules_Request(request) }),
31
+ method: exports.methods.GET,
32
+ requestMapper: request => ({ mappedParams: (0, general_1.getModules_Request)(request) }),
30
33
  responseMapper: (response) => response.data,
31
34
  },
32
35
  },
33
36
  GET_POWERBI_TOKEN: {
34
37
  cnp: {
35
38
  url: 'ui-configuration/v1/embedded-reports',
36
- method: methods.GET,
39
+ method: exports.methods.GET,
37
40
  requestMapper: request => ({ mappedParams: request }),
38
41
  responseMapper: (response) => response.data,
39
42
  },
@@ -46,57 +49,57 @@ const billingModule = {
46
49
  GET_BILLINGS: {
47
50
  default: {
48
51
  url: 'billing/v1/billing',
49
- method: methods.GET,
52
+ method: exports.methods.GET,
50
53
  requestMapper: (request) => ({ mappedParams: request }),
51
54
  responseMapper: (response) => response.data,
52
55
  },
53
56
  cnp: {
54
57
  url: 'policy/v1/policy/{0}/{1}/payments',
55
- method: methods.GET,
56
- requestMapper: request => ({ mappedParams: getBillingsParams(request) }),
57
- responseMapper: (response) => getBillingsResponse(response.data),
58
+ method: exports.methods.GET,
59
+ requestMapper: request => ({ mappedParams: (0, billing_1.getBillingsParams)(request) }),
60
+ responseMapper: (response) => (0, billing_1.getBillingsResponse)(response.data),
58
61
  },
59
62
  },
60
63
  GET_POLICY_COLLECTIONS: {
61
64
  default: {
62
65
  url: '/collection/v1/collections',
63
- method: methods.GET,
66
+ method: exports.methods.GET,
64
67
  requestMapper: (request) => ({ mappedParams: request }),
65
68
  responseMapper: (response) => response.data,
66
69
  },
67
70
  cnp: {
68
71
  url: 'policy/v1/policy/{0}/{1}/payments',
69
- method: methods.GET,
70
- requestMapper: request => ({ mappedParams: getBillingsParams(request) }),
71
- responseMapper: (response) => getCollecionsResponse(response.data),
72
+ method: exports.methods.GET,
73
+ requestMapper: request => ({ mappedParams: (0, billing_1.getBillingsParams)(request) }),
74
+ responseMapper: (response) => (0, billing_1.getCollecionsResponse)(response.data),
72
75
  },
73
76
  },
74
77
  GET_DEBTORS: {
75
78
  default: {
76
79
  url: 'billing/v1/billing',
77
- method: methods.GET,
80
+ method: exports.methods.GET,
78
81
  requestMapper: (request) => ({ mappedParams: request }),
79
82
  responseMapper: (response) => response.data,
80
83
  },
81
84
  cnp: {
82
85
  url: 'policy/v1/policy/{0}/{1}/payments',
83
- method: methods.GET,
84
- requestMapper: request => ({ mappedParams: getBillingsParams(request) }),
85
- responseMapper: (response) => getDebtorsResponse(response.data),
86
+ method: exports.methods.GET,
87
+ requestMapper: request => ({ mappedParams: (0, billing_1.getBillingsParams)(request) }),
88
+ responseMapper: (response) => (0, billing_1.getDebtorsResponse)(response.data),
86
89
  },
87
90
  },
88
91
  GET_BILLING_TYPE: {
89
92
  default: {
90
93
  url: 'billing/v1/billing-types',
91
- method: methods.GET,
94
+ method: exports.methods.GET,
92
95
  requestMapper: (request) => ({ mappedParams: request }),
93
96
  responseMapper: (response) => response.data,
94
97
  },
95
98
  cnp: {
96
99
  url: 'party/v1/genders',
97
- method: methods.GET,
100
+ method: exports.methods.GET,
98
101
  requestMapper: request => ({ mappedParams: request }),
99
- responseMapper: (response) => getBillingTypeResponse(response.data),
102
+ responseMapper: (response) => (0, billing_1.getBillingTypeResponse)(response.data),
100
103
  },
101
104
  },
102
105
  };
@@ -107,7 +110,7 @@ const intermediaryModule = {
107
110
  GET_INTERMEDIARY_STRUCTURE: {
108
111
  default: {
109
112
  url: 'intermediary/v1/intermediary/{0}/commercial-structures',
110
- method: methods.GET,
113
+ method: exports.methods.GET,
111
114
  requestMapper: (request) => ({ mappedParams: request }),
112
115
  responseMapper: (response) => response.data,
113
116
  },
@@ -115,7 +118,7 @@ const intermediaryModule = {
115
118
  GET_INTERMEDIARY_BY_CODE: {
116
119
  default: {
117
120
  url: 'intermediary/v1/intermediary/{0}',
118
- method: methods.GET,
121
+ method: exports.methods.GET,
119
122
  requestMapper: (request) => ({ mappedParams: request }),
120
123
  responseMapper: (response) => response.data,
121
124
  }
@@ -123,7 +126,7 @@ const intermediaryModule = {
123
126
  GET_COMMERCIAL_STRUCTURE: {
124
127
  default: {
125
128
  url: 'intermediary/v1/commercial-structures',
126
- method: methods.GET,
129
+ method: exports.methods.GET,
127
130
  requestMapper: (request) => ({ mappedParams: request }),
128
131
  responseMapper: (response) => response.data,
129
132
  }
@@ -136,13 +139,13 @@ const partyModule = {
136
139
  GET_CURRENCIES: {
137
140
  default: {
138
141
  url: 'finance/v1/currencies',
139
- method: methods.GET,
142
+ method: exports.methods.GET,
140
143
  requestMapper: (request) => ({ mappedParams: request }),
141
144
  responseMapper: (response) => response.data,
142
145
  },
143
146
  cnp: {
144
147
  url: 'party/v1/currencies',
145
- method: methods.GET,
148
+ method: exports.methods.GET,
146
149
  source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-currencies",
147
150
  requestMapper: request => ({ mappedParams: request }),
148
151
  responseMapper: (response) => response.data,
@@ -151,102 +154,102 @@ const partyModule = {
151
154
  GET_GENDERS: {
152
155
  default: {
153
156
  url: 'party/v1/genders',
154
- method: methods.GET,
157
+ method: exports.methods.GET,
155
158
  source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1genders/get',
156
159
  requestMapper: (request) => ({ mappedParams: request }),
157
160
  responseMapper: (response) => response.data,
158
161
  },
159
162
  cnp: {
160
163
  url: 'party/v1/genders',
161
- method: methods.GET,
164
+ method: exports.methods.GET,
162
165
  requestMapper: request => ({ mappedParams: request }),
163
- responseMapper: (response) => getGenders(response.data),
166
+ responseMapper: (response) => (0, party_1.getGenders)(response.data),
164
167
  },
165
168
  },
166
169
  GET_IDENTIFICATION_TYPES: {
167
170
  default: {
168
171
  url: 'party/v1/identification-types',
169
- method: methods.GET,
172
+ method: exports.methods.GET,
170
173
  source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1identification-types/get',
171
174
  requestMapper: (request) => ({ mappedParams: request }),
172
175
  responseMapper: (response) => response.data,
173
176
  },
174
177
  cnp: {
175
178
  url: 'party/v1/identification-types',
176
- method: methods.GET,
179
+ method: exports.methods.GET,
177
180
  source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-identification-types",
178
181
  requestMapper: request => ({ mappedParams: request }),
179
- responseMapper: (response) => getIdentificationTypes(response.data),
182
+ responseMapper: (response) => (0, party_1.getIdentificationTypes)(response.data),
180
183
  },
181
184
  },
182
185
  GET_COUNTRIES: {
183
186
  default: {
184
187
  url: 'location/v1/countries',
185
- method: methods.GET,
188
+ method: exports.methods.GET,
186
189
  source: 'https://apidoc.sysone.com/location/v1/open-api.html#/paths/~1v1~1countries/get',
187
190
  requestMapper: (request) => ({ mappedParams: request }),
188
191
  responseMapper: (response) => response.data,
189
192
  },
190
193
  cnp: {
191
194
  url: 'party/v1/countries',
192
- method: methods.GET,
195
+ method: exports.methods.GET,
193
196
  source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-countries",
194
197
  requestMapper: request => ({ mappedParams: request }),
195
- responseMapper: (response) => getCountries(response.data),
198
+ responseMapper: (response) => (0, party_1.getCountries)(response.data),
196
199
  },
197
200
  },
198
201
  GET_PROVINCES: {
199
202
  default: {
200
203
  url: 'location/v1/countries/{0}/provinces',
201
- method: methods.GET,
204
+ method: exports.methods.GET,
202
205
  source: 'https://apidoc.sysone.com/location/v1/open-api.html#/paths/~1v1~1countries/get',
203
206
  requestMapper: (request) => ({ mappedParams: request }),
204
207
  responseMapper: (response) => response.data,
205
208
  },
206
209
  cnp: {
207
210
  url: 'party/v1/countries/{0}/provinces',
208
- method: methods.GET,
211
+ method: exports.methods.GET,
209
212
  source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-countries",
210
213
  requestMapper: request => ({ mappedParams: request }),
211
- responseMapper: (response) => getProvinces(response.data),
214
+ responseMapper: (response) => (0, party_1.getProvinces)(response.data),
212
215
  },
213
216
  },
214
217
  GET_MARITAL_STATUS: {
215
218
  default: {
216
219
  url: 'party/v1/marital-statuses',
217
- method: methods.GET,
220
+ method: exports.methods.GET,
218
221
  source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1marital-statuses/get',
219
222
  requestMapper: (request) => ({ mappedParams: request }),
220
223
  responseMapper: (response) => response.data,
221
224
  },
222
225
  cnp: {
223
226
  url: 'party/v1/marital-statuses',
224
- method: methods.GET,
227
+ method: exports.methods.GET,
225
228
  source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-marital-statuses",
226
229
  requestMapper: request => ({ mappedParams: request }),
227
- responseMapper: (response) => getMaritalStatuses(response.data),
230
+ responseMapper: (response) => (0, party_1.getMaritalStatuses)(response.data),
228
231
  },
229
232
  },
230
233
  GET_ACTIVITY: {
231
234
  default: {
232
235
  url: 'party/v1/sectors',
233
- method: methods.GET,
236
+ method: exports.methods.GET,
234
237
  source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1sectors/get',
235
238
  requestMapper: (request) => ({ mappedParams: request }),
236
239
  responseMapper: (response) => response.data,
237
240
  },
238
241
  cnp: {
239
242
  url: 'party/v1/activities',
240
- method: methods.GET,
243
+ method: exports.methods.GET,
241
244
  source: "https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=get-v1-activity",
242
245
  requestMapper: request => ({ mappedParams: request }),
243
- responseMapper: (response) => getActivityList(response.data),
246
+ responseMapper: (response) => (0, quotation_1.getActivityList)(response.data),
244
247
  },
245
248
  },
246
249
  GET_BLOOD_PRESSURES: {
247
250
  cnp: {
248
251
  url: 'party/v1/blood-pressures',
249
- method: methods.GET,
252
+ method: exports.methods.GET,
250
253
  source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-blood-pressures",
251
254
  requestMapper: request => ({ mappedParams: request }),
252
255
  responseMapper: (response) => response.data
@@ -255,22 +258,22 @@ const partyModule = {
255
258
  GET_PAYMENT_FRECUENCIES: {
256
259
  default: {
257
260
  url: 'quotation/v1/payment-frequencies',
258
- method: methods.GET,
261
+ method: exports.methods.GET,
259
262
  requestMapper: (request) => ({ mappedParams: request }),
260
263
  responseMapper: (response) => response.data,
261
264
  },
262
265
  cnp: {
263
266
  url: 'party/v1/payment-frequencies',
264
- method: methods.GET,
267
+ method: exports.methods.GET,
265
268
  source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-payment-frequencies",
266
269
  requestMapper: request => ({ mappedParams: request }),
267
- responseMapper: (response) => getPaymentFrecuencies(response.data),
270
+ responseMapper: (response) => (0, quotation_1.getPaymentFrecuencies)(response.data),
268
271
  },
269
272
  },
270
273
  GET_PAYMENT_TYPES: {
271
274
  cnp: {
272
275
  url: 'party/v1/payment-types',
273
- method: methods.GET,
276
+ method: exports.methods.GET,
274
277
  source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-payment-types",
275
278
  requestMapper: request => ({ mappedParams: request }),
276
279
  responseMapper: (response) => response.data,
@@ -279,7 +282,7 @@ const partyModule = {
279
282
  GET_BRANCHES: {
280
283
  cnp: {
281
284
  url: 'party/v1/branches',
282
- method: methods.GET,
285
+ method: exports.methods.GET,
283
286
  source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-branches",
284
287
  requestMapper: request => ({ mappedParams: request }),
285
288
  responseMapper: (response) => response.data,
@@ -288,30 +291,30 @@ const partyModule = {
288
291
  GET_PARTIES: {
289
292
  default: {
290
293
  url: 'party/v1/{0}',
291
- method: methods.GET,
294
+ method: exports.methods.GET,
292
295
  source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1individuals/get",
293
296
  requestMapper: (request) => ({ mappedParams: request }),
294
297
  responseMapper: (response) => response.data,
295
298
  },
296
299
  cnp: {
297
300
  url: 'party/v1/parties',
298
- method: methods.GET,
301
+ method: exports.methods.GET,
299
302
  source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-parties",
300
- requestMapper: request => ({ mappedParams: partySearchParams(request) }),
301
- responseMapper: (response) => partySearch(response.data),
303
+ requestMapper: request => ({ mappedParams: (0, party_1.partySearchParams)(request) }),
304
+ responseMapper: (response) => (0, party_1.partySearch)(response.data),
302
305
  },
303
306
  },
304
307
  POST_AGE: {
305
308
  default: {
306
309
  url: '',
307
- method: methods.POST,
310
+ method: exports.methods.POST,
308
311
  source: '',
309
312
  requestMapper: (params) => ({ mappedBody: params }),
310
313
  responseMapper: (response) => response,
311
314
  },
312
315
  cnp: {
313
316
  url: 'party/v1/age',
314
- method: methods.POST,
317
+ method: exports.methods.POST,
315
318
  source: 'https://developers-test.cnp.com.ar/api-details#api=party-api&operation=post-v1-age',
316
319
  requestMapper: (params) => ({ mappedBody: params }),
317
320
  responseMapper: (response) => response,
@@ -325,22 +328,22 @@ const productModule = {
325
328
  GET_COVERAGES: {
326
329
  default: {
327
330
  url: 'product/v1/products/{0}/coverages',
328
- method: methods.GET,
331
+ method: exports.methods.GET,
329
332
  requestMapper: (request) => ({ mappedParams: request }),
330
333
  responseMapper: (response) => response.data,
331
334
  },
332
335
  cnp: {
333
336
  url: 'party/v1/products/{0}/coverages',
334
- method: methods.GET,
337
+ method: exports.methods.GET,
335
338
  source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-coverages-currencycode-currencycode-smoker-smoker",
336
339
  requestMapper: request => ({ mappedParams: request }),
337
- responseMapper: (response) => getCoverages(response.data),
340
+ responseMapper: (response) => (0, party_1.getCoverages)(response.data),
338
341
  },
339
342
  },
340
343
  GET_DISTRIBUTION_LIMITS: {
341
344
  cnp: {
342
345
  url: 'party/v1/products/{0}/savings-distribution',
343
- method: methods.GET,
346
+ method: exports.methods.GET,
344
347
  source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-coverages-currencycode-currencycode-smoker-smoker",
345
348
  requestMapper: request => ({ mappedParams: request }),
346
349
  responseMapper: (response) => response.data,
@@ -349,31 +352,31 @@ const productModule = {
349
352
  GET_PRODUCTS_BY_SUBSECTIONS: {
350
353
  default: {
351
354
  url: 'product/v1/products',
352
- method: methods.GET,
355
+ method: exports.methods.GET,
353
356
  source: 'https://apidoc.sysone.com/product/v1/open-api.html#/paths/~1v1~1products/get',
354
357
  requestMapper: (request) => ({ mappedParams: request }),
355
358
  responseMapper: (response) => response.data,
356
359
  },
357
360
  cnp: {
358
361
  url: 'party/v1/subsections/{0}/products',
359
- method: methods.GET,
362
+ method: exports.methods.GET,
360
363
  source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-subsections-code-products",
361
- requestMapper: request => ({ mappedParams: getProductsBySubsections_Request(request) }),
362
- responseMapper: (response) => getProductsBySubsections(response.data),
364
+ requestMapper: request => ({ mappedParams: (0, party_1.getProductsBySubsections_Request)(request) }),
365
+ responseMapper: (response) => (0, quotation_1.getProductsBySubsections)(response.data),
363
366
  },
364
367
  },
365
368
  GET_PRODUCT_PARAMETERS: {
366
369
  cnp: {
367
370
  url: `party/v1/products/{0}`,
368
- method: methods.GET,
371
+ method: exports.methods.GET,
369
372
  requestMapper: request => ({ mappedParams: request }),
370
- responseMapper: (response) => getProductParameters(response.data),
373
+ responseMapper: (response) => (0, quotation_1.getProductParameters)(response.data),
371
374
  }
372
375
  },
373
376
  GET_MONETARY_GOALS: {
374
377
  cnp: {
375
378
  url: 'party/v1/products/{0}/monetary-goals',
376
- method: methods.GET,
379
+ method: exports.methods.GET,
377
380
  source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-monetary-goals",
378
381
  requestMapper: request => ({ mappedParams: request }),
379
382
  responseMapper: (response) => response.data,
@@ -382,7 +385,7 @@ const productModule = {
382
385
  GET_SAVINGS_DISTRIBUTION: {
383
386
  cnp: {
384
387
  url: 'party/v1/products/{0}/savings-distribution',
385
- method: methods.GET,
388
+ method: exports.methods.GET,
386
389
  source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-savings-distribution-goalcode-goalcode-goalamount-goala",
387
390
  requestMapper: request => ({ mappedParams: request }),
388
391
  responseMapper: (response) => response.data,
@@ -391,7 +394,7 @@ const productModule = {
391
394
  GET_QUOTATION_BENEFITS: {
392
395
  cnp: {
393
396
  url: 'party/v1/quotation-benefits',
394
- method: methods.GET,
397
+ method: exports.methods.GET,
395
398
  source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-quotation-benefits",
396
399
  requestMapper: request => ({ mappedParams: request }),
397
400
  responseMapper: (response) => response.data,
@@ -405,148 +408,148 @@ const policyModule = {
405
408
  GET_ENDORSEMENTS: {
406
409
  default: {
407
410
  url: 'policy/v1/policies/{0}/endorsements',
408
- method: methods.GET,
411
+ method: exports.methods.GET,
409
412
  source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1endorsements/get',
410
413
  requestMapper: request => ({ mappedParams: request }),
411
414
  responseMapper: (response) => response.data,
412
415
  },
413
416
  cnp: {
414
417
  url: 'policy/v1/policy/{0}/{1}/endorsements',
415
- method: methods.GET,
418
+ method: exports.methods.GET,
416
419
  source: 'https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-policy-number-section-code-endorsements',
417
- requestMapper: request => ({ mappedParams: getEndorsements_Request(request) }),
418
- responseMapper: (response) => getEndorsements_CNP(response.data),
420
+ requestMapper: request => ({ mappedParams: (0, policy_1.getEndorsements_Request)(request) }),
421
+ responseMapper: (response) => (0, policy_1.getEndorsements_CNP)(response.data),
419
422
  },
420
423
  },
421
424
  GET_INSUREDS: {
422
425
  default: {
423
426
  url: '{0}/v1/policies/{1}/insureds',
424
- method: methods.GET,
427
+ method: exports.methods.GET,
425
428
  source: 'https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1insureds/get',
426
429
  requestMapper: (request) => ({ mappedParams: request }),
427
430
  responseMapper: (response) => response.data,
428
431
  },
429
432
  cnp: {
430
433
  url: 'policy/v1/policy/{0}/{1}/policy-insured',
431
- method: methods.GET,
434
+ method: exports.methods.GET,
432
435
  source: 'https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-policy-number-section-code-insureds',
433
- requestMapper: request => ({ mappedParams: getInsureds_CNP_Request(request) }),
434
- responseMapper: (response) => getInsureds_CNP(response.data),
436
+ requestMapper: request => ({ mappedParams: (0, policy_1.getInsureds_CNP_Request)(request) }),
437
+ responseMapper: (response) => (0, policy_1.getInsureds_CNP)(response.data),
435
438
  },
436
439
  },
437
440
  GET_POLICIES: {
438
441
  default: {
439
442
  url: 'policy/v1/policies',
440
- method: methods.GET,
443
+ method: exports.methods.GET,
441
444
  source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies/get',
442
445
  requestMapper: (request) => ({ mappedParams: request }),
443
446
  responseMapper: (response) => response.data,
444
447
  },
445
448
  cnp: {
446
449
  url: 'policy/v1/policy',
447
- method: methods.GET,
450
+ method: exports.methods.GET,
448
451
  source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-pagenumber-pagenumber-sort-sort-ordertype-ordertype-pagesize-p",
449
- requestMapper: request => ({ mappedParams: getPolicies_CNP_Request(request) }),
450
- responseMapper: (response) => getPolicies_CNP(response.data),
452
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicies_CNP_Request)(request) }),
453
+ responseMapper: (response) => (0, policy_1.getPolicies_CNP)(response.data),
451
454
  },
452
455
  },
453
456
  GET_POLICY_DETAIL: {
454
457
  default: {
455
458
  url: '/{0}/v1/policies/{1}/details',
456
- method: methods.GET,
459
+ method: exports.methods.GET,
457
460
  source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies/get',
458
461
  requestMapper: (request) => ({ mappedParams: request }),
459
462
  responseMapper: (response) => response.data,
460
463
  },
461
464
  cnp: {
462
465
  url: 'policy/v1/policy-individual/{0}/{1}/detail',
463
- method: methods.GET,
464
- requestMapper: request => ({ mappedParams: getPolicyDetail_Request(request) }),
465
- responseMapper: (response) => getPolicyDetail_CNP(response.data)
466
+ method: exports.methods.GET,
467
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyDetail_Request)(request) }),
468
+ responseMapper: (response) => (0, policy_1.getPolicyDetail_CNP)(response.data)
466
469
  },
467
470
  },
468
471
  GET_COLLECTIONS: {
469
472
  default: {
470
473
  url: '/policy/v1/policies/{0}/collections',
471
- method: methods.GET,
474
+ method: exports.methods.GET,
472
475
  requestMapper: (request) => ({ mappedParams: request }),
473
476
  responseMapper: (response) => response.data,
474
477
  },
475
478
  cnp: {
476
479
  url: 'policy/v1/policy-individual/{0}/{1}/detail',
477
- method: methods.GET,
478
- requestMapper: request => ({ mappedParams: getPolicyCollection_Request(request) }),
479
- responseMapper: (response) => getPolicyCollection(response.data)
480
+ method: exports.methods.GET,
481
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollection_Request)(request) }),
482
+ responseMapper: (response) => (0, policy_1.getPolicyCollection)(response.data)
480
483
  },
481
484
  },
482
485
  GET_POLICY_HOME_COLLECTIVE_DETAIL: {
483
486
  default: {
484
487
  url: 'policy-home/v1/policies/{0}/details',
485
- method: methods.GET,
488
+ method: exports.methods.GET,
486
489
  source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
487
490
  requestMapper: (request) => ({ mappedParams: request }),
488
491
  responseMapper: (response) => response.data,
489
492
  },
490
493
  cnp: {
491
494
  url: 'policy/v1/policy-individual/{0}/{1}/detail',
492
- method: methods.GET,
495
+ method: exports.methods.GET,
493
496
  source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
494
- requestMapper: request => ({ mappedParams: getPolicyCollectiveDetail_Request(request) }),
495
- responseMapper: (response) => getPolicyCollectiveDetail_CNP(response.data),
497
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollectiveDetail_Request)(request) }),
498
+ responseMapper: (response) => (0, policy_1.getPolicyCollectiveDetail_CNP)(response.data),
496
499
  },
497
500
  },
498
501
  GET_POLICY_HOME_INDIVIDUAL_DETAIL: {
499
502
  default: {
500
503
  url: 'policy-home/v1/policies/{0}/details',
501
- method: methods.GET,
504
+ method: exports.methods.GET,
502
505
  source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
503
506
  requestMapper: (request) => ({ mappedParams: request }),
504
507
  responseMapper: (response) => response.data,
505
508
  },
506
509
  cnp: {
507
510
  url: 'policy/v1/policy-individual/{0}/{1}/detail',
508
- method: methods.GET,
511
+ method: exports.methods.GET,
509
512
  source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
510
- requestMapper: request => ({ mappedParams: getPolicyIndividualDetail_Request(request) }),
511
- responseMapper: (response) => getPolicyDetail_CNP(response.data),
513
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyIndividualDetail_Request)(request) }),
514
+ responseMapper: (response) => (0, policy_1.getPolicyDetail_CNP)(response.data),
512
515
  },
513
516
  },
514
517
  GET_POLICY_LIFE_COLLECTIVE_DETAIL: {
515
518
  default: {
516
519
  url: 'policy-life/v1/policies/{0}/details',
517
- method: methods.GET,
520
+ method: exports.methods.GET,
518
521
  source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
519
522
  requestMapper: (request) => ({ mappedParams: request }),
520
523
  responseMapper: (response) => response.data,
521
524
  },
522
525
  cnp: {
523
526
  url: 'policy/v1/policy-individual/{0}/{1}/detail',
524
- method: methods.GET,
527
+ method: exports.methods.GET,
525
528
  source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
526
- requestMapper: request => ({ mappedParams: getPolicyCollectiveDetail_Request(request) }),
527
- responseMapper: (response) => getPolicyCollectiveDetail_CNP(response.data),
529
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollectiveDetail_Request)(request) }),
530
+ responseMapper: (response) => (0, policy_1.getPolicyCollectiveDetail_CNP)(response.data),
528
531
  },
529
532
  },
530
533
  GET_POLICY_LIFE_INDIVIDUAL_DETAIL: {
531
534
  default: {
532
535
  url: 'policy-life/v1/policies/{0}/details',
533
- method: methods.GET,
536
+ method: exports.methods.GET,
534
537
  source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
535
538
  requestMapper: (request) => ({ mappedParams: request }),
536
539
  responseMapper: (response) => response.data,
537
540
  },
538
541
  cnp: {
539
542
  url: 'policy/v1/policy-individual/{0}/{1}/detail',
540
- method: methods.GET,
543
+ method: exports.methods.GET,
541
544
  source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
542
- requestMapper: request => ({ mappedParams: getPolicyIndividualDetail_Request(request) }),
543
- responseMapper: (response) => getPolicyDetail_CNP(response.data),
545
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyIndividualDetail_Request)(request) }),
546
+ responseMapper: (response) => (0, policy_1.getPolicyDetail_CNP)(response.data),
544
547
  },
545
548
  },
546
549
  GET_POLICY_STATUSES: {
547
550
  default: {
548
551
  url: 'policy/v1/policy-statuses',
549
- method: methods.GET,
552
+ method: exports.methods.GET,
550
553
  requestMapper: (request) => ({ mappedParams: request }),
551
554
  responseMapper: (response) => response.data,
552
555
  },
@@ -554,7 +557,7 @@ const policyModule = {
554
557
  GET_BENEFICIRY_TYPES: {
555
558
  cnp: {
556
559
  url: 'policy/v1/beneficiary-types',
557
- method: methods.GET,
560
+ method: exports.methods.GET,
558
561
  requestMapper: request => ({ mappedParams: request }),
559
562
  responseMapper: (response) => response.data,
560
563
  },
@@ -562,17 +565,17 @@ const policyModule = {
562
565
  POST_INSURED_UPDATE: {
563
566
  default: {
564
567
  url: 'policy-life/v1/policies/{0}/insureds',
565
- method: methods.POST,
568
+ method: exports.methods.POST,
566
569
  requestMapper: null,
567
570
  source: 'https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1insureds/post',
568
571
  responseMapper: (response) => response,
569
572
  },
570
573
  cnp: {
571
574
  url: 'v1/policy-collective/{0}/{1}/insureds',
572
- method: methods.POST,
575
+ method: exports.methods.POST,
573
576
  requestMapper: null,
574
577
  source: 'https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=post-v1-policy-collective-policy-number-section-code-insureds',
575
- responseMapper: (response) => postInsureds_CNP(response),
578
+ responseMapper: (response) => (0, policy_1.postInsureds_CNP)(response),
576
579
  },
577
580
  },
578
581
  };
@@ -583,17 +586,17 @@ const claimModule = {
583
586
  GET_CLAIMS: {
584
587
  default: {
585
588
  url: 'claim/v1/claims',
586
- method: methods.GET,
589
+ method: exports.methods.GET,
587
590
  source: 'https://apidoc.sysone.com/claim/v1/open-api.html',
588
591
  requestMapper: (request) => ({ mappedParams: request }),
589
592
  responseMapper: (response) => response.data,
590
593
  },
591
594
  cnp: {
592
595
  url: 'claim/v1/claim',
593
- method: methods.GET,
596
+ method: exports.methods.GET,
594
597
  source: "https://developers-test.cnp.com.ar/api-details#api=claim-api&operation=get-v1-claim-pagenumber-pagenumber-pagesize-pagesize",
595
598
  requestMapper: null,
596
- responseMapper: (response) => getClaims_CNP(response.data),
599
+ responseMapper: (response) => (0, claim_1.getClaims_CNP)(response.data),
597
600
  },
598
601
  },
599
602
  };
@@ -604,52 +607,52 @@ const quotationModule = {
604
607
  GET_QUOTATION_BY_CODE: {
605
608
  default: {
606
609
  url: 'quotation/v1/quotations/{0}',
607
- method: methods.GET,
610
+ method: exports.methods.GET,
608
611
  source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations~1%7Bcode%7D/get',
609
612
  requestMapper: (request) => ({ mappedParams: request }),
610
613
  responseMapper: (response) => response.data
611
614
  },
612
615
  cnp: {
613
616
  url: 'quotation/v1/quotation/standard-plan/{0}',
614
- method: methods.GET,
617
+ method: exports.methods.GET,
615
618
  source: 'https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=get-v1-quotation-standard-plan-number',
616
- requestMapper: (request) => ({ mappedParams: getQuotationByCode_Request(request) }),
617
- responseMapper: (response) => getQuotationByCode(response.data)
619
+ requestMapper: (request) => ({ mappedParams: (0, quotation_1.getQuotationByCode_Request)(request) }),
620
+ responseMapper: (response) => (0, quotation_1.getQuotationByCode)(response.data)
618
621
  }
619
622
  },
620
623
  GET_QUOTATIONS: {
621
624
  default: {
622
625
  url: 'quotation/v1/quotations',
623
- method: methods.GET,
626
+ method: exports.methods.GET,
624
627
  source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/get',
625
628
  requestMapper: (request) => ({ mappedParams: request }),
626
629
  responseMapper: (response) => response.data
627
630
  },
628
631
  cnp: {
629
632
  url: 'quotation/v1/quotations',
630
- method: methods.GET,
631
- requestMapper: request => ({ mappedParams: getQuotations_Request(request) }),
632
- responseMapper: (response) => getQuotationsList(response.data)
633
+ method: exports.methods.GET,
634
+ requestMapper: request => ({ mappedParams: (0, quotation_1.getQuotations_Request)(request) }),
635
+ responseMapper: (response) => (0, quotation_1.getQuotationsList)(response.data)
633
636
  }
634
637
  },
635
638
  GET_QUOTATION_DETAILS: {
636
639
  default: {
637
640
  url: '{0}/v1/quotations/{1}',
638
- method: methods.GET,
641
+ method: exports.methods.GET,
639
642
  requestMapper: (request) => ({ mappedParams: request }),
640
643
  responseMapper: (response) => response.data
641
644
  },
642
645
  cnp: {
643
646
  url: 'quotation/v1/quotations/{0}',
644
- method: methods.GET,
647
+ method: exports.methods.GET,
645
648
  requestMapper: request => ({ mappedParams: request }),
646
- responseMapper: (response) => getQuotationDetail(response.data)
649
+ responseMapper: (response) => (0, quotation_1.getQuotationDetail)(response.data)
647
650
  }
648
651
  },
649
652
  GET_SWORN_STATEMENT: {
650
653
  cnp: {
651
654
  url: 'quotation/v1/quotations/{0}/questionnaires',
652
- method: methods.GET,
655
+ method: exports.methods.GET,
653
656
  requestMapper: request => ({ mappedParams: request }),
654
657
  responseMapper: (response) => response.data
655
658
  }
@@ -657,7 +660,7 @@ const quotationModule = {
657
660
  GET_QUOTATION_REPORT: {
658
661
  default: {
659
662
  url: '{0}/v1/quotations/{1}/report',
660
- method: methods.GET,
663
+ method: exports.methods.GET,
661
664
  requestMapper: (request) => ({
662
665
  mappedParams: request,
663
666
  responseType: "arraybuffer"
@@ -666,7 +669,7 @@ const quotationModule = {
666
669
  },
667
670
  cnp: {
668
671
  url: '/quotation/v1/quotations/{0}/report',
669
- method: methods.GET,
672
+ method: exports.methods.GET,
670
673
  requestMapper: (request) => ({
671
674
  mappedParams: request,
672
675
  headers: {
@@ -679,7 +682,7 @@ const quotationModule = {
679
682
  POST_CREATE_QUOTATION_STANDARD_PLAN: {
680
683
  default: {
681
684
  url: 'quotation/v1/quotations',
682
- method: methods.POST,
685
+ method: exports.methods.POST,
683
686
  source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/post',
684
687
  requestMapper: (params) => ({
685
688
  mappedBody: params
@@ -688,10 +691,10 @@ const quotationModule = {
688
691
  },
689
692
  cnp: {
690
693
  url: 'quotation/v1/quotation/standard-plan',
691
- method: methods.POST,
694
+ method: exports.methods.POST,
692
695
  source: 'https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=post-v1-quotation-standard-plan',
693
696
  requestMapper: (params) => ({
694
- mappedBody: quotationStandardPlanCreationMapped(params)
697
+ mappedBody: (0, quotation_1.quotationStandardPlanCreationMapped)(params)
695
698
  }),
696
699
  responseMapper: (response) => response,
697
700
  }
@@ -699,7 +702,7 @@ const quotationModule = {
699
702
  POST_CREATE_QUOTATION_VARIABLE_PLAN: {
700
703
  default: {
701
704
  url: 'quotation/v1/quotations',
702
- method: methods.POST,
705
+ method: exports.methods.POST,
703
706
  source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/post',
704
707
  requestMapper: (params) => ({
705
708
  mappedBody: params
@@ -708,10 +711,10 @@ const quotationModule = {
708
711
  },
709
712
  cnp: {
710
713
  url: 'quotation/v1/quotation/variable-plan',
711
- method: methods.POST,
714
+ method: exports.methods.POST,
712
715
  source: 'https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=post-v1-quotation-variable-plan',
713
716
  requestMapper: (params) => ({
714
- mappedBody: quotationVariablePlanCreationMapped(params)
717
+ mappedBody: (0, quotation_1.quotationVariablePlanCreationMapped)(params)
715
718
  }),
716
719
  responseMapper: (response) => response,
717
720
  }
@@ -719,7 +722,7 @@ const quotationModule = {
719
722
  POST_CALCULATE_LS: {
720
723
  cnp: {
721
724
  url: 'quotation/v1/quotations/calculate',
722
- method: methods.POST,
725
+ method: exports.methods.POST,
723
726
  requestMapper: (params) => ({ mappedBody: params }),
724
727
  responseMapper: (response) => response,
725
728
  }
@@ -727,7 +730,7 @@ const quotationModule = {
727
730
  POST_CREATE_QUOTATION_LS: {
728
731
  cnp: {
729
732
  url: 'quotation/v1/quotations',
730
- method: methods.POST,
733
+ method: exports.methods.POST,
731
734
  requestMapper: (params) => ({ mappedBody: params }),
732
735
  responseMapper: (response) => response,
733
736
  }
@@ -740,36 +743,36 @@ const requestModule = {
740
743
  GET_REQUESTS_LOOKUP: {
741
744
  default: {
742
745
  url: 'request/v1/requests',
743
- method: methods.GET,
746
+ method: exports.methods.GET,
744
747
  source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/get',
745
748
  requestMapper: (request) => ({ mappedParams: request }),
746
749
  responseMapper: (response) => response.data
747
750
  },
748
751
  cnp: {
749
752
  url: 'request/v1/request/savings',
750
- method: methods.GET,
751
- requestMapper: request => ({ mappedParams: getRequest_Params(request) }),
753
+ method: exports.methods.GET,
754
+ requestMapper: request => ({ mappedParams: (0, request_1.getRequest_Params)(request) }),
752
755
  responseMapper: (response) => response.data
753
756
  }
754
757
  },
755
758
  GET_REQUEST_DETAIL: {
756
759
  default: {
757
760
  url: '{0}/v1/requests/{1}',
758
- method: methods.GET,
761
+ method: exports.methods.GET,
759
762
  requestMapper: (request) => ({ mappedParams: request }),
760
763
  responseMapper: (response) => response.data
761
764
  },
762
765
  cnp: {
763
766
  url: '/request/v1/request/savings/{0}',
764
- method: methods.GET,
767
+ method: exports.methods.GET,
765
768
  requestMapper: request => ({ mappedParams: request }),
766
- responseMapper: (response) => getRequestDetail(response.data)
769
+ responseMapper: (response) => (0, request_1.getRequestDetail)(response.data)
767
770
  }
768
771
  },
769
772
  GET_REQUEST_REPORT: {
770
773
  default: {
771
774
  url: '{0}/v1/policies/{1}/certificate',
772
- method: methods.GET,
775
+ method: exports.methods.GET,
773
776
  requestMapper: (request) => ({
774
777
  mappedParams: request,
775
778
  responseType: "arraybuffer"
@@ -778,7 +781,7 @@ const requestModule = {
778
781
  },
779
782
  cnp: {
780
783
  url: '/request/v1/request/savings/{0}/report',
781
- method: methods.GET,
784
+ method: exports.methods.GET,
782
785
  requestMapper: (request) => ({
783
786
  mappedParams: request,
784
787
  headers: {
@@ -791,7 +794,7 @@ const requestModule = {
791
794
  POST_REQUEST_SIGNATURE: {
792
795
  cnp: {
793
796
  url: '/request/v1/request/savings/{0}/signature',
794
- method: methods.POST,
797
+ method: exports.methods.POST,
795
798
  requestMapper: (params) => ({ mappedBody: params }),
796
799
  responseMapper: (response) => response,
797
800
  }
@@ -799,7 +802,7 @@ const requestModule = {
799
802
  POST_SEND_REQUEST: {
800
803
  cnp: {
801
804
  url: '/request/v1/request/savings',
802
- method: methods.POST,
805
+ method: exports.methods.POST,
803
806
  requestMapper: (params) => ({ mappedBody: params }),
804
807
  responseMapper: (response) => response,
805
808
  }
@@ -808,7 +811,7 @@ const requestModule = {
808
811
  // ============================================================================
809
812
  // MAIN CONFIGURATION EXPORT
810
813
  // ============================================================================
811
- export const tenantsConfig = {
814
+ exports.tenantsConfig = {
812
815
  ...configurationModule,
813
816
  ...intermediaryModule,
814
817
  ...partyModule,