From fec87a93f7642b3887507a836fb0b5800bdf56c2 Mon Sep 17 00:00:00 2001 From: Vincent Lemeunier Date: Thu, 29 Apr 2021 08:58:37 +0200 Subject: [PATCH] fix(api-keys): fix typing issues (#1270) * fix(api-keys): fix GetApiKeyResponse createdAt attribute typing * fix(api-keys): missing attribute in UpdateApiKeyOptions --- packages/client-search/src/types/GetApiKeyResponse.ts | 6 +++--- packages/client-search/src/types/UpdateApiKeyOptions.ts | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/client-search/src/types/GetApiKeyResponse.ts b/packages/client-search/src/types/GetApiKeyResponse.ts index c9196619e..9a894dfcb 100644 --- a/packages/client-search/src/types/GetApiKeyResponse.ts +++ b/packages/client-search/src/types/GetApiKeyResponse.ts @@ -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. diff --git a/packages/client-search/src/types/UpdateApiKeyOptions.ts b/packages/client-search/src/types/UpdateApiKeyOptions.ts index 2bfe7768d..c5c3929f4 100644 --- a/packages/client-search/src/types/UpdateApiKeyOptions.ts +++ b/packages/client-search/src/types/UpdateApiKeyOptions.ts @@ -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. */