chore: auto-generate protobuf files [skip ci]
This commit is contained in:
12
gen/rbax.ts
12
gen/rbax.ts
@@ -40,13 +40,13 @@ export interface GetAllRolesResponse {
|
||||
|
||||
export const RBAC_V1_PACKAGE_NAME = "rbac.v1";
|
||||
|
||||
export interface LdapAuthServiceClient {
|
||||
export interface RbacServiceClient {
|
||||
getAllPermissions(request: GetAllPermissionsRequest, metadata?: Metadata): Observable<GetAllPermissionsResponse>;
|
||||
|
||||
getAllRoles(request: GetAllRolesRequest, metadata?: Metadata): Observable<GetAllRolesResponse>;
|
||||
}
|
||||
|
||||
export interface LdapAuthServiceController {
|
||||
export interface RbacServiceController {
|
||||
getAllPermissions(
|
||||
request: GetAllPermissionsRequest,
|
||||
metadata?: Metadata,
|
||||
@@ -58,19 +58,19 @@ export interface LdapAuthServiceController {
|
||||
): Promise<GetAllRolesResponse> | Observable<GetAllRolesResponse> | GetAllRolesResponse;
|
||||
}
|
||||
|
||||
export function LdapAuthServiceControllerMethods() {
|
||||
export function RbacServiceControllerMethods() {
|
||||
return function (constructor: Function) {
|
||||
const grpcMethods: string[] = ["getAllPermissions", "getAllRoles"];
|
||||
for (const method of grpcMethods) {
|
||||
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
||||
GrpcMethod("LdapAuthService", method)(constructor.prototype[method], method, descriptor);
|
||||
GrpcMethod("RbacService", method)(constructor.prototype[method], method, descriptor);
|
||||
}
|
||||
const grpcStreamMethods: string[] = [];
|
||||
for (const method of grpcStreamMethods) {
|
||||
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
||||
GrpcStreamMethod("LdapAuthService", method)(constructor.prototype[method], method, descriptor);
|
||||
GrpcStreamMethod("RbacService", method)(constructor.prototype[method], method, descriptor);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export const LDAP_AUTH_SERVICE_NAME = "LdapAuthService";
|
||||
export const RBAC_SERVICE_NAME = "RbacService";
|
||||
|
||||
Reference in New Issue
Block a user