import { Platform } from '@expo/eas-build-job' ; export enum AndroidReleaseStatus { completed = 'completed' , draft = 'draft' , halted = 'halted' , inProgress = 'inProgress' } export enum AndroidReleaseTrack { production = 'production' , beta = 'beta' , alpha = 'alpha' , internal = 'internal' } export interface AndroidSubmitProfile { serviceAccountKeyPath ? : string ; track : AndroidReleaseTrack ; releaseStatus : AndroidReleaseStatus ; changesNotSentForReview : boolean ; applicationId ? : string ; } export const AndroidSubmitProfileFieldsToEvaluate = [ 'serviceAccountKeyPath' , ] ; export interface IosSubmitProfile { ascApiKeyPath ? : string ; ascApiKeyIssuerId ? : string ; ascApiKeyId ? : string ; appleId ? : string ; ascAppId ? : string ; appleTeamId ? : string ; sku ? : string ; language : string ; companyName ? : string ; appName ? : string ; bundleIdentifier ? : string ; } export const IosSubmitProfileFieldsToEvaluate = [ 'ascApiKeyPath' , 'ascApiKeyIssuerId' , 'ascApiKeyId' , ] ; export type SubmitProfile < TPlatform extends Platform = Platform > = TPlatform extends Platform . ANDROID ? AndroidSubmitProfile : IosSubmitProfile ; export interface EasJsonSubmitProfile { extends ? : string ; [ Platform . ANDROID ] ? : AndroidSubmitProfile ; [ Platform . IOS ] ? : IosSubmitProfile ; }