Variable defaultConst

    default: {
        accept: ((organization: {
            id: string;
        }, user: {
            id: string;
        }) => Promise<void>);
        add: ((user: {
            id: string;
        }, organization: {
            name: string;
        }) => Promise<INewOrganization>);
        decline: ((organization: {
            id: string;
        }, user: {
            id: string;
        }) => Promise<void>);
        del: ((organization: {
            id: string;
        }) => Promise<void>);
        get: (<T>(id: string, data: T) => Promise<undefined | IOrganizationGet<T>>);
        getAll: (<T>(data: T) => Promise<IOrganizationGet<T>[]>);
        getByUser: (<T>(user: {
            id: string;
        }, data: T) => Promise<IOrganizationWithData<T>[]>);
        getWithData: (<T>(id: string, data: T) => Promise<undefined | IOrganizationWithData<T>>);
        quit: ((organization: {
            id: string;
        }, user: {
            id: string;
        }) => Promise<void>);
        update: ((organization: {
            id: string;
        }, data: any[], ownerId?: string) => Promise<void>);
    } = ...

    Type declaration

    • accept: ((organization: {
          id: string;
      }, user: {
          id: string;
      }) => Promise<void>)
        • (organization, user): Promise<void>
        • Accept invitation

          Parameters

          • organization: {
                id: string;
            }

            Organization

            • id: string
          • user: {
                id: string;
            }

            User

            • id: string

          Returns Promise<void>

    • add: ((user: {
          id: string;
      }, organization: {
          name: string;
      }) => Promise<INewOrganization>)
        • (user, organization): Promise<INewOrganization>
        • Add

          Parameters

          • user: {
                id: string;
            }

            User

            • id: string
          • organization: {
                name: string;
            }

            Organization

            • name: string

          Returns Promise<INewOrganization>

          New organization

    • decline: ((organization: {
          id: string;
      }, user: {
          id: string;
      }) => Promise<void>)
        • (organization, user): Promise<void>
        • Decline invitation

          Parameters

          • organization: {
                id: string;
            }

            Organization

            • id: string
          • user: {
                id: string;
            }

            User

            • id: string

          Returns Promise<void>

    • 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 | IOrganizationGet<T>>)
    • getAll: (<T>(data: T) => Promise<IOrganizationGet<T>[]>)
    • getByUser: (<T>(user: {
          id: string;
      }, data: T) => Promise<IOrganizationWithData<T>[]>)
    • getWithData: (<T>(id: string, data: T) => Promise<undefined | IOrganizationWithData<T>>)
    • quit: ((organization: {
          id: string;
      }, user: {
          id: string;
      }) => Promise<void>)
        • (organization, user): Promise<void>
        • Quit organization

          Parameters

          • organization: {
                id: string;
            }

            Organization

            • id: string
          • user: {
                id: string;
            }

            User

            • id: string

          Returns Promise<void>

    • update: ((organization: {
          id: string;
      }, data: any[], ownerId?: string) => Promise<void>)
        • (organization, data, ownerId?): Promise<void>
        • Update

          Parameters

          • organization: {
                id: string;
            }

            Organization

            • id: string
          • data: any[]

            Data

          • OptionalownerId: string

            Owner id

          Returns Promise<void>

    Generated using TypeDoc and TypeDoc Airthium Plugin