export interface IGeography { id?: number; assetId?: number; allocation: number; date: Date; name: string; type: string; symbol: string; } export function parseGeography(geography: IGeography): IGeography { geography.id = +geography.id; geography.date = new Date(geography.date); geography.allocation = +geography.allocation; return geography; } export interface IGeographyProperties { id?: boolean; date?: boolean; symbol?: boolean; name?: boolean; allocation?: boolean; type?: boolean; assetId?: boolean; } export interface IGeographyPropertiesConfig { properties: IGeographyProperties; relationProperties?: {}; } export function defaultGeographyProperties(): IGeographyProperties { return { id: true, date: true, symbol: true, name: true, allocation: true, type: true, assetId: true, }; } export function defaultGeographyPropertiesConfig(): IGeographyPropertiesConfig { return { properties: defaultGeographyProperties(), }; }