23 lines
795 B
TypeScript
23 lines
795 B
TypeScript
import 'server-only';
|
|
import type {MerchantProfile} from '@/features/settings/types/settings';
|
|
|
|
/**
|
|
* The merchant profile.
|
|
*
|
|
* There is no business-profile resource in the platform contract — GET
|
|
* /api/auth/me returns the signed-in USER (name, email, role, tenant), not the
|
|
* company's GSTIN, timezone, currency or LYT accrual rate. The fixture that
|
|
* used to answer this has been removed, so this returns null and the form
|
|
* renders its unavailable state.
|
|
*
|
|
* When the resource ships, this function is the only thing that changes.
|
|
*
|
|
* Required: GET/PATCH /api/settings/profile — business name, GSTIN, timezone,
|
|
* currency, notification preferences.
|
|
*/
|
|
export const settingsServerRepository = {
|
|
async getProfile(): Promise<MerchantProfile | null> {
|
|
return null;
|
|
},
|
|
};
|