UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.

17 lines (16 loc) 920 B
import { IClientInstance, IClientInstanceStore, INewClientInstance } from '../../lib/types/stores/client-instance-store'; export default class FakeClientInstanceStore implements IClientInstanceStore { instances: IClientInstance[]; bulkUpsert(instances: INewClientInstance[]): Promise<void>; delete(key: Pick<INewClientInstance, 'appName' | 'instanceId'>): Promise<void>; setLastSeen(): Promise<void>; deleteAll(): Promise<void>; deleteForApplication(appName: string): Promise<void>; destroy(): void; exists(key: Pick<INewClientInstance, 'appName' | 'instanceId'>): Promise<boolean>; get(key: Pick<INewClientInstance, 'appName' | 'instanceId'>): Promise<IClientInstance>; getAll(): Promise<IClientInstance[]>; getByAppName(appName: string): Promise<IClientInstance[]>; getDistinctApplications(): Promise<string[]>; insert(details: INewClientInstance): Promise<void>; }