From 232f34a06449e06db9dd877ba392e62b4d769ed6 Mon Sep 17 00:00:00 2001 From: EdwinBetanc0urt Date: Wed, 5 Feb 2020 19:13:23 -0400 Subject: [PATCH] feat: Add API support to gRPC-Data-Client v2-0.6. (#309) * feat: Add API support to gRPC-Data-Client v2-0.6. * change method name. --- package.json | 2 +- src/api/ADempiere/data.js | 26 +++++++++++++++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c2064e89..523029d6 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ }, "dependencies": { "@adempiere/grpc-access-client": "^1.1.8", - "@adempiere/grpc-data-client": "^2.0.5", + "@adempiere/grpc-data-client": "^2.0.6", "@adempiere/grpc-dictionary-client": "^1.3.5", "@adempiere/grpc-enrollment-client": "^1.0.7", "autoprefixer": "^9.5.1", diff --git a/src/api/ADempiere/data.js b/src/api/ADempiere/data.js index c91565ce..3eab8864 100644 --- a/src/api/ADempiere/data.js +++ b/src/api/ADempiere/data.js @@ -380,7 +380,7 @@ export function requestLanguages({ pageToken, pageSize }) { * @param {integer} recordId */ export function requestTranslations({ tableName, language, recordUuid, recordId, pageToken, pageSize }) { - return Instance.call(this).requestTranslations({ + return Instance.call(this).requestListTranslations({ tableName, recordUuid, recordId, @@ -457,6 +457,7 @@ export function requestListWorkflows({ pageSize }) } + /** * @param {string} tableName * @param {integer} recordId @@ -484,6 +485,7 @@ export function requestListChatEntries({ uuid, pageToken, pageSize }) { pageSize }) } + /** * @param {string} tableName * @param {string} recordId @@ -496,3 +498,25 @@ export function requestCreateChatEntry({ tableName, recordId, comment }) { comment }) } + +/** + * Request Document Actions List + * @param {string} tableName + * @param {number} recordId + * @param {string} recordUuid + * @param {string} documentStatus + * @param {string} documentAction + * @param {number} pageSize + * @param {string} pageToken + */ +export function requestListDocumentActions({ tableName, recordId, recordUuid, documentStatus, documentAction, pageSize, pageToken }) { + return Instance.call(this).requestListDocumentActions({ + tableName, + recordId, + recordUuid, + documentStatus, + documentAction, + pageSize, + pageToken + }) +}