sysone-api-mapper 1.0.161 → 1.0.163
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/adapters/collectionAdapter.d.ts +1 -0
- package/dist/src/adapters/collectionAdapter.js +2 -1
- package/dist/src/adapters/createApiAdapter.d.ts +2 -0
- package/dist/src/adapters/partyAdapter.d.ts +2 -0
- package/dist/src/adapters/partyAdapter.js +2 -0
- package/dist/src/mapper/endpointsConfig.d.ts +415 -366
- package/dist/src/mapper/endpointsConfig.js +40 -0
- package/package.json +1 -1
|
@@ -387,6 +387,24 @@ const partyModule = {
|
|
|
387
387
|
responseMapper: (response) => (0, party_1.partySearch)(response.data),
|
|
388
388
|
},
|
|
389
389
|
},
|
|
390
|
+
GET_PARTY_VALIDATION: {
|
|
391
|
+
default: {
|
|
392
|
+
url: 'party/v1/parties/{0}/{1}/validation',
|
|
393
|
+
method: exports.methods.GET,
|
|
394
|
+
source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1validation/get",
|
|
395
|
+
requestMapper: (request) => ({ mappedParams: request }),
|
|
396
|
+
responseMapper: (response) => response.data,
|
|
397
|
+
},
|
|
398
|
+
},
|
|
399
|
+
POST_PARTY_VALIDATION: {
|
|
400
|
+
default: {
|
|
401
|
+
url: 'party/v1/parties/{0}/{1}/validation',
|
|
402
|
+
method: exports.methods.POST,
|
|
403
|
+
source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1validation/post",
|
|
404
|
+
requestMapper: (request) => ({ mappedParams: request }),
|
|
405
|
+
responseMapper: (response) => response.data,
|
|
406
|
+
},
|
|
407
|
+
},
|
|
390
408
|
POST_AGE: {
|
|
391
409
|
default: {
|
|
392
410
|
url: '',
|
|
@@ -574,6 +592,28 @@ const policyModule = {
|
|
|
574
592
|
responseMapper: (response) => (0, policy_1.getPolicyCollection)(response.data)
|
|
575
593
|
},
|
|
576
594
|
},
|
|
595
|
+
GET_COLLECTIONS: {
|
|
596
|
+
default: {
|
|
597
|
+
url: '/policy/v1/policies/{0}/collections',
|
|
598
|
+
method: exports.methods.GET,
|
|
599
|
+
requestMapper: (request) => ({ mappedParams: request }),
|
|
600
|
+
responseMapper: (response) => response.data,
|
|
601
|
+
},
|
|
602
|
+
cnp: {
|
|
603
|
+
url: 'policy/v1/policy-individual/{0}/{1}/detail',
|
|
604
|
+
method: exports.methods.GET,
|
|
605
|
+
requestMapper: request => ({ mappedParams: (0, policy_1.getPolicyCollection_Request)(request) }),
|
|
606
|
+
responseMapper: (response) => (0, policy_1.getPolicyCollection)(response.data)
|
|
607
|
+
},
|
|
608
|
+
},
|
|
609
|
+
SEARCH_COLLECTIONS: {
|
|
610
|
+
default: {
|
|
611
|
+
url: 'collection/v1/collections',
|
|
612
|
+
method: exports.methods.GET,
|
|
613
|
+
requestMapper: (request) => ({ mappedParams: request }),
|
|
614
|
+
responseMapper: (response) => response.data,
|
|
615
|
+
},
|
|
616
|
+
},
|
|
577
617
|
GET_COLLECTION_STATUSES: {
|
|
578
618
|
default: {
|
|
579
619
|
url: "collection/v1/collection-statuses",
|