feat: Add data client API implementation for Chat Entry and Record Chat. (#251)
parent
c602ed1d3e
commit
16e988cc6a
|
@ -45,7 +45,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@adempiere/grpc-access-client": "^1.1.8",
|
"@adempiere/grpc-access-client": "^1.1.8",
|
||||||
"@adempiere/grpc-data-client": "^1.9.1",
|
"@adempiere/grpc-data-client": "^1.9.2",
|
||||||
"@adempiere/grpc-dictionary-client": "^1.3.5",
|
"@adempiere/grpc-dictionary-client": "^1.3.5",
|
||||||
"@adempiere/grpc-enrollment-client": "^1.0.7",
|
"@adempiere/grpc-enrollment-client": "^1.0.7",
|
||||||
"autoprefixer": "^9.5.1",
|
"autoprefixer": "^9.5.1",
|
||||||
|
|
|
@ -27,7 +27,7 @@ export function convertValueFromGRPC(grpcValue) {
|
||||||
* @param {array} parameters.attributesList
|
* @param {array} parameters.attributesList
|
||||||
*/
|
*/
|
||||||
export function createEntity({ tableName, attributesList }) {
|
export function createEntity({ tableName, attributesList }) {
|
||||||
return Instance.call(this).createEntity({
|
return Instance.call(this).requestCreateEntity({
|
||||||
tableName,
|
tableName,
|
||||||
attributesList
|
attributesList
|
||||||
})
|
})
|
||||||
|
@ -41,7 +41,7 @@ export function createEntity({ tableName, attributesList }) {
|
||||||
* @param {array} attributesList
|
* @param {array} attributesList
|
||||||
*/
|
*/
|
||||||
export function updateEntity({ tableName, recordId, recordUuid, attributesList }) {
|
export function updateEntity({ tableName, recordId, recordUuid, attributesList }) {
|
||||||
return Instance.call(this).updateEntity({
|
return Instance.call(this).requestUpdateEntity({
|
||||||
tableName,
|
tableName,
|
||||||
recordId,
|
recordId,
|
||||||
recordUuid,
|
recordUuid,
|
||||||
|
@ -56,7 +56,7 @@ export function updateEntity({ tableName, recordId, recordUuid, attributesList }
|
||||||
* @param {string} recordUuid
|
* @param {string} recordUuid
|
||||||
*/
|
*/
|
||||||
export function deleteEntity({ tableName, recordId, recordUuid }) {
|
export function deleteEntity({ tableName, recordId, recordUuid }) {
|
||||||
return Instance.call(this).deleteEntity({
|
return Instance.call(this).requestDeleteEntity({
|
||||||
tableName,
|
tableName,
|
||||||
recordId,
|
recordId,
|
||||||
recordUuid
|
recordUuid
|
||||||
|
@ -64,7 +64,7 @@ export function deleteEntity({ tableName, recordId, recordUuid }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getEntity({ tableName, recordId, recordUuid }) {
|
export function getEntity({ tableName, recordId, recordUuid }) {
|
||||||
return Instance.call(this).requestEntity({
|
return Instance.call(this).requestGetEntity({
|
||||||
tableName,
|
tableName,
|
||||||
recordId,
|
recordId,
|
||||||
recordUuid
|
recordUuid
|
||||||
|
@ -89,7 +89,7 @@ export function getEntitiesList({
|
||||||
nextPageToken: pageToken,
|
nextPageToken: pageToken,
|
||||||
pageSize
|
pageSize
|
||||||
}) {
|
}) {
|
||||||
return Instance.call(this).requestEntitiesList({
|
return Instance.call(this).requestListEntities({
|
||||||
tableName,
|
tableName,
|
||||||
query,
|
query,
|
||||||
whereClause,
|
whereClause,
|
||||||
|
@ -111,7 +111,7 @@ export function rollbackEntity({
|
||||||
recordId,
|
recordId,
|
||||||
eventType
|
eventType
|
||||||
}) {
|
}) {
|
||||||
return Instance.call(this).rollbackEntityRequest({
|
return Instance.call(this).requestRollbackEntity({
|
||||||
tableName,
|
tableName,
|
||||||
recordId,
|
recordId,
|
||||||
eventTypeExecuted: eventType
|
eventTypeExecuted: eventType
|
||||||
|
@ -253,7 +253,7 @@ export function getReferencesList({ windowUuid, tableName, recordId, recordUuid,
|
||||||
* @returns {Map} Entity
|
* @returns {Map} Entity
|
||||||
*/
|
*/
|
||||||
export function runCallOutRequest({ windowUuid, windowNo, tabUuid, tableName, columnName, value, oldValue, callout, attributesList = [] }) {
|
export function runCallOutRequest({ windowUuid, windowNo, tabUuid, tableName, columnName, value, oldValue, callout, attributesList = [] }) {
|
||||||
return Instance.call(this).runCalloutRequest({
|
return Instance.call(this).requestRunCallout({
|
||||||
windowUuid,
|
windowUuid,
|
||||||
windowNo,
|
windowNo,
|
||||||
tabUuid,
|
tabUuid,
|
||||||
|
@ -271,11 +271,11 @@ export function getDefaultValueFromServer(query) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getContextInfoValueFromServer({ uuid, query }) {
|
export function getContextInfoValueFromServer({ uuid, query }) {
|
||||||
return Instance.call(this).getContextInfoValue({ uuid, query })
|
return Instance.call(this).requestGetContextInfoValue({ uuid, query })
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getPrivateAccessFromServer({ tableName, recordId, userUuid }) {
|
export function getPrivateAccessFromServer({ tableName, recordId, userUuid }) {
|
||||||
return Instance.call(this).getPrivateAccess({
|
return Instance.call(this).requestGetPrivateAccess({
|
||||||
tableName,
|
tableName,
|
||||||
recordId,
|
recordId,
|
||||||
userUuid
|
userUuid
|
||||||
|
@ -283,7 +283,7 @@ export function getPrivateAccessFromServer({ tableName, recordId, userUuid }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function lockPrivateAccessFromServer({ tableName, recordId, userUuid }) {
|
export function lockPrivateAccessFromServer({ tableName, recordId, userUuid }) {
|
||||||
return Instance.call(this).lockPrivateAccess({
|
return Instance.call(this).requestLockPrivateAccess({
|
||||||
tableName,
|
tableName,
|
||||||
recordId,
|
recordId,
|
||||||
userUuid
|
userUuid
|
||||||
|
@ -291,7 +291,7 @@ export function lockPrivateAccessFromServer({ tableName, recordId, userUuid }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function unlockPrivateAccessFromServer({ tableName, recordId, userUuid }) {
|
export function unlockPrivateAccessFromServer({ tableName, recordId, userUuid }) {
|
||||||
return Instance.call(this).unlockPrivateAccess({
|
return Instance.call(this).requestUnlockPrivateAccess({
|
||||||
tableName,
|
tableName,
|
||||||
recordId,
|
recordId,
|
||||||
userUuid
|
userUuid
|
||||||
|
@ -386,7 +386,7 @@ export function getReportOutput({
|
||||||
reportName,
|
reportName,
|
||||||
reportType
|
reportType
|
||||||
}) {
|
}) {
|
||||||
return Instance.call(this).getReportOutput({
|
return Instance.call(this).requestGetReportOutput({
|
||||||
parametersList,
|
parametersList,
|
||||||
tableName,
|
tableName,
|
||||||
printFormatUuid,
|
printFormatUuid,
|
||||||
|
@ -424,3 +424,31 @@ export function requestListWorkflowsLogs({
|
||||||
pageSize
|
pageSize
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} tableName
|
||||||
|
* @param {integer} recordId
|
||||||
|
* @param {string} pageToken
|
||||||
|
* @param {string} pageSize
|
||||||
|
*/
|
||||||
|
export function requestListRecordChats({ tableName, recordId, pageToken, pageSize }) {
|
||||||
|
return Instance.call(this).requestListRecordChats({
|
||||||
|
tableName,
|
||||||
|
recordId,
|
||||||
|
pageToken,
|
||||||
|
pageSize
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} uuid
|
||||||
|
* @param {string} pageToken
|
||||||
|
* @param {string} pageSize
|
||||||
|
*/
|
||||||
|
export function requestListChatEntries({ uuid, pageToken, pageSize }) {
|
||||||
|
return Instance.call(this).requestListChatEntries({
|
||||||
|
uuid,
|
||||||
|
pageToken,
|
||||||
|
pageSize
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue