@tomei/sso
Version:
Tomei SSO Package
40 lines (39 loc) • 1.52 kB
TypeScript
import { ObjectBase } from '@tomei/general';
import { LoginUser } from '../login-user/login-user';
import { ISystemSearchAttr } from '../../interfaces/system-search-attr.interface';
export declare class System extends ObjectBase {
ObjectId: string;
ObjectName: string;
TableName: string;
ObjectType: string;
private static _htSystem;
SystemCode: string;
Name: string;
Description: string;
AccessURL: string;
GooglePlayURL: string;
AppleStoreURL: string;
APIKey: string;
APISecret: string;
Status: string;
private _CreatedById;
private _CreatedAt;
private _UpdatedById;
private _UpdatedAt;
private static _Repo;
get CreatedById(): number;
get CreatedAt(): Date;
get UpdatedById(): number;
get UpdatedAt(): Date;
private constructor();
static init(dbTransaction: any, SystemCode?: string): Promise<System>;
createSystem(loginUser: LoginUser, dbTransaction: any): Promise<void>;
protected static checkDuplicateSystemCode(dbTransaction: any, systemCode: string): Promise<void>;
setSystemCode(dbTransaction: any, systemCode: string): Promise<void>;
static findAll(dbTransaction: any, loginUser: LoginUser, page?: number, rows?: number, search?: ISystemSearchAttr): Promise<{
count: number;
systems: System[];
}>;
static renewApiKeyAndSecret(loginUser: LoginUser, dbTransaction: any, systemCode: string): Promise<System>;
static loadSystem(dbTransaction: any): Promise<string>;
}