sysone-api-mapper 1.0.119 → 1.0.121

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.119",
3
+ "version": "1.0.121",
4
4
  "description": "Paquete mapper para portal de productores",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -402,6 +402,16 @@ const productModule = {
402
402
  },
403
403
  },
404
404
 
405
+ GET_PRODUCT_PARAMETERS: {
406
+ cnp: {
407
+ url: `party/v1/products/{0}`,
408
+ method: methods.GET,
409
+ requestMapper: request => ({ mappedParams: request }),
410
+ responseMapper: (response) => response.data,
411
+ }
412
+ },
413
+
414
+
405
415
  GET_MONETARY_GOALS: {
406
416
  cnp: {
407
417
  url: 'party/v1/products/{0}/monetary-goals',
@@ -388,8 +388,8 @@ export const getQuotationByCode_Request = (inputParams) => {
388
388
  export const getQuotations_Request = (inputParams) => {
389
389
  return {
390
390
  number: inputParams.quotationNumber || undefined,
391
- from: inputParams.from || undefined,
392
- to: inputParams.to || undefined,
391
+ from: inputParams.dateFrom || undefined,
392
+ to: inputParams.dateTo || undefined,
393
393
  }
394
394
  }
395
395
 
@@ -436,7 +436,7 @@ export const getProductsBySubsections = async (response) => {
436
436
  version: item.version,
437
437
  subsection: item?.subsection || null,
438
438
  fieldExclusions: item?.exclusions || null,
439
- fields: item?.fieldValues || item?.fields || null
439
+ fields: item?.fieldValues || item?.fields || null
440
440
  })),
441
441
  };
442
442
  return objectMapped;