@tomei/sso
Version:
Tomei SSO Package
65 lines (64 loc) • 2.26 kB
TypeScript
import { ObjectBase } from '@tomei/general';
import { User as UserClass } from '../login-user/user';
import { User as UserLogin } from '../login-user/user';
export declare class UserPrivilege extends ObjectBase {
TableName: string;
ObjectType: string;
ObjectName: string;
ObjectId: string;
UserPrivilegeId: number;
UserId: number;
SystemPrivilegeId: string;
Status: string;
private _CreatedById;
private _UpdatedById;
private _CreatedAt;
private _UpdatedAt;
get CreatedById(): number;
get UpdatedById(): number;
get CreatedAt(): Date;
get UpdatedAt(): Date;
private static _Repository;
private static _UserGroupRepository;
private static _GroupPrivilegeRepository;
private static _SystemPrivilegeRepository;
private constructor();
static init(dbTransaction?: any, UserPrivilegeId?: number): Promise<UserPrivilege>;
static findAll(loginUser: UserClass, dbTransaction: any, whereOption: {
UserId: number;
SystemCode?: string;
}, pagination: {
page: number;
limit: number;
}): Promise<{
records: {
UserPrivilegeId: number;
SystemPrivilegeId: string;
PrivilegeCode: string;
SystemName: string;
Status: string;
CreatedBy: string;
CreatedAt: Date;
UpdatedBy: string;
UpdatedAt: Date;
}[];
pagination: {
currentPage: number;
pageSize: number;
totalRecords: number;
};
}>;
static findAllInheritedPrivileges(UserId: number, loginUser: UserClass, dbTransaction: any): Promise<any[]>;
static assignPrivileges(loginUser: UserLogin, dbTransaction: any, UserId: string, SystemPrivilegeId: string, Status: string): Promise<UserPrivilege>;
update(loginUser: UserLogin, dbTransaction: any, Status: string): Promise<{
UserPrivilegeId: number;
UserId: number;
SystemPrivilegeId: string;
Status: string;
CreatedById: number;
CreatedAt: Date;
UpdatedById: number;
UpdatedAt: Date;
}>;
static remove(loginUser: UserLogin, dbTransaction: any, UserPrivilegeId: number): Promise<void>;
}