From 015279bba9ebacd407144e8f41f975ebdc73dc22 Mon Sep 17 00:00:00 2001 From: ssanjay1 <67482244+ssanjay1@users.noreply.github.com> Date: Fri, 22 Nov 2024 15:29:43 -0500 Subject: [PATCH] Add preview flag for interface API (#1015) * add preview flag * add changeset * fix index file --- .changeset/polite-hotels-hope.md | 5 +++++ packages/client/src/object/fetchPage.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/polite-hotels-hope.md diff --git a/.changeset/polite-hotels-hope.md b/.changeset/polite-hotels-hope.md new file mode 100644 index 000000000..53b58cf9d --- /dev/null +++ b/.changeset/polite-hotels-hope.md @@ -0,0 +1,5 @@ +--- +"@osdk/client": patch +--- + +Fix use of new interfaces api with preview flag. diff --git a/packages/client/src/object/fetchPage.ts b/packages/client/src/object/fetchPage.ts index 3f4444bdb..a7ce82d21 100644 --- a/packages/client/src/object/fetchPage.ts +++ b/packages/client/src/object/fetchPage.ts @@ -135,6 +135,7 @@ async function fetchInterfacePage< select: ((args?.$select as string[] | undefined) ?? []), excludeRid: !args?.$includeRid, }), + { preview: true }, ); return Promise.resolve({ data: await client.objectFactory2(