Fix up subuser API response for clients
This commit is contained in:
parent
51defae917
commit
5f13531c69
11 changed files with 86 additions and 41 deletions
|
@ -33,9 +33,9 @@ namespace Pterodactyl\Models;
|
|||
* @property string|null $inherit_config_stop
|
||||
*
|
||||
* @property \Pterodactyl\Models\Nest $nest
|
||||
* @property \Illuminate\Support\Collection|\Pterodactyl\Models\Server[] $servers
|
||||
* @property \Illuminate\Support\Collection|\Pterodactyl\Models\EggVariable[] $variables
|
||||
* @property \Illuminate\Support\Collection|\Pterodactyl\Models\Pack[] $packs
|
||||
* @property \Illuminate\Database\Eloquent\Collection|\Pterodactyl\Models\Server[] $servers
|
||||
* @property \Illuminate\Database\Eloquent\Collection|\Pterodactyl\Models\EggVariable[] $variables
|
||||
* @property \Illuminate\Database\Eloquent\Collection|\Pterodactyl\Models\Pack[] $packs
|
||||
* @property \Pterodactyl\Models\Egg|null $scriptFrom
|
||||
* @property \Pterodactyl\Models\Egg|null $configFrom
|
||||
*/
|
||||
|
|
|
@ -11,9 +11,9 @@ namespace Pterodactyl\Models;
|
|||
* @property \Carbon\Carbon $created_at
|
||||
* @property \Carbon\Carbon $updated_at
|
||||
*
|
||||
* @property \Illuminate\Support\Collection|\Pterodactyl\Models\Server[] $servers
|
||||
* @property \Illuminate\Support\Collection|\Pterodactyl\Models\Egg[] $eggs
|
||||
* @property \Illuminate\Support\Collection|\Pterodactyl\Models\Pack[] $packs
|
||||
* @property \Illuminate\Database\Eloquent\Collection|\Pterodactyl\Models\Server[] $servers
|
||||
* @property \Illuminate\Database\Eloquent\Collection|\Pterodactyl\Models\Egg[] $eggs
|
||||
* @property \Illuminate\Database\Eloquent\Collection|\Pterodactyl\Models\Pack[] $packs
|
||||
*/
|
||||
class Nest extends Validable
|
||||
{
|
||||
|
|
|
@ -29,8 +29,8 @@ use Pterodactyl\Models\Traits\Searchable;
|
|||
* @property \Carbon\Carbon $updated_at
|
||||
*
|
||||
* @property \Pterodactyl\Models\Location $location
|
||||
* @property \Pterodactyl\Models\Server[]|\Illuminate\Support\Collection $servers
|
||||
* @property \Pterodactyl\Models\Allocation[]|\Illuminate\Support\Collection $allocations
|
||||
* @property \Pterodactyl\Models\Server[]|\Illuminate\Database\Eloquent\Collection $servers
|
||||
* @property \Pterodactyl\Models\Allocation[]|\Illuminate\Database\Eloquent\Collection $allocations
|
||||
*/
|
||||
class Node extends Validable
|
||||
{
|
||||
|
|
|
@ -160,7 +160,7 @@ class Permission extends Validable
|
|||
* Returns all of the permissions available on the system for a user to
|
||||
* have when controlling a server.
|
||||
*
|
||||
* @return \Illuminate\Support\Collection
|
||||
* @return \Illuminate\Database\Eloquent\Collection
|
||||
*/
|
||||
public static function permissions(): Collection
|
||||
{
|
||||
|
@ -229,7 +229,7 @@ class Permission extends Validable
|
|||
* Return a collection of permissions available.
|
||||
*
|
||||
* @param bool $array
|
||||
* @return array|\Illuminate\Support\Collection
|
||||
* @return array|\Illuminate\Database\Eloquent\Collection
|
||||
* @deprecated
|
||||
*/
|
||||
public static function getPermissions($array = false)
|
||||
|
|
|
@ -37,19 +37,19 @@ use Znck\Eloquent\Traits\BelongsToThrough;
|
|||
* @property \Carbon\Carbon $updated_at
|
||||
*
|
||||
* @property \Pterodactyl\Models\User $user
|
||||
* @property \Pterodactyl\Models\User[]|\Illuminate\Support\Collection $subusers
|
||||
* @property \Pterodactyl\Models\User[]|\Illuminate\Database\Eloquent\Collection $subusers
|
||||
* @property \Pterodactyl\Models\Allocation $allocation
|
||||
* @property \Pterodactyl\Models\Allocation[]|\Illuminate\Support\Collection $allocations
|
||||
* @property \Pterodactyl\Models\Allocation[]|\Illuminate\Database\Eloquent\Collection $allocations
|
||||
* @property \Pterodactyl\Models\Pack|null $pack
|
||||
* @property \Pterodactyl\Models\Node $node
|
||||
* @property \Pterodactyl\Models\Nest $nest
|
||||
* @property \Pterodactyl\Models\Egg $egg
|
||||
* @property \Pterodactyl\Models\ServerVariable[]|\Illuminate\Support\Collection $variables
|
||||
* @property \Pterodactyl\Models\Schedule[]|\Illuminate\Support\Collection $schedule
|
||||
* @property \Pterodactyl\Models\Database[]|\Illuminate\Support\Collection $databases
|
||||
* @property \Pterodactyl\Models\ServerVariable[]|\Illuminate\Database\Eloquent\Collection $variables
|
||||
* @property \Pterodactyl\Models\Schedule[]|\Illuminate\Database\Eloquent\Collection $schedule
|
||||
* @property \Pterodactyl\Models\Database[]|\Illuminate\Database\Eloquent\Collection $databases
|
||||
* @property \Pterodactyl\Models\Location $location
|
||||
* @property \Pterodactyl\Models\DaemonKey $key
|
||||
* @property \Pterodactyl\Models\DaemonKey[]|\Illuminate\Support\Collection $keys
|
||||
* @property \Pterodactyl\Models\DaemonKey[]|\Illuminate\Database\Eloquent\Collection $keys
|
||||
*/
|
||||
class Server extends Validable
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@ use Illuminate\Notifications\Notifiable;
|
|||
*
|
||||
* @property \Pterodactyl\Models\User $user
|
||||
* @property \Pterodactyl\Models\Server $server
|
||||
* @property \Pterodactyl\Models\Permission[]|\Illuminate\Support\Collection $permissions
|
||||
* @property \Pterodactyl\Models\Permission[]|\Illuminate\Database\Eloquent\Collection $permissions
|
||||
*/
|
||||
class Subuser extends Validable
|
||||
{
|
||||
|
|
|
@ -36,10 +36,10 @@ use Pterodactyl\Notifications\SendPasswordReset as ResetPasswordNotification;
|
|||
* @property \Carbon\Carbon $updated_at
|
||||
*
|
||||
* @property string $name
|
||||
* @property \Pterodactyl\Models\Permission[]|\Illuminate\Support\Collection $permissions
|
||||
* @property \Pterodactyl\Models\Server[]|\Illuminate\Support\Collection $servers
|
||||
* @property \Pterodactyl\Models\Subuser[]|\Illuminate\Support\Collection $subuserOf
|
||||
* @property \Pterodactyl\Models\DaemonKey[]|\Illuminate\Support\Collection $keys
|
||||
* @property \Pterodactyl\Models\Permission[]|\Illuminate\Database\Eloquent\Collection $permissions
|
||||
* @property \Pterodactyl\Models\Server[]|\Illuminate\Database\Eloquent\Collection $servers
|
||||
* @property \Pterodactyl\Models\Subuser[]|\Illuminate\Database\Eloquent\Collection $subuserOf
|
||||
* @property \Pterodactyl\Models\DaemonKey[]|\Illuminate\Database\Eloquent\Collection $keys
|
||||
*/
|
||||
class User extends Validable implements
|
||||
AuthenticatableContract,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue