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

100% Statements 9/9
100% Branches 4/4
100% Functions 2/2
100% Lines 9/9

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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62                                                                      146x 146x 146x     146x 146x 146x 146x 146x 146x                                
import { Vector3 } from "three"
import {
    AttributeDescriptors,
    AttributeTypes,
    AttributeTypeValue,
    CodeMapNode,
    Edge,
    MarkedPackage,
    RecursivePartial,
    Settings
} from "./codeCharta.model"
 
export interface ExportCCFile {
    projectName: string
    apiVersion: string
    fileChecksum: string
    nodes: CodeMapNode[]
    attributeTypes?: AttributeTypes | OldAttributeTypes
    attributeDescriptors?: AttributeDescriptors
    edges?: Edge[]
    markedPackages?: MarkedPackage[]
    blacklist?: ExportBlacklistItem[]
    repoCreationDate?: string
}
 
export interface ExportWrappedCCFile {
    checksum: string
    data: ExportCCFile
}
 
export interface ExportBlacklistItem {
    path: string
    type: ExportBlacklistType
}
 
export enum ExportBlacklistType {
    hide = "hide",
    exclude = "exclude"
}
 
export enum APIVersions {
    ZERO_POINT_ONE = "0.1",
    ONE_POINT_ZERO = "1.0",
    ONE_POINT_ONE = "1.1",
    ONE_POINT_TWO = "1.2",
    ONE_POINT_THREE = "1.3"
}
 
export interface ExportScenario {
    name: string
    settings: RecursivePartial<Settings>
    camera?: {
        camera: Vector3
        cameraTarget: Vector3
    }
}
 
export interface OldAttributeTypes {
    nodes?: [{ [key: string]: AttributeTypeValue }?]
    edges?: [{ [key: string]: AttributeTypeValue }?]
}