sysone-api-mapper 1.0.183 → 1.0.184

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,1096 +1,1105 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.tenantsConfig = exports.methods = void 0;
4
- // Import modules organized by functionality
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 = {
13
- GET: "GET",
14
- POST: "POST",
15
- PUT: "PUT",
16
- DELETE: "DELETE",
17
- };
18
- // ============================================================================
19
- // CONFIGURATION MODULE
20
- // ============================================================================
21
- const configurationModule = {
22
- GET_MODULES: {
23
- default: {
24
- url: 'ui-configuration/v1/platforms/link-one/modules',
25
- method: exports.methods.GET,
26
- requestMapper: (request) => ({ mappedParams: request }),
27
- responseMapper: (response) => response.data,
28
- },
29
- cnp: {
30
- url: 'ui-configuration/v1/modules',
31
- method: exports.methods.GET,
32
- requestMapper: request => ({ mappedParams: (0, general_1.getModules_Request)(request) }),
33
- responseMapper: (response) => response.data,
34
- },
35
- },
36
- GET_POWERBI_TOKEN: {
37
- cnp: {
38
- url: 'ui-configuration/v1/embedded-reports',
39
- method: exports.methods.GET,
40
- requestMapper: request => ({ mappedParams: request }),
41
- responseMapper: (response) => response.data,
42
- },
43
- }
44
- };
45
- // ============================================================================
46
- // BILLING MODULE
47
- // ============================================================================
48
- const billingModule = {
49
- GET_BILLINGS: {
50
- default: {
51
- url: 'billing/v1/billing',
52
- method: exports.methods.GET,
53
- requestMapper: (request) => ({ mappedParams: request }),
54
- responseMapper: (response) => response.data,
55
- },
56
- cnp: {
57
- url: 'policy/v1/policy/{0}/{1}/payments',
58
- method: exports.methods.GET,
59
- requestMapper: request => ({ mappedParams: (0, billing_1.getBillingsParams)(request) }),
60
- responseMapper: (response) => (0, billing_1.getBillingsResponse)(response.data),
61
- },
62
- },
63
- GET_POLICY_COLLECTIONS: {
64
- default: {
65
- url: '/collection/v1/collections',
66
- method: exports.methods.GET,
67
- requestMapper: (request) => ({ mappedParams: request }),
68
- responseMapper: (response) => response.data,
69
- },
70
- cnp: {
71
- url: 'policy/v1/policy/{0}/{1}/payments',
72
- method: exports.methods.GET,
73
- requestMapper: request => ({ mappedParams: (0, billing_1.getBillingsParams)(request) }),
74
- responseMapper: (response) => (0, billing_1.getCollecionsResponse)(response.data),
75
- },
76
- },
77
- GET_DEBTORS: {
78
- default: {
79
- url: 'billing/v1/billing',
80
- method: exports.methods.GET,
81
- requestMapper: (request) => ({ mappedParams: request }),
82
- responseMapper: (response) => response.data,
83
- },
84
- cnp: {
85
- url: 'policy/v1/policy/{0}/{1}/payments',
86
- method: exports.methods.GET,
87
- requestMapper: request => ({ mappedParams: (0, billing_1.getBillingsParams)(request) }),
88
- responseMapper: (response) => (0, billing_1.getDebtorsResponse)(response.data),
89
- },
90
- },
91
- GET_BILLING_TYPE: {
92
- default: {
93
- url: 'billing/v1/billing-types',
94
- method: exports.methods.GET,
95
- requestMapper: (request) => ({ mappedParams: request }),
96
- responseMapper: (response) => response.data,
97
- },
98
- cnp: {
99
- url: 'party/v1/genders',
100
- method: exports.methods.GET,
101
- requestMapper: request => ({ mappedParams: request }),
102
- responseMapper: (response) => (0, billing_1.getBillingTypeResponse)(response.data),
103
- },
104
- },
105
- BILLING_GET_BY_CODE: {
106
- default: {
107
- url: 'billing/v1/billing/{0}',
108
- method: exports.methods.GET,
109
- requestMapper: (request) => ({ mappedParams: request }),
110
- responseMapper: (response) => response.data,
111
- },
112
- },
113
- GET_BILLING_REPORT: {
114
- default: {
115
- url: 'billing/v1/billing/{0}/report',
116
- method: exports.methods.GET,
117
- requestMapper: (request) => ({
118
- mappedParams: request,
119
- responseType: "arraybuffer",
120
- }),
121
- responseMapper: (response) => response
122
- },
123
- },
124
- GET_BILLING_PAYMENT_STATUS: {
125
- default: {
126
- url: 'billing/v1/billing-payment-status',
127
- method: exports.methods.GET,
128
- requestMapper: (request) => ({ mappedParams: request }),
129
- responseMapper: (response) => response.data,
130
- },
131
- }
132
- };
133
- // ============================================================================
134
- // INTERMEDIARY MODULE
135
- // ============================================================================
136
- const intermediaryModule = {
137
- GET_INTERMEDIARY_STRUCTURE: {
138
- default: {
139
- url: 'intermediary/v1/intermediary/{0}/commercial-structures',
140
- method: exports.methods.GET,
141
- requestMapper: (request) => ({ mappedParams: request }),
142
- responseMapper: (response) => response.data,
143
- },
144
- },
145
- GET_INTERMEDIARY_BY_CODE: {
146
- default: {
147
- url: 'intermediary/v1/intermediary/{0}',
148
- method: exports.methods.GET,
149
- requestMapper: (request) => ({ mappedParams: request }),
150
- responseMapper: (response) => response.data,
151
- }
152
- },
153
- GET_COMMERCIAL_STRUCTURE: {
154
- default: {
155
- url: 'intermediary/v1/commercial-structures',
156
- method: exports.methods.GET,
157
- requestMapper: (request) => ({ mappedParams: request }),
158
- responseMapper: (response) => response.data,
159
- }
160
- }
161
- };
162
- // ============================================================================
163
- // PARTY MODULE
164
- // ============================================================================
165
- const partyModule = {
166
- GET_INDIVIDUAL_DETAILS: {
167
- default: {
168
- url: 'party/v1/individuals/{0}',
169
- method: exports.methods.GET,
170
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1individuals~1%7Bcode%7D/get',
171
- requestMapper: (request) => ({ mappedParams: request }),
172
- responseMapper: (response) => response.data,
173
- },
174
- },
175
- GET_ORGANISATION_DETAILS: {
176
- default: {
177
- url: 'party/v1/organisations/{0}',
178
- method: exports.methods.GET,
179
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1organisations~1%7Bcode%7D/get',
180
- requestMapper: (request) => ({ mappedParams: request }),
181
- responseMapper: (response) => response.data,
182
- },
183
- },
184
- GET_CURRENCIES: {
185
- default: {
186
- url: 'finance/v1/currencies',
187
- method: exports.methods.GET,
188
- requestMapper: (request) => ({ mappedParams: request }),
189
- responseMapper: (response) => response.data,
190
- },
191
- cnp: {
192
- url: 'party/v1/currencies',
193
- method: exports.methods.GET,
194
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-currencies",
195
- requestMapper: request => ({ mappedParams: request }),
196
- responseMapper: (response) => response.data,
197
- },
198
- },
199
- GET_GENDERS: {
200
- default: {
201
- url: 'party/v1/genders',
202
- method: exports.methods.GET,
203
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1genders/get',
204
- requestMapper: (request) => ({ mappedParams: request }),
205
- responseMapper: (response) => response.data,
206
- },
207
- cnp: {
208
- url: 'party/v1/genders',
209
- method: exports.methods.GET,
210
- requestMapper: request => ({ mappedParams: request }),
211
- responseMapper: (response) => (0, party_1.getGenders)(response.data),
212
- },
213
- },
214
- GET_IDENTIFICATION_TYPES: {
215
- default: {
216
- url: 'party/v1/identification-types?party-type-code={0}&country-code={1}',
217
- method: exports.methods.GET,
218
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1identification-types/get',
219
- requestMapper: (request) => ({ mappedParams: request }),
220
- responseMapper: (response) => response.data,
221
- },
222
- cnp: {
223
- url: 'party/v1/identification-types',
224
- method: exports.methods.GET,
225
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-identification-types",
226
- requestMapper: request => ({ mappedParams: request }),
227
- responseMapper: (response) => (0, party_1.getIdentificationTypes)(response.data),
228
- },
229
- },
230
- GET_PAYMENT_METHODS_BY_PARTY_CODE: {
231
- default: {
232
- url: 'party/v1/parties/{0}/payment-methods',
233
- method: exports.methods.GET,
234
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bcode%7D~1payment-methods/get',
235
- requestMapper: (request) => ({ mappedParams: request }),
236
- responseMapper: (response) => response.data,
237
- },
238
- },
239
- PUT_PAYMENT_METHODS_BY_PARTY_CODE: {
240
- default: {
241
- url: 'party/v1/parties/{0}/payment-methods',
242
- method: exports.methods.PUT,
243
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bcode%7D~1payment-methods/put',
244
- requestMapper: (request) => ({
245
- mappedParams: null,
246
- mappedBody: request,
247
- }),
248
- responseMapper: (response) => response.data,
249
- },
250
- },
251
- PUT_PERSON: {
252
- default: {
253
- url: 'party/v1/individuals/{0}',
254
- method: exports.methods.PUT,
255
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1individuals~1%7Bcode%7D/put',
256
- requestMapper: (request) => ({
257
- mappedParams: null,
258
- mappedBody: request,
259
- }),
260
- responseMapper: (response) => response.data,
261
- },
262
- },
263
- GET_COUNTRIES: {
264
- default: {
265
- url: 'location/v1/countries',
266
- method: exports.methods.GET,
267
- source: 'https://apidoc.sysone.com/location/v1/open-api.html#/paths/~1v1~1countries/get',
268
- requestMapper: (request) => ({ mappedParams: request }),
269
- responseMapper: (response) => response.data,
270
- },
271
- cnp: {
272
- url: 'party/v1/countries',
273
- method: exports.methods.GET,
274
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-countries",
275
- requestMapper: request => ({ mappedParams: request }),
276
- responseMapper: (response) => (0, party_1.getCountries)(response.data),
277
- },
278
- },
279
- GET_PROVINCES: {
280
- default: {
281
- url: 'location/v1/countries/{0}/provinces',
282
- method: exports.methods.GET,
283
- source: 'https://apidoc.sysone.com/location/v1/open-api.html#/paths/~1v1~1countries/get',
284
- requestMapper: (request) => ({ mappedParams: request }),
285
- responseMapper: (response) => response.data,
286
- },
287
- cnp: {
288
- url: 'party/v1/countries/{0}/provinces',
289
- method: exports.methods.GET,
290
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-countries",
291
- requestMapper: request => ({ mappedParams: request }),
292
- responseMapper: (response) => (0, party_1.getProvinces)(response.data),
293
- },
294
- },
295
- GET_CITIES: {
296
- default: {
297
- url: 'location/v1/provinces/{0}/cities',
298
- method: exports.methods.GET,
299
- source: 'https://apidoc.sysone.com/location/v1/open-api.html#/paths/~1v1~1provinces~1%7Bcode%7D~1cities/get',
300
- requestMapper: (request) => ({ mappedParams: request }),
301
- responseMapper: (response) => response.data,
302
- },
303
- },
304
- GET_POSTAL_CODES: {
305
- default: {
306
- url: 'location/v1/cities/{0}/postal-codes',
307
- method: exports.methods.GET,
308
- source: 'https://apidoc.sysone.com/location/v1/open-api.html#/paths/~1v1~1cities~1%7Bcode%7D~1postal-codes/get',
309
- requestMapper: (request) => ({ mappedParams: request }),
310
- responseMapper: (response) => response.data,
311
- },
312
- },
313
- GET_MARITAL_STATUS: {
314
- default: {
315
- url: 'party/v1/marital-statuses',
316
- method: exports.methods.GET,
317
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1marital-statuses/get',
318
- requestMapper: (request) => ({ mappedParams: request }),
319
- responseMapper: (response) => response.data,
320
- },
321
- cnp: {
322
- url: 'party/v1/marital-statuses',
323
- method: exports.methods.GET,
324
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-marital-statuses",
325
- requestMapper: request => ({ mappedParams: request }),
326
- responseMapper: (response) => (0, party_1.getMaritalStatuses)(response.data),
327
- },
328
- },
329
- GET_ACTIVITY: {
330
- default: {
331
- url: 'party/v1/sectors',
332
- method: exports.methods.GET,
333
- source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1sectors/get',
334
- requestMapper: (request) => ({ mappedParams: request }),
335
- responseMapper: (response) => response.data,
336
- },
337
- cnp: {
338
- url: 'party/v1/activities',
339
- method: exports.methods.GET,
340
- source: "https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=get-v1-activity",
341
- requestMapper: request => ({ mappedParams: request }),
342
- responseMapper: (response) => (0, quotation_1.getActivityList)(response.data),
343
- },
344
- },
345
- GET_BLOOD_PRESSURES: {
346
- cnp: {
347
- url: 'party/v1/blood-pressures',
348
- method: exports.methods.GET,
349
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-blood-pressures",
350
- requestMapper: request => ({ mappedParams: request }),
351
- responseMapper: (response) => response.data
352
- },
353
- },
354
- GET_PAYMENT_FRECUENCIES: {
355
- default: {
356
- url: 'quotation/v1/payment-frequencies',
357
- method: exports.methods.GET,
358
- requestMapper: (request) => ({ mappedParams: request }),
359
- responseMapper: (response) => response.data,
360
- },
361
- cnp: {
362
- url: 'party/v1/payment-frequencies',
363
- method: exports.methods.GET,
364
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-payment-frequencies",
365
- requestMapper: request => ({ mappedParams: request }),
366
- responseMapper: (response) => (0, quotation_1.getPaymentFrecuencies)(response.data),
367
- },
368
- },
369
- GET_PAYMENT_TYPES: {
370
- default: {
371
- url: 'collection/v1/payment-types',
372
- method: exports.methods.GET,
373
- requestMapper: (request) => ({ mappedParams: request }),
374
- responseMapper: (response) => response.data,
375
- },
376
- cnp: {
377
- url: 'party/v1/payment-types',
378
- method: exports.methods.GET,
379
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-payment-types",
380
- requestMapper: request => ({ mappedParams: request }),
381
- responseMapper: (response) => response.data,
382
- },
383
- },
384
- GET_BRANCHES: {
385
- cnp: {
386
- url: 'party/v1/branches',
387
- method: exports.methods.GET,
388
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-branches",
389
- requestMapper: request => ({ mappedParams: request }),
390
- responseMapper: (response) => response.data,
391
- },
392
- },
393
- GET_PARTIES: {
394
- default: {
395
- url: 'party/v1/{0}',
396
- method: exports.methods.GET,
397
- source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1individuals/get",
398
- requestMapper: (request) => ({ mappedParams: request }),
399
- responseMapper: (response) => response.data,
400
- },
401
- cnp: {
402
- url: "party/v1/parties",
403
- method: exports.methods.GET,
404
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-parties",
405
- requestMapper: request => ({ mappedParams: (0, party_1.partySearchParams)(request) }),
406
- responseMapper: (response) => (0, party_1.partySearch)(response.data),
407
- },
408
- },
409
- GET_SECTION: {
410
- default: {
411
- url: "product/v1/sections",
412
- method: exports.methods.GET,
413
- source: "",
414
- requestMapper: (request) => ({ mappedParams: request }),
415
- responseMapper: (response) => response.data,
416
- },
417
- cnp: {
418
- url: "party/v1/subsections",
419
- method: exports.methods.GET,
420
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-subsections",
421
- requestMapper: request => ({ mappedParams: request }),
422
- responseMapper: response => (0, party_1.getSections)(response.data),
423
- }
424
- },
425
- GET_SUBSECTION_BY_CODE: {
426
- default: {
427
- url: "product/v1/sections/{0}/subsections",
428
- method: exports.methods.GET,
429
- source: "",
430
- requestMapper: (request) => ({ mappedParams: request }),
431
- responseMapper: (response) => response.data,
432
- },
433
- cnp: {
434
- url: "party/v1/subsections",
435
- method: exports.methods.GET,
436
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-subsections",
437
- requestMapper: request => ({ mappedParams: request }),
438
- responseMapper: response => (0, party_1.getSubsections)(response.data),
439
- }
440
- },
441
- GET_PARTY_VALIDATION: {
442
- default: {
443
- url: 'party/v1/parties/{0}/{1}/validation',
444
- method: exports.methods.GET,
445
- source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1validation/get",
446
- requestMapper: (request) => ({ mappedParams: request }),
447
- responseMapper: (response) => response.data,
448
- },
449
- },
450
- POST_PARTY_VALIDATION: {
451
- default: {
452
- url: 'party/v1/parties/{0}/{1}/validation',
453
- method: exports.methods.POST,
454
- source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1validation/post",
455
- requestMapper: (request) => ({ mappedBody: request }),
456
- responseMapper: (response) => response.data,
457
- },
458
- },
459
- GET_PARTY_ONBOARDING: {
460
- default: {
461
- url: 'party/v1/parties/{0}/{1}/onboarding',
462
- method: exports.methods.GET,
463
- source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1onboarding/get",
464
- requestMapper: (request) => ({ mappedParams: request }),
465
- responseMapper: (response) => response.data,
466
- },
467
- },
468
- POST_PARTY_ONBOARDING: {
469
- default: {
470
- url: 'party/v1/parties/{0}/{1}/onboarding',
471
- method: exports.methods.POST,
472
- source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1onboarding/post",
473
- requestMapper: (request) => ({ mappedBody: request }),
474
- responseMapper: (response) => response.data,
475
- },
476
- },
477
- POST_AGE: {
478
- default: {
479
- url: '',
480
- method: exports.methods.POST,
481
- source: '',
482
- requestMapper: (params) => ({ mappedBody: params }),
483
- responseMapper: (response) => response,
484
- },
485
- cnp: {
486
- url: 'party/v1/age',
487
- method: exports.methods.POST,
488
- source: 'https://developers-test.cnp.com.ar/api-details#api=party-api&operation=post-v1-age',
489
- requestMapper: (params) => ({ mappedBody: params }),
490
- responseMapper: (response) => response,
491
- }
492
- },
493
- };
494
- // ============================================================================
495
- // PRODUCT MODULE
496
- // ============================================================================
497
- const productModule = {
498
- GET_COVERAGES: {
499
- default: {
500
- url: 'product/v1/products/{0}/coverages',
501
- method: exports.methods.GET,
502
- requestMapper: (request) => ({ mappedParams: request }),
503
- responseMapper: (response) => response.data,
504
- },
505
- cnp: {
506
- url: 'party/v1/products/{0}/coverages',
507
- method: exports.methods.GET,
508
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-coverages-currencycode-currencycode-smoker-smoker",
509
- requestMapper: request => ({ mappedParams: request }),
510
- responseMapper: (response) => (0, party_1.getCoverages)(response.data),
511
- },
512
- },
513
- GET_DISTRIBUTION_LIMITS: {
514
- cnp: {
515
- url: 'party/v1/products/{0}/savings-distribution',
516
- method: exports.methods.GET,
517
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-coverages-currencycode-currencycode-smoker-smoker",
518
- requestMapper: request => ({ mappedParams: request }),
519
- responseMapper: (response) => response.data,
520
- },
521
- },
522
- GET_PRODUCTS_BY_SUBSECTIONS: {
523
- default: {
524
- url: 'product/v1/products',
525
- method: exports.methods.GET,
526
- source: 'https://apidoc.sysone.com/product/v1/open-api.html#/paths/~1v1~1products/get',
527
- requestMapper: (request) => ({
528
- mappedParams: request,
529
- headers: {
530
- 'X-Channel': 'L-ONE',
531
- 'X-Subchannel': 'WEB'
532
- }
533
- }),
534
- responseMapper: (response) => response.data,
535
- },
536
- cnp: {
537
- url: 'party/v1/subsections/{0}/products',
538
- method: exports.methods.GET,
539
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-subsections-code-products",
540
- requestMapper: request => ({ mappedParams: (0, party_1.getProductsBySubsections_Request)(request) }),
541
- responseMapper: (response) => (0, quotation_1.getProductsBySubsections)(response.data),
542
- },
543
- },
544
- GET_PRODUCT_PARAMETERS: {
545
- cnp: {
546
- url: `party/v1/products/{0}`,
547
- method: exports.methods.GET,
548
- requestMapper: request => ({ mappedParams: request }),
549
- responseMapper: (response) => (0, quotation_1.getProductParameters)(response.data),
550
- }
551
- },
552
- GET_MONETARY_GOALS: {
553
- cnp: {
554
- url: 'party/v1/products/{0}/monetary-goals',
555
- method: exports.methods.GET,
556
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-monetary-goals",
557
- requestMapper: request => ({ mappedParams: request }),
558
- responseMapper: (response) => response.data,
559
- },
560
- },
561
- GET_SAVINGS_DISTRIBUTION: {
562
- cnp: {
563
- url: 'party/v1/products/{0}/savings-distribution',
564
- method: exports.methods.GET,
565
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-savings-distribution-goalcode-goalcode-goalamount-goala",
566
- requestMapper: request => ({ mappedParams: request }),
567
- responseMapper: (response) => response.data,
568
- },
569
- },
570
- GET_QUOTATION_BENEFITS: {
571
- cnp: {
572
- url: 'party/v1/quotation-benefits',
573
- method: exports.methods.GET,
574
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-quotation-benefits",
575
- requestMapper: request => ({ mappedParams: request }),
576
- responseMapper: (response) => response.data,
577
- },
578
- },
579
- GET_PRODUCT_SEGMENTS: {
580
- default: {
581
- url: "product/v1/products/{0}/segments",
582
- source: "https://apidoc.sysone.com/product/v1/open-api.html#/paths/~1v1~1products~1%7Bcode%7D~1segments/get",
583
- method: exports.methods.GET,
584
- requestMapper: request => ({ mappedParams: request }),
585
- responseMapper: response => response.data
586
- },
587
- cnp: {
588
- url: "party/v1/products/{0}/segments",
589
- source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-segments-provincecode-provincecode-birthdate-birthdate",
590
- method: exports.methods.GET,
591
- requestMapper: request => ({ mappedParams: request }),
592
- responseMapper: response => response.data
593
- }
594
- },
595
- };
596
- // ============================================================================
597
- // POLICY MODULE
598
- // ============================================================================
599
- const policyModule = {
600
- GET_ENDORSEMENTS: {
601
- default: {
602
- url: 'policy/v1/policies/{0}/endorsements',
603
- method: exports.methods.GET,
604
- source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1endorsements/get',
605
- requestMapper: request => ({ mappedParams: request }),
606
- responseMapper: (response) => response.data,
607
- },
608
- cnp: {
609
- url: 'policy/v1/policy/{0}/{1}/endorsements',
610
- method: exports.methods.GET,
611
- source: 'https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-policy-number-section-code-endorsements',
612
- requestMapper: request => ({ mappedParams: (0, policy_1.getEndorsements_Request)(request) }),
613
- responseMapper: (response) => (0, policy_1.getEndorsements_CNP)(response.data),
614
- },
615
- },
616
- GET_INSUREDS: {
617
- default: {
618
- url: '{0}/v1/policies/{1}/insureds',
619
- method: exports.methods.GET,
620
- source: 'https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1insureds/get',
621
- requestMapper: (request) => ({ mappedParams: request }),
622
- responseMapper: (response) => response.data,
623
- },
624
- cnp: {
625
- url: 'policy/v1/policy/{0}/{1}/policy-insured',
626
- method: exports.methods.GET,
627
- source: 'https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-policy-number-section-code-insureds',
628
- requestMapper: request => ({ mappedParams: (0, policy_1.getInsureds_CNP_Request)(request) }),
629
- responseMapper: (response) => (0, policy_1.getInsureds_CNP)(response.data),
630
- },
631
- },
632
- GET_INSUREDS_BY_FILTERS: {
633
- default: {
634
- url: 'policy-life/v1/insureds',
635
- method: exports.methods.GET,
636
- source: 'https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1insureds/get',
637
- requestMapper: (request) => ({ mappedParams: request }),
638
- responseMapper: (response) => response.data,
639
- },
640
- },
641
- GET_POLICIES: {
642
- default: {
643
- url: 'policy/v1/policies',
644
- method: exports.methods.GET,
645
- source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies/get',
646
- requestMapper: (request) => ({ mappedParams: request }),
647
- responseMapper: (response) => response.data,
648
- },
649
- cnp: {
650
- url: 'policy/v1/policy',
651
- method: exports.methods.GET,
652
- source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-pagenumber-pagenumber-sort-sort-ordertype-ordertype-pagesize-p",
653
- requestMapper: request => ({ mappedParams: (0, policy_1.getPolicies_CNP_Request)(request) }),
654
- responseMapper: (response) => (0, policy_1.getPolicies_CNP)(response.data),
655
- },
656
- },
657
- GET_POLICY_DETAIL: {
658
- default: {
659
- url: '/{0}/v1/policies/{1}/details',
660
- method: exports.methods.GET,
661
- source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies/get',
662
- requestMapper: (request) => ({ mappedParams: request }),
663
- responseMapper: (response) => response.data,
664
- },
665
- cnp: {
666
- url: 'policy/v1/policy-individual/{0}/{1}/detail',
667
- method: exports.methods.GET,
668
- requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyDetail_Request)(request) }),
669
- responseMapper: (response) => (0, policy_1.getPolicyDetail_CNP)(response.data)
670
- },
671
- },
672
- GET_COLLECTIONS: {
673
- default: {
674
- url: '/policy/v1/policies/{0}/collections',
675
- method: exports.methods.GET,
676
- requestMapper: (request) => ({ mappedParams: request }),
677
- responseMapper: (response) => response.data,
678
- },
679
- cnp: {
680
- url: 'policy/v1/policy-individual/{0}/{1}/detail',
681
- method: exports.methods.GET,
682
- requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollection_Request)(request) }),
683
- responseMapper: (response) => (0, policy_1.getPolicyCollection)(response.data)
684
- },
685
- },
686
- GET_COLLECTIONS: {
687
- default: {
688
- url: '/policy/v1/policies/{0}/collections',
689
- method: exports.methods.GET,
690
- requestMapper: (request) => ({ mappedParams: request }),
691
- responseMapper: (response) => response.data,
692
- },
693
- cnp: {
694
- url: 'policy/v1/policy-individual/{0}/{1}/detail',
695
- method: exports.methods.GET,
696
- requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollection_Request)(request) }),
697
- responseMapper: (response) => (0, policy_1.getPolicyCollection)(response.data)
698
- },
699
- },
700
- SEARCH_COLLECTIONS: {
701
- default: {
702
- url: 'collection/v1/collections',
703
- method: exports.methods.GET,
704
- requestMapper: (request) => ({ mappedParams: request }),
705
- responseMapper: (response) => response.data,
706
- },
707
- },
708
- GET_COLLECTION_STATUSES: {
709
- default: {
710
- url: "collection/v1/collection-statuses",
711
- method: exports.methods.GET,
712
- requestMapper: (request) => ({ mappedParams: request }),
713
- responseMapper: (response) => response.data,
714
- },
715
- },
716
- GET_POLICY_HOME_COLLECTIVE_DETAIL: {
717
- default: {
718
- url: 'policy-home/v1/policies/{0}/details',
719
- method: exports.methods.GET,
720
- source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
721
- requestMapper: (request) => ({ mappedParams: request }),
722
- responseMapper: (response) => response.data,
723
- },
724
- cnp: {
725
- url: 'policy/v1/policy-individual/{0}/{1}/detail',
726
- method: exports.methods.GET,
727
- source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
728
- requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollectiveDetail_Request)(request) }),
729
- responseMapper: (response) => (0, policy_1.getPolicyCollectiveDetail_CNP)(response.data),
730
- },
731
- },
732
- GET_POLICY_HOME_INDIVIDUAL_DETAIL: {
733
- default: {
734
- url: 'policy-home/v1/policies/{0}/details',
735
- method: exports.methods.GET,
736
- source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
737
- requestMapper: (request) => ({ mappedParams: request }),
738
- responseMapper: (response) => response.data,
739
- },
740
- cnp: {
741
- url: 'policy/v1/policy-individual/{0}/{1}/detail',
742
- method: exports.methods.GET,
743
- source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
744
- requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyIndividualDetail_Request)(request) }),
745
- responseMapper: (response) => (0, policy_1.getPolicyDetail_CNP)(response.data),
746
- },
747
- },
748
- GET_POLICY_LIFE_COLLECTIVE_DETAIL: {
749
- default: {
750
- url: 'policy-life/v1/policies/{0}/details',
751
- method: exports.methods.GET,
752
- source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
753
- requestMapper: (request) => ({ mappedParams: request }),
754
- responseMapper: (response) => response.data,
755
- },
756
- cnp: {
757
- url: 'policy/v1/policy-individual/{0}/{1}/detail',
758
- method: exports.methods.GET,
759
- source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
760
- requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollectiveDetail_Request)(request) }),
761
- responseMapper: (response) => (0, policy_1.getPolicyCollectiveDetail_CNP)(response.data),
762
- },
763
- },
764
- GET_POLICY_LIFE_INDIVIDUAL_DETAIL: {
765
- default: {
766
- url: 'policy-life/v1/policies/{0}/details',
767
- method: exports.methods.GET,
768
- source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
769
- requestMapper: (request) => ({ mappedParams: request }),
770
- responseMapper: (response) => response.data,
771
- },
772
- cnp: {
773
- url: 'policy/v1/policy-individual/{0}/{1}/detail',
774
- method: exports.methods.GET,
775
- source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
776
- requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyIndividualDetail_Request)(request) }),
777
- responseMapper: (response) => (0, policy_1.getPolicyDetail_CNP)(response.data),
778
- },
779
- },
780
- GET_POLICY_STATUSES: {
781
- default: {
782
- url: 'policy/v1/policy-statuses',
783
- method: exports.methods.GET,
784
- requestMapper: (request) => ({ mappedParams: request }),
785
- responseMapper: (response) => response.data,
786
- },
787
- },
788
- GET_BENEFICIRY_TYPES: {
789
- cnp: {
790
- url: 'policy/v1/beneficiary-types',
791
- method: exports.methods.GET,
792
- requestMapper: request => ({ mappedParams: request }),
793
- responseMapper: (response) => response.data,
794
- },
795
- },
796
- POST_INSURED_UPDATE: {
797
- default: {
798
- url: 'policy-life/v1/policies/{0}/insureds',
799
- method: exports.methods.POST,
800
- requestMapper: null,
801
- source: 'https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1insureds/post',
802
- responseMapper: (response) => response,
803
- },
804
- cnp: {
805
- url: 'v1/policy-collective/{0}/{1}/insureds',
806
- method: exports.methods.POST,
807
- requestMapper: null,
808
- source: 'https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=post-v1-policy-collective-policy-number-section-code-insureds',
809
- responseMapper: (response) => (0, policy_1.postInsureds_CNP)(response),
810
- },
811
- },
812
- GET_POLICY_CERTIFICATE: {
813
- default: {
814
- url: 'policy-{0}/v1/policies/{1}/certificate',
815
- method: exports.methods.GET,
816
- requestMapper: (request) => ({
817
- mappedParams: request,
818
- responseType: "arraybuffer",
819
- }),
820
- responseMapper: (response) => response.data,
821
- },
822
- }
823
- };
824
- // ============================================================================
825
- // CLAIM MODULE
826
- // ============================================================================
827
- const claimModule = {
828
- GET_CLAIMS: {
829
- default: {
830
- url: 'claim/v1/claims',
831
- method: exports.methods.GET,
832
- source: 'https://apidoc.sysone.com/claim/v1/open-api.html',
833
- requestMapper: (request) => ({ mappedParams: request }),
834
- responseMapper: (response) => response.data,
835
- },
836
- cnp: {
837
- url: 'claim/v1/claim',
838
- method: exports.methods.GET,
839
- source: "https://developers-test.cnp.com.ar/api-details#api=claim-api&operation=get-v1-claim-pagenumber-pagenumber-pagesize-pagesize",
840
- requestMapper: null,
841
- responseMapper: (response) => (0, claim_1.getClaims_CNP)(response.data),
842
- },
843
- },
844
- };
845
- // ============================================================================
846
- // QUOTATION MODULE
847
- // ============================================================================
848
- const quotationModule = {
849
- GET_QUOTATION_BY_CODE: {
850
- default: {
851
- url: 'quotation/v1/quotations/{0}',
852
- method: exports.methods.GET,
853
- source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations~1%7Bcode%7D/get',
854
- requestMapper: (request) => ({ mappedParams: request }),
855
- responseMapper: (response) => response.data
856
- },
857
- cnp: {
858
- url: 'quotation/v1/quotation/standard-plan/{0}',
859
- method: exports.methods.GET,
860
- source: 'https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=get-v1-quotation-standard-plan-number',
861
- requestMapper: (request) => ({ mappedParams: (0, quotation_1.getQuotationByCode_Request)(request) }),
862
- responseMapper: (response) => (0, quotation_1.getQuotationByCode)(response.data)
863
- }
864
- },
865
- GET_QUOTATIONS: {
866
- default: {
867
- url: 'quotation/v1/quotations',
868
- method: exports.methods.GET,
869
- source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/get',
870
- requestMapper: (request) => ({ mappedParams: request }),
871
- responseMapper: (response) => response.data
872
- },
873
- cnp: {
874
- url: 'quotation/v1/quotations',
875
- method: exports.methods.GET,
876
- requestMapper: request => ({ mappedParams: (0, quotation_1.getQuotations_Request)(request) }),
877
- responseMapper: (response) => (0, quotation_1.getQuotationsList)(response.data)
878
- }
879
- },
880
- GET_QUOTATION_DETAILS: {
881
- default: {
882
- url: '{0}/v1/quotations/{1}',
883
- method: exports.methods.GET,
884
- requestMapper: (request) => ({ mappedParams: request }),
885
- responseMapper: (response) => response.data
886
- },
887
- cnp: {
888
- url: 'quotation/v1/quotations/{0}',
889
- method: exports.methods.GET,
890
- requestMapper: request => ({ mappedParams: request }),
891
- responseMapper: (response) => (0, quotation_1.getQuotationDetail)(response.data)
892
- }
893
- },
894
- GET_SWORN_STATEMENT: {
895
- cnp: {
896
- url: 'quotation/v1/quotations/{0}/questionnaires',
897
- method: exports.methods.GET,
898
- requestMapper: request => ({ mappedParams: request }),
899
- responseMapper: (response) => response.data
900
- }
901
- },
902
- GET_QUOTATION_REPORT: {
903
- default: {
904
- url: '{0}/v1/quotations/{1}/report',
905
- method: exports.methods.GET,
906
- requestMapper: (request) => ({
907
- mappedParams: request,
908
- responseType: "arraybuffer"
909
- }),
910
- responseMapper: (response) => response
911
- },
912
- cnp: {
913
- url: '/quotation/v1/quotations/{0}/report',
914
- method: exports.methods.GET,
915
- requestMapper: (request) => ({
916
- mappedParams: request,
917
- headers: {
918
- 'Accept': 'application/json',
919
- }
920
- }),
921
- responseMapper: (response) => response
922
- }
923
- },
924
- POST_CREATE_QUOTATION_STANDARD_PLAN: {
925
- default: {
926
- url: 'quotation/v1/quotations',
927
- method: exports.methods.POST,
928
- source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/post',
929
- requestMapper: (params) => ({
930
- mappedBody: params
931
- }),
932
- responseMapper: (response) => response,
933
- },
934
- cnp: {
935
- url: 'quotation/v1/quotation/standard-plan',
936
- method: exports.methods.POST,
937
- source: 'https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=post-v1-quotation-standard-plan',
938
- requestMapper: (params) => ({
939
- mappedBody: (0, quotation_1.quotationStandardPlanCreationMapped)(params)
940
- }),
941
- responseMapper: (response) => response,
942
- }
943
- },
944
- POST_CREATE_QUOTATION_VARIABLE_PLAN: {
945
- default: {
946
- url: 'quotation/v1/quotations',
947
- method: exports.methods.POST,
948
- source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/post',
949
- requestMapper: (params) => ({
950
- mappedBody: params
951
- }),
952
- responseMapper: (response) => response,
953
- },
954
- cnp: {
955
- url: 'quotation/v1/quotation/variable-plan',
956
- method: exports.methods.POST,
957
- source: 'https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=post-v1-quotation-variable-plan',
958
- requestMapper: (params) => ({
959
- mappedBody: (0, quotation_1.quotationVariablePlanCreationMapped)(params)
960
- }),
961
- responseMapper: (response) => response,
962
- }
963
- },
964
- POST_CALCULATE_LS: {
965
- cnp: {
966
- url: 'quotation/v1/quotations/calculate',
967
- method: exports.methods.POST,
968
- requestMapper: (params) => ({ mappedBody: params }),
969
- responseMapper: (response) => response,
970
- }
971
- },
972
- POST_CREATE_QUOTATION_LS: {
973
- cnp: {
974
- url: 'quotation/v1/quotations',
975
- method: exports.methods.POST,
976
- requestMapper: (params) => ({ mappedBody: params }),
977
- responseMapper: (response) => response,
978
- }
979
- },
980
- };
981
- // ============================================================================
982
- // REQUEST MODULE
983
- // ============================================================================
984
- const requestModule = {
985
- GET_REQUESTS_LOOKUP: {
986
- default: {
987
- url: 'request/v1/requests',
988
- method: exports.methods.GET,
989
- source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/get',
990
- requestMapper: (request) => ({ mappedParams: request }),
991
- responseMapper: (response) => response.data
992
- },
993
- cnp: {
994
- url: 'request/v1/request/savings',
995
- method: exports.methods.GET,
996
- requestMapper: request => ({ mappedParams: (0, request_1.getRequest_Params)(request) }),
997
- responseMapper: (response) => response.data
998
- }
999
- },
1000
- GET_REQUEST_DETAIL: {
1001
- default: {
1002
- url: '{0}/v1/requests/{1}',
1003
- method: exports.methods.GET,
1004
- requestMapper: (request) => ({ mappedParams: request }),
1005
- responseMapper: (response) => response.data
1006
- },
1007
- cnp: {
1008
- url: '/request/v1/request/savings/{0}',
1009
- method: exports.methods.GET,
1010
- requestMapper: request => ({ mappedParams: request }),
1011
- responseMapper: (response) => (0, request_1.getRequestDetail)(response.data)
1012
- }
1013
- },
1014
- GET_REQUEST_REPORT: {
1015
- default: {
1016
- url: '{0}/v1/policies/{1}/certificate',
1017
- method: exports.methods.GET,
1018
- requestMapper: (request) => ({
1019
- mappedParams: request,
1020
- responseType: "arraybuffer"
1021
- }),
1022
- responseMapper: (response) => response
1023
- },
1024
- cnp: {
1025
- url: '/request/v1/request/savings/{0}/report',
1026
- method: exports.methods.GET,
1027
- requestMapper: (request) => ({
1028
- mappedParams: request,
1029
- headers: {
1030
- 'Accept': 'application/json',
1031
- }
1032
- }),
1033
- responseMapper: (response) => response
1034
- },
1035
- },
1036
- POST_REQUEST_SIGNATURE: {
1037
- cnp: {
1038
- url: '/request/v1/request/savings/{0}/signature',
1039
- method: exports.methods.POST,
1040
- requestMapper: (params) => ({ mappedBody: params }),
1041
- responseMapper: (response) => response,
1042
- }
1043
- },
1044
- POST_SEND_REQUEST_LIFE: {
1045
- cnp: {
1046
- url: '/request/v1/request/savings',
1047
- method: exports.methods.POST,
1048
- requestMapper: (params) => ({ mappedBody: params }),
1049
- responseMapper: (response) => response,
1050
- }
1051
- },
1052
- POST_SEND_REQUEST_HEALTH: {
1053
- cnp: {
1054
- url: '/request/v1/request/health',
1055
- method: exports.methods.POST,
1056
- requestMapper: (params) => ({ mappedBody: params }),
1057
- responseMapper: (response) => response,
1058
- }
1059
- }
1060
- };
1061
- // ============================================================================
1062
- // finance module
1063
- // ============================================================================
1064
- const financeModule = {
1065
- GET_BANKS: {
1066
- default: {
1067
- url: 'finance/v1/banks',
1068
- method: exports.methods.GET,
1069
- requestMapper: (request) => ({ mappedParams: request }),
1070
- responseMapper: (response) => response.data,
1071
- },
1072
- },
1073
- GET_CREDIT_CARD_TYPES: {
1074
- default: {
1075
- url: "finance/v1/credit-card-types",
1076
- method: exports.methods.GET,
1077
- requestMapper: (request) => ({ mappedParams: request }),
1078
- responseMapper: (response) => response.data,
1079
- },
1080
- },
1081
- };
1082
- // ============================================================================
1083
- // MAIN CONFIGURATION EXPORT
1084
- // ============================================================================
1085
- exports.tenantsConfig = {
1086
- ...configurationModule,
1087
- ...intermediaryModule,
1088
- ...partyModule,
1089
- ...productModule,
1090
- ...policyModule,
1091
- ...claimModule,
1092
- ...quotationModule,
1093
- ...requestModule,
1094
- ...billingModule,
1095
- ...financeModule
1096
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tenantsConfig = exports.methods = void 0;
4
+ // Import modules organized by functionality
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 = {
13
+ GET: "GET",
14
+ POST: "POST",
15
+ PUT: "PUT",
16
+ DELETE: "DELETE",
17
+ };
18
+ // ============================================================================
19
+ // CONFIGURATION MODULE
20
+ // ============================================================================
21
+ const configurationModule = {
22
+ GET_MODULES: {
23
+ default: {
24
+ url: 'ui-configuration/v1/platforms/link-one/modules',
25
+ method: exports.methods.GET,
26
+ requestMapper: (request) => ({ mappedParams: request }),
27
+ responseMapper: (response) => response.data,
28
+ },
29
+ cnp: {
30
+ url: 'ui-configuration/v1/modules',
31
+ method: exports.methods.GET,
32
+ requestMapper: request => ({ mappedParams: (0, general_1.getModules_Request)(request) }),
33
+ responseMapper: (response) => response.data,
34
+ },
35
+ },
36
+ GET_POWERBI_TOKEN: {
37
+ cnp: {
38
+ url: 'ui-configuration/v1/embedded-reports',
39
+ method: exports.methods.GET,
40
+ requestMapper: request => ({ mappedParams: request }),
41
+ responseMapper: (response) => response.data,
42
+ },
43
+ }
44
+ };
45
+ // ============================================================================
46
+ // BILLING MODULE
47
+ // ============================================================================
48
+ const billingModule = {
49
+ GET_BILLINGS: {
50
+ default: {
51
+ url: 'billing/v1/billing',
52
+ method: exports.methods.GET,
53
+ requestMapper: (request) => ({ mappedParams: request }),
54
+ responseMapper: (response) => response.data,
55
+ },
56
+ cnp: {
57
+ url: 'policy/v1/policy/{0}/{1}/payments',
58
+ method: exports.methods.GET,
59
+ requestMapper: request => ({ mappedParams: (0, billing_1.getBillingsParams)(request) }),
60
+ responseMapper: (response) => (0, billing_1.getBillingsResponse)(response.data),
61
+ },
62
+ },
63
+ GET_POLICY_COLLECTIONS: {
64
+ default: {
65
+ url: '/collection/v1/collections',
66
+ method: exports.methods.GET,
67
+ requestMapper: (request) => ({ mappedParams: request }),
68
+ responseMapper: (response) => response.data,
69
+ },
70
+ cnp: {
71
+ url: 'policy/v1/policy/{0}/{1}/payments',
72
+ method: exports.methods.GET,
73
+ requestMapper: request => ({ mappedParams: (0, billing_1.getBillingsParams)(request) }),
74
+ responseMapper: (response) => (0, billing_1.getCollecionsResponse)(response.data),
75
+ },
76
+ },
77
+ GET_DEBTORS: {
78
+ default: {
79
+ url: 'billing/v1/billing',
80
+ method: exports.methods.GET,
81
+ requestMapper: (request) => ({ mappedParams: request }),
82
+ responseMapper: (response) => response.data,
83
+ },
84
+ cnp: {
85
+ url: 'policy/v1/policy/{0}/{1}/payments',
86
+ method: exports.methods.GET,
87
+ requestMapper: request => ({ mappedParams: (0, billing_1.getBillingsParams)(request) }),
88
+ responseMapper: (response) => (0, billing_1.getDebtorsResponse)(response.data),
89
+ },
90
+ },
91
+ GET_BILLING_TYPE: {
92
+ default: {
93
+ url: 'billing/v1/billing-types',
94
+ method: exports.methods.GET,
95
+ requestMapper: (request) => ({ mappedParams: request }),
96
+ responseMapper: (response) => response.data,
97
+ },
98
+ cnp: {
99
+ url: 'party/v1/genders',
100
+ method: exports.methods.GET,
101
+ requestMapper: request => ({ mappedParams: request }),
102
+ responseMapper: (response) => (0, billing_1.getBillingTypeResponse)(response.data),
103
+ },
104
+ },
105
+ BILLING_GET_BY_CODE: {
106
+ default: {
107
+ url: 'billing/v1/billing/{0}',
108
+ method: exports.methods.GET,
109
+ requestMapper: (request) => ({ mappedParams: request }),
110
+ responseMapper: (response) => response.data,
111
+ },
112
+ },
113
+ GET_BILLING_REPORT: {
114
+ default: {
115
+ url: 'billing/v1/billing/{0}/report',
116
+ method: exports.methods.GET,
117
+ requestMapper: (request) => ({
118
+ mappedParams: request,
119
+ responseType: "arraybuffer",
120
+ }),
121
+ responseMapper: (response) => response
122
+ },
123
+ },
124
+ GET_BILLING_PAYMENT_STATUS: {
125
+ default: {
126
+ url: 'billing/v1/billing-payment-status',
127
+ method: exports.methods.GET,
128
+ requestMapper: (request) => ({ mappedParams: request }),
129
+ responseMapper: (response) => response.data,
130
+ },
131
+ }
132
+ };
133
+ // ============================================================================
134
+ // INTERMEDIARY MODULE
135
+ // ============================================================================
136
+ const intermediaryModule = {
137
+ GET_INTERMEDIARY_STRUCTURE: {
138
+ default: {
139
+ url: 'intermediary/v1/intermediary/{0}/commercial-structures',
140
+ method: exports.methods.GET,
141
+ requestMapper: (request) => ({ mappedParams: request }),
142
+ responseMapper: (response) => response.data,
143
+ },
144
+ },
145
+ GET_INTERMEDIARY_BY_CODE: {
146
+ default: {
147
+ url: 'intermediary/v1/intermediary/{0}',
148
+ method: exports.methods.GET,
149
+ requestMapper: (request) => ({ mappedParams: request }),
150
+ responseMapper: (response) => response.data,
151
+ }
152
+ },
153
+ GET_COMMERCIAL_STRUCTURE: {
154
+ default: {
155
+ url: 'intermediary/v1/commercial-structures',
156
+ method: exports.methods.GET,
157
+ requestMapper: (request) => ({ mappedParams: request }),
158
+ responseMapper: (response) => response.data,
159
+ }
160
+ }
161
+ };
162
+ // ============================================================================
163
+ // PARTY MODULE
164
+ // ============================================================================
165
+ const partyModule = {
166
+ GET_INDIVIDUAL_DETAILS: {
167
+ default: {
168
+ url: 'party/v1/individuals/{0}',
169
+ method: exports.methods.GET,
170
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1individuals~1%7Bcode%7D/get',
171
+ requestMapper: (request) => ({ mappedParams: request }),
172
+ responseMapper: (response) => response.data,
173
+ },
174
+ },
175
+ GET_ORGANISATION_DETAILS: {
176
+ default: {
177
+ url: 'party/v1/organisations/{0}',
178
+ method: exports.methods.GET,
179
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1organisations~1%7Bcode%7D/get',
180
+ requestMapper: (request) => ({ mappedParams: request }),
181
+ responseMapper: (response) => response.data,
182
+ },
183
+ },
184
+ GET_CURRENCIES: {
185
+ default: {
186
+ url: 'finance/v1/currencies',
187
+ method: exports.methods.GET,
188
+ requestMapper: (request) => ({ mappedParams: request }),
189
+ responseMapper: (response) => response.data,
190
+ },
191
+ cnp: {
192
+ url: 'party/v1/currencies',
193
+ method: exports.methods.GET,
194
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-currencies",
195
+ requestMapper: request => ({ mappedParams: request }),
196
+ responseMapper: (response) => response.data,
197
+ },
198
+ },
199
+ GET_GENDERS: {
200
+ default: {
201
+ url: 'party/v1/genders',
202
+ method: exports.methods.GET,
203
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1genders/get',
204
+ requestMapper: (request) => ({ mappedParams: request }),
205
+ responseMapper: (response) => response.data,
206
+ },
207
+ cnp: {
208
+ url: 'party/v1/genders',
209
+ method: exports.methods.GET,
210
+ requestMapper: request => ({ mappedParams: request }),
211
+ responseMapper: (response) => (0, party_1.getGenders)(response.data),
212
+ },
213
+ },
214
+ GET_PARTY_STATUS: {
215
+ default: {
216
+ url: 'party/v1/parties/{0}/status',
217
+ method: exports.methods.GET,
218
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bcode%7D~1status/get',
219
+ requestMapper: (request) => ({ mappedParams: request }),
220
+ responseMapper: (response) => response.data,
221
+ },
222
+ },
223
+ GET_IDENTIFICATION_TYPES: {
224
+ default: {
225
+ url: 'party/v1/identification-types?party-type-code={0}&country-code={1}',
226
+ method: exports.methods.GET,
227
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1identification-types/get',
228
+ requestMapper: (request) => ({ mappedParams: request }),
229
+ responseMapper: (response) => response.data,
230
+ },
231
+ cnp: {
232
+ url: 'party/v1/identification-types',
233
+ method: exports.methods.GET,
234
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-identification-types",
235
+ requestMapper: request => ({ mappedParams: request }),
236
+ responseMapper: (response) => (0, party_1.getIdentificationTypes)(response.data),
237
+ },
238
+ },
239
+ GET_PAYMENT_METHODS_BY_PARTY_CODE: {
240
+ default: {
241
+ url: 'party/v1/parties/{0}/payment-methods',
242
+ method: exports.methods.GET,
243
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bcode%7D~1payment-methods/get',
244
+ requestMapper: (request) => ({ mappedParams: request }),
245
+ responseMapper: (response) => response.data,
246
+ },
247
+ },
248
+ PUT_PAYMENT_METHODS_BY_PARTY_CODE: {
249
+ default: {
250
+ url: 'party/v1/parties/{0}/payment-methods',
251
+ method: exports.methods.PUT,
252
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bcode%7D~1payment-methods/put',
253
+ requestMapper: (request) => ({
254
+ mappedParams: null,
255
+ mappedBody: request,
256
+ }),
257
+ responseMapper: (response) => response.data,
258
+ },
259
+ },
260
+ PUT_PERSON: {
261
+ default: {
262
+ url: 'party/v1/individuals/{0}',
263
+ method: exports.methods.PUT,
264
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1individuals~1%7Bcode%7D/put',
265
+ requestMapper: (request) => ({
266
+ mappedParams: null,
267
+ mappedBody: request,
268
+ }),
269
+ responseMapper: (response) => response.data,
270
+ },
271
+ },
272
+ GET_COUNTRIES: {
273
+ default: {
274
+ url: 'location/v1/countries',
275
+ method: exports.methods.GET,
276
+ source: 'https://apidoc.sysone.com/location/v1/open-api.html#/paths/~1v1~1countries/get',
277
+ requestMapper: (request) => ({ mappedParams: request }),
278
+ responseMapper: (response) => response.data,
279
+ },
280
+ cnp: {
281
+ url: 'party/v1/countries',
282
+ method: exports.methods.GET,
283
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-countries",
284
+ requestMapper: request => ({ mappedParams: request }),
285
+ responseMapper: (response) => (0, party_1.getCountries)(response.data),
286
+ },
287
+ },
288
+ GET_PROVINCES: {
289
+ default: {
290
+ url: 'location/v1/countries/{0}/provinces',
291
+ method: exports.methods.GET,
292
+ source: 'https://apidoc.sysone.com/location/v1/open-api.html#/paths/~1v1~1countries/get',
293
+ requestMapper: (request) => ({ mappedParams: request }),
294
+ responseMapper: (response) => response.data,
295
+ },
296
+ cnp: {
297
+ url: 'party/v1/countries/{0}/provinces',
298
+ method: exports.methods.GET,
299
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-countries",
300
+ requestMapper: request => ({ mappedParams: request }),
301
+ responseMapper: (response) => (0, party_1.getProvinces)(response.data),
302
+ },
303
+ },
304
+ GET_CITIES: {
305
+ default: {
306
+ url: 'location/v1/provinces/{0}/cities',
307
+ method: exports.methods.GET,
308
+ source: 'https://apidoc.sysone.com/location/v1/open-api.html#/paths/~1v1~1provinces~1%7Bcode%7D~1cities/get',
309
+ requestMapper: (request) => ({ mappedParams: request }),
310
+ responseMapper: (response) => response.data,
311
+ },
312
+ },
313
+ GET_POSTAL_CODES: {
314
+ default: {
315
+ url: 'location/v1/cities/{0}/postal-codes',
316
+ method: exports.methods.GET,
317
+ source: 'https://apidoc.sysone.com/location/v1/open-api.html#/paths/~1v1~1cities~1%7Bcode%7D~1postal-codes/get',
318
+ requestMapper: (request) => ({ mappedParams: request }),
319
+ responseMapper: (response) => response.data,
320
+ },
321
+ },
322
+ GET_MARITAL_STATUS: {
323
+ default: {
324
+ url: 'party/v1/marital-statuses',
325
+ method: exports.methods.GET,
326
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1marital-statuses/get',
327
+ requestMapper: (request) => ({ mappedParams: request }),
328
+ responseMapper: (response) => response.data,
329
+ },
330
+ cnp: {
331
+ url: 'party/v1/marital-statuses',
332
+ method: exports.methods.GET,
333
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-marital-statuses",
334
+ requestMapper: request => ({ mappedParams: request }),
335
+ responseMapper: (response) => (0, party_1.getMaritalStatuses)(response.data),
336
+ },
337
+ },
338
+ GET_ACTIVITY: {
339
+ default: {
340
+ url: 'party/v1/sectors',
341
+ method: exports.methods.GET,
342
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1sectors/get',
343
+ requestMapper: (request) => ({ mappedParams: request }),
344
+ responseMapper: (response) => response.data,
345
+ },
346
+ cnp: {
347
+ url: 'party/v1/activities',
348
+ method: exports.methods.GET,
349
+ source: "https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=get-v1-activity",
350
+ requestMapper: request => ({ mappedParams: request }),
351
+ responseMapper: (response) => (0, quotation_1.getActivityList)(response.data),
352
+ },
353
+ },
354
+ GET_BLOOD_PRESSURES: {
355
+ cnp: {
356
+ url: 'party/v1/blood-pressures',
357
+ method: exports.methods.GET,
358
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-blood-pressures",
359
+ requestMapper: request => ({ mappedParams: request }),
360
+ responseMapper: (response) => response.data
361
+ },
362
+ },
363
+ GET_PAYMENT_FRECUENCIES: {
364
+ default: {
365
+ url: 'quotation/v1/payment-frequencies',
366
+ method: exports.methods.GET,
367
+ requestMapper: (request) => ({ mappedParams: request }),
368
+ responseMapper: (response) => response.data,
369
+ },
370
+ cnp: {
371
+ url: 'party/v1/payment-frequencies',
372
+ method: exports.methods.GET,
373
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-payment-frequencies",
374
+ requestMapper: request => ({ mappedParams: request }),
375
+ responseMapper: (response) => (0, quotation_1.getPaymentFrecuencies)(response.data),
376
+ },
377
+ },
378
+ GET_PAYMENT_TYPES: {
379
+ default: {
380
+ url: 'collection/v1/payment-types',
381
+ method: exports.methods.GET,
382
+ requestMapper: (request) => ({ mappedParams: request }),
383
+ responseMapper: (response) => response.data,
384
+ },
385
+ cnp: {
386
+ url: 'party/v1/payment-types',
387
+ method: exports.methods.GET,
388
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-payment-types",
389
+ requestMapper: request => ({ mappedParams: request }),
390
+ responseMapper: (response) => response.data,
391
+ },
392
+ },
393
+ GET_BRANCHES: {
394
+ cnp: {
395
+ url: 'party/v1/branches',
396
+ method: exports.methods.GET,
397
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-branches",
398
+ requestMapper: request => ({ mappedParams: request }),
399
+ responseMapper: (response) => response.data,
400
+ },
401
+ },
402
+ GET_PARTIES: {
403
+ default: {
404
+ url: 'party/v1/{0}',
405
+ method: exports.methods.GET,
406
+ source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1individuals/get",
407
+ requestMapper: (request) => ({ mappedParams: request }),
408
+ responseMapper: (response) => response.data,
409
+ },
410
+ cnp: {
411
+ url: "party/v1/parties",
412
+ method: exports.methods.GET,
413
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-parties",
414
+ requestMapper: request => ({ mappedParams: (0, party_1.partySearchParams)(request) }),
415
+ responseMapper: (response) => (0, party_1.partySearch)(response.data),
416
+ },
417
+ },
418
+ GET_SECTION: {
419
+ default: {
420
+ url: "product/v1/sections",
421
+ method: exports.methods.GET,
422
+ source: "",
423
+ requestMapper: (request) => ({ mappedParams: request }),
424
+ responseMapper: (response) => response.data,
425
+ },
426
+ cnp: {
427
+ url: "party/v1/subsections",
428
+ method: exports.methods.GET,
429
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-subsections",
430
+ requestMapper: request => ({ mappedParams: request }),
431
+ responseMapper: response => (0, party_1.getSections)(response.data),
432
+ }
433
+ },
434
+ GET_SUBSECTION_BY_CODE: {
435
+ default: {
436
+ url: "product/v1/sections/{0}/subsections",
437
+ method: exports.methods.GET,
438
+ source: "",
439
+ requestMapper: (request) => ({ mappedParams: request }),
440
+ responseMapper: (response) => response.data,
441
+ },
442
+ cnp: {
443
+ url: "party/v1/subsections",
444
+ method: exports.methods.GET,
445
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-subsections",
446
+ requestMapper: request => ({ mappedParams: request }),
447
+ responseMapper: response => (0, party_1.getSubsections)(response.data),
448
+ }
449
+ },
450
+ GET_PARTY_VALIDATION: {
451
+ default: {
452
+ url: 'party/v1/parties/{0}/{1}/validation',
453
+ method: exports.methods.GET,
454
+ source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1validation/get",
455
+ requestMapper: (request) => ({ mappedParams: request }),
456
+ responseMapper: (response) => response.data,
457
+ },
458
+ },
459
+ POST_PARTY_VALIDATION: {
460
+ default: {
461
+ url: 'party/v1/parties/{0}/{1}/validation',
462
+ method: exports.methods.POST,
463
+ source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1validation/post",
464
+ requestMapper: (request) => ({ mappedBody: request }),
465
+ responseMapper: (response) => response.data,
466
+ },
467
+ },
468
+ GET_PARTY_ONBOARDING: {
469
+ default: {
470
+ url: 'party/v1/parties/{0}/{1}/onboarding',
471
+ method: exports.methods.GET,
472
+ source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1onboarding/get",
473
+ requestMapper: (request) => ({ mappedParams: request }),
474
+ responseMapper: (response) => response.data,
475
+ },
476
+ },
477
+ POST_PARTY_ONBOARDING: {
478
+ default: {
479
+ url: 'party/v1/parties/{0}/{1}/onboarding',
480
+ method: exports.methods.POST,
481
+ source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1onboarding/post",
482
+ requestMapper: (request) => ({ mappedBody: request }),
483
+ responseMapper: (response) => response.data,
484
+ },
485
+ },
486
+ POST_AGE: {
487
+ default: {
488
+ url: '',
489
+ method: exports.methods.POST,
490
+ source: '',
491
+ requestMapper: (params) => ({ mappedBody: params }),
492
+ responseMapper: (response) => response,
493
+ },
494
+ cnp: {
495
+ url: 'party/v1/age',
496
+ method: exports.methods.POST,
497
+ source: 'https://developers-test.cnp.com.ar/api-details#api=party-api&operation=post-v1-age',
498
+ requestMapper: (params) => ({ mappedBody: params }),
499
+ responseMapper: (response) => response,
500
+ }
501
+ },
502
+ };
503
+ // ============================================================================
504
+ // PRODUCT MODULE
505
+ // ============================================================================
506
+ const productModule = {
507
+ GET_COVERAGES: {
508
+ default: {
509
+ url: 'product/v1/products/{0}/coverages',
510
+ method: exports.methods.GET,
511
+ requestMapper: (request) => ({ mappedParams: request }),
512
+ responseMapper: (response) => response.data,
513
+ },
514
+ cnp: {
515
+ url: 'party/v1/products/{0}/coverages',
516
+ method: exports.methods.GET,
517
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-coverages-currencycode-currencycode-smoker-smoker",
518
+ requestMapper: request => ({ mappedParams: request }),
519
+ responseMapper: (response) => (0, party_1.getCoverages)(response.data),
520
+ },
521
+ },
522
+ GET_DISTRIBUTION_LIMITS: {
523
+ cnp: {
524
+ url: 'party/v1/products/{0}/savings-distribution',
525
+ method: exports.methods.GET,
526
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-coverages-currencycode-currencycode-smoker-smoker",
527
+ requestMapper: request => ({ mappedParams: request }),
528
+ responseMapper: (response) => response.data,
529
+ },
530
+ },
531
+ GET_PRODUCTS_BY_SUBSECTIONS: {
532
+ default: {
533
+ url: 'product/v1/products',
534
+ method: exports.methods.GET,
535
+ source: 'https://apidoc.sysone.com/product/v1/open-api.html#/paths/~1v1~1products/get',
536
+ requestMapper: (request) => ({
537
+ mappedParams: request,
538
+ headers: {
539
+ 'X-Channel': 'L-ONE',
540
+ 'X-Subchannel': 'WEB'
541
+ }
542
+ }),
543
+ responseMapper: (response) => response.data,
544
+ },
545
+ cnp: {
546
+ url: 'party/v1/subsections/{0}/products',
547
+ method: exports.methods.GET,
548
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-subsections-code-products",
549
+ requestMapper: request => ({ mappedParams: (0, party_1.getProductsBySubsections_Request)(request) }),
550
+ responseMapper: (response) => (0, quotation_1.getProductsBySubsections)(response.data),
551
+ },
552
+ },
553
+ GET_PRODUCT_PARAMETERS: {
554
+ cnp: {
555
+ url: `party/v1/products/{0}`,
556
+ method: exports.methods.GET,
557
+ requestMapper: request => ({ mappedParams: request }),
558
+ responseMapper: (response) => (0, quotation_1.getProductParameters)(response.data),
559
+ }
560
+ },
561
+ GET_MONETARY_GOALS: {
562
+ cnp: {
563
+ url: 'party/v1/products/{0}/monetary-goals',
564
+ method: exports.methods.GET,
565
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-monetary-goals",
566
+ requestMapper: request => ({ mappedParams: request }),
567
+ responseMapper: (response) => response.data,
568
+ },
569
+ },
570
+ GET_SAVINGS_DISTRIBUTION: {
571
+ cnp: {
572
+ url: 'party/v1/products/{0}/savings-distribution',
573
+ method: exports.methods.GET,
574
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-savings-distribution-goalcode-goalcode-goalamount-goala",
575
+ requestMapper: request => ({ mappedParams: request }),
576
+ responseMapper: (response) => response.data,
577
+ },
578
+ },
579
+ GET_QUOTATION_BENEFITS: {
580
+ cnp: {
581
+ url: 'party/v1/quotation-benefits',
582
+ method: exports.methods.GET,
583
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-quotation-benefits",
584
+ requestMapper: request => ({ mappedParams: request }),
585
+ responseMapper: (response) => response.data,
586
+ },
587
+ },
588
+ GET_PRODUCT_SEGMENTS: {
589
+ default: {
590
+ url: "product/v1/products/{0}/segments",
591
+ source: "https://apidoc.sysone.com/product/v1/open-api.html#/paths/~1v1~1products~1%7Bcode%7D~1segments/get",
592
+ method: exports.methods.GET,
593
+ requestMapper: request => ({ mappedParams: request }),
594
+ responseMapper: response => response.data
595
+ },
596
+ cnp: {
597
+ url: "party/v1/products/{0}/segments",
598
+ source: "https://developers-test.cnp.com.ar/api-details#api=party-api&operation=get-v1-products-code-segments-provincecode-provincecode-birthdate-birthdate",
599
+ method: exports.methods.GET,
600
+ requestMapper: request => ({ mappedParams: request }),
601
+ responseMapper: response => response.data
602
+ }
603
+ },
604
+ };
605
+ // ============================================================================
606
+ // POLICY MODULE
607
+ // ============================================================================
608
+ const policyModule = {
609
+ GET_ENDORSEMENTS: {
610
+ default: {
611
+ url: 'policy/v1/policies/{0}/endorsements',
612
+ method: exports.methods.GET,
613
+ source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1endorsements/get',
614
+ requestMapper: request => ({ mappedParams: request }),
615
+ responseMapper: (response) => response.data,
616
+ },
617
+ cnp: {
618
+ url: 'policy/v1/policy/{0}/{1}/endorsements',
619
+ method: exports.methods.GET,
620
+ source: 'https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-policy-number-section-code-endorsements',
621
+ requestMapper: request => ({ mappedParams: (0, policy_1.getEndorsements_Request)(request) }),
622
+ responseMapper: (response) => (0, policy_1.getEndorsements_CNP)(response.data),
623
+ },
624
+ },
625
+ GET_INSUREDS: {
626
+ default: {
627
+ url: '{0}/v1/policies/{1}/insureds',
628
+ method: exports.methods.GET,
629
+ source: 'https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1insureds/get',
630
+ requestMapper: (request) => ({ mappedParams: request }),
631
+ responseMapper: (response) => response.data,
632
+ },
633
+ cnp: {
634
+ url: 'policy/v1/policy/{0}/{1}/policy-insured',
635
+ method: exports.methods.GET,
636
+ source: 'https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-policy-number-section-code-insureds',
637
+ requestMapper: request => ({ mappedParams: (0, policy_1.getInsureds_CNP_Request)(request) }),
638
+ responseMapper: (response) => (0, policy_1.getInsureds_CNP)(response.data),
639
+ },
640
+ },
641
+ GET_INSUREDS_BY_FILTERS: {
642
+ default: {
643
+ url: 'policy-life/v1/insureds',
644
+ method: exports.methods.GET,
645
+ source: 'https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1insureds/get',
646
+ requestMapper: (request) => ({ mappedParams: request }),
647
+ responseMapper: (response) => response.data,
648
+ },
649
+ },
650
+ GET_POLICIES: {
651
+ default: {
652
+ url: 'policy/v1/policies',
653
+ method: exports.methods.GET,
654
+ source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies/get',
655
+ requestMapper: (request) => ({ mappedParams: request }),
656
+ responseMapper: (response) => response.data,
657
+ },
658
+ cnp: {
659
+ url: 'policy/v1/policy',
660
+ method: exports.methods.GET,
661
+ source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-pagenumber-pagenumber-sort-sort-ordertype-ordertype-pagesize-p",
662
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicies_CNP_Request)(request) }),
663
+ responseMapper: (response) => (0, policy_1.getPolicies_CNP)(response.data),
664
+ },
665
+ },
666
+ GET_POLICY_DETAIL: {
667
+ default: {
668
+ url: '/{0}/v1/policies/{1}/details',
669
+ method: exports.methods.GET,
670
+ source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies/get',
671
+ requestMapper: (request) => ({ mappedParams: request }),
672
+ responseMapper: (response) => response.data,
673
+ },
674
+ cnp: {
675
+ url: 'policy/v1/policy-individual/{0}/{1}/detail',
676
+ method: exports.methods.GET,
677
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyDetail_Request)(request) }),
678
+ responseMapper: (response) => (0, policy_1.getPolicyDetail_CNP)(response.data)
679
+ },
680
+ },
681
+ GET_COLLECTIONS: {
682
+ default: {
683
+ url: '/policy/v1/policies/{0}/collections',
684
+ method: exports.methods.GET,
685
+ requestMapper: (request) => ({ mappedParams: request }),
686
+ responseMapper: (response) => response.data,
687
+ },
688
+ cnp: {
689
+ url: 'policy/v1/policy-individual/{0}/{1}/detail',
690
+ method: exports.methods.GET,
691
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollection_Request)(request) }),
692
+ responseMapper: (response) => (0, policy_1.getPolicyCollection)(response.data)
693
+ },
694
+ },
695
+ GET_COLLECTIONS: {
696
+ default: {
697
+ url: '/policy/v1/policies/{0}/collections',
698
+ method: exports.methods.GET,
699
+ requestMapper: (request) => ({ mappedParams: request }),
700
+ responseMapper: (response) => response.data,
701
+ },
702
+ cnp: {
703
+ url: 'policy/v1/policy-individual/{0}/{1}/detail',
704
+ method: exports.methods.GET,
705
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollection_Request)(request) }),
706
+ responseMapper: (response) => (0, policy_1.getPolicyCollection)(response.data)
707
+ },
708
+ },
709
+ SEARCH_COLLECTIONS: {
710
+ default: {
711
+ url: 'collection/v1/collections',
712
+ method: exports.methods.GET,
713
+ requestMapper: (request) => ({ mappedParams: request }),
714
+ responseMapper: (response) => response.data,
715
+ },
716
+ },
717
+ GET_COLLECTION_STATUSES: {
718
+ default: {
719
+ url: "collection/v1/collection-statuses",
720
+ method: exports.methods.GET,
721
+ requestMapper: (request) => ({ mappedParams: request }),
722
+ responseMapper: (response) => response.data,
723
+ },
724
+ },
725
+ GET_POLICY_HOME_COLLECTIVE_DETAIL: {
726
+ default: {
727
+ url: 'policy-home/v1/policies/{0}/details',
728
+ method: exports.methods.GET,
729
+ source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
730
+ requestMapper: (request) => ({ mappedParams: request }),
731
+ responseMapper: (response) => response.data,
732
+ },
733
+ cnp: {
734
+ url: 'policy/v1/policy-individual/{0}/{1}/detail',
735
+ method: exports.methods.GET,
736
+ source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
737
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollectiveDetail_Request)(request) }),
738
+ responseMapper: (response) => (0, policy_1.getPolicyCollectiveDetail_CNP)(response.data),
739
+ },
740
+ },
741
+ GET_POLICY_HOME_INDIVIDUAL_DETAIL: {
742
+ default: {
743
+ url: 'policy-home/v1/policies/{0}/details',
744
+ method: exports.methods.GET,
745
+ source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
746
+ requestMapper: (request) => ({ mappedParams: request }),
747
+ responseMapper: (response) => response.data,
748
+ },
749
+ cnp: {
750
+ url: 'policy/v1/policy-individual/{0}/{1}/detail',
751
+ method: exports.methods.GET,
752
+ source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
753
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyIndividualDetail_Request)(request) }),
754
+ responseMapper: (response) => (0, policy_1.getPolicyDetail_CNP)(response.data),
755
+ },
756
+ },
757
+ GET_POLICY_LIFE_COLLECTIVE_DETAIL: {
758
+ default: {
759
+ url: 'policy-life/v1/policies/{0}/details',
760
+ method: exports.methods.GET,
761
+ source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
762
+ requestMapper: (request) => ({ mappedParams: request }),
763
+ responseMapper: (response) => response.data,
764
+ },
765
+ cnp: {
766
+ url: 'policy/v1/policy-individual/{0}/{1}/detail',
767
+ method: exports.methods.GET,
768
+ source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
769
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollectiveDetail_Request)(request) }),
770
+ responseMapper: (response) => (0, policy_1.getPolicyCollectiveDetail_CNP)(response.data),
771
+ },
772
+ },
773
+ GET_POLICY_LIFE_INDIVIDUAL_DETAIL: {
774
+ default: {
775
+ url: 'policy-life/v1/policies/{0}/details',
776
+ method: exports.methods.GET,
777
+ source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
778
+ requestMapper: (request) => ({ mappedParams: request }),
779
+ responseMapper: (response) => response.data,
780
+ },
781
+ cnp: {
782
+ url: 'policy/v1/policy-individual/{0}/{1}/detail',
783
+ method: exports.methods.GET,
784
+ source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
785
+ requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyIndividualDetail_Request)(request) }),
786
+ responseMapper: (response) => (0, policy_1.getPolicyDetail_CNP)(response.data),
787
+ },
788
+ },
789
+ GET_POLICY_STATUSES: {
790
+ default: {
791
+ url: 'policy/v1/policy-statuses',
792
+ method: exports.methods.GET,
793
+ requestMapper: (request) => ({ mappedParams: request }),
794
+ responseMapper: (response) => response.data,
795
+ },
796
+ },
797
+ GET_BENEFICIRY_TYPES: {
798
+ cnp: {
799
+ url: 'policy/v1/beneficiary-types',
800
+ method: exports.methods.GET,
801
+ requestMapper: request => ({ mappedParams: request }),
802
+ responseMapper: (response) => response.data,
803
+ },
804
+ },
805
+ POST_INSURED_UPDATE: {
806
+ default: {
807
+ url: 'policy-life/v1/policies/{0}/insureds',
808
+ method: exports.methods.POST,
809
+ requestMapper: null,
810
+ source: 'https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1insureds/post',
811
+ responseMapper: (response) => response,
812
+ },
813
+ cnp: {
814
+ url: 'v1/policy-collective/{0}/{1}/insureds',
815
+ method: exports.methods.POST,
816
+ requestMapper: null,
817
+ source: 'https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=post-v1-policy-collective-policy-number-section-code-insureds',
818
+ responseMapper: (response) => (0, policy_1.postInsureds_CNP)(response),
819
+ },
820
+ },
821
+ GET_POLICY_CERTIFICATE: {
822
+ default: {
823
+ url: 'policy-{0}/v1/policies/{1}/certificate',
824
+ method: exports.methods.GET,
825
+ requestMapper: (request) => ({
826
+ mappedParams: request,
827
+ responseType: "arraybuffer",
828
+ }),
829
+ responseMapper: (response) => response.data,
830
+ },
831
+ }
832
+ };
833
+ // ============================================================================
834
+ // CLAIM MODULE
835
+ // ============================================================================
836
+ const claimModule = {
837
+ GET_CLAIMS: {
838
+ default: {
839
+ url: 'claim/v1/claims',
840
+ method: exports.methods.GET,
841
+ source: 'https://apidoc.sysone.com/claim/v1/open-api.html',
842
+ requestMapper: (request) => ({ mappedParams: request }),
843
+ responseMapper: (response) => response.data,
844
+ },
845
+ cnp: {
846
+ url: 'claim/v1/claim',
847
+ method: exports.methods.GET,
848
+ source: "https://developers-test.cnp.com.ar/api-details#api=claim-api&operation=get-v1-claim-pagenumber-pagenumber-pagesize-pagesize",
849
+ requestMapper: null,
850
+ responseMapper: (response) => (0, claim_1.getClaims_CNP)(response.data),
851
+ },
852
+ },
853
+ };
854
+ // ============================================================================
855
+ // QUOTATION MODULE
856
+ // ============================================================================
857
+ const quotationModule = {
858
+ GET_QUOTATION_BY_CODE: {
859
+ default: {
860
+ url: 'quotation/v1/quotations/{0}',
861
+ method: exports.methods.GET,
862
+ source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations~1%7Bcode%7D/get',
863
+ requestMapper: (request) => ({ mappedParams: request }),
864
+ responseMapper: (response) => response.data
865
+ },
866
+ cnp: {
867
+ url: 'quotation/v1/quotation/standard-plan/{0}',
868
+ method: exports.methods.GET,
869
+ source: 'https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=get-v1-quotation-standard-plan-number',
870
+ requestMapper: (request) => ({ mappedParams: (0, quotation_1.getQuotationByCode_Request)(request) }),
871
+ responseMapper: (response) => (0, quotation_1.getQuotationByCode)(response.data)
872
+ }
873
+ },
874
+ GET_QUOTATIONS: {
875
+ default: {
876
+ url: 'quotation/v1/quotations',
877
+ method: exports.methods.GET,
878
+ source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/get',
879
+ requestMapper: (request) => ({ mappedParams: request }),
880
+ responseMapper: (response) => response.data
881
+ },
882
+ cnp: {
883
+ url: 'quotation/v1/quotations',
884
+ method: exports.methods.GET,
885
+ requestMapper: request => ({ mappedParams: (0, quotation_1.getQuotations_Request)(request) }),
886
+ responseMapper: (response) => (0, quotation_1.getQuotationsList)(response.data)
887
+ }
888
+ },
889
+ GET_QUOTATION_DETAILS: {
890
+ default: {
891
+ url: '{0}/v1/quotations/{1}',
892
+ method: exports.methods.GET,
893
+ requestMapper: (request) => ({ mappedParams: request }),
894
+ responseMapper: (response) => response.data
895
+ },
896
+ cnp: {
897
+ url: 'quotation/v1/quotations/{0}',
898
+ method: exports.methods.GET,
899
+ requestMapper: request => ({ mappedParams: request }),
900
+ responseMapper: (response) => (0, quotation_1.getQuotationDetail)(response.data)
901
+ }
902
+ },
903
+ GET_SWORN_STATEMENT: {
904
+ cnp: {
905
+ url: 'quotation/v1/quotations/{0}/questionnaires',
906
+ method: exports.methods.GET,
907
+ requestMapper: request => ({ mappedParams: request }),
908
+ responseMapper: (response) => response.data
909
+ }
910
+ },
911
+ GET_QUOTATION_REPORT: {
912
+ default: {
913
+ url: '{0}/v1/quotations/{1}/report',
914
+ method: exports.methods.GET,
915
+ requestMapper: (request) => ({
916
+ mappedParams: request,
917
+ responseType: "arraybuffer"
918
+ }),
919
+ responseMapper: (response) => response
920
+ },
921
+ cnp: {
922
+ url: '/quotation/v1/quotations/{0}/report',
923
+ method: exports.methods.GET,
924
+ requestMapper: (request) => ({
925
+ mappedParams: request,
926
+ headers: {
927
+ 'Accept': 'application/json',
928
+ }
929
+ }),
930
+ responseMapper: (response) => response
931
+ }
932
+ },
933
+ POST_CREATE_QUOTATION_STANDARD_PLAN: {
934
+ default: {
935
+ url: 'quotation/v1/quotations',
936
+ method: exports.methods.POST,
937
+ source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/post',
938
+ requestMapper: (params) => ({
939
+ mappedBody: params
940
+ }),
941
+ responseMapper: (response) => response,
942
+ },
943
+ cnp: {
944
+ url: 'quotation/v1/quotation/standard-plan',
945
+ method: exports.methods.POST,
946
+ source: 'https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=post-v1-quotation-standard-plan',
947
+ requestMapper: (params) => ({
948
+ mappedBody: (0, quotation_1.quotationStandardPlanCreationMapped)(params)
949
+ }),
950
+ responseMapper: (response) => response,
951
+ }
952
+ },
953
+ POST_CREATE_QUOTATION_VARIABLE_PLAN: {
954
+ default: {
955
+ url: 'quotation/v1/quotations',
956
+ method: exports.methods.POST,
957
+ source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/post',
958
+ requestMapper: (params) => ({
959
+ mappedBody: params
960
+ }),
961
+ responseMapper: (response) => response,
962
+ },
963
+ cnp: {
964
+ url: 'quotation/v1/quotation/variable-plan',
965
+ method: exports.methods.POST,
966
+ source: 'https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=post-v1-quotation-variable-plan',
967
+ requestMapper: (params) => ({
968
+ mappedBody: (0, quotation_1.quotationVariablePlanCreationMapped)(params)
969
+ }),
970
+ responseMapper: (response) => response,
971
+ }
972
+ },
973
+ POST_CALCULATE_LS: {
974
+ cnp: {
975
+ url: 'quotation/v1/quotations/calculate',
976
+ method: exports.methods.POST,
977
+ requestMapper: (params) => ({ mappedBody: params }),
978
+ responseMapper: (response) => response,
979
+ }
980
+ },
981
+ POST_CREATE_QUOTATION_LS: {
982
+ cnp: {
983
+ url: 'quotation/v1/quotations',
984
+ method: exports.methods.POST,
985
+ requestMapper: (params) => ({ mappedBody: params }),
986
+ responseMapper: (response) => response,
987
+ }
988
+ },
989
+ };
990
+ // ============================================================================
991
+ // REQUEST MODULE
992
+ // ============================================================================
993
+ const requestModule = {
994
+ GET_REQUESTS_LOOKUP: {
995
+ default: {
996
+ url: 'request/v1/requests',
997
+ method: exports.methods.GET,
998
+ source: 'https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/get',
999
+ requestMapper: (request) => ({ mappedParams: request }),
1000
+ responseMapper: (response) => response.data
1001
+ },
1002
+ cnp: {
1003
+ url: 'request/v1/request/savings',
1004
+ method: exports.methods.GET,
1005
+ requestMapper: request => ({ mappedParams: (0, request_1.getRequest_Params)(request) }),
1006
+ responseMapper: (response) => response.data
1007
+ }
1008
+ },
1009
+ GET_REQUEST_DETAIL: {
1010
+ default: {
1011
+ url: '{0}/v1/requests/{1}',
1012
+ method: exports.methods.GET,
1013
+ requestMapper: (request) => ({ mappedParams: request }),
1014
+ responseMapper: (response) => response.data
1015
+ },
1016
+ cnp: {
1017
+ url: '/request/v1/request/savings/{0}',
1018
+ method: exports.methods.GET,
1019
+ requestMapper: request => ({ mappedParams: request }),
1020
+ responseMapper: (response) => (0, request_1.getRequestDetail)(response.data)
1021
+ }
1022
+ },
1023
+ GET_REQUEST_REPORT: {
1024
+ default: {
1025
+ url: '{0}/v1/policies/{1}/certificate',
1026
+ method: exports.methods.GET,
1027
+ requestMapper: (request) => ({
1028
+ mappedParams: request,
1029
+ responseType: "arraybuffer"
1030
+ }),
1031
+ responseMapper: (response) => response
1032
+ },
1033
+ cnp: {
1034
+ url: '/request/v1/request/savings/{0}/report',
1035
+ method: exports.methods.GET,
1036
+ requestMapper: (request) => ({
1037
+ mappedParams: request,
1038
+ headers: {
1039
+ 'Accept': 'application/json',
1040
+ }
1041
+ }),
1042
+ responseMapper: (response) => response
1043
+ },
1044
+ },
1045
+ POST_REQUEST_SIGNATURE: {
1046
+ cnp: {
1047
+ url: '/request/v1/request/savings/{0}/signature',
1048
+ method: exports.methods.POST,
1049
+ requestMapper: (params) => ({ mappedBody: params }),
1050
+ responseMapper: (response) => response,
1051
+ }
1052
+ },
1053
+ POST_SEND_REQUEST_LIFE: {
1054
+ cnp: {
1055
+ url: '/request/v1/request/savings',
1056
+ method: exports.methods.POST,
1057
+ requestMapper: (params) => ({ mappedBody: params }),
1058
+ responseMapper: (response) => response,
1059
+ }
1060
+ },
1061
+ POST_SEND_REQUEST_HEALTH: {
1062
+ cnp: {
1063
+ url: '/request/v1/request/health',
1064
+ method: exports.methods.POST,
1065
+ requestMapper: (params) => ({ mappedBody: params }),
1066
+ responseMapper: (response) => response,
1067
+ }
1068
+ }
1069
+ };
1070
+ // ============================================================================
1071
+ // finance module
1072
+ // ============================================================================
1073
+ const financeModule = {
1074
+ GET_BANKS: {
1075
+ default: {
1076
+ url: 'finance/v1/banks',
1077
+ method: exports.methods.GET,
1078
+ requestMapper: (request) => ({ mappedParams: request }),
1079
+ responseMapper: (response) => response.data,
1080
+ },
1081
+ },
1082
+ GET_CREDIT_CARD_TYPES: {
1083
+ default: {
1084
+ url: "finance/v1/credit-card-types",
1085
+ method: exports.methods.GET,
1086
+ requestMapper: (request) => ({ mappedParams: request }),
1087
+ responseMapper: (response) => response.data,
1088
+ },
1089
+ },
1090
+ };
1091
+ // ============================================================================
1092
+ // MAIN CONFIGURATION EXPORT
1093
+ // ============================================================================
1094
+ exports.tenantsConfig = {
1095
+ ...configurationModule,
1096
+ ...intermediaryModule,
1097
+ ...partyModule,
1098
+ ...productModule,
1099
+ ...policyModule,
1100
+ ...claimModule,
1101
+ ...quotationModule,
1102
+ ...requestModule,
1103
+ ...billingModule,
1104
+ ...financeModule
1105
+ };