@adempiere/grpc-api
Advanced tools
Comparing version 4.6.7 to 4.6.8
{ | ||
"name": "@adempiere/grpc-api", | ||
"version": "4.6.7", | ||
"version": "4.6.8", | ||
"description": "ADempiere Web write in Javascript for a node service", | ||
@@ -5,0 +5,0 @@ "author": "Yamel Senih", |
/************************************************************************************* | ||
* Product: ADempiere gRPC File Management Client * | ||
* 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 * | ||
@@ -242,10 +242,14 @@ * This program is free software: you can redistribute it and/or modify * | ||
token, | ||
// parent reference | ||
resourceType, | ||
resourceId, | ||
// record | ||
tableName, | ||
recordId, | ||
recordUuid, | ||
// | ||
fileName, | ||
fileSize, | ||
description, | ||
textMessage, | ||
resourceType | ||
textMessage | ||
}, callback) { | ||
@@ -255,2 +259,9 @@ const { SetResourceReferenceRequest } = this.stubFile; | ||
request.setResourceType( | ||
getValidInteger(resourceType) | ||
); | ||
request.setResourceId( | ||
getValidInteger(resourceId) | ||
); | ||
request.setTableName(tableName); | ||
@@ -266,5 +277,2 @@ request.setRecordId( | ||
request.setTextMessage(textMessage); | ||
request.setResourceType( | ||
getValidInteger(resourceType) | ||
) | ||
@@ -271,0 +279,0 @@ const metadata = getMetadata({ |
@@ -256,8 +256,8 @@ /************************************************************************************* | ||
function getReferenceType({ key, value }) { | ||
function getResourceType({ key, value }) { | ||
const { getValueOrKeyEnum } = require('@adempiere/grpc-api/src/utils/convertEnums.js') | ||
const { ReferenceType } = require('@adempiere/grpc-api/src/grpc/proto/file_management_pb'); | ||
const { ResourceType } = require('@adempiere/grpc-api/src/grpc/proto/file_management_pb'); | ||
return getValueOrKeyEnum({ | ||
list: ReferenceType, | ||
list: ResourceType, | ||
key, | ||
@@ -273,8 +273,9 @@ value | ||
return { | ||
reference_type: resourceReferenceToConvert.getResourceType(), | ||
reference_type_name: getResourceType({ | ||
value: resourceReferenceToConvert.getResourceType() | ||
}), | ||
resource_id: resourceReferenceToConvert.getResourceId(), | ||
id: resourceReferenceToConvert.getId(), | ||
uuid: resourceReferenceToConvert.getUuid(), | ||
reference_type: resourceReferenceToConvert.getReferenceType(), | ||
reference_type_name: getReferenceType({ | ||
value: resourceReferenceToConvert.getReferenceType() | ||
}), | ||
name: resourceReferenceToConvert.getName(), | ||
@@ -281,0 +282,0 @@ file_name: resourceReferenceToConvert.getFileName(), |
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
6775570
192124