import { ApiV2 } from 'xdl'; import * as appleApi from '../../appleApi'; import { IosAppCredentials, IosDistCredentials, IosPushCredentials } from '../credentials'; export interface AppLookupParams { accountName: string; projectName: string; bundleIdentifier: string; } interface IosAllCredentialsForApp extends IosAppCredentials { pushCredentials: Omit; distCredentials: Omit; } interface AllCredentialsApiResponse { appCredentials: IosAppCredentials[]; userCredentials: (IosDistCredentials | IosPushCredentials)[]; } export default class ApiClient { private api; constructor(api: ApiV2); getAllCredentialsApi(accountName: string): Promise; getAllCredentialsForAppApi({ accountName, projectName, bundleIdentifier, }: AppLookupParams): Promise; getUserCredentialsByIdApi(id: number, accountName: string): Promise; createDistCertApi(accountName: string, credentials: appleApi.DistCert): Promise; updateDistCertApi(id: number, accountName: string, credentials: appleApi.DistCert): Promise; deleteDistCertApi(id: number, accountName: string): Promise; useDistCertApi({ accountName, projectName, bundleIdentifier }: AppLookupParams, userCredentialsId: number): Promise; createPushKeyApi(accountName: string, credentials: appleApi.PushKey): Promise; updatePushKeyApi(id: number, accountName: string, credentials: appleApi.PushKey): Promise; deletePushKeyApi(id: number, accountName: string): Promise; usePushKeyApi({ accountName, projectName, bundleIdentifier }: AppLookupParams, userCredentialsId: number): Promise; deletePushCertApi({ accountName, projectName, bundleIdentifier, }: AppLookupParams): Promise; updateProvisioningProfileApi({ accountName, projectName, bundleIdentifier }: AppLookupParams, credentials: appleApi.ProvisioningProfile): Promise; deleteProvisioningProfileApi({ accountName, projectName, bundleIdentifier, }: AppLookupParams): Promise; } export {};