From 3f407919d746008b9b7ec99ac6feeae36faa6510 Mon Sep 17 00:00:00 2001 From: David McAfee Date: Wed, 13 Sep 2023 13:04:57 -0700 Subject: [PATCH] additional cleanup --- packages/api-graphql/__tests__/v6-test.ts | 2 -- packages/api-graphql/src/types/index.ts | 9 ++------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/api-graphql/__tests__/v6-test.ts b/packages/api-graphql/__tests__/v6-test.ts index c5e4b1d7a8c..62297761b8c 100644 --- a/packages/api-graphql/__tests__/v6-test.ts +++ b/packages/api-graphql/__tests__/v6-test.ts @@ -7,8 +7,6 @@ import * as untypedQueries from './fixtures/without-types/queries'; import * as untypedMutations from './fixtures/without-types/mutations'; import * as untypedSubscriptions from './fixtures/without-types/subscriptions'; import { Observable } from 'zen-observable-ts'; -// TODO: -// import { AWSAppSyncRealTimeProvider } from '@aws-amplify/pubsub'; import { InternalPubSub } from '@aws-amplify/pubsub/internals'; import { expectGet, diff --git a/packages/api-graphql/src/types/index.ts b/packages/api-graphql/src/types/index.ts index 29b71e009ed..ca989d0d148 100644 --- a/packages/api-graphql/src/types/index.ts +++ b/packages/api-graphql/src/types/index.ts @@ -2,11 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 import { Source, DocumentNode, GraphQLError } from 'graphql'; export { OperationTypeNode } from 'graphql'; -// import { GRAPHQL_AUTH_MODE } from '@aws-amplify/auth'; -// export { GRAPHQL_AUTH_MODE }; import { Observable } from 'zen-observable-ts'; -// TODO: remove for now: -// import { AWSAppSyncRealTimeProvider } from '@aws-amplify/pubsub'; export type GraphQLAuthMode = 'AWS_IAM' | 'COGNITO_USERPOOLS' | 'API_KEY'; @@ -16,13 +12,12 @@ export type GraphQLAuthMode = 'AWS_IAM' | 'COGNITO_USERPOOLS' | 'API_KEY'; export interface GraphQLOptions { query: string | DocumentNode; variables?: Record; - // authMode?: GraphQLAuthMode; authMode?: string; authToken?: string; /** * @deprecated This property should not be used */ - userAgentSuffix?: string; // TODO: remove in v6 + userAgentSuffix?: string; } export interface GraphQLResult { @@ -131,7 +126,7 @@ export interface GraphQLOptionsV6< /** * @deprecated This property should not be used */ - userAgentSuffix?: string; // TODO: remove in v6 + userAgentSuffix?: string; } /**