import { Types } from "mongoose"; import { DroneProvider } from "../constants"; import { EncryptedDataType } from "./common"; export interface DroneConnectionOptionsType { drones: "all" | "listed", serials: string[], } export interface DroneConnectionType { // The stable id the video gateway diffs on. _id: Types.ObjectId, departmentId: Types.ObjectId, provider: DroneProvider, active: boolean, label: string, authToken: EncryptedDataType, // Skydio token id authSecret: EncryptedDataType, // Skydio token secret options?: DroneConnectionOptionsType, // omitted means every drone on the account modified: Date, }