@adempiere/grpc-api
Advanced tools
Comparing version 4.4.7 to 4.4.8
@@ -108,11 +108,15 @@ /************************************************************************************* | ||
const { getValueFromGRPC } = require('@adempiere/grpc-api/src/utils/baseDataTypeFromGRPC.js'); | ||
const { isEmptyValue } = require('@adempiere/grpc-api/src/utils/valueUtils.js'); | ||
const values = context.forEach((value, key) => { | ||
const values = [] | ||
context.forEach((value, key) => { | ||
const convertedValue = getValueFromGRPC(value); | ||
const currentValue = isEmptyValue(convertedValue) ? null : convertedValue; | ||
return { | ||
values.push({ | ||
key: key, | ||
value: currentValue | ||
}; | ||
}) | ||
}); | ||
}); | ||
return values; | ||
@@ -119,0 +123,0 @@ }, |
{ | ||
"name": "@adempiere/grpc-api", | ||
"version": "4.4.7", | ||
"version": "4.4.8", | ||
"description": "ADempiere Web write in Javascript for a node service", | ||
@@ -5,0 +5,0 @@ "author": "Yamel Senih", |
@@ -22,2 +22,3 @@ // GENERATED CODE -- DO NOT EDIT! | ||
var proto_base_data_type_pb = require('../proto/base_data_type_pb.js'); | ||
var proto_dictionary_pb = require('../proto/dictionary_pb.js'); | ||
@@ -24,0 +25,0 @@ function serialize_dashboarding_ExistsWindowDashboardsRequest(arg) { |
/************************************************************************************* | ||
* Product: ADempiere gRPC Dashboarding Client Convert Utils * | ||
* Copyright (C) 2012-2023 E.R.P. Consultores y Asociados, C.A. * | ||
* Copyright (C) 2018-2023 E.R.P. Consultores y Asociados, C.A. * | ||
* Contributor(s): Edwin Betancourt EdwinBetanc0urt@outlook.com * | ||
@@ -182,2 +182,6 @@ * This program is free software: you can redistribute it and/or modify * | ||
} | ||
const { | ||
getReferenceFromGRPC | ||
} = require('@adempiere/grpc-api/src/utils/dictionaryFromGRPC.js'); | ||
return { | ||
@@ -201,3 +205,6 @@ id: windowChartParameterToConvert.getId(), | ||
display_logic: windowChartParameterToConvert.getDisplayLogic(), | ||
read_only_logic: windowChartParameterToConvert.getReadOnlyLogic() | ||
read_only_logic: windowChartParameterToConvert.getReadOnlyLogic(), | ||
reference: getReferenceFromGRPC( | ||
windowChartParameterToConvert.getReference() | ||
) | ||
} | ||
@@ -204,0 +211,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6527009
153
185170