Skip to content

Commit

Permalink
Merge pull request #232 from tharropoulos/api-key-schema
Browse files Browse the repository at this point in the history
fix: add autodelete parameter to api key create schema
  • Loading branch information
jasonbosco authored Oct 3, 2024
2 parents 30781f6 + 17c0fe5 commit 4fcc75c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Typesense/Key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface KeyCreateSchema {
value?: string;
value_prefix?: string;
expires_at?: number;
autodelete?: boolean;
}

export interface KeyDeleteSchema {
Expand All @@ -19,7 +20,10 @@ export interface KeySchema extends KeyCreateSchema {
}

export default class Key {
constructor(private id: number, private apiCall: ApiCall) {}
constructor(
private id: number,
private apiCall: ApiCall,
) {}

async retrieve(): Promise<KeySchema> {
return this.apiCall.get<KeySchema>(this.endpointPath());
Expand Down

0 comments on commit 4fcc75c

Please sign in to comment.