Closed rozetko closed 4 years ago
what is "analytic unit template" and why did you make it?
@jonyrock-back "analytic unit template" is analytic unit config with some fields changed to variables, e.g.:
It's made for using same analytic units in different Hastic instances or dashboards
This PR partially implements #830: adds an endpoint for exporting analytic units.
Changes
GET /panels/template
endpoint which returns:findMany
method for AnalyticUnitCachefindByAnalyticUnitIds
method for DetectionSpans and SegmentsNotes
We use TypeScript v2.6.8 which lacks "Omit" type from TS 3.5.1. This PR adds this type to
server/src/types.ts
, we can remove it when we'll update TS.