delta-store
Version:
An API for a store with change records
24 lines (23 loc) • 1.32 kB
TypeScript
/**
* Created by Papa on 1/7/2016.
*/
import { GoogleDriveAdaptor } from './drive/GoogleDriveAdaptor';
import { GoogleRealtimeAdaptor } from './realtime/GoogleRealtimeAdaptor';
import { SharingAdaptor, ChangeListShareInfo } from '../SharingAdaptor';
import { SharedChangeList } from '../RepositoryApi';
import { GoogleDrive } from './drive/GoogleDrive';
import { GoogleRealtime } from './realtime/GoogleRealtime';
import { GoogleChangeListShareInfo } from './GoogleSharingModel';
import { GoogleSetupInfo } from './GoogleSharingModel';
export declare class GoogleSharingAdaptor implements SharingAdaptor {
private drive;
private driveAdaptor;
private realtime;
private realtimeAdaptor;
constructor(drive: GoogleDrive, driveAdaptor: GoogleDriveAdaptor, realtime: GoogleRealtime, realtimeAdaptor: GoogleRealtimeAdaptor);
setupInfoBelongsTo(setupInfo: GoogleSetupInfo, setupInfos: GoogleSetupInfo[]): boolean;
initialize(setupInfo: GoogleSetupInfo): Promise<GoogleSetupInfo>;
createChangeList(shareInfo: ChangeListShareInfo, setupInfo: GoogleSetupInfo): Promise<SharedChangeList>;
findExistingChangeLists(setupInfo: GoogleSetupInfo): Promise<GoogleChangeListShareInfo[]>;
loadChangeList(shareInfo: GoogleChangeListShareInfo, setupInfo: GoogleSetupInfo): Promise<SharedChangeList>;
}