@trendmoon/api-client
Version:
Official TypeScript client for Trendmoon API
31 lines • 1.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CategoryCoinService = void 0;
/**
* CategoryCoinService handles category-coin relationship operations
* Provides methods for retrieving coins within specific categories
*/
class CategoryCoinService {
constructor(apiClient) {
this.apiClient = apiClient;
}
/**
* Retrieves coins within a specific category (legacy endpoint).
* @param params - Parameters for getting category coins (legacy)
* @returns Promise resolving to coins in the specified category
* @deprecated Use getCategoryCoins instead
*/
async getCategoryCoinsLegacy(params) {
return this.apiClient.getCategoryCoinsLegacy(params);
}
/**
* Retrieves coins within a specific category.
* @param params - Parameters for getting category coins
* @returns Promise resolving to coins in the specified category
*/
async getCategoryCoins(params) {
return this.apiClient.getCategoryCoins(params);
}
}
exports.CategoryCoinService = CategoryCoinService;
//# sourceMappingURL=CategoryCoinService.js.map