UNPKG

eas-cli

Version:
24 lines (23 loc) 1.42 kB
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient'; import { PaginatedQueryOptions } from '../commandUtils/pagination'; import { CreateUpdateBranchForAppMutationVariables, UpdateBranchBasicInfoFragment, UpdateBranchFragment } from '../graphql/generated'; import { SelectPromptEntry } from '../utils/queries'; export declare const BRANCHES_LIMIT = 50; export declare function selectBranchOnAppAsync(graphqlClient: ExpoGraphqlClient, { projectId, promptTitle, displayTextForListItem, paginatedQueryOptions, }: { projectId: string; displayTextForListItem: (queryItem: UpdateBranchFragment) => SelectPromptEntry; promptTitle: string; paginatedQueryOptions: PaginatedQueryOptions; }): Promise<UpdateBranchFragment>; export declare function listAndRenderBranchesOnAppAsync(graphqlClient: ExpoGraphqlClient, { projectId, paginatedQueryOptions, }: { projectId: string; paginatedQueryOptions: PaginatedQueryOptions; }): Promise<void>; export declare function createUpdateBranchOnAppAsync(graphqlClient: ExpoGraphqlClient, { appId, name }: CreateUpdateBranchForAppMutationVariables): Promise<UpdateBranchBasicInfoFragment>; export declare function ensureBranchExistsAsync(graphqlClient: ExpoGraphqlClient, { appId, branchName, }: { appId: string; branchName: string; }): Promise<{ branch: UpdateBranchBasicInfoFragment; createdBranch: boolean; }>;