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
|
@@ -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(
|
|
277
|
-
name:
|
|
278
|
-
code:
|
|
279
|
-
version:
|
|
280
|
-
subsection:
|
|
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 = {
|