From 13829a730c478967fd3b4163a42f75e2546f2b3f Mon Sep 17 00:00:00 2001 From: einaralex Date: Mon, 13 Jan 2025 13:56:02 +0000 Subject: [PATCH] fix: profile type --- packages/sdk-react-provider/src/lib/hooks.tsx | 1 - packages/sdk/src/types.ts | 12 ++++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/packages/sdk-react-provider/src/lib/hooks.tsx b/packages/sdk-react-provider/src/lib/hooks.tsx index 4c4de22b..b36f4f8e 100644 --- a/packages/sdk-react-provider/src/lib/hooks.tsx +++ b/packages/sdk-react-provider/src/lib/hooks.tsx @@ -1094,7 +1094,6 @@ export type { MoveIbanPayload, LinkAddress, Profile, - ProfilePermissions, Token, SubmitProfileDetailsPayload, NewOrder, diff --git a/packages/sdk/src/types.ts b/packages/sdk/src/types.ts index d39e8dd1..2e7d534b 100644 --- a/packages/sdk/src/types.ts +++ b/packages/sdk/src/types.ts @@ -242,22 +242,18 @@ export interface Identifier { bic?: string; } -export interface ProfilePermissions { - id: string; - kind: ProfileType; - name: string; - perms: Permission[]; -} export interface ProfilesResponse { - profiles: ProfilePermissions[]; + profiles: Profile[]; } export interface Profile { id: string; name: string; kind: ProfileType; state: ProfileState; - kyc: KYC; + // kyc: KYC; } +/** @deprecated use Profile */ +export type ProfilePermissions = Profile; export interface ProfilesQueryParams { /** profile state to filter by */