Variable defaultConst

    default: {
        add: ((organization: {
            name: string;
            owners: string[];
        }) => Promise<INewOrganization>);
        del: ((organization: {
            id: string;
        }) => Promise<void>);
        get: (<T>(id: string, data: T) => Promise<undefined | IOrganization<T>>);
        getAll: (<T>(data: T) => Promise<IOrganization<T>[]>);
        update: ((organization: {
            id: string;
        }, data: any[]) => Promise<void>);
    } = ...

    Type declaration

    • add: ((organization: {
          name: string;
          owners: string[];
      }) => Promise<INewOrganization>)
        • (organization): Promise<INewOrganization>
        • Add

          Parameters

          • organization: {
                name: string;
                owners: string[];
            }

            Organization

            • name: string
            • owners: string[]

          Returns Promise<INewOrganization>

          New organization

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

          Parameters

          • organization: {
                id: string;
            }

            Organization

            • id: string

          Returns Promise<void>

    • get: (<T>(id: string, data: T) => Promise<undefined | IOrganization<T>>)
    • getAll: (<T>(data: T) => Promise<IOrganization<T>[]>)
    • update: ((organization: {
          id: string;
      }, data: any[]) => Promise<void>)
        • (organization, data): Promise<void>
        • Update

          Parameters

          • organization: {
                id: string;
            }

            Organization

            • id: string
          • data: any[]

            Data

          Returns Promise<void>

    Generated using TypeDoc and TypeDoc Airthium Plugin