kibana/x-pack/plugins/file_upload/public/kibana_services.js
Aaron Caldwell c4458ca1b4
[File upload] Move File Upload to New Platform (#58550)
* Move file upload to np. Some additional mods & removals

* Consume file upload from NP in maps and pass to kibana services

* Register telemetry mappings

* Init indexPatternService in start method

* Fix type check issues. Add missing prop to telemetry

* Update i18n path

* Review feedback
2020-03-04 06:44:44 -07:00

21 lines
646 B
JavaScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
export let indexPatternService;
export let savedObjectsClient;
export let basePath;
export let kbnFetch;
export const setupInitServicesAndConstants = ({ http }) => {
basePath = http.basePath.basePath;
kbnFetch = http.fetch;
};
export const startInitServicesAndConstants = ({ savedObjects }, { data }) => {
indexPatternService = data.indexPatterns;
savedObjectsClient = savedObjects.client;
};