sysone-api-mapper 1.0.35 → 1.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sysone-api-mapper",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "description": "Paquete mapper para portal de productores",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -71,7 +71,7 @@ export const apiMapper = async (
71
71
  config = {
72
72
  ...configs.cnp,
73
73
  headers: {
74
- ...configs.cnp.hdeaders,
74
+ ...configs.cnp.headers,
75
75
  ...additionalHeaders,
76
76
  }
77
77
  }
@@ -127,9 +127,9 @@ export const tenantsConfig = {
127
127
  },
128
128
  GET_PRODUCTS_BY_SUBSECTIONS: {
129
129
  default: {
130
- url: 'product/v1/subsections/{0}/products',
130
+ url: 'product/v1/products',
131
131
  method: methods.GET,
132
- source: 'https://apidoc.sysone.com/product/v1/open-api.html#/paths/~1v1~1subsections~1%7Bcode%7D~1products/get',
132
+ source: 'https://apidoc.sysone.com/product/v1/open-api.html#/paths/~1v1~1products/get',
133
133
  requestMapper: (request) => ({ mappedParams: request }),
134
134
  responseMapper: (response) => response,
135
135
  },