-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added type and added initial value to form
- Loading branch information
Leo1212
committed
Nov 6, 2023
1 parent
a9379a7
commit c41a128
Showing
2 changed files
with
36 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,35 @@ | ||
export interface UserData { | ||
__caslSubjectType__ : 'UserData' | ||
id: string; | ||
email: string | ||
displayName: string | ||
photoURL: string | ||
given_name: string, | ||
family_name: string, | ||
nickname: string, | ||
name: string, | ||
email_verified?: boolean | ||
user_metadata?: any | ||
staff?: boolean; | ||
defaultAbteilung?: string; | ||
roles: { [abteilungId: string]: role } | ||
__caslSubjectType__: "UserData"; | ||
id: string; | ||
email: string; | ||
displayName: string; | ||
photoURL: string; | ||
given_name: string; | ||
family_name: string; | ||
nickname: string; | ||
name: string; | ||
email_verified?: boolean; | ||
user_metadata?: any; | ||
staff?: boolean; | ||
defaultAbteilung?: string; | ||
roles: { [abteilungId: string]: role }; | ||
} | ||
|
||
export interface UserDataUpdate { | ||
email: string | ||
displayName: string | ||
photoURL: string | ||
given_name: string, | ||
family_name: string, | ||
nickname: string, | ||
name: string, | ||
defaultAbteilung?: string; | ||
email: string; | ||
displayName: string; | ||
photoURL: string; | ||
given_name: string; | ||
family_name: string; | ||
nickname: string; | ||
name: string; | ||
defaultAbteilung?: string; | ||
} | ||
|
||
export type role = 'pending' | 'guest' | 'member' | 'matchef' | 'admin'; | ||
export type role = "pending" | "guest" | "member" | "matchef" | "admin"; | ||
|
||
export interface AbteilungMember { | ||
userId: string; | ||
role: role; | ||
approved: boolean; | ||
} |