UNPKG

@capgo/cli

Version:
19 lines (18 loc) • 1.94 kB
import type { ValidationResult } from '../service-account-validation.js'; import type { AndroidOnboardingProgress, AndroidOnboardingStep } from '../types.js'; import type { PreparationTrackAction } from '../../ui/preparation-action.js'; import type { Buffer } from 'node:buffer'; export type GooglePlayConnectionSource = 'imported_service_account' | 'generated_service_account'; export type GooglePlayConnectionFailureReason = 'shape_error' | 'file_read_error' | 'token_error' | 'no_app_access' | 'network_error' | 'missing_scopes' | 'oauth_failed' | 'provisioning_failed'; type FailedValidationKind = Extract<ValidationResult, { ok: false; }>['kind']; type ImportedGooglePlayFailureKind = FailedValidationKind | 'file-read-error'; type TrackAction = PreparationTrackAction<AndroidOnboardingStep>; export declare function trackConnectedGooglePlay(progress: AndroidOnboardingProgress, source: GooglePlayConnectionSource, journeyId: string, trackAction: TrackAction, reportedSuccesses: Set<string>): boolean; export declare function trackImportedGooglePlayValidationFailure(kind: ImportedGooglePlayFailureKind, journeyId: string, trackAction: TrackAction): void; export declare function readImportedGooglePlayCredentialFile(path: string, readCredentialFile: (path: string) => Promise<Buffer>, journeyId: string, trackAction: TrackAction, shouldReportFailure?: () => boolean): Promise<Buffer>; export declare function trackGooglePlayConnectionFailure(source: GooglePlayConnectionSource, reason: GooglePlayConnectionFailureReason, step: AndroidOnboardingStep, journeyId: string, trackAction: TrackAction): void; export declare function trackUnverifiedGooglePlayConnection(journeyId: string, trackAction: TrackAction): void; export declare function trackGeneratedGooglePlayProvisioningFailure(savedProgress: AndroidOnboardingProgress | null, journeyId: string, trackAction: TrackAction, reportedSuccesses: Set<string>): boolean; export {};