@capgo/cli
Version:
A CLI to upload to capgo servers
83 lines (82 loc) • 3.24 kB
TypeScript
import type { OptionsBase } from '../schemas/base';
import type { Database } from '../types/supabase.types';
interface AppListOptions extends OptionsBase {
filterByOrgId?: string;
showOrg?: boolean;
showOrgId?: boolean;
outputText?: boolean;
}
export declare const APP_LIST_ORG_FILTER_WARNING = "You have passed \"--filter-by-org-id\". You might have access to more apps. Remove the filter to see all apps";
export declare function getAppListPath(page: number, orgId?: string): string;
type AppRow = Database['public']['Tables']['apps']['Row'];
export declare function formatAppsCsv(data: AppRow[]): string;
export declare function formatAppListText(data: AppRow[]): string;
export declare function getAppListHeaders(options: AppListOptions): string[];
export declare function getAppListRow(row: AppRow, options: AppListOptions, orgNames: Map<string, string>): string[];
export declare function listAppInternal(options: AppListOptions, silent?: boolean): Promise<{
allow_device_custom_id: boolean;
allow_preview: boolean;
android_store_url: string | null;
app_id: string;
build_timeout_seconds: number;
build_timeout_updated_at: string;
block_provider_infra_requests: boolean;
channel_device_count: number;
created_at: string | null;
created_from_onboarding: boolean;
default_upload_channel: string;
existing_app: boolean;
expose_metadata: boolean;
icon_url: string;
id: string | null;
ios_store_url: string | null;
last_version: string | null;
manifest_bundle_count: number;
rollout_channel_count: number;
rollout_paused_version_names: string[];
name: string | null;
need_onboarding: boolean;
onboarding: import("../types/supabase.types").Json;
onboarding_completed_at: string | null;
owner_org: string;
retention: number;
stats_refresh_requested_at: string | null;
stats_updated_at: string | null;
transfer_history: import("../types/supabase.types").Json[] | null;
updated_at: string | null;
user_id: string | null;
}[]>;
export declare function listApp(options: AppListOptions, silent?: boolean): Promise<{
allow_device_custom_id: boolean;
allow_preview: boolean;
android_store_url: string | null;
app_id: string;
build_timeout_seconds: number;
build_timeout_updated_at: string;
block_provider_infra_requests: boolean;
channel_device_count: number;
created_at: string | null;
created_from_onboarding: boolean;
default_upload_channel: string;
existing_app: boolean;
expose_metadata: boolean;
icon_url: string;
id: string | null;
ios_store_url: string | null;
last_version: string | null;
manifest_bundle_count: number;
rollout_channel_count: number;
rollout_paused_version_names: string[];
name: string | null;
need_onboarding: boolean;
onboarding: import("../types/supabase.types").Json;
onboarding_completed_at: string | null;
owner_org: string;
retention: number;
stats_refresh_requested_at: string | null;
stats_updated_at: string | null;
transfer_history: import("../types/supabase.types").Json[] | null;
updated_at: string | null;
user_id: string | null;
}[]>;
export {};