import { getDefaultClient } from '../../factory' import type { BusinessHooksGetAvailableHookletsRespVO, BusinessHooksGetAppConnectionsRespVO } from '../../types/business-hooks' // @endpoint GET /api/business-hooks/available-hooklets // @controller BusinessHooks.GetAvailableHooklets export async function getAvailableHooklets(): Promise { return getDefaultClient().get('/business-hooks/available-hooklets') } // @endpoint GET /api/apps/:app_id/business-hooks/connections // @controller BusinessHooks.GetAppConnections export async function getAppConnections(appId: string): Promise { return getDefaultClient().get(`/apps/${appId}/business-hooks/connections`) }