approveWaitlistUser()
Approves a waitlist entry and returns the generated invitation.
Usage
The following example shows a basic usage of the backend client from @wacht/nextjs/server.
import { wachtClient } from '@wacht/nextjs/server';export async function approveWaitlistUser(waitlistUserId: string) { const client = await wachtClient(); return client.invitations.approveWaitlistUser(waitlistUserId);}Signature
function approveWaitlistUser( waitlistUserId: string,): Promise<DeploymentInvitation>Parameters
›waitlistUserId: string;
waitlistUserId: string;Waitlist user id to approve.
Return value
›result?: DeploymentInvitation | undefined;
result?: DeploymentInvitation | undefined;Operation result payload.
Behavior
- Wraps the corresponding backend endpoint for this capability.
- Use the returned payload as canonical backend state for follow-up operations.