78 lines
4.1 KiB
TypeScript
78 lines
4.1 KiB
TypeScript
import { OakUserException, OakException, OpRecord } from "oak-domain/lib/types";
|
|
import { EntityDict } from '../oak-app-domain';
|
|
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
|
export declare class OakDistinguishUserException<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
userId: string;
|
|
usePassword: boolean;
|
|
useIdCard: boolean;
|
|
useWechatUser: boolean;
|
|
useEmail: boolean;
|
|
useMobile: boolean;
|
|
constructor(userId: string, usePassword: boolean, useIdCard: boolean, useWechatUser: boolean, useEmail: boolean, useMobile: boolean, message?: string, _module?: string, params?: Record<string, any>);
|
|
toString(): string;
|
|
}
|
|
export declare class OakChangeLoginWayException<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
userId: string;
|
|
useIdCard: boolean;
|
|
useWechatUser: boolean;
|
|
useEmail: boolean;
|
|
useMobile: boolean;
|
|
constructor(userId: string, useIdCard: boolean, useWechatUser: boolean, useEmail: boolean, useMobile: boolean, message?: string, _module?: string, params?: Record<string, any>);
|
|
toString(): string;
|
|
}
|
|
export declare class OakMobileUnsetException<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
constructor(message?: string, _module?: string, params?: Record<string, any>);
|
|
}
|
|
export declare class OakAuthenticationException<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
constructor(message?: string, _module?: string, params?: Record<string, any>);
|
|
}
|
|
export declare class OakUserInfoUncompletedException<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
constructor(message?: string, _module?: string, params?: Record<string, any>);
|
|
}
|
|
export declare class OakUserDisabledException<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
constructor(message?: string, _module?: string, params?: Record<string, any>);
|
|
}
|
|
export declare class OakTokenExpiredException<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
constructor(message?: string, _module?: string, params?: Record<string, any>);
|
|
}
|
|
export declare class OakMpHaveToSubscribeMessage<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
rejectedMessageType: string[];
|
|
constructor(rejectedMessageType: string[], message?: string, _module?: string, params?: Record<string, any>);
|
|
}
|
|
/**
|
|
* 前端用户信息还没加载完整
|
|
*/
|
|
export declare class OakUserInfoLoadingException<ED extends EntityDict & BaseEntityDict> extends OakException<ED> {
|
|
constructor(message?: string, _module?: string, params?: Record<string, any>);
|
|
}
|
|
/**
|
|
* 前端application信息还没加载完整
|
|
*/
|
|
export declare class OakApplicationLoadingException<ED extends EntityDict & BaseEntityDict> extends OakException<ED> {
|
|
constructor(message?: string, _module?: string, params?: Record<string, any>);
|
|
}
|
|
export declare class OakUploadException<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
constructor(message?: string, _module?: string, params?: Record<string, any>);
|
|
}
|
|
export declare class OakPasswordUnset<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
constructor(message?: string, _module?: string, params?: Record<string, any>);
|
|
}
|
|
export declare class OakHasToVerifyPassword<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
constructor(message?: string, _module?: string, params?: Record<string, any>);
|
|
}
|
|
export declare class OakCantChangeVerifiedUser<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
constructor(message?: string, _module?: string, params?: Record<string, any>);
|
|
}
|
|
export declare class OakIncompleteConfig<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
appId: string;
|
|
constructor(appId: string, message?: string, _module?: string, params?: Record<string, any>);
|
|
}
|
|
export declare function makeException<ED extends EntityDict & BaseEntityDict>(data: {
|
|
name: string;
|
|
message?: string;
|
|
opRecords: OpRecord<ED>[];
|
|
_module?: string;
|
|
params?: Record<string, any>;
|
|
[A: string]: any;
|
|
}): OakException<ED> | undefined;
|