sysone-api-mapper 1.0.44 → 1.0.46

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 +1 @@
1
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
1
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sysone-api-mapper",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "description": "Paquete mapper para portal de productores",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -273,15 +273,17 @@ export const getActivityList = async (response) => {
273
273
 
274
274
  export const getProductsBySubsections = async (response) => {
275
275
  const objectMapped = {
276
- values: response.products.map(a => ({
277
- name: a.name,
278
- code: a.code,
279
- version: a.version,
280
- subsection: a?.subsection || null
276
+ values: response.products.map(item => ({
277
+ name: item.name,
278
+ code: item.code,
279
+ version: item.version,
280
+ subsection: item?.subsection || null,
281
+ fieldExclusions: item?.fieldExclusions || null,
282
+ fieldValues: item?.fieldValues || null
281
283
  })),
282
- }
284
+ };
283
285
  return objectMapped;
284
- }
286
+ };
285
287
 
286
288
  export const getPaymentFrecuencies = async (response) => {
287
289
  const objectMapped = {