sysone-api-mapper 1.0.152 → 1.0.154

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.
@@ -136,6 +136,24 @@ const intermediaryModule = {
136
136
  // PARTY MODULE
137
137
  // ============================================================================
138
138
  const partyModule = {
139
+ GET_INDIVIDUAL_DETAILS: {
140
+ default: {
141
+ url: 'party/v1/individuals/{0}',
142
+ method: exports.methods.GET,
143
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1individuals~1%7Bcode%7D/get',
144
+ requestMapper: (request) => ({ mappedParams: request }),
145
+ responseMapper: (response) => response.data,
146
+ },
147
+ },
148
+ GET_ORGANISATION_DETAILS: {
149
+ default: {
150
+ url: 'party/v1/organisations/{0}',
151
+ method: exports.methods.GET,
152
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1organisations~1%7Bcode%7D/get',
153
+ requestMapper: (request) => ({ mappedParams: request }),
154
+ responseMapper: (response) => response.data,
155
+ },
156
+ },
139
157
  GET_CURRENCIES: {
140
158
  default: {
141
159
  url: 'finance/v1/currencies',
@@ -437,6 +455,15 @@ const policyModule = {
437
455
  responseMapper: (response) => (0, policy_1.getInsureds_CNP)(response.data),
438
456
  },
439
457
  },
458
+ GET_INSUREDS_BY_FILTERS: {
459
+ default: {
460
+ url: 'policy-life/v1/insureds',
461
+ method: exports.methods.GET,
462
+ source: 'https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1insureds/get',
463
+ requestMapper: (request) => ({ mappedParams: request }),
464
+ responseMapper: (response) => response.data,
465
+ },
466
+ },
440
467
  GET_POLICIES: {
441
468
  default: {
442
469
  url: 'policy/v1/policies',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sysone-api-mapper",
3
- "version": "1.0.152",
3
+ "version": "1.0.154",
4
4
  "description": "Paquete mapper para portal de productores",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",