Files
ncd-fe/packages/pl-api/lib/client/emails.ts
nicole mikołajczyk d5d453e645 pl-api: allow importing parts of the client
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
2026-02-23 10:39:26 +01:00

17 lines
398 B
TypeScript

import type { PlApiBaseClient } from '../client-base';
type EmptyObject = Record<string, never>;
const emails = (client: PlApiBaseClient) => ({
resendConfirmationEmail: async (email: string) => {
const response = await client.request<EmptyObject>('/api/v1/emails/confirmations', {
method: 'POST',
body: { email },
});
return response.json;
},
});
export { emails };