import * as factory from '../factory'; import { ISearchResult, Service } from '../service'; import { ISearchOrdersOptions } from './order/factory'; export declare type IPerson = factory.person.IProfile & factory.person.IPerson; /** * 会員サービス */ export declare class PersonService extends Service { /** * 会員作成 */ createIfNotExist(params: { /** * 外部IDPユーザーID */ userId: string; email: string; }): Promise<{ id: string; }>; /** * プロフィール検索 */ getProfile(params: { /** * 未指定の場合`me`がセットされます */ id?: string; iss: string; }): Promise; /** * プロフィール更新 */ updateProfile(params: factory.person.IProfile & { /** * 未指定の場合`me`がセットされます */ id?: string; iss: string; }): Promise; /** * 注文を検索する */ searchOrders(params: factory.order.ISearchConditions & { /** * 未指定の場合`me`がセットされます */ id?: string; } & ISearchOrdersOptions): Promise>; /** * 会員検索 */ search(params: { id?: string; username?: string; email?: string; telephone?: string; givenName?: string; familyName?: string; iss: string; }): Promise>; /** * ユーザー取得 */ findById(params: { /** * 未指定の場合`me`がセットされます */ id?: string; iss: string; }): Promise; /** * 会員削除 */ deleteById(params: { /** * 未指定の場合`me`がセットされます */ id?: string; /** * 管理者による削除の場合、物理削除かどうかを指定できます */ physically?: boolean; iss: string; }): Promise; }