@tomei/sso
Version:
Tomei SSO Package
53 lines (52 loc) • 2.03 kB
TypeScript
import { ObjectBase } from '@tomei/general';
import { ISystemPrivilegeAttr } from '../../interfaces/system-privilege.interface';
import { LoginUser } from '../login-user/login-user';
import { ISystemPrivilegeSearch } from '../../interfaces/system-privilege-search.interface';
export declare class SystemPrivilege extends ObjectBase {
ObjectType: string;
TableName: string;
ObjectId: string;
PrivilegeCode: string;
SystemCode: string;
ObjectName: string;
Description: string;
Status: string;
private _CreatedAt;
private _UpdatedAt;
private _CreatedById;
private _UpdatedById;
get SystemPrivilegeId(): string;
set SystemPrivilegeId(value: string);
get CreatedAt(): Date;
get UpdatedAt(): Date;
get CreatedById(): number;
get UpdatedById(): number;
private static _Repository;
private static _SystemRepository;
private constructor();
setAttributes(systemPrivilegeAttr: ISystemPrivilegeAttr): void;
static init(dbTransaction: any, SystemPrivilegeId?: string): Promise<SystemPrivilege>;
static create(loginUser: LoginUser, dbTransaction: any, systemPrivilege: SystemPrivilege): Promise<SystemPrivilege>;
static findAll(loginUser: LoginUser, dbTransaction: any, page?: number, row?: number, search?: ISystemPrivilegeSearch): Promise<{
count: number;
SystemPrivileges: SystemPrivilege[];
}>;
static loadAllPrivileges(dbTransaction: any, systemCode: string): Promise<string>;
update(loginUser: LoginUser, dbTransaction: any, privilege: {
PrivilegeCode?: string;
Description?: string;
SystemCode?: string;
Status?: string;
}): Promise<{
SystemPrivilegeId: string;
PrivilegeCode: string;
Description: string;
SystemCode: string;
Status: string;
CreatedById: number;
CreatedAt: Date;
UpdatedById: number;
UpdatedAt: Date;
}>;
delete(dbTransaction: any, loginUser: LoginUser): Promise<this>;
}