MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / getLongMessageCount

Method getLongMessageCount

src/services/data/fetch.ts:250–258  ·  view source on GitHub ↗
(sessionId: string, filter?: TimeFilter, minLength?: number)

Source from the content-addressed store, hash-verified

248 }
249
250 getLongMessageCount(sessionId: string, filter?: TimeFilter, minLength?: number): Promise<number> {
251 const params = new URLSearchParams()
252 if (filter?.startTs) params.set('startTs', String(filter.startTs))
253 if (filter?.endTs) params.set('endTs', String(filter.endTs))
254 if (filter?.memberId) params.set('memberId', String(filter.memberId))
255 if (minLength != null) params.set('minLength', String(minLength))
256 const qs = params.toString()
257 return analyticsGet(`/sessions/${sessionId}/analytics/long-message-count${qs ? `?${qs}` : ''}`)
258 }
259
260 getMemberMonthlyTrend(sessionId: string, filter?: TimeFilter): Promise<MemberMonthlyTrend[]> {
261 return analyticsGet(`/sessions/${sessionId}/analytics/member-monthly-trend${buildFilterParams(filter)}`)

Callers

nothing calls this directly

Calls 2

analyticsGetFunction · 0.90
setMethod · 0.80

Tested by

no test coverage detected