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.

        Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<void>

        Unset the selected domain for the user

    • 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.

        Parameters

        • OptionallinkPlayerUnauthedInputDTO: LinkPlayerUnauthedInputDTO

          LinkPlayerUnauthedInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<void>

        Link player profile

    • 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

        Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<MeOutoutDTOAPI>

        Get the current logged in user

    • userControllerRemove:function
    • userControllerRemoveRole:function
      • Required permissions: MANAGE_USERS, MANAGE_ROLES

        Parameters

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

          Override http request option.

        Returns AxiosPromise<APIOutput>

        Remove role

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

        Parameters

        • domainId: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<void>

        Set the selected domain for the user

    • userControllerUpdate:function