@adempiere/grpc-access-client
Advanced tools
Comparing version 1.1.9 to 1.2.0
@@ -36,4 +36,4 @@ /************************************************************************************* | ||
const grpc_promise = require('grpc-promise'); | ||
const { AccessServicePromiseClient } = require('./src/grpc/proto/access_grpc_web_pb.js'); | ||
const requestService = new AccessServicePromiseClient(this.host); | ||
const { SecurityPromiseClient } = require('./src/grpc/proto/access_grpc_web_pb.js'); | ||
const requestService = new SecurityPromiseClient(this.host); | ||
grpc_promise.promisifyAll(requestService); | ||
@@ -40,0 +40,0 @@ return requestService; |
{ | ||
"name": "@adempiere/grpc-access-client", | ||
"version": "1.1.9", | ||
"version": "1.2.0", | ||
"description": "ADempiere Access Client write in Javascript for gRPC service", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,3 +25,3 @@ /** | ||
*/ | ||
proto.access.AccessServiceClient = | ||
proto.access.SecurityClient = | ||
function(hostname, credentials, options) { | ||
@@ -62,3 +62,3 @@ if (!options) options = {}; | ||
*/ | ||
proto.access.AccessServicePromiseClient = | ||
proto.access.SecurityPromiseClient = | ||
function(hostname, credentials, options) { | ||
@@ -97,3 +97,3 @@ if (!options) options = {}; | ||
*/ | ||
const methodInfo_AccessService_GetUserInfo = new grpc.web.AbstractClientBase.MethodInfo( | ||
const methodInfo_Security_GetUserInfo = new grpc.web.AbstractClientBase.MethodInfo( | ||
proto.access.UserInfoValue, | ||
@@ -118,9 +118,9 @@ /** @param {!proto.access.LoginRequest} request */ | ||
*/ | ||
proto.access.AccessServiceClient.prototype.getUserInfo = | ||
proto.access.SecurityClient.prototype.getUserInfo = | ||
function(request, metadata, callback) { | ||
return this.client_.rpcCall(this.hostname_ + | ||
'/access.AccessService/GetUserInfo', | ||
'/access.Security/GetUserInfo', | ||
request, | ||
metadata || {}, | ||
methodInfo_AccessService_GetUserInfo, | ||
methodInfo_Security_GetUserInfo, | ||
callback); | ||
@@ -138,9 +138,9 @@ }; | ||
*/ | ||
proto.access.AccessServicePromiseClient.prototype.getUserInfo = | ||
proto.access.SecurityPromiseClient.prototype.getUserInfo = | ||
function(request, metadata) { | ||
return this.client_.unaryCall(this.hostname_ + | ||
'/access.AccessService/GetUserInfo', | ||
'/access.Security/GetUserInfo', | ||
request, | ||
metadata || {}, | ||
methodInfo_AccessService_GetUserInfo); | ||
methodInfo_Security_GetUserInfo); | ||
}; | ||
@@ -155,3 +155,3 @@ | ||
*/ | ||
const methodInfo_AccessService_RunLogin = new grpc.web.AbstractClientBase.MethodInfo( | ||
const methodInfo_Security_RunLogin = new grpc.web.AbstractClientBase.MethodInfo( | ||
proto.access.Session, | ||
@@ -176,9 +176,9 @@ /** @param {!proto.access.LoginRequest} request */ | ||
*/ | ||
proto.access.AccessServiceClient.prototype.runLogin = | ||
proto.access.SecurityClient.prototype.runLogin = | ||
function(request, metadata, callback) { | ||
return this.client_.rpcCall(this.hostname_ + | ||
'/access.AccessService/RunLogin', | ||
'/access.Security/RunLogin', | ||
request, | ||
metadata || {}, | ||
methodInfo_AccessService_RunLogin, | ||
methodInfo_Security_RunLogin, | ||
callback); | ||
@@ -196,9 +196,9 @@ }; | ||
*/ | ||
proto.access.AccessServicePromiseClient.prototype.runLogin = | ||
proto.access.SecurityPromiseClient.prototype.runLogin = | ||
function(request, metadata) { | ||
return this.client_.unaryCall(this.hostname_ + | ||
'/access.AccessService/RunLogin', | ||
'/access.Security/RunLogin', | ||
request, | ||
metadata || {}, | ||
methodInfo_AccessService_RunLogin); | ||
methodInfo_Security_RunLogin); | ||
}; | ||
@@ -213,3 +213,3 @@ | ||
*/ | ||
const methodInfo_AccessService_RunLoginDefault = new grpc.web.AbstractClientBase.MethodInfo( | ||
const methodInfo_Security_RunLoginDefault = new grpc.web.AbstractClientBase.MethodInfo( | ||
proto.access.Session, | ||
@@ -234,9 +234,9 @@ /** @param {!proto.access.LoginRequest} request */ | ||
*/ | ||
proto.access.AccessServiceClient.prototype.runLoginDefault = | ||
proto.access.SecurityClient.prototype.runLoginDefault = | ||
function(request, metadata, callback) { | ||
return this.client_.rpcCall(this.hostname_ + | ||
'/access.AccessService/RunLoginDefault', | ||
'/access.Security/RunLoginDefault', | ||
request, | ||
metadata || {}, | ||
methodInfo_AccessService_RunLoginDefault, | ||
methodInfo_Security_RunLoginDefault, | ||
callback); | ||
@@ -254,9 +254,9 @@ }; | ||
*/ | ||
proto.access.AccessServicePromiseClient.prototype.runLoginDefault = | ||
proto.access.SecurityPromiseClient.prototype.runLoginDefault = | ||
function(request, metadata) { | ||
return this.client_.unaryCall(this.hostname_ + | ||
'/access.AccessService/RunLoginDefault', | ||
'/access.Security/RunLoginDefault', | ||
request, | ||
metadata || {}, | ||
methodInfo_AccessService_RunLoginDefault); | ||
methodInfo_Security_RunLoginDefault); | ||
}; | ||
@@ -271,3 +271,3 @@ | ||
*/ | ||
const methodInfo_AccessService_RunLogout = new grpc.web.AbstractClientBase.MethodInfo( | ||
const methodInfo_Security_RunLogout = new grpc.web.AbstractClientBase.MethodInfo( | ||
proto.access.Session, | ||
@@ -292,9 +292,9 @@ /** @param {!proto.access.LogoutRequest} request */ | ||
*/ | ||
proto.access.AccessServiceClient.prototype.runLogout = | ||
proto.access.SecurityClient.prototype.runLogout = | ||
function(request, metadata, callback) { | ||
return this.client_.rpcCall(this.hostname_ + | ||
'/access.AccessService/RunLogout', | ||
'/access.Security/RunLogout', | ||
request, | ||
metadata || {}, | ||
methodInfo_AccessService_RunLogout, | ||
methodInfo_Security_RunLogout, | ||
callback); | ||
@@ -312,9 +312,9 @@ }; | ||
*/ | ||
proto.access.AccessServicePromiseClient.prototype.runLogout = | ||
proto.access.SecurityPromiseClient.prototype.runLogout = | ||
function(request, metadata) { | ||
return this.client_.unaryCall(this.hostname_ + | ||
'/access.AccessService/RunLogout', | ||
'/access.Security/RunLogout', | ||
request, | ||
metadata || {}, | ||
methodInfo_AccessService_RunLogout); | ||
methodInfo_Security_RunLogout); | ||
}; | ||
@@ -329,3 +329,3 @@ | ||
*/ | ||
const methodInfo_AccessService_GetUserInfoFromSession = new grpc.web.AbstractClientBase.MethodInfo( | ||
const methodInfo_Security_GetUserInfoFromSession = new grpc.web.AbstractClientBase.MethodInfo( | ||
proto.access.UserInfoValue, | ||
@@ -350,9 +350,9 @@ /** @param {!proto.access.UserInfoRequest} request */ | ||
*/ | ||
proto.access.AccessServiceClient.prototype.getUserInfoFromSession = | ||
proto.access.SecurityClient.prototype.getUserInfoFromSession = | ||
function(request, metadata, callback) { | ||
return this.client_.rpcCall(this.hostname_ + | ||
'/access.AccessService/GetUserInfoFromSession', | ||
'/access.Security/GetUserInfoFromSession', | ||
request, | ||
metadata || {}, | ||
methodInfo_AccessService_GetUserInfoFromSession, | ||
methodInfo_Security_GetUserInfoFromSession, | ||
callback); | ||
@@ -370,9 +370,9 @@ }; | ||
*/ | ||
proto.access.AccessServicePromiseClient.prototype.getUserInfoFromSession = | ||
proto.access.SecurityPromiseClient.prototype.getUserInfoFromSession = | ||
function(request, metadata) { | ||
return this.client_.unaryCall(this.hostname_ + | ||
'/access.AccessService/GetUserInfoFromSession', | ||
'/access.Security/GetUserInfoFromSession', | ||
request, | ||
metadata || {}, | ||
methodInfo_AccessService_GetUserInfoFromSession); | ||
methodInfo_Security_GetUserInfoFromSession); | ||
}; | ||
@@ -387,3 +387,3 @@ | ||
*/ | ||
const methodInfo_AccessService_GetMenuAndChild = new grpc.web.AbstractClientBase.MethodInfo( | ||
const methodInfo_Security_GetMenuAndChild = new grpc.web.AbstractClientBase.MethodInfo( | ||
proto.access.Menu, | ||
@@ -408,9 +408,9 @@ /** @param {!proto.access.UserInfoRequest} request */ | ||
*/ | ||
proto.access.AccessServiceClient.prototype.getMenuAndChild = | ||
proto.access.SecurityClient.prototype.getMenuAndChild = | ||
function(request, metadata, callback) { | ||
return this.client_.rpcCall(this.hostname_ + | ||
'/access.AccessService/GetMenuAndChild', | ||
'/access.Security/GetMenuAndChild', | ||
request, | ||
metadata || {}, | ||
methodInfo_AccessService_GetMenuAndChild, | ||
methodInfo_Security_GetMenuAndChild, | ||
callback); | ||
@@ -428,9 +428,9 @@ }; | ||
*/ | ||
proto.access.AccessServicePromiseClient.prototype.getMenuAndChild = | ||
proto.access.SecurityPromiseClient.prototype.getMenuAndChild = | ||
function(request, metadata) { | ||
return this.client_.unaryCall(this.hostname_ + | ||
'/access.AccessService/GetMenuAndChild', | ||
'/access.Security/GetMenuAndChild', | ||
request, | ||
metadata || {}, | ||
methodInfo_AccessService_GetMenuAndChild); | ||
methodInfo_Security_GetMenuAndChild); | ||
}; | ||
@@ -445,3 +445,3 @@ | ||
*/ | ||
const methodInfo_AccessService_RunChangeRole = new grpc.web.AbstractClientBase.MethodInfo( | ||
const methodInfo_Security_RunChangeRole = new grpc.web.AbstractClientBase.MethodInfo( | ||
proto.access.Session, | ||
@@ -466,9 +466,9 @@ /** @param {!proto.access.UserInfoRequest} request */ | ||
*/ | ||
proto.access.AccessServiceClient.prototype.runChangeRole = | ||
proto.access.SecurityClient.prototype.runChangeRole = | ||
function(request, metadata, callback) { | ||
return this.client_.rpcCall(this.hostname_ + | ||
'/access.AccessService/RunChangeRole', | ||
'/access.Security/RunChangeRole', | ||
request, | ||
metadata || {}, | ||
methodInfo_AccessService_RunChangeRole, | ||
methodInfo_Security_RunChangeRole, | ||
callback); | ||
@@ -486,9 +486,9 @@ }; | ||
*/ | ||
proto.access.AccessServicePromiseClient.prototype.runChangeRole = | ||
proto.access.SecurityPromiseClient.prototype.runChangeRole = | ||
function(request, metadata) { | ||
return this.client_.unaryCall(this.hostname_ + | ||
'/access.AccessService/RunChangeRole', | ||
'/access.Security/RunChangeRole', | ||
request, | ||
metadata || {}, | ||
methodInfo_AccessService_RunChangeRole); | ||
methodInfo_Security_RunChangeRole); | ||
}; | ||
@@ -503,3 +503,3 @@ | ||
*/ | ||
const methodInfo_AccessService_GetSession = new grpc.web.AbstractClientBase.MethodInfo( | ||
const methodInfo_Security_GetSession = new grpc.web.AbstractClientBase.MethodInfo( | ||
proto.access.Session, | ||
@@ -524,9 +524,9 @@ /** @param {!proto.access.SessionRequest} request */ | ||
*/ | ||
proto.access.AccessServiceClient.prototype.getSession = | ||
proto.access.SecurityClient.prototype.getSession = | ||
function(request, metadata, callback) { | ||
return this.client_.rpcCall(this.hostname_ + | ||
'/access.AccessService/GetSession', | ||
'/access.Security/GetSession', | ||
request, | ||
metadata || {}, | ||
methodInfo_AccessService_GetSession, | ||
methodInfo_Security_GetSession, | ||
callback); | ||
@@ -544,9 +544,9 @@ }; | ||
*/ | ||
proto.access.AccessServicePromiseClient.prototype.getSession = | ||
proto.access.SecurityPromiseClient.prototype.getSession = | ||
function(request, metadata) { | ||
return this.client_.unaryCall(this.hostname_ + | ||
'/access.AccessService/GetSession', | ||
'/access.Security/GetSession', | ||
request, | ||
metadata || {}, | ||
methodInfo_AccessService_GetSession); | ||
methodInfo_Security_GetSession); | ||
}; | ||
@@ -553,0 +553,0 @@ |
Sorry, the diff of this file is not supported yet
210381