Skip to content

Commit

Permalink
Exports GraphVersion (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
ypc-faros committed Mar 22, 2023
1 parent 629d3cb commit 2f56710
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 1 addition & 5 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {Schema} from './graphql/types';
import {
Account,
FarosClientConfig,
GraphVersion,
Location,
Model,
NamedQuery,
Expand All @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export {
Address,
Coordinates,
FarosClientConfig,
GraphVersion,
Location,
Model,
NamedQuery,
Expand Down
5 changes: 5 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ export interface FarosClientConfig {
readonly phantoms?: Phantom;
}

export enum GraphVersion {
V1 = 'v1',
V2 = 'v2',
}

export enum Phantom {
Only = 'only',
Exclude = 'exclude',
Expand Down

0 comments on commit 2f56710

Please sign in to comment.