Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/utils/types/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,24 @@ export type Metadata = {
resources?: MetaDataRessources[];
};

type ThemeColors = Record<string, string>;

type SldAndNadColors = {
darkThemeColors: ThemeColors;
lightThemeColors: ThemeColors;
};

export type BaseVoltageConfig = {
name: string;
vlValue: number;
minValue: number;
maxValue: number;
label: string;
mapColor: string;
sldAndNadColors: SldAndNadColors;
profile: string;
};

export type StudyMetadata = Metadata & {
name: 'Study';
predefinedEquipmentProperties?: {
Expand All @@ -30,4 +48,5 @@ export type StudyMetadata = Metadata & {
defaultCountry?: string;
favoriteCountries?: string[];
substationPropertiesGlobalFilters?: Map<string, string[]>; // used to generate user specific global filters
baseVoltagesConfig?: BaseVoltageConfig[]; // use to define the voltage ranges and their colors
};
Loading