All files / app/codeCharta/model/customConfig customConfig.api.model.ts

100% Statements 3/3
100% Branches 2/2
100% Functions 1/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38      82x 82x 82x                                                                
import { Vector3 } from "three"
import { AppSettings, DynamicSettings, FileSettings } from "../../codeCharta.model"
 
export enum CustomConfigMapSelectionMode {
    MULTIPLE = "STANDARD",
    DELTA = "DELTA"
}
 
export type MapNamesByChecksum = Map<string, string>
 
export interface CustomConfig {
    id: string
    name: string
    creationTime: number
    mapSelectionMode: CustomConfigMapSelectionMode
    assignedMaps: MapNamesByChecksum
    customConfigVersion: string
 
    stateSettings: {
        appSettings: AppSettings
        dynamicSettings: DynamicSettings
        fileSettings: Omit<FileSettings, "attributeTypes">
    }
    camera: {
        camera: Vector3
        cameraTarget: Vector3
    }
    note?: string
}
 
export type ExportCustomConfig = CustomConfig
 
export interface CustomConfigsDownloadFile {
    downloadApiVersion: string
    timestamp: number
    customConfigs: Map<string, ExportCustomConfig>
}