diff --git a/src/client.ts b/src/client.ts index c6bef69..80f10a4 100644 --- a/src/client.ts +++ b/src/client.ts @@ -11,6 +11,7 @@ import {Schema} from './graphql/types'; import { Account, FarosClientConfig, + GraphVersion, Location, Model, NamedQuery, @@ -24,11 +25,6 @@ export const DEFAULT_AXIOS_CONFIG: AxiosRequestConfig = {timeout: 60000}; export const GRAPH_VERSION_HEADER = 'x-faros-graph-version'; -enum GraphVersion { - V1 = 'v1', - V2 = 'v2', -} - /** Faros API client **/ export class FarosClient { private readonly api: AxiosInstance; diff --git a/src/index.ts b/src/index.ts index 500472d..1c630d3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,6 +11,7 @@ export { Address, Coordinates, FarosClientConfig, + GraphVersion, Location, Model, NamedQuery, diff --git a/src/types.ts b/src/types.ts index 424bcf9..ae0a8e7 100644 --- a/src/types.ts +++ b/src/types.ts @@ -5,6 +5,11 @@ export interface FarosClientConfig { readonly phantoms?: Phantom; } +export enum GraphVersion { + V1 = 'v1', + V2 = 'v2', +} + export enum Phantom { Only = 'only', Exclude = 'exclude',