@capgo/cli
Version:
A CLI to upload to capgo servers
60 lines (59 loc) • 2.42 kB
TypeScript
export declare const stripDataUri: (s: string) => string;
export declare const bundleIdFromAppIdentifier: (ai: string) => string;
/** Thrown by rest()/gql() on any non-2xx, GraphQL error payload, or parse failure. */
export declare class AppflowApiError extends Error {
readonly status: number | string;
constructor(message: string, status: number | string);
}
interface RawIosProvisioningProfile {
application_identifier?: string;
name?: string;
provisioning_profile_file?: string;
}
interface RawIosSigning {
cert_file?: string;
cert_password?: string;
provisioning_profiles?: RawIosProvisioningProfile[];
}
interface RawIosDistribution {
user_name?: string;
app_specific_password?: string;
apple_app_id?: string | number;
team_id?: string;
}
interface RawAndroidSigning {
keystore_file?: string;
keystore_password?: string;
key_password?: string;
key_alias?: string;
}
interface RawAndroidDistribution {
json_key_file?: string;
}
export declare function mapIosSigning(raw: RawIosSigning | null | undefined): Record<string, string>;
export declare function mapIosDistribution(raw: RawIosDistribution | null | undefined): Record<string, string>;
export declare function mapAndroidSigning(raw: RawAndroidSigning | null | undefined): Record<string, string>;
export declare function mapAndroidDistribution(raw: RawAndroidDistribution | null | undefined): Record<string, string>;
export declare const redactTrace: (method: string, url: string, status: number | string, shapeKeys: string[]) => string;
export interface AppflowOrg {
id?: string;
name?: string;
slug: string;
}
export interface AppflowApp {
id: string;
name?: string;
slug?: string;
nativeType?: string;
}
export declare function createAppflowApi(token: string, log?: (s: string) => void): {
listOrgs(): Promise<AppflowOrg[]>;
listApps(slug: string): Promise<AppflowApp[]>;
listCertificates(appId: string): Promise<any[]>;
listDistribution(appId: string): Promise<any[]>;
fetchIosSigning(appId: string, tag: string): Promise<Record<string, string>>;
fetchAndroidSigning(appId: string, tag: string): Promise<Record<string, string>>;
fetchIosDistribution(appId: string, id: number | string): Promise<Record<string, string>>;
fetchAndroidDistribution(appId: string, id: number | string): Promise<Record<string, string>>;
};
export {};