import * as factory from '../factory'; import { ISearchResult, Service } from '../service'; export interface IAuthorizeResult { code: string; } export interface IPublishIdentifierParams { project: { id: string; }; } export interface IPublishIdentifierResult { identifier: string; } /** * 許可証サービス */ export declare class PermitService extends Service { /** * 識別子発行 */ publishIdentifier(params: IPublishIdentifierParams[]): Promise; /** * 検索 */ search(params: factory.product.IServiceOutputSearchConditions): Promise>; /** * 許可証照会 * 存在しない場合、ステータスコード404を返します */ findByAccessCode(params: { identifier: string; accessCode: string; /** * 許可証発行元のプロダクト */ issuedThrough: { id: string; }; }): Promise; /** * 許可証承認 */ authorize(params: { object: { /** * 識別子 * メンバーシップコードなど */ identifier: string; accessCode: string; /** * 許可証発行元のプロダクト */ issuedThrough: { id: string; }; }; }): Promise; }