UNPKG

prisma-yml

Version:

<a href="https://www.prismagraphql.com"><img src="https://imgur.com/HUu10rH.png" width="248" /></a>

41 lines (40 loc) 1.7 kB
import 'isomorphic-fetch'; import { GraphQLClient } from 'graphql-request'; import { IOutput } from './Output'; export declare class Cluster { name: string; baseUrl: string; local: boolean; shared: boolean; clusterSecret?: string; requiresAuth: boolean; out: IOutput; isPrivate: boolean; workspaceSlug?: string; private cachedToken?; hasOldDeployEndpoint: boolean; custom?: boolean; constructor(out: IOutput, name: string, baseUrl: string, clusterSecret?: string, local?: boolean, shared?: boolean, isPrivate?: boolean, workspaceSlug?: string); getToken(serviceName: string, workspaceSlug?: string, stageName?: string): Promise<string | null>; getLocalToken(): string | null; readonly cloudClient: GraphQLClient; generateClusterToken(serviceName: string, workspaceSlug?: string, stageName?: string): Promise<string>; getApiEndpoint(service: string, stage: string, workspaceSlug?: string | null): string; getWSEndpoint(service: string, stage: string, workspaceSlug?: string | null): string; getImportEndpoint(service: string, stage: string, workspaceSlug?: string | null): string; getExportEndpoint(service: string, stage: string, workspaceSlug?: string | null): string; getDeployEndpoint(): string; isOnline(): Promise<boolean>; getVersion(): Promise<string | null>; request(query: string, variables?: any): Promise<Response>; needsAuth(): Promise<boolean>; toJSON(): { name: string; baseUrl: string; local: boolean; clusterSecret: string | undefined; shared: boolean; isPrivate: boolean; workspaceSlug: string | undefined; }; }