Files
afilmory/be/apps/dashboard/src/modules/auth/api/registerTenant.ts
Innei 1dcb2945ca feat: implement site settings management and onboarding enhancements
- Added site settings management with a dedicated UI for configuration.
- Introduced new onboarding steps for site branding, including site name, title, and description.
- Updated API endpoints for site settings retrieval and updates.
- Enhanced the onboarding wizard to include site settings integration.
- Refactored related components and hooks for better state management and validation.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-07 23:58:14 +08:00

31 lines
651 B
TypeScript

import type { FetchResponse } from 'ofetch'
import { coreApi } from '~/lib/api-client'
export interface RegisterTenantAccountPayload {
email: string
password: string
name: string
}
export interface RegisterTenantPayload {
account: RegisterTenantAccountPayload
tenant: {
name: string
slug: string | null
}
settings?: Array<{
key: string
value: unknown
}>
}
export type RegisterTenantResult = FetchResponse<unknown>
export async function registerTenant(payload: RegisterTenantPayload): Promise<RegisterTenantResult> {
return await coreApi.raw('/auth/sign-up/email', {
method: 'POST',
body: payload,
})
}