From dd3dd61d027c22f0c4529421decfa65bae950efe Mon Sep 17 00:00:00 2001 From: Kenton Duprey Date: Fri, 21 Nov 2025 15:52:44 -0500 Subject: [PATCH 1/2] fix(backend): Correct WaitlistEntryAPI list return type and export WaitlistEntry Fixes TypeScript return type for `WaitlistEntryAPI.list()` to properly reflect that it returns an array of `WaitlistEntry` objects within the paginated response, and exports the `WaitlistEntry` type from the backend package. ## Changes - Fix `WaitlistEntryAPI.list()` return type from `PaginatedResourceResponse` to `PaginatedResourceResponse` - Export `WaitlistEntry` type from `@clerk/backend` package index Signed-off-by: Kenton Duprey --- .changeset/open-streets-drum.md | 12 ++++++++++++ .../backend/src/api/endpoints/WaitlistEntryApi.ts | 2 +- packages/backend/src/index.ts | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .changeset/open-streets-drum.md diff --git a/.changeset/open-streets-drum.md b/.changeset/open-streets-drum.md new file mode 100644 index 00000000000..dc276c1ff68 --- /dev/null +++ b/.changeset/open-streets-drum.md @@ -0,0 +1,12 @@ +--- +'@clerk/backend': minor +'@clerk/shared': minor +--- + +fix(backend): Correct WaitlistEntryAPI list return type and export WaitlistEntry + +Fixes TypeScript return type for `WaitlistEntryAPI.list()` to properly reflect that it returns an array of `WaitlistEntry` objects within the paginated response, and exports the `WaitlistEntry` type from the backend package. + +## Changes +- Fix `WaitlistEntryAPI.list()` return type from `PaginatedResourceResponse` to `PaginatedResourceResponse` +- Export `WaitlistEntry` type from `@clerk/backend` package index diff --git a/packages/backend/src/api/endpoints/WaitlistEntryApi.ts b/packages/backend/src/api/endpoints/WaitlistEntryApi.ts index 3441739ce95..7dc7b7d3f24 100644 --- a/packages/backend/src/api/endpoints/WaitlistEntryApi.ts +++ b/packages/backend/src/api/endpoints/WaitlistEntryApi.ts @@ -37,7 +37,7 @@ export class WaitlistEntryAPI extends AbstractAPI { * @param params Optional parameters (e.g., `query`, `status`, `orderBy`). */ public async list(params: WaitlistEntryListParams = {}) { - return this.request>({ + return this.request>({ method: 'GET', path: basePath, queryParams: params, diff --git a/packages/backend/src/index.ts b/packages/backend/src/index.ts index e8215708399..d21d79367f3 100644 --- a/packages/backend/src/index.ts +++ b/packages/backend/src/index.ts @@ -145,6 +145,7 @@ export type { Token, User, TestingToken, + WaitlistEntry, BillingPlan, BillingSubscription, BillingSubscriptionItem, From c2a2071cb2af6ceb194f33ad502bcf41dbb80672 Mon Sep 17 00:00:00 2001 From: Dylan Staley <88163+dstaley@users.noreply.github.com> Date: Fri, 21 Nov 2025 16:16:59 -0600 Subject: [PATCH 2/2] chore(repo): Update changeset --- .changeset/open-streets-drum.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.changeset/open-streets-drum.md b/.changeset/open-streets-drum.md index dc276c1ff68..af806538340 100644 --- a/.changeset/open-streets-drum.md +++ b/.changeset/open-streets-drum.md @@ -1,12 +1,5 @@ --- '@clerk/backend': minor -'@clerk/shared': minor --- -fix(backend): Correct WaitlistEntryAPI list return type and export WaitlistEntry - -Fixes TypeScript return type for `WaitlistEntryAPI.list()` to properly reflect that it returns an array of `WaitlistEntry` objects within the paginated response, and exports the `WaitlistEntry` type from the backend package. - -## Changes -- Fix `WaitlistEntryAPI.list()` return type from `PaginatedResourceResponse` to `PaginatedResourceResponse` -- Export `WaitlistEntry` type from `@clerk/backend` package index +Fix TypeScript return type for `clerk.client.waitlistEntries.list()` and export `WaitlistEntry` type. \ No newline at end of file