diff --git a/src/client.ts b/src/client.ts index 9a55559..1f88451 100644 --- a/src/client.ts +++ b/src/client.ts @@ -38,7 +38,6 @@ export class FarosClient { private readonly api: AxiosInstance; readonly graphVersion: GraphVersion; readonly phantoms: Phantom; - readonly visibility?: string; constructor( private readonly cfg: FarosClientConfig, @@ -66,7 +65,6 @@ export class FarosClient { this.graphVersion = useGraphQLV2 ? GraphVersion.V2 : GraphVersion.V1; this.phantoms = cfg.phantoms || Phantom.IncludeNestedOnly; - this.visibility = cfg.visibility; } copy( @@ -213,9 +211,6 @@ export class FarosClient { const result: Dictionary = {}; if (this.graphVersion === GraphVersion.V2) { result.phantoms = this.phantoms; - if (this.visibility) { - result.visibility = this.visibility; - } } return result; } diff --git a/src/types.ts b/src/types.ts index 7216463..0e56b47 100644 --- a/src/types.ts +++ b/src/types.ts @@ -3,7 +3,6 @@ export interface FarosClientConfig { readonly apiKey: string; readonly useGraphQLV2?: boolean; readonly phantoms?: Phantom; - readonly visibility?: string; } export enum GraphVersion { diff --git a/test/client.test.ts b/test/client.test.ts index aaf9f19..3ca8fbf 100644 --- a/test/client.test.ts +++ b/test/client.test.ts @@ -208,20 +208,6 @@ describe('client', () => { mock.done(); } - test('v2 query parameters - visibility', async () => { - const expected = new URLSearchParams({ - phantoms: Phantom.IncludeNestedOnly, - visibility: 'foobar', - }); - const clientConfig = { - url: apiUrl, - apiKey: 'test-key', - useGraphQLV2: true, - visibility: 'foobar', - }; - await expectV2Request(clientConfig, expected); - }); - test('v2 query parameters - default', async () => { const expected = new URLSearchParams({ phantoms: Phantom.IncludeNestedOnly,