@accounter/server
Version:
Accounter GraphQL server
11 lines (10 loc) • 472 B
TypeScript
import type { Client } from 'pg';
/**
* Create (or fetch) the Accounter Admin Business financial entity and return its id.
*
* Simplified logic:
* - Looks up existing row by id or by (type='business' AND name='Accounter Admin Business').
* - If not found, inserts a self-owned business entity with a deterministic id.
* - Returns the id of the Accounter Admin Business entity.
*/
export declare function createAdminBusinessContext(client: Client): Promise<string>;