interface Unit {
    custom?: JsonObject;
    customCrmId?: string;
    id: string;
    media?: (
        | {
            id?: number;
            initLevel?: number;
            resource: {
                id: string;
                type: "ttdh";
            };
            type: "ttdh";
        }
        | {
            files: {
                id: string;
                url: string;
            }[];
            id?: number;
            initLevel?: number;
            type: "topView";
        }
        | {
            id?: number;
            initCameraId?: number;
            initCameraType?: string;
            isExteriorAvailable?: boolean;
            isInteriorAvailable?: boolean;
            resource: {
                id: string;
                type: "tour";
            };
            type: "tour";
        }
        | {
            id?: number;
            resource: string;
            type: "unitImages";
        }
        | {
            id?: number;
            type: "externalImages";
            urls: string[];
        }
        | {
            id?: number;
            type: "externalUrl";
            url: string;
        }
        | {
            elements: ({
                style?: any;
                type: "iframe";
                url: string;
            } | {
                style?: any;
                type: "image";
                url: string;
            })[];
            id?: number;
            type: "externalUrls";
        })[];
    name: string;
    type?: string | number;
}

Hierarchy

  • Unit
    • Unit

Properties

custom?: JsonObject
customCrmId?: string
id: string
media?: (
    | {
        id?: number;
        initLevel?: number;
        resource: {
            id: string;
            type: "ttdh";
        };
        type: "ttdh";
    }
    | {
        files: {
            id: string;
            url: string;
        }[];
        id?: number;
        initLevel?: number;
        type: "topView";
    }
    | {
        id?: number;
        initCameraId?: number;
        initCameraType?: string;
        isExteriorAvailable?: boolean;
        isInteriorAvailable?: boolean;
        resource: {
            id: string;
            type: "tour";
        };
        type: "tour";
    }
    | {
        id?: number;
        resource: string;
        type: "unitImages";
    }
    | {
        id?: number;
        type: "externalImages";
        urls: string[];
    }
    | {
        id?: number;
        type: "externalUrl";
        url: string;
    }
    | {
        elements: ({
            style?: any;
            type: "iframe";
            url: string;
        } | {
            style?: any;
            type: "image";
            url: string;
        })[];
        id?: number;
        type: "externalUrls";
    })[]
name: string
type?: string | number