refactor(core): Remove roleId indirection (no-changelog) (#8413)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-01-24 13:38:57 +01:00
committed by GitHub
parent 1affebd85e
commit d6deceacde
139 changed files with 922 additions and 1684 deletions

View File

@@ -685,9 +685,9 @@ export type IPersonalizationSurveyVersions =
| IPersonalizationSurveyAnswersV2
| IPersonalizationSurveyAnswersV3;
export type IRole = 'default' | 'owner' | 'member' | 'admin';
export type IRole = 'default' | 'global:owner' | 'global:member' | 'global:admin';
export type InvitableRoleName = 'member' | 'admin';
export type InvitableRoleName = 'global:member' | 'global:admin';
export interface IUserResponse {
id: string;
@@ -695,11 +695,7 @@ export interface IUserResponse {
lastName?: string;
email?: string;
createdAt?: string;
globalRole?: {
name: IRole;
id: string;
createdAt: Date;
};
role?: IRole;
globalScopes?: Scope[];
personalizationAnswers?: IPersonalizationSurveyVersions | null;
isPending: boolean;
@@ -720,7 +716,6 @@ export interface IUser extends IUserResponse {
fullName?: string;
createdAt?: string;
mfaEnabled: boolean;
globalRoleId?: number;
}
export interface IVersionNotificationSettings {