"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.workpadTemplateType = void 0; var _coreSavedObjectsServer = require("@kbn/core-saved-objects-server"); var _constants = require("../../common/lib/constants"); var _migrations = require("./migrations"); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ const workpadTemplateType = deps => ({ name: _constants.TEMPLATE_TYPE, indexPattern: _coreSavedObjectsServer.ANALYTICS_SAVED_OBJECT_INDEX, hidden: false, namespaceType: 'agnostic', mappings: { dynamic: false, properties: { name: { type: 'text', fields: { keyword: { type: 'keyword' } } }, help: { type: 'text', fields: { keyword: { type: 'keyword' } } }, tags: { type: 'text', fields: { keyword: { type: 'keyword' } } }, template_key: { type: 'keyword' } } }, migrations: () => (0, _migrations.templateWorkpadMigrationsFactory)(deps), management: { importableAndExportable: false, icon: 'canvasApp', defaultSearchField: 'name', getTitle(obj) { return obj.attributes.name; } } }); exports.workpadTemplateType = workpadTemplateType;