Interface IOrganizationWithData<T>
interface IOrganizationWithData<T = []> { groups: "groups"[] extends T ? Pick<IGroupWithData<(
"name" | "users")
[]>, "id" | "name" | "users">[] : never[]; id: string; name: TOrganizationGetName extends T ? string : never; owners: "owners"[] extends T ? Pick< IUserWithData< (
| "lastname" | "firstname" | "email" | "avatar" | "workspaces" | "projects" | "usermodels" )
[], >, | "id" | "lastname" | "firstname" | "email" | "avatar" | "workspaces" | "projects" | "usermodels", >[] : never[]; pendingowners: "pendingowners"[] extends T ? Pick<IUserWithData<"email"[]>, "id" | "email">[] : never[]; pendingusers: "pendingusers"[] extends T ? Pick<IUserWithData<"email"[]>, "id" | "email">[] : never[]; users: "users"[] extends T ? Pick< IUserWithData< (
| "lastname" | "firstname" | "email" | "avatar" | "workspaces" | "projects" | "usermodels" )
[], >, | "id" | "lastname" | "firstname" | "email" | "avatar" | "workspaces" | "projects" | "usermodels", >[] : never[];} - Omit<
IOrganizationGet<T>,
"owners" | "pendingowners" | "users" | "pendingusers" | "groups",
>
Properties
groups
groups: "groups"[] extends T ? Pick<IGroupWithData<(
"name" | "users")
[]>, "id" | "name" | "users">[] : never[] owners
owners: "owners"[] extends T ? Pick< IUserWithData< (
| "lastname" | "firstname" | "email" | "avatar" | "workspaces" | "projects" | "usermodels" )
[], >, | "id" | "lastname" | "firstname" | "email" | "avatar" | "workspaces" | "projects" | "usermodels", >[] : never[] pendingowners
pendingowners: "pendingowners"[] extends T ? Pick<IUserWithData<"email"[]>, "id" | "email">[] : never[] pendingusers
pendingusers: "pendingusers"[] extends T ? Pick<IUserWithData<"email"[]>, "id" | "email">[] : never[] users
users: "users"[] extends T ? Pick< IUserWithData< (
| "lastname" | "firstname" | "email" | "avatar" | "workspaces" | "projects" | "usermodels" )
[], >, | "id" | "lastname" | "firstname" | "email" | "avatar" | "workspaces" | "projects" | "usermodels", >[] : never[]