Creates a new location with the provided data.
The request data for creating the location.
A promise that resolves to the created location.
Deletes a location from the panel. This action is irreversible. Note: A location can only be deleted if it has no associated nodes.
The request data containing the location ID.
A promise that resolves to true if the location was successfully deleted.
Fetches a list of locations with optional sorting, filtering, and pagination.
Optionalsort: SortParametersOptional sorting parameters.
Optionalinclude: IncludeParameters[]Optional include parameters for related resources.
Optionalfilter: Record<FilterParameters, string>Optional filtering parameters.
Optionalpagination: PaginationOptionsOptional pagination options.
A promise that resolves to an array of location attributes.
Fetches a single location by its ID.
The request data containing the location ID.
Optionalinclude: IncludeParameters[]Optional include parameters for related resources.
A promise that resolves to the location attributes.
Updates an existing location with the provided data.
The request data for updating the location.
A promise that resolves to the updated location attributes.
Module for accessing Pterodactyl locations endpoints. This module provides methods to access location details, create locations, update locations, etc.