smc-hub
Version:
CoCalc: Backend webserver component
14 lines (13 loc) • 601 B
TypeScript
import { PostgreSQL } from "./types";
export declare function is_paying_customer(db: PostgreSQL, account_id: string): Promise<boolean>;
export declare function set_account_info_if_possible(opts: {
db: PostgreSQL;
account_id: string;
email_address: string | undefined;
first_name: string | undefined;
last_name: string | undefined;
}): Promise<void>;
export declare function set_account(db: PostgreSQL, account_id: string, set: {
[field: string]: any;
}): Promise<void>;
export declare function get_account(db: PostgreSQL, account_id: string, columns: string[]): Promise<void>;