From b97b2c1cae5cb1e569708a8745c13d203beb81d9 Mon Sep 17 00:00:00 2001 From: panteliselef Date: Tue, 10 Sep 2024 22:16:35 +0300 Subject: [PATCH] fix(backend): Missing `deleteSelfEnabled` from User (#4139) --- .changeset/angry-phones-nail.md | 5 +++++ packages/backend/src/api/resources/JSON.ts | 1 + packages/backend/src/api/resources/User.ts | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 .changeset/angry-phones-nail.md diff --git a/.changeset/angry-phones-nail.md b/.changeset/angry-phones-nail.md new file mode 100644 index 0000000000..ef0f70cf55 --- /dev/null +++ b/.changeset/angry-phones-nail.md @@ -0,0 +1,5 @@ +--- +"@clerk/backend": minor +--- + +Bug fix: Introducing missing `deleteSelfEnabled` from User. diff --git a/packages/backend/src/api/resources/JSON.ts b/packages/backend/src/api/resources/JSON.ts index ddba80f514..9e509f2270 100644 --- a/packages/backend/src/api/resources/JSON.ts +++ b/packages/backend/src/api/resources/JSON.ts @@ -312,6 +312,7 @@ export interface UserJSON extends ClerkResourceJSON { last_active_at: number | null; create_organization_enabled: boolean; create_organizations_limit: number | null; + delete_self_enabled: boolean; } export interface VerificationJSON extends ClerkResourceJSON { diff --git a/packages/backend/src/api/resources/User.ts b/packages/backend/src/api/resources/User.ts index f25d9c8f22..7eab723c5a 100644 --- a/packages/backend/src/api/resources/User.ts +++ b/packages/backend/src/api/resources/User.ts @@ -37,6 +37,7 @@ export class User { readonly lastActiveAt: number | null, readonly createOrganizationEnabled: boolean, readonly createOrganizationsLimit: number | null = null, + readonly deleteSelfEnabled: boolean, ) {} static fromJSON(data: UserJSON): User { @@ -71,6 +72,7 @@ export class User { data.last_active_at, data.create_organization_enabled, data.create_organizations_limit, + data.delete_self_enabled, ); }