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