import { Jargon } from '../jargon' import { ResourceId, ResourceResponse, SessionHighlight } from '../models' export class SessionHighlights { constructor(private jargon: Jargon) { } public fetch(highlightId: ResourceId): ResourceResponse { return this.jargon.request({ method: 'GET', url: `/highlights/${highlightId}`, }) } public update(highlightId: ResourceId, payload: Partial): ResourceResponse { return this.jargon.request({ method: 'PUT', url: `/highlights/${highlightId}`, data: { highlight: payload, }, }) } }