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[];
    }

    Type Parameters

    • T = []

    Hierarchy (view full)

    Properties

    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[]

    Generated using TypeDoc and TypeDoc Airthium Plugin