(obj: unknown)
| 3188 | } |
| 3189 | |
| 3190 | function isValidSessionFacets(obj: unknown): obj is SessionFacets { |
| 3191 | if (!obj || typeof obj !== 'object') return false |
| 3192 | const o = obj as Record<string, unknown> |
| 3193 | return ( |
| 3194 | typeof o.underlying_goal === 'string' && |
| 3195 | typeof o.outcome === 'string' && |
| 3196 | typeof o.brief_summary === 'string' && |
| 3197 | o.goal_categories !== null && |
| 3198 | typeof o.goal_categories === 'object' && |
| 3199 | o.user_satisfaction_counts !== null && |
| 3200 | typeof o.user_satisfaction_counts === 'object' && |
| 3201 | o.friction_counts !== null && |
| 3202 | typeof o.friction_counts === 'object' |
| 3203 | ) |
| 3204 | } |
| 3205 | |
| 3206 | export default usageReport |
no outgoing calls
no test coverage detected