mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
## Summary
This PR refactors the export type classes into their own packages to be
then instantiated in the reporting plugin. This will reduce bloat in the
central reporting plugin.
**Main packages**
- `kbn/reporting-export-types-{png,pdf,csv}` are server packages with
export type declarations
- `kbn/reporting-export-types-{png,pdf,csv}-common` are shared common
packages with type declarations and constants
**Other changes**
- Remove `reporting.getScreenshots()`
- Remove duplicated `schema_utils.ts`
- Consolidate `JOB_STATUS` declaration as an enum
<img width="1063" alt="image"
src="
|
||
---|---|---|
.. | ||
build_kibana_path.ts | ||
cancellation_token.test.ts | ||
cancellation_token.ts | ||
constants.ts | ||
errors.test.ts | ||
errors.ts | ||
index.ts | ||
jest.config.js | ||
kibana.jsonc | ||
package.json | ||
README.md | ||
schema_utils.test.ts | ||
schema_utils.ts | ||
tsconfig.json | ||
types.ts | ||
url.ts |
@kbn/reporting-common
Removes any circular dependency from the reporting plugin and the @kbn/generate-csv package.
This package includes the CancellationToken
class, schema utils, constants, errors that extend ReportingError
, and metrics such as TaskRunResult
. This package is shared-common vs specifically server or browser. The @kbn/reporting-server
package has the server side helpers.