You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
687 B

import { AnalyticUnitId } from './analytic_unit_model';
import { Collection, makeDBQ } from '../services/data_service';
6 years ago
6 years ago
import * as _ from 'lodash';
6 years ago
type SegmentId = string;
6 years ago
type Segment = {
id?: SegmentId,
from: number,
to: number,
labeled: boolean
6 years ago
}
let db = makeDBQ(Collection.SEGMENTS);
6 years ago
export function getLabeledSegments(id: AnalyticUnitId) {
return
6 years ago
}
export function getPredictedSegments(id: AnalyticUnitId) {
6 years ago
}
export function saveSegments(id: AnalyticUnitId, segments: Segment[]) {
}
6 years ago
export async function insertSegments(id: AnalyticUnitId, addedSegments: Segment[], labeled: boolean) {
6 years ago
}
export function removeSegments(idsToRemove: SegmentId[]) {
6 years ago
}