import { factory } from '../factory'; export interface IAbout { identifier: string; typeOf: 'Thing'; } export interface IAudience { identifier: string; typeOf: 'Audience'; } export interface IConcurrentLock { project: { id: string; typeOf: factory.organizationType.Project; }; typeOf: factory.creativeWorkType.Certification; about: IAbout; dateCreated: Date; expires: Date; audience: IAudience; } export type ILockParams = Pick; export type IUnlockParams = Pick; export type IGetHolderResult = string | null; /** * 抽象同時実行ロックリポジトリ */ export declare abstract class AbstractConcurrentLockRepo { abstract lock(lockKey: ILockParams): Promise; abstract unlock(params: IUnlockParams): Promise; }