From 597bffaab396931880c6986a889cbe9816a266e2 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Fri, 6 Dec 2024 09:53:34 +0200 Subject: [PATCH] fix(framework): add missing query type argument in request types (#10456) * fix(framework): add missing query type argument in request types * fix types --- .changeset/thick-cars-smash.md | 5 +++++ packages/core/framework/src/http/types.ts | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .changeset/thick-cars-smash.md diff --git a/.changeset/thick-cars-smash.md b/.changeset/thick-cars-smash.md new file mode 100644 index 0000000000000..f28372c575cc3 --- /dev/null +++ b/.changeset/thick-cars-smash.md @@ -0,0 +1,5 @@ +--- +"@medusajs/framework": patch +--- + +fix(framework): add missing query type argument in request types diff --git a/packages/core/framework/src/http/types.ts b/packages/core/framework/src/http/types.ts index 1adff9d130563..9596b7e1b4a17 100644 --- a/packages/core/framework/src/http/types.ts +++ b/packages/core/framework/src/http/types.ts @@ -163,13 +163,14 @@ export interface PublishableKeyContext { sales_channel_ids: string[] } -export interface AuthenticatedMedusaRequest - extends MedusaRequest { +export interface AuthenticatedMedusaRequest> + extends MedusaRequest { auth_context: AuthContext publishable_key_context?: PublishableKeyContext } -export interface MedusaStoreRequest extends MedusaRequest { +export interface MedusaStoreRequest> + extends MedusaRequest { auth_context?: AuthContext publishable_key_context: PublishableKeyContext }