"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.languageIntegrations = void 0; var _i18n = require("@kbn/i18n"); /* * 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 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ const ELASTIC_WEBSITE_URL = 'https://www.elastic.co'; const ELASTICSEARCH_CLIENT_URL = `${ELASTIC_WEBSITE_URL}/guide/en/elasticsearch/client`; /* - exportLanguageUiComponent: controls whether the integration should export a UI component for language clients to Fleet UI; if false, the URL falls back to `docUrlTemplate`; this logic is handled in `registerCustomIntegration` - integrationsAppUrl: url in Integrations App where the components defined under `public/components/fleet_integration` will be rendered only exported when `exportLanguageUiComponent` is true */ const languageIntegrations = [{ id: 'javascript', title: _i18n.i18n.translate('customIntegrations.languageclients.JavascriptTitle', { defaultMessage: 'Elasticsearch JavaScript Client' }), icon: 'nodejs.svg', description: _i18n.i18n.translate('customIntegrations.languageclients.JavascriptDescription', { defaultMessage: 'Index data to Elasticsearch with the JavaScript client.' }), docUrlTemplate: '', integrationsAppUrl: `/app/integrations/language_clients/javascript/overview`, exportLanguageUiComponent: true }, { id: 'ruby', title: _i18n.i18n.translate('customIntegrations.languageclients.RubyTitle', { defaultMessage: 'Elasticsearch Ruby Client' }), icon: 'ruby.svg', description: _i18n.i18n.translate('customIntegrations.languageclients.RubyDescription', { defaultMessage: 'Index data to Elasticsearch with the Ruby client.' }), docUrlTemplate: '', integrationsAppUrl: `/app/integrations/language_clients/ruby/overview`, exportLanguageUiComponent: true }, { id: 'go', title: _i18n.i18n.translate('customIntegrations.languageclients.GoTitle', { defaultMessage: 'Elasticsearch Go Client' }), icon: 'go.svg', description: _i18n.i18n.translate('customIntegrations.languageclients.GoDescription', { defaultMessage: 'Index data to Elasticsearch with the Go client.' }), docUrlTemplate: '', integrationsAppUrl: `/app/integrations/language_clients/go/overview`, exportLanguageUiComponent: true }, { id: 'dotnet', title: _i18n.i18n.translate('customIntegrations.languageclients.DotNetTitle', { defaultMessage: 'Elasticsearch .NET Client' }), icon: 'dotnet.svg', description: _i18n.i18n.translate('customIntegrations.languageclients.DotNetDescription', { defaultMessage: 'Index data to Elasticsearch with the .NET client.' }), docUrlTemplate: '', integrationsAppUrl: `/app/integrations/language_clients/dotnet/overview`, exportLanguageUiComponent: true }, { id: 'php', title: _i18n.i18n.translate('customIntegrations.languageclients.PhpTitle', { defaultMessage: 'Elasticsearch PHP Client' }), icon: 'php.svg', description: _i18n.i18n.translate('customIntegrations.languageclients.PhpDescription', { defaultMessage: 'Index data to Elasticsearch with the PHP client.' }), docUrlTemplate: '', integrationsAppUrl: `/app/integrations/language_clients/php/overview`, exportLanguageUiComponent: true }, { id: 'perl', title: _i18n.i18n.translate('customIntegrations.languageclients.PerlTitle', { defaultMessage: 'Elasticsearch Perl Client' }), icon: 'perl.svg', description: _i18n.i18n.translate('customIntegrations.languageclients.PerlDescription', { defaultMessage: 'Index data to Elasticsearch with the Perl client.' }), docUrlTemplate: `${ELASTICSEARCH_CLIENT_URL}/perl-api/{branch}/index.html`, integrationsAppUrl: `/app/integrations/language_clients/perl/overview`, exportLanguageUiComponent: false }, { id: 'python', title: _i18n.i18n.translate('customIntegrations.languageclients.PythonTitle', { defaultMessage: 'Elasticsearch Python Client' }), icon: 'python.svg', description: _i18n.i18n.translate('customIntegrations.languageclients.PythonDescription', { defaultMessage: 'Index data to Elasticsearch with the Python client.' }), docUrlTemplate: '', integrationsAppUrl: `/app/integrations/language_clients/python/overview`, exportLanguageUiComponent: true }, { id: 'rust', title: _i18n.i18n.translate('customIntegrations.languageclients.RustTitle', { defaultMessage: 'Elasticsearch Rust Client' }), icon: 'rust.svg', description: _i18n.i18n.translate('customIntegrations.languageclients.RustDescription', { defaultMessage: 'Index data to Elasticsearch with the Rust client.' }), docUrlTemplate: `${ELASTICSEARCH_CLIENT_URL}/rust-api/{branch}/index.html`, integrationsAppUrl: `/app/integrations/language_clients/rust/overview`, exportLanguageUiComponent: false }, { id: 'java', title: _i18n.i18n.translate('customIntegrations.languageclients.JavaTitle', { defaultMessage: 'Elasticsearch Java Client' }), icon: 'java.svg', description: _i18n.i18n.translate('customIntegrations.languageclients.JavaDescription', { defaultMessage: 'Index data to Elasticsearch with the Java client.' }), docUrlTemplate: '', integrationsAppUrl: `/app/integrations/language_clients/java/overview`, exportLanguageUiComponent: true } // Uncomment to show the sample language client card + README UI // { // id: 'sample', // title: i18n.translate('customIntegrations.languageclients.SampleTitle', { // defaultMessage: 'Sample Language Client', // }), // icon: 'es.svg', // description: i18n.translate('customIntegrations.languageclients.SampleDescription', { // defaultMessage: 'Sample language client', // }), // docUrlTemplate: '', // integrationsAppUrl: `/app/integrations/language_clients/sample/overview`, // exportLanguageUiComponent: true, // }, ]; exports.languageIntegrations = languageIntegrations;