@capgo/cli
Version:
A CLI to upload to capgo servers
12 lines (11 loc) • 683 B
TypeScript
import type { CapgoApiTarget } from '../utils';
/**
* Best-effort: true when the app's org never had a free trial (direct offer).
* Only called after a plan check already blocked the command. Reads the org
* creation time and trial end from the existing `private/onboarding_progress`
* billing summary (needs app.read + org.read_billing). `N: 4` without `initial`
* runs none of the periodic onboarding checks. Any error, timeout, older server
* without `orgCreatedAt`/`hasPaid`, `null` value, or an org that paid before
* (churned) keeps the normal plan copy.
*/
export declare function isDirectOfferApp(client: CapgoApiTarget, appId: string | undefined): Promise<boolean>;