UNPKG

@trendmoon/api-client

Version:
43 lines 1.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ChatService = void 0; class ChatService { constructor(apiClient) { this.apiClient = apiClient; } /** * Retrieves chat details by group username. * @param params - Parameters for getting chat by username. */ async getChatByUsername(params) { return this.apiClient.getChatByUsername(params); } /** * Retrieves the status of the groups service. */ async getGroupsServiceStatus() { return this.apiClient.getGroupsServiceStatus(); } /** * Retrieves the status of a specific group. * @param params - Parameters for getting a specific group. */ async getSpecificGroup(params) { return this.apiClient.getSpecificGroup(params); } /** * Adds a new group to be monitored. * @param body - Request body for adding a new group. */ async addNewGroup(body) { return this.apiClient.addNewGroup(body); } /** * Retrieves a list of all monitored groups. */ async getAllGroups() { return this.apiClient.getAllGroups(); } } exports.ChatService = ChatService; //# sourceMappingURL=ChatService.js.map