@adempiere/grpc-api
Advanced tools
Comparing version 4.5.9 to 4.6.0
{ | ||
"name": "@adempiere/grpc-api", | ||
"version": "4.5.9", | ||
"version": "4.6.0", | ||
"description": "ADempiere Web write in Javascript for a node service", | ||
@@ -5,0 +5,0 @@ "author": "Yamel Senih", |
@@ -145,24 +145,2 @@ // GENERATED CODE -- DO NOT EDIT! | ||
function serialize_import_file_loader_ProcessImportRequest(arg) { | ||
if (!(arg instanceof proto_import_file_loader_pb.ProcessImportRequest)) { | ||
throw new Error('Expected argument of type import_file_loader.ProcessImportRequest'); | ||
} | ||
return Buffer.from(arg.serializeBinary()); | ||
} | ||
function deserialize_import_file_loader_ProcessImportRequest(buffer_arg) { | ||
return proto_import_file_loader_pb.ProcessImportRequest.deserializeBinary(new Uint8Array(buffer_arg)); | ||
} | ||
function serialize_import_file_loader_ProcessImportResponse(arg) { | ||
if (!(arg instanceof proto_import_file_loader_pb.ProcessImportResponse)) { | ||
throw new Error('Expected argument of type import_file_loader.ProcessImportResponse'); | ||
} | ||
return Buffer.from(arg.serializeBinary()); | ||
} | ||
function deserialize_import_file_loader_ProcessImportResponse(buffer_arg) { | ||
return proto_import_file_loader_pb.ProcessImportResponse.deserializeBinary(new Uint8Array(buffer_arg)); | ||
} | ||
function serialize_import_file_loader_SaveRecordsRequest(arg) { | ||
@@ -282,15 +260,4 @@ if (!(arg instanceof proto_import_file_loader_pb.SaveRecordsRequest)) { | ||
}, | ||
processImport: { | ||
path: '/import_file_loader.ImportFileLoader/ProcessImport', | ||
requestStream: false, | ||
responseStream: false, | ||
requestType: proto_import_file_loader_pb.ProcessImportRequest, | ||
responseType: proto_import_file_loader_pb.ProcessImportResponse, | ||
requestSerialize: serialize_import_file_loader_ProcessImportRequest, | ||
requestDeserialize: deserialize_import_file_loader_ProcessImportRequest, | ||
responseSerialize: serialize_import_file_loader_ProcessImportResponse, | ||
responseDeserialize: deserialize_import_file_loader_ProcessImportResponse, | ||
}, | ||
}; | ||
exports.ImportFileLoaderClient = grpc.makeGenericClientConstructor(ImportFileLoaderService); |
@@ -18,3 +18,3 @@ /************************************************************************************* | ||
const { getMetadata } = require('@adempiere/grpc-api/src/utils/metadata.js'); | ||
const { getValidInteger } = require('@adempiere/grpc-api/src/utils/valueUtils.js'); | ||
const { isEmptyValue, getValidInteger } = require('@adempiere/grpc-api/src/utils/valueUtils.js'); | ||
@@ -139,2 +139,4 @@ class ImportFileLoader { | ||
searchValue, | ||
tableId, | ||
tableName, | ||
// Page Data | ||
@@ -147,2 +149,7 @@ pageSize, | ||
request.setTableId( | ||
getValidInteger(tableId) | ||
); | ||
request.setTableName(tableName); | ||
request.setSearchValue(searchValue); | ||
@@ -168,2 +175,4 @@ request.setPageSize( | ||
// DSL | ||
tableId, | ||
tableName, | ||
searchValue, | ||
@@ -177,2 +186,7 @@ // Page Data | ||
request.setTableId( | ||
getValidInteger(tableId) | ||
); | ||
request.setTableName(tableName); | ||
request.setSearchValue(searchValue); | ||
@@ -320,26 +334,4 @@ request.setPageSize( | ||
processImport({ | ||
token, | ||
// DSL | ||
importFormatId | ||
}, callback) { | ||
const { ListCharsetsRequest } = this.stubFile; | ||
const request = new ListCharsetsRequest(); | ||
request.setImportFormatId( | ||
getValidInteger(importFormatId) | ||
); | ||
const metadata = getMetadata({ | ||
token | ||
}); | ||
this.getImportFileLoaderService().listCharsets( | ||
request, | ||
metadata, | ||
callback | ||
); | ||
} | ||
} | ||
module.exports = ImportFileLoader; |
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
6726154
190681