(input: {
title: string;
description?: string;
// A test run: no go-live push.
silent?: boolean;
})
| 147 | export const TOPIC_CHAT_ROOM_DESCRIPTION_MAX_LENGTH = 280; |
| 148 | |
| 149 | export const openTopicChatRoom = async (input: { |
| 150 | title: string; |
| 151 | description?: string; |
| 152 | // A test run: no go-live push. |
| 153 | silent?: boolean; |
| 154 | }): Promise<ChatRoom> => { |
| 155 | const res = await gqlClient.request<{ openTopicChatRoom: ChatRoom }>( |
| 156 | OPEN_TOPIC_CHAT_ROOM_MUTATION, |
| 157 | input, |
| 158 | ); |
| 159 | |
| 160 | return res.openTopicChatRoom; |
| 161 | }; |
| 162 | |
| 163 | export const getLiveChatRooms = async (first: number): Promise<ChatRoom[]> => { |
| 164 | const res = await gqlClient.request<{ liveChatRooms: ChatRoom[] }>( |
nothing calls this directly
no outgoing calls
no test coverage detected