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 | IGroup<T>>);
        getAll: (<T>(data: T) => Promise<IGroup<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 | IGroup<T>>)
        • <T>(id, data): Promise<undefined | IGroup<T>>
        • Get

          Type Parameters

          Parameters

          • id: string

            Group id

          • data: T

            Data

          Returns Promise<undefined | IGroup<T>>

          Group

    • getAll: (<T>(data: T) => Promise<IGroup<T>[]>)
        • <T>(data): Promise<IGroup<T>[]>
        • Get all

          Type Parameters

          Parameters

          • data: T

            Data

          Returns Promise<IGroup<T>[]>

          Groups

    • 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