PlayerApi - functional programming interface

  • Parameters

    • Optionalconfiguration: Configuration

    Returns {
        banControllerCreate(banCreateDTO?: BanCreateDTO, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<BanOutputDTOAPI>)>;
        banControllerDelete(id: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>)>;
        banControllerGetOne(id: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<BanOutputDTOAPI>)>;
        banControllerSearch(banSearchInputDTO?: BanSearchInputDTO, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<BanOutputArrayDTOAPI>)>;
        banControllerUpdate(id: string, banUpdateDTO?: BanUpdateDTO, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<BanOutputDTOAPI>)>;
        playerControllerAssignRole(id: string, roleId: string, playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>)>;
        playerControllerGetMe(options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlayerMeOutputDTO>)>;
        playerControllerGetOne(id: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlayerOutputWithRolesDTOAPI>)>;
        playerControllerRemoveRole(id: string, roleId: string, playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>)>;
        playerControllerSearch(playerSearchInputDTO?: PlayerSearchInputDTO, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlayerOutputArrayDTOAPI>)>;
    }

    • banControllerCreate:function
      • Create a new ban, creating a ban via the API will always make it takaro managed. Required permissions: MANAGE_PLAYERS

        Parameters

        • OptionalbanCreateDTO: BanCreateDTO

          BanCreateDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<BanOutputDTOAPI>)>

        Ban player

    • banControllerDelete:function
      • Unban player. This will remove the ban from Takaro and the gameserver(s) Required permissions: MANAGE_PLAYERS

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>)>

        Unban player

    • banControllerGetOne:function
      • Get a single ban Required permissions: READ_PLAYERS

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<BanOutputDTOAPI>)>

        Get a single ban

    • banControllerSearch:function
    • banControllerUpdate:function
      • Update an existing ban, updating a ban via the API will always make it takaro managed. Required permissions: MANAGE_PLAYERS

        Parameters

        • id: string
        • OptionalbanUpdateDTO: BanUpdateDTO

          BanUpdateDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<BanOutputDTOAPI>)>

        Update ban

    • playerControllerAssignRole:function
      • Required permissions: MANAGE_PLAYERS, MANAGE_ROLES

        Parameters

        • id: string
        • roleId: string
        • OptionalplayerRoleAssignChangeDTO: PlayerRoleAssignChangeDTO

          PlayerRoleAssignChangeDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>)>

        Assign role

    • playerControllerGetMe:function
      • Get the player that is currently authenticated. This is a low-privilege route, returning limited data.

        Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlayerMeOutputDTO>)>

        Get current player

    • playerControllerGetOne:function
    • playerControllerRemoveRole:function
      • Required permissions: MANAGE_PLAYERS, MANAGE_ROLES

        Parameters

        • id: string
        • roleId: string
        • OptionalplayerRoleAssignChangeDTO: PlayerRoleAssignChangeDTO

          PlayerRoleAssignChangeDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>)>

        Remove role

    • playerControllerSearch:function