oak-general-business/es/aspects/user.d.ts

26 lines
829 B
TypeScript

import { EntityDict } from "../oak-app-domain";
import { BRC } from "../types/RuntimeCxt";
export declare function mergeUser<ED extends EntityDict>(params: {
from: string;
to: string;
mergeMobile?: true;
mergeEmail?: true;
mergeWechatUser?: true;
}, context: BRC<ED>, innerLogic?: boolean): Promise<void>;
export declare function getChangePasswordChannels<ED extends EntityDict>(params: {
userId: string;
}, context: BRC<ED>, innerLogic?: boolean): Promise<string[]>;
export declare function updateUserPassword<ED extends EntityDict>(params: {
userId: string;
prevPassword?: string;
captcha?: string;
newPassword: string;
mobile?: string;
}, context: BRC<ED>, innerLogic?: boolean): Promise<{
result: string;
times: number;
} | {
result: string;
times?: undefined;
}>;