Skip to content

Commit

Permalink
fix(api-keys): fix typing issues (#1270)
Browse files Browse the repository at this point in the history
* fix(api-keys): fix GetApiKeyResponse createdAt attribute typing

* fix(api-keys): missing attribute in UpdateApiKeyOptions
  • Loading branch information
kombucha authored Apr 29, 2021
1 parent 3bb8e2d commit fec87a9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/client-search/src/types/GetApiKeyResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { ApiKeyACLType } from '.';

export type GetApiKeyResponse = {
/**
* A Unix timestamp used to define the expiration date of the API key.
* The api key value
*/
value: string;

/**
* Date of creation.
* Date of creation (Unix timestamp).
*/
createdAt: string;
createdAt: number;

/**
* List of permissions the key contains.
Expand Down
7 changes: 7 additions & 0 deletions packages/client-search/src/types/UpdateApiKeyOptions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { ApiKeyACLType } from '.';

export type UpdateApiKeyOptions = {
/**
* List of permissions the key contains.
*/
readonly acl?: readonly ApiKeyACLType[];

/**
* A Unix timestamp used to define the expiration date of the API key.
*/
Expand Down

0 comments on commit fec87a9

Please sign in to comment.