{"size": 745, "ext": "js", "max_stars_repo_path": "lib/devices/GlanceClock/Types/index.js", "max_stars_repo_name": "charlie-cheetah/Cybele", "max_stars_repo_stars_event_min_datetime": "2019-11-15T00:46:41.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-27T13:05:47.000Z", "max_issues_repo_path": "lib/devices/GlanceClock/Types/index.js", "max_issues_repo_name": "charlie-cheetah/Cybele", "max_issues_repo_issues_event_min_datetime": "2019-11-23T19:56:52.000Z", "max_issues_repo_issues_event_max_datetime": "2021-12-26T09:11:52.000Z", "max_forks_repo_path": "lib/devices/GlanceClock/Types/index.js", "max_forks_repo_name": "charlie-cheetah/Cybele", "max_forks_repo_forks_event_min_datetime": "2020-03-19T20:16:19.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-12T08:54:26.000Z"}
{"max_stars_count": 91, "max_issues_count": 21, "max_forks_count": 18, "avg_line_length": 27.5925925926, "max_line_length": 71, "alphanum_fraction": 0.6630872483}
const protobuf = require("protobufjs");
const protoRoot = protobuf.loadSync(require.resolve("./Glance.proto"));

const Types = {
    ENUMS: require("./Enums"),
    ENUMS_REVERSE: {},
    Notice: protoRoot.lookupType("Notice"),
    Timer: protoRoot.lookupType("Timer"),
    TimerInterval: protoRoot.lookupType("Timer.Interval"),
    TextData: require("./TextData"),
    Settings: require("./Settings"),
    ForecastScene: require("./ForecastScene"),
    CustomScene: protoRoot.lookupType("CustomScene")
};

Object.keys(Types.ENUMS).forEach(key => {
    const reversed = {};

    Object.keys(Types.ENUMS[key]).forEach(k => {
        reversed[Types.ENUMS[key][k]] = k;
    });

    Types.ENUMS_REVERSE[key] = reversed;
});

module.exports = Types;
