@capgo/cli
Version:
A CLI to upload to capgo servers
26 lines (25 loc) • 849 B
TypeScript
import type { AppTodoProgress } from '../app/todo';
export type LocalOnboardingStep = 'add_code' | 'add_updater';
interface Billing {
orgId: string;
trialEndsAt: string | null;
plansUrl: string;
}
export type SetupNotice = {
appId: string;
secondary: string[];
} & ({
kind: 'setup';
product: string;
title?: string;
instruction?: string;
action: string;
} | {
kind: 'plan';
completed: string[];
billing: Billing;
});
export declare function getSetupNotice(appId: string, progress: AppTodoProgress, webHost?: string): SetupNotice | undefined;
export declare function formatSetupNotice(notice: SetupNotice | undefined, now?: number): string | undefined;
export declare function reconcileSetupProgress(progress: AppTodoProgress, reported: readonly LocalOnboardingStep[]): AppTodoProgress;
export {};