@tomei/sso
Version:
Tomei SSO Package
70 lines (69 loc) • 2.4 kB
TypeScript
import { ObjectBase } from '@tomei/general';
import { User } from '../login-user/user';
export declare class UserSystemAccess extends ObjectBase {
ObjectType: string;
TableName: string;
ObjectName: string;
ObjectId: string;
UserSystemAccessId: number;
UserId: number;
SystemCode: string;
Status: string;
private _CreatedAt;
private _UpdatedAt;
private _CreatedById;
private _UpdatedById;
get CreatedAt(): Date;
get UpdatedAt(): Date;
get CreatedById(): number;
get UpdatedById(): number;
private static _Repository;
private static _UserPrivilegeRepo;
private constructor();
static init(dbTransaction: any, UserSystemAccessId?: number): Promise<UserSystemAccess>;
static findAll(loginUser: User, dbTransaction: any, whereOption: {
UserId: number;
SystemCode?: string;
}, pagination: {
page: number;
limit: number;
}): Promise<{
records: {
SystemName: string;
SystemCode: string;
Status: string;
CreatedBy: string;
CreatedAt: Date;
UpdatedBy: string;
UpdatedAt: Date;
}[];
pagination: {
currentPage: number;
pageSize: number;
totalRecords: number;
};
}>;
static findAllUsers(loginUser: User, dbTransaction: any, SystemCode: string, Page: number, Rows: number, Search: {
UserId?: string | number;
Status?: string;
}): Promise<any>;
static findAllUserPrivileges(loginUser: User, dbTransaction: any, SystemCode: string, search?: {
UserId?: string[];
Status?: string;
}): Promise<Promise<any>[]>;
static findAllUserRoles(loginUser: User, dbTransaction: any, SystemCode: string, search?: {
UserId?: string[];
Status?: string;
}): Promise<any[]>;
static createAccess(loginUser: User, dbTransaction: any, UserId: string, SystemCode: string, Status: string): Promise<UserSystemAccess>;
update(loginUser: User, dbTransaction: any, Status: string): Promise<{
UserId: number;
SystemCode: string;
Status: string;
CreatedById: number;
CreatedAt: Date;
UpdatedById: number;
UpdatedAt: Date;
}>;
static remove(loginUser: User, dbTransaction: any, UserSystemAccessId: number): Promise<void>;
}