@overmap-ai/core 1.0.80-project-captures.0 → 1.0.80-project-captures.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Feature, FeatureCollection, Point } from 'geojson';
|
|
1
2
|
import { CreatedByModel, IndexedModel, RequiredFileModel, TimestampedModel, UUIDModel } from './base';
|
|
2
3
|
import { Project } from './projects';
|
|
3
4
|
export interface Capture extends UUIDModel, TimestampedModel, CreatedByModel, IndexedModel, RequiredFileModel {
|
|
@@ -7,3 +8,27 @@ export interface Capture extends UUIDModel, TimestampedModel, CreatedByModel, In
|
|
|
7
8
|
export interface CaptureSidecar extends UUIDModel, TimestampedModel, CreatedByModel, RequiredFileModel {
|
|
8
9
|
capture: Capture["uuid"];
|
|
9
10
|
}
|
|
11
|
+
export type CaptureSchemaVersion = 1;
|
|
12
|
+
export type BaseCaptureFeature<TCaptureFeatureProperties> = Feature<Point, TCaptureFeatureProperties>;
|
|
13
|
+
export interface BaseCaptureFeatureCollectionProperties<TVersion extends CaptureSchemaVersion> {
|
|
14
|
+
schemaVersion: TVersion;
|
|
15
|
+
}
|
|
16
|
+
export interface BaseCaptureFeatureCollection<TVersion extends CaptureSchemaVersion, TCaptureFeatureCollectionProperties extends BaseCaptureFeatureCollectionProperties<TVersion>, TCaptureFeatureProperties> extends FeatureCollection<Point, TCaptureFeatureProperties> {
|
|
17
|
+
properties: TCaptureFeatureCollectionProperties;
|
|
18
|
+
}
|
|
19
|
+
export interface CaptureFeatureProperties {
|
|
20
|
+
/** Zero-based position of this feature in the collection. */
|
|
21
|
+
sequence: number;
|
|
22
|
+
/** Milliseconds elapsed from the actual start of the video timeline. */
|
|
23
|
+
timestampMs: number;
|
|
24
|
+
/** Absolute time at which the location sample was taken. */
|
|
25
|
+
sampledAt: string;
|
|
26
|
+
}
|
|
27
|
+
export interface CaptureFeatureCollectionProperties extends BaseCaptureFeatureCollectionProperties<1> {
|
|
28
|
+
/** Absolute time at which video recording started. */
|
|
29
|
+
videoStartedAt: string;
|
|
30
|
+
/** Absolute time at which video recording ended. */
|
|
31
|
+
videoEndedAt: string;
|
|
32
|
+
}
|
|
33
|
+
export type CaptureFeature = BaseCaptureFeature<CaptureFeatureProperties>;
|
|
34
|
+
export type CaptureFeatureCollection = BaseCaptureFeatureCollection<1, CaptureFeatureCollectionProperties, CaptureFeatureProperties>;
|