UserApi - factory interface

  • Parameters

    • Optionalconfiguration: Configuration
    • OptionalbasePath: string
    • Optionalaxios: AxiosInstance

    Returns {
        userControllerAssignRole(
            id: string,
            roleId: string,
            userRoleAssignChangeDTO?: UserRoleAssignChangeDTO,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<APIOutput>;
        userControllerCreate(
            userCreateInputDTO?: UserCreateInputDTO,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<UserOutputDTOAPI>;
        userControllerDeleteSelectedDomainCookie(
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<void>;
        userControllerGetOne(
            id: string,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<UserOutputDTOAPI>;
        userControllerInvite(
            inviteCreateDTO?: InviteCreateDTO,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<UserOutputDTOAPI>;
        userControllerLinkPlayerProfile(
            linkPlayerUnauthedInputDTO?: LinkPlayerUnauthedInputDTO,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<void>;
        userControllerLogin(
            loginDTO?: LoginDTO,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<LoginOutputDTOAPI>;
        userControllerLogout(
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<APIOutput>;
        userControllerMe(
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<MeOutoutDTOAPI>;
        userControllerRemove(
            id: string,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<APIOutput>;
        userControllerRemoveRole(
            id: string,
            roleId: string,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<APIOutput>;
        userControllerSearch(
            userSearchInputDTO?: UserSearchInputDTO,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<UserOutputArrayDTOAPI>;
        userControllerSetSelectedDomain(
            domainId: string,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<void>;
        userControllerUpdate(
            id: string,
            userUpdateDTO?: UserUpdateDTO,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<UserOutputDTOAPI>;
    }

    • userControllerAssignRole:function
    • userControllerCreate:function
    • userControllerDeleteSelectedDomainCookie:function
      • Unset the selected domain for the user, this will clear the domain cookie. On the next request, the backend will set this again.
        OperationId: UserControllerDeleteSelectedDomainCookie

        Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<void>

    • userControllerGetOne:function
    • userControllerInvite:function
    • userControllerLinkPlayerProfile:function
      • Link your player profile to Takaro, allowing web access for things like shop and stats. To get the code, use the /link command in the game.
        OperationId: UserControllerLinkPlayerProfile

        Parameters

        • OptionallinkPlayerUnauthedInputDTO: LinkPlayerUnauthedInputDTO

          LinkPlayerUnauthedInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<void>

    • userControllerLogin:function
    • userControllerLogout:function
    • userControllerMe:function
      • Get the current user and the domains that the user has access to. Note that you can only make requests in the scope of a single domain. In order to switch the domain, you need to use the domain selection endpoints
        OperationId: UserControllerMe

        Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<MeOutoutDTOAPI>

    • userControllerRemove:function
      • Required permissions: MANAGE_USERS
        OperationId: UserControllerRemove

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<APIOutput>

    • userControllerRemoveRole:function
      • Required permissions: MANAGE_USERS, MANAGE_ROLES
        OperationId: UserControllerRemoveRole

        Parameters

        • id: string
        • roleId: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<APIOutput>

    • userControllerSearch:function
    • userControllerSetSelectedDomain:function
      • One user can have multiple domains, this endpoint is a helper to set the selected domain for the user
        OperationId: UserControllerSetSelectedDomain

        Parameters

        • domainId: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<void>

    • userControllerUpdate:function