@gmetrixr/rjson
Version:
(R)ecursive Json
41 lines (40 loc) • 1.18 kB
TypeScript
import { R } from "../../../r";
import { IOrder } from "../../IOrder";
/**
* Changes the older deployment settings format into a RecordNode format
* The check of whether its a record already or not must have been already done by now.
* (if deployment_version isn't detected, that means its the older version)
*/
declare class Migration implements IOrder {
execute(olderDeployment: any): R.RecordNode<R.RT.deployment>;
}
declare const migration: Migration;
export default migration;
/**
* Older structure
export interface DeploymentSettings {
geolock?: {
enabled?: boolean;
lat?: number | null;
lng?: number | null;
range?: number | null;
address?: string | null;
} | null;
meta?: {
tags: string[] | null;
title: string | null;
description: string | null;
thumbnail: string | null
} | null;
track_location?: boolean;
enable_discussion?: boolean;
enable_multiplayer_mode?: boolean;
enable_audio?: boolean;
enable_screenshare?: boolean;
enable_chat?: boolean;
enable_room_instance?: boolean;
room_instance_count?: number;
room_instance_member_limit?: number;
room_instance_overspill_message?: string;
}
*/