61 lines
3.0 KiB
TypeScript
61 lines
3.0 KiB
TypeScript
import { OakUserException, OakException } from "oak-domain/lib/types";
|
|
import { EntityDict } from '../oak-app-domain';
|
|
import { EntityDict as BaseEntityDict, SelectOpResult } from 'oak-domain/lib/types/Entity';
|
|
export declare class OakNotEnoughMoneyException<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
constructor(message?: string);
|
|
}
|
|
export declare class OakDistinguishUserException<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
userId: string;
|
|
usingPassword: boolean;
|
|
usingIdCard: boolean;
|
|
usingWechatUser: boolean;
|
|
usingEmail: boolean;
|
|
constructor(userId: string, usingPassword: boolean, usingIdCard: boolean, usingWechatUser: boolean, usingEmail: boolean, message?: string);
|
|
toString(): string;
|
|
}
|
|
export declare class OakChangeLoginWayException<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
userId: string;
|
|
usingIdCard: boolean;
|
|
usingWechatUser: boolean;
|
|
usingEmail: boolean;
|
|
constructor(userId: string, usingIdCard: boolean, usingWechatUser: boolean, usingEmail: boolean, message?: string);
|
|
toString(): string;
|
|
}
|
|
export declare class OakMobileUnsetException<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
constructor(message?: string);
|
|
}
|
|
export declare class OakUserInfoUncompletedException<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
constructor(message?: string);
|
|
}
|
|
export declare class OakUserDisabledException<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
constructor(message?: string);
|
|
}
|
|
export declare class OakTokenExpiredException<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
constructor(message?: string);
|
|
}
|
|
export declare class OakMpHaveToSubscribeMessage extends Error {
|
|
rejectedMessageType: string[];
|
|
constructor(rejectedMessageType: string[], message?: string);
|
|
}
|
|
/**
|
|
* 前端用户信息还没加载完整
|
|
*/
|
|
export declare class OakUserInfoLoadingException<ED extends EntityDict & BaseEntityDict> extends OakException<ED> {
|
|
constructor(message?: string);
|
|
}
|
|
/**
|
|
* 前端application信息还没加载完整
|
|
*/
|
|
export declare class OakApplicationLoadingException<ED extends EntityDict & BaseEntityDict> extends OakException<ED> {
|
|
constructor(message?: string);
|
|
}
|
|
export declare class OakUploadException<ED extends EntityDict & BaseEntityDict> extends OakUserException<ED> {
|
|
constructor(message?: string);
|
|
}
|
|
export declare function makeException<ED extends EntityDict & BaseEntityDict>(data: {
|
|
name: string;
|
|
message?: string;
|
|
opRecords: SelectOpResult<ED>;
|
|
[A: string]: any;
|
|
}): OakUploadException<EntityDict & BaseEntityDict> | OakTokenExpiredException<EntityDict & BaseEntityDict> | OakUserDisabledException<EntityDict & BaseEntityDict> | OakDistinguishUserException<EntityDict & BaseEntityDict> | OakException<ED> | OakNotEnoughMoneyException<EntityDict & BaseEntityDict> | OakMobileUnsetException<EntityDict & BaseEntityDict> | OakUserInfoUncompletedException<EntityDict & BaseEntityDict> | undefined;
|