From 87c14de0b16ec6437263ae13526d0972bc13843e Mon Sep 17 00:00:00 2001 From: Bas Kiers Date: Fri, 10 Jan 2025 16:12:57 +0100 Subject: [PATCH 1/2] feat: add locale property to resources.search event --- src/requests/typings/resources.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/requests/typings/resources.ts b/src/requests/typings/resources.ts index 4cedff1c..d87411d5 100644 --- a/src/requests/typings/resources.ts +++ b/src/requests/typings/resources.ts @@ -6,6 +6,7 @@ export type ResourcesSearchRequest = { resourceType: string query: string limit?: number + locale?: string pages?: { nextCursor: string } From 16269b031c90e5c903a38284c25155c90061d144 Mon Sep 17 00:00:00 2001 From: Bas Kiers Date: Fri, 10 Jan 2025 16:16:58 +0100 Subject: [PATCH 2/2] fix: update resource.search event to match the type in functions-api repo --- src/requests/typings/resources.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/requests/typings/resources.ts b/src/requests/typings/resources.ts index d87411d5..9744db50 100644 --- a/src/requests/typings/resources.ts +++ b/src/requests/typings/resources.ts @@ -4,8 +4,8 @@ export const RESOURCES_LOOKUP_EVENT = 'resources.lookup' export type ResourcesSearchRequest = { type: 'resources.search' resourceType: string - query: string - limit?: number + query?: string + limit: number locale?: string pages?: { nextCursor: string @@ -26,7 +26,7 @@ export type ResourcesLookupRequest = Record