Skip to content

Commit

Permalink
fix: add query to GetInvitationListParams
Browse files Browse the repository at this point in the history
  • Loading branch information
effektsvk committed Dec 18, 2024
1 parent 4e34a3a commit 95e0d6a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/spotty-berries-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/backend': patch
---

add `query` to `GetInvitationListParams`
13 changes: 12 additions & 1 deletion packages/backend/src/api/endpoints/InvitationApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,21 @@ type GetInvitationListParams = ClerkPaginationRequest<{
*
* import { createClerkClient } from '@clerk/backend';
* const clerkClient = createClerkClient(...)
* await clerkClient.invitations.getInvitationList({ status: 'revoked })
* await clerkClient.invitations.getInvitationList({ status: 'revoked' })
*
*/
status?: 'accepted' | 'pending' | 'revoked';
/**
* Filters invitations based on `email_address` or `id`.
*
* @example
* get all invitations for a specific email address
* import { createClerkClient } from '@clerk/backend';
* const clerkClient = createClerkClient(...)
* await clerkClient.invitations.getInvitationList({ query: '[email protected]' })
*
*/
query?: string;
}>;

export class InvitationAPI extends AbstractAPI {
Expand Down

0 comments on commit 95e0d6a

Please sign in to comment.