Skip to content

Commit 4187bc7

Browse files
committed
split start nodes into its own type
1 parent c357af0 commit 4187bc7

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/packages/user/user/types.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,17 @@ import { UserStateModel, type UserTwoFactorProviderModel } from '@umbraco-cms/ba
55
export type UmbUserStateEnum = UserStateModel;
66
export const UmbUserStateEnum = UserStateModel;
77

8-
export interface UmbUserDetailModel {
8+
export interface UmbUserDetailModel extends UmbUserStartNodesModel {
99
avatarUrls: Array<string>;
1010
createDate: string | null;
11-
documentStartNodeUniques: Array<UmbReferenceByUnique>;
1211
email: string;
1312
entityType: UmbUserEntityType;
1413
failedLoginAttempts: number;
15-
hasDocumentRootAccess: boolean;
16-
hasMediaRootAccess: boolean;
1714
isAdmin: boolean;
1815
languageIsoCode: string | null;
1916
lastLockoutDate: string | null;
2017
lastLoginDate: string | null;
2118
lastPasswordChangeDate: string | null;
22-
mediaStartNodeUniques: Array<UmbReferenceByUnique>;
2319
name: string;
2420
state: UmbUserStateEnum | null;
2521
unique: string;
@@ -28,4 +24,11 @@ export interface UmbUserDetailModel {
2824
userName: string;
2925
}
3026

27+
export interface UmbUserStartNodesModel {
28+
documentStartNodeUniques: Array<UmbReferenceByUnique>;
29+
hasDocumentRootAccess: boolean;
30+
hasMediaRootAccess: boolean;
31+
mediaStartNodeUniques: Array<UmbReferenceByUnique>;
32+
}
33+
3134
export type UmbUserMfaProviderModel = UserTwoFactorProviderModel;

0 commit comments

Comments
 (0)