delete rbax failed name file
All checks were successful
Publish / Publish Job (push) Successful in 2m36s
All checks were successful
Publish / Publish Job (push) Successful in 2m36s
This commit is contained in:
76
gen/rbax.ts
76
gen/rbax.ts
@@ -1,76 +0,0 @@
|
||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-ts_proto v2.11.6
|
||||
// protoc v3.21.12
|
||||
// source: rbax.proto
|
||||
|
||||
/* eslint-disable */
|
||||
import type { Metadata } from "@grpc/grpc-js";
|
||||
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
||||
import { Observable } from "rxjs";
|
||||
|
||||
export const protobufPackage = "rbac.v1";
|
||||
|
||||
export interface GetAllPermissionsRequest {
|
||||
userId: string;
|
||||
sessionId: string;
|
||||
}
|
||||
|
||||
export interface GetAllPermissionsResponse {
|
||||
id: string;
|
||||
code: string;
|
||||
description: string;
|
||||
module: string;
|
||||
roles: string[];
|
||||
}
|
||||
|
||||
export interface GetAllRolesRequest {
|
||||
userId: string;
|
||||
sessionId: string;
|
||||
}
|
||||
|
||||
export interface GetAllRolesResponse {
|
||||
id: string;
|
||||
name: string;
|
||||
level: number;
|
||||
permissions: string[];
|
||||
ldapMapping: string[];
|
||||
accounts: string[];
|
||||
}
|
||||
|
||||
export const RBAC_V1_PACKAGE_NAME = "rbac.v1";
|
||||
|
||||
export interface RbacServiceClient {
|
||||
getAllPermissions(request: GetAllPermissionsRequest, metadata?: Metadata): Observable<GetAllPermissionsResponse>;
|
||||
|
||||
getAllRoles(request: GetAllRolesRequest, metadata?: Metadata): Observable<GetAllRolesResponse>;
|
||||
}
|
||||
|
||||
export interface RbacServiceController {
|
||||
getAllPermissions(
|
||||
request: GetAllPermissionsRequest,
|
||||
metadata?: Metadata,
|
||||
): Promise<GetAllPermissionsResponse> | Observable<GetAllPermissionsResponse> | GetAllPermissionsResponse;
|
||||
|
||||
getAllRoles(
|
||||
request: GetAllRolesRequest,
|
||||
metadata?: Metadata,
|
||||
): Promise<GetAllRolesResponse> | Observable<GetAllRolesResponse> | GetAllRolesResponse;
|
||||
}
|
||||
|
||||
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("RbacService", method)(constructor.prototype[method], method, descriptor);
|
||||
}
|
||||
const grpcStreamMethods: string[] = [];
|
||||
for (const method of grpcStreamMethods) {
|
||||
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
||||
GrpcStreamMethod("RbacService", method)(constructor.prototype[method], method, descriptor);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export const RBAC_SERVICE_NAME = "RbacService";
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@lendry-erp/contracts",
|
||||
"version": "1.0.52",
|
||||
"version": "1.0.53",
|
||||
"description": "Protobuf definitions and generated TypeScript types",
|
||||
"type": "commonjs",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
Reference in New Issue
Block a user