Skip to content

Commit e39fac1

Browse files
authored
fix: profile type (#123)
1 parent d031678 commit e39fac1

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

packages/sdk-react-provider/src/lib/hooks.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,6 @@ export type {
10941094
MoveIbanPayload,
10951095
LinkAddress,
10961096
Profile,
1097-
ProfilePermissions,
10981097
Token,
10991098
SubmitProfileDetailsPayload,
11001099
NewOrder,

packages/sdk/src/types.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -242,22 +242,18 @@ export interface Identifier {
242242
bic?: string;
243243
}
244244

245-
export interface ProfilePermissions {
246-
id: string;
247-
kind: ProfileType;
248-
name: string;
249-
perms: Permission[];
250-
}
251245
export interface ProfilesResponse {
252-
profiles: ProfilePermissions[];
246+
profiles: Profile[];
253247
}
254248
export interface Profile {
255249
id: string;
256250
name: string;
257251
kind: ProfileType;
258252
state: ProfileState;
259-
kyc: KYC;
253+
// kyc: KYC;
260254
}
255+
/** @deprecated use Profile */
256+
export type ProfilePermissions = Profile;
261257

262258
export interface ProfilesQueryParams {
263259
/** profile state to filter by */

0 commit comments

Comments
 (0)