From 468b81c2cbdbc24b26e31bf6e347d3633a4fb4f8 Mon Sep 17 00:00:00 2001 From: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> Date: Tue, 22 Jul 2025 19:48:35 +0200 Subject: [PATCH] fix(modules-sdk): Entity types (#13002) * fix(modules-sdk): Entity types * Create forty-laws-wait.md --- .changeset/forty-laws-wait.md | 5 +++++ .../types/src/modules-sdk/remote-query-object-from-string.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/forty-laws-wait.md diff --git a/.changeset/forty-laws-wait.md b/.changeset/forty-laws-wait.md new file mode 100644 index 0000000000..5af9f2997c --- /dev/null +++ b/.changeset/forty-laws-wait.md @@ -0,0 +1,5 @@ +--- +"@medusajs/types": patch +--- + +fix(modules-sdk): Entity types diff --git a/packages/core/types/src/modules-sdk/remote-query-object-from-string.ts b/packages/core/types/src/modules-sdk/remote-query-object-from-string.ts index 9cf833c110..4263a5d664 100644 --- a/packages/core/types/src/modules-sdk/remote-query-object-from-string.ts +++ b/packages/core/types/src/modules-sdk/remote-query-object-from-string.ts @@ -80,7 +80,7 @@ export type RemoteQueryInput = /** * The name of the entity to retrieve. For example, `product`. */ - entity: TEntry + entity: TEntry | keyof RemoteQueryEntryPoints /** * The fields and relations to retrieve in the entity. */