Variable defaultConst

    default: {
        add: ((organization: {
            id: string;
        }, group: {
            name: string;
            users: string[];
        }) => Promise<INewGroup>);
        del: ((group: {
            id: string;
        }) => Promise<void>);
        get: (<T>(id: string, data: T) => Promise<undefined | IGroupGet<T>>);
        getAll: (<T>(data: T) => Promise<IGroupWithData<T>[]>);
        getByOrganization: (<T>(id: string, data: T) => Promise<IGroupWithData<T>[]>);
        getWithData: (<T>(id: string, data: T) => Promise<undefined | IGroupWithData<T>>);
        update: ((group: {
            id: string;
        }, data: any[]) => Promise<void>);
    } = ...

    Type declaration

    • add: ((organization: {
          id: string;
      }, group: {
          name: string;
          users: string[];
      }) => Promise<INewGroup>)
        • (organization, group): Promise<INewGroup>
        • Add

          Parameters

          • organization: {
                id: string;
            }

            Organization

            • id: string
          • group: {
                name: string;
                users: string[];
            }

            Group

            • name: string
            • users: string[]

          Returns Promise<INewGroup>

          New group

    • del: ((group: {
          id: string;
      }) => Promise<void>)
        • (group): Promise<void>
        • Delete

          Parameters

          • group: {
                id: string;
            }

            Group

            • id: string

          Returns Promise<void>

    • get: (<T>(id: string, data: T) => Promise<undefined | IGroupGet<T>>)
        • <T>(id, data): Promise<undefined | IGroupGet<T>>
        • Get

          Type Parameters

          Parameters

          • id: string

            Id

          • data: T

            Data

          Returns Promise<undefined | IGroupGet<T>>

          Group

    • getAll: (<T>(data: T) => Promise<IGroupWithData<T>[]>)
    • getByOrganization: (<T>(id: string, data: T) => Promise<IGroupWithData<T>[]>)
    • getWithData: (<T>(id: string, data: T) => Promise<undefined | IGroupWithData<T>>)
    • update: ((group: {
          id: string;
      }, data: any[]) => Promise<void>)
        • (group, data): Promise<void>
        • Update

          Parameters

          • group: {
                id: string;
            }

            Group

            • id: string
          • data: any[]

            Data

          Returns Promise<void>

    Generated using TypeDoc and TypeDoc Airthium Plugin