unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
10 lines • 582 B
TypeScript
import type { Store } from '../../types/stores/store.js';
import type { CreatePatSchema, PatSchema } from '../../openapi/index.js';
export interface IPatStore extends Store<PatSchema, number> {
create(pat: CreatePatSchema, secret: string, userId: number): Promise<PatSchema>;
getAllByUser(userId: number): Promise<PatSchema[]>;
deleteForUser(id: number, userId: number): Promise<void>;
existsWithDescriptionByUser(description: string, userId: number): Promise<boolean>;
countByUser(userId: number): Promise<number>;
}
//# sourceMappingURL=pat-store-type.d.ts.map