Theme: {
    createTheme(
        themeData: ThemeSkeleton,
        themeId?: string,
        realm?: string,
    ): Promise<ThemeSkeleton>;
    createThemeExportTemplate(): ThemeExportInterface;
    deleteTheme(themeId: string, realm?: string): Promise<ThemeSkeleton>;
    deleteThemeByName(
        themeName: string,
        realm?: string,
    ): Promise<ThemeSkeleton>;
    deleteThemes(realm?: string): Promise<ThemeSkeleton[]>;
    exportThemes(): Promise<ThemeExportInterface>;
    getTheme(themeId: string, realm?: string): Promise<ThemeSkeleton>;
    getThemeByName(themeName: string, realm?: string): Promise<ThemeSkeleton>;
    getThemes(): Promise<ThemeSkeleton[]>;
    importThemes(importData: ThemeExportInterface): Promise<ThemeSkeleton[]>;
    putTheme(
        themeId: string,
        themeData: ThemeSkeleton,
        realm?: string,
    ): Promise<ThemeSkeleton>;
    putThemeByName(
        themeName: string,
        themeData: ThemeSkeleton,
        realm?: string,
    ): Promise<ThemeSkeleton>;
    putThemes(
        themeMap: Record<string, ThemeSkeleton>,
    ): Promise<Record<string, ThemeSkeleton>>;
    readTheme(themeId: string, realm?: string): Promise<ThemeSkeleton>;
    readThemeByName(themeName: string, realm?: string): Promise<ThemeSkeleton>;
    readThemes(): Promise<ThemeSkeleton[]>;
    updateTheme(
        themeId: string,
        themeData: ThemeSkeleton,
        realm?: string,
    ): Promise<ThemeSkeleton>;
    updateThemeByName(
        themeName: string,
        themeData: ThemeSkeleton,
        realm?: string,
    ): Promise<ThemeSkeleton>;
    updateThemes(
        themeMap: Record<string, ThemeSkeleton>,
    ): Promise<Record<string, ThemeSkeleton>>;
}

Type declaration

  • createTheme:function
  • createThemeExportTemplate:function
  • deleteTheme:function
    • Delete theme by id

      Parameters

      • themeId: string

        theme id

      • Optionalrealm: string

        realm name

      Returns Promise<ThemeSkeleton>

      a promise that resolves to a themes object

  • deleteThemeByName:function
    • Delete theme by name

      Parameters

      • themeName: string

        theme name

      • Optionalrealm: string

        realm name

      Returns Promise<ThemeSkeleton>

      a promise that resolves to a themes object

  • deleteThemes:function
  • exportThemes:function
  • getTheme:function
    • Get theme by id

      Parameters

      • themeId: string

        theme id

      • Optionalrealm: string

        realm name

      Returns Promise<ThemeSkeleton>

      a promise that resolves to a theme object

      since v2.0.0 use readTheme instead

      readTheme(themeId: string, realm?: string): Promise<ThemeSkeleton>
      
  • getThemeByName:function
    • Get theme by name

      Parameters

      • themeName: string

        theme name

      • Optionalrealm: string

        realm name

      Returns Promise<ThemeSkeleton>

      a promise that resolves to a theme object

      since v2.0.0 use readThemeByName instead

      readThemeByName(themeName: string, realm?: string): Promise<ThemeSkeleton>
      
  • getThemes:function
  • importThemes:function
  • putTheme:function
    • Put theme by id

      Parameters

      • themeId: string

        theme id

      • themeData: ThemeSkeleton

        theme object

      • Optionalrealm: string

        realm name

      Returns Promise<ThemeSkeleton>

      a promise that resolves to a theme object

      since v2.0.0 use updateTheme or createTheme instead

      updateTheme(themeId: string, themeData: ThemeSkeleton, realm?: string): Promise<ThemeSkeleton>
      createTheme(themeData: ThemeSkeleton, themeId?: string, realm?: string): Promise<ThemeSkeleton>
  • putThemeByName:function
    • Put theme by name

      Parameters

      • themeName: string

        theme name

      • themeData: ThemeSkeleton

        theme object

      • Optionalrealm: string

        realm name

      Returns Promise<ThemeSkeleton>

      a promise that resolves to a theme object

      since v2.0.0 use updateThemeByName instead

      updateThemeByName(themeName: string, themeData: ThemeSkeleton, realm?: string): Promise<ThemeSkeleton>
      
  • putThemes:function
    • Put all themes

      Parameters

      Returns Promise<Record<string, ThemeSkeleton>>

      a promise that resolves to a themes object

      since v2.0.0 use updateThemes instead

      updateThemes(themeMap: Map<string, ThemeSkeleton>): Promise<Map<string, ThemeSkeleton>>
      
  • readTheme:function
    • Read theme by id

      Parameters

      • themeId: string

        theme id

      • Optionalrealm: string

        realm name

      Returns Promise<ThemeSkeleton>

      a promise that resolves to a theme object

  • readThemeByName:function
    • Read theme by name

      Parameters

      • themeName: string

        theme name

      • Optionalrealm: string

        realm name

      Returns Promise<ThemeSkeleton>

      a promise that resolves to a theme object

  • readThemes:function
  • updateTheme:function
  • updateThemeByName:function
    • Update theme by name

      Parameters

      • themeName: string

        theme name

      • themeData: ThemeSkeleton

        theme object

      • Optionalrealm: string

        realm name

      Returns Promise<ThemeSkeleton>

      a promise that resolves to a theme object

  • updateThemes:function