{"size": 949, "ext": "js", "max_stars_repo_path": "packages/webiny-api-cms/src/plugins/entities.js", "max_stars_repo_name": "gatarelib/webiny-js", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "packages/webiny-api-cms/src/plugins/entities.js", "max_issues_repo_name": "gatarelib/webiny-js", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "packages/webiny-api-cms/src/plugins/entities.js", "max_forks_repo_name": "gatarelib/webiny-js", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.6304347826, "max_line_length": 57, "alphanum_fraction": 0.5985247629}
// @flow
import { type EntityPluginType } from "webiny-api/types";
import * as entities from "webiny-api-cms/entities";

const category: EntityPluginType = {
    name: "entity-cms-category",
    type: "entity",
    namespace: "cms",
    entity: {
        name: "Category",
        factory: entities.categoryFactory
    }
};

const element: EntityPluginType = {
    name: "entity-cms-element",
    type: "entity",
    namespace: "cms",
    entity: {
        name: "Element",
        factory: entities.elementFactory
    }
};

const menu: EntityPluginType = {
    name: "entity-cms-menu",
    type: "entity",
    namespace: "cms",
    entity: {
        name: "Menu",
        factory: entities.menuFactory
    }
};

const page: EntityPluginType = {
    name: "entity-cms-page",
    type: "entity",
    namespace: "cms",
    entity: {
        name: "Page",
        factory: entities.pageFactory
    }
};

export default [category, element, menu, page];
