modrinthjs
Version:
A type safe Modrinth implementation.
74 lines (73 loc) • 2.83 kB
TypeScript
import type { CategoryTag } from '../models/CategoryTag';
import type { DonationPlatformTag } from '../models/DonationPlatformTag';
import type { GameVersionTag } from '../models/GameVersionTag';
import type { License } from '../models/License';
import type { LicenseTag } from '../models/LicenseTag';
import type { LoaderTag } from '../models/LoaderTag';
import type { CancelablePromise } from '../core/CancelablePromise';
export declare class TagsService {
/**
* Get a list of categories
* Gets an array of categories, their icons, and applicable project types
* @returns CategoryTag Expected response to a valid request
* @throws ApiError
*/
static categoryList(): CancelablePromise<Array<CategoryTag>>;
/**
* Get a list of loaders
* Gets an array of loaders, their icons, and supported project types
* @returns LoaderTag Expected response to a valid request
* @throws ApiError
*/
static loaderList(): CancelablePromise<Array<LoaderTag>>;
/**
* Get a list of game versions
* Gets an array of game versions and information about them
* @returns GameVersionTag Expected response to a valid request
* @throws ApiError
*/
static versionList(): CancelablePromise<Array<GameVersionTag>>;
/**
* @deprecated
* Get a list of licenses
* Deprecated - simply use SPDX IDs.
* @returns LicenseTag Expected response to a valid request
* @throws ApiError
*/
static licenseList(): CancelablePromise<Array<LicenseTag>>;
/**
* Get the text and title of a license
* @param id The license ID to get the text of
* @returns License Expected response to a valid request
* @throws ApiError
*/
static licenseText(id: string): CancelablePromise<License>;
/**
* Get a list of donation platforms
* Gets an array of donation platforms and information about them
* @returns DonationPlatformTag Expected response to a valid request
* @throws ApiError
*/
static donationPlatformList(): CancelablePromise<Array<DonationPlatformTag>>;
/**
* Get a list of report types
* Gets an array of valid report types
* @returns string Expected response to a valid request
* @throws ApiError
*/
static reportTypeList(): CancelablePromise<Array<string>>;
/**
* Get a list of project types
* Gets an array of valid project types
* @returns string Expected response to a valid request
* @throws ApiError
*/
static projectTypeList(): CancelablePromise<Array<string>>;
/**
* Get a list of side types
* Gets an array of valid side types
* @returns string Expected response to a valid request
* @throws ApiError
*/
static sideTypeList(): CancelablePromise<Array<string>>;
}