From 54816ab598aca6f1a1a44f95c4ae5580fa712ddd Mon Sep 17 00:00:00 2001 From: Juan Garcia Date: Wed, 11 Dec 2024 10:31:12 +0100 Subject: [PATCH] Remove not needed imports --- packages/client/src/actions/username.ts | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/packages/client/src/actions/username.ts b/packages/client/src/actions/username.ts index 2ca5dd6b7..82b65b76c 100644 --- a/packages/client/src/actions/username.ts +++ b/packages/client/src/actions/username.ts @@ -1,21 +1,20 @@ -import type { Post, TimelineHighlightsRequest } from '@lens-protocol/graphql'; +import type { + AssignUsernameToAccountRequest, + AssignUsernameToAccountResult, + CreateUsernameRequest, + CreateUsernameResult, + UnassignUsernameFromAccountRequest, + UnassignUsernameToAccountResult, +} from '@lens-protocol/graphql'; import { AssignUsernameToAccountMutation, CreateUsernameMutation, - TimelineHighlightsQuery, UnassignUsernameFromAccountMutation, } from '@lens-protocol/graphql'; import type { ResultAsync } from '@lens-protocol/types'; -import type { CreateUsernameRequest } from '@lens-protocol/graphql'; -import type { CreateUsernameResult } from '@lens-protocol/graphql'; -import type { AssignUsernameToAccountRequest } from '@lens-protocol/graphql'; -import type { AssignUsernameToAccountResult } from '@lens-protocol/graphql'; -import type { UnassignUsernameFromAccountRequest } from '@lens-protocol/graphql'; -import type { UnassignUsernameToAccountResult } from '@lens-protocol/graphql'; -import type { AnyClient, SessionClient } from '../clients'; +import type { SessionClient } from '../clients'; import type { UnauthenticatedError, UnexpectedError } from '../errors'; -import type { Paginated } from '../types'; /** * Create a username @@ -55,7 +54,7 @@ export function createUsername( * @returns Tiered transaction result. */ export function assignUsernameToAccount( - client: AnyClient, + client: SessionClient, request: AssignUsernameToAccountRequest, ): ResultAsync { return client.mutation(AssignUsernameToAccountMutation, { request }); @@ -77,7 +76,7 @@ export function assignUsernameToAccount( * @returns Tiered transaction result. */ export function unassignUsernameFromAccount( - client: AnyClient, + client: SessionClient, request: UnassignUsernameFromAccountRequest, ): ResultAsync { return client.query(UnassignUsernameFromAccountMutation, { request });