@dhis2/analytics 26.8.1 → 26.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getTranslatedString = exports.AO_TYPE_VISUALIZATION = exports.AO_TYPE_MAP = exports.AO_TYPE_EVENT_VISUALIZATION = exports.AOTypeMap = void 0;
6
+ exports.getTranslatedString = exports.AO_TYPE_VISUALIZATION = exports.AO_TYPE_MAP = exports.AO_TYPE_EVENT_VISUALIZATION = exports.AO_TYPE_EVENT_REPORT = exports.AO_TYPE_EVENT_CHART = exports.AOTypeMap = void 0;
7
7
  var _d2I18n = _interopRequireDefault(require("@dhis2/d2-i18n"));
8
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
9
  const AO_TYPE_VISUALIZATION = 'visualization';
@@ -12,6 +12,10 @@ const AO_TYPE_MAP = 'map';
12
12
  exports.AO_TYPE_MAP = AO_TYPE_MAP;
13
13
  const AO_TYPE_EVENT_VISUALIZATION = 'eventVisualization';
14
14
  exports.AO_TYPE_EVENT_VISUALIZATION = AO_TYPE_EVENT_VISUALIZATION;
15
+ const AO_TYPE_EVENT_CHART = 'eventChart';
16
+ exports.AO_TYPE_EVENT_CHART = AO_TYPE_EVENT_CHART;
17
+ const AO_TYPE_EVENT_REPORT = 'eventReport';
18
+ exports.AO_TYPE_EVENT_REPORT = AO_TYPE_EVENT_REPORT;
15
19
  const AOTypeMap = {
16
20
  [AO_TYPE_VISUALIZATION]: {
17
21
  apiEndpoint: 'visualizations'
@@ -21,6 +25,12 @@ const AOTypeMap = {
21
25
  },
22
26
  [AO_TYPE_EVENT_VISUALIZATION]: {
23
27
  apiEndpoint: 'eventVisualizations'
28
+ },
29
+ [AO_TYPE_EVENT_CHART]: {
30
+ apiEndpoint: 'eventCharts'
31
+ },
32
+ [AO_TYPE_EVENT_REPORT]: {
33
+ apiEndpoint: 'eventReports'
24
34
  }
25
35
  };
26
36
  exports.AOTypeMap = AOTypeMap;
@@ -35,6 +45,12 @@ const texts = {
35
45
  [AO_TYPE_VISUALIZATION]: {
36
46
  unitTitle: _d2I18n.default.t('About this visualization')
37
47
  },
48
+ [AO_TYPE_EVENT_CHART]: {
49
+ unitTitle: _d2I18n.default.t('About this event chart')
50
+ },
51
+ [AO_TYPE_EVENT_REPORT]: {
52
+ unitTitle: _d2I18n.default.t('About this event report')
53
+ },
38
54
  [NO_TYPE]: {
39
55
  unitTitle: _d2I18n.default.t('About this visualization')
40
56
  }
@@ -19,6 +19,8 @@
19
19
  "About this map": "About this map",
20
20
  "About this line list": "About this line list",
21
21
  "About this visualization": "About this visualization",
22
+ "About this event chart": "About this event chart",
23
+ "About this event report": "About this event report",
22
24
  "This app could not retrieve required data.": "This app could not retrieve required data.",
23
25
  "Network error": "Network error",
24
26
  "Data / Edit calculation": "Data / Edit calculation",
@@ -2,6 +2,8 @@ import i18n from '@dhis2/d2-i18n';
2
2
  export const AO_TYPE_VISUALIZATION = 'visualization';
3
3
  export const AO_TYPE_MAP = 'map';
4
4
  export const AO_TYPE_EVENT_VISUALIZATION = 'eventVisualization';
5
+ export const AO_TYPE_EVENT_CHART = 'eventChart';
6
+ export const AO_TYPE_EVENT_REPORT = 'eventReport';
5
7
  export const AOTypeMap = {
6
8
  [AO_TYPE_VISUALIZATION]: {
7
9
  apiEndpoint: 'visualizations'
@@ -11,6 +13,12 @@ export const AOTypeMap = {
11
13
  },
12
14
  [AO_TYPE_EVENT_VISUALIZATION]: {
13
15
  apiEndpoint: 'eventVisualizations'
16
+ },
17
+ [AO_TYPE_EVENT_CHART]: {
18
+ apiEndpoint: 'eventCharts'
19
+ },
20
+ [AO_TYPE_EVENT_REPORT]: {
21
+ apiEndpoint: 'eventReports'
14
22
  }
15
23
  };
16
24
  const NO_TYPE = 'NO_TYPE';
@@ -24,6 +32,12 @@ const texts = {
24
32
  [AO_TYPE_VISUALIZATION]: {
25
33
  unitTitle: i18n.t('About this visualization')
26
34
  },
35
+ [AO_TYPE_EVENT_CHART]: {
36
+ unitTitle: i18n.t('About this event chart')
37
+ },
38
+ [AO_TYPE_EVENT_REPORT]: {
39
+ unitTitle: i18n.t('About this event report')
40
+ },
27
41
  [NO_TYPE]: {
28
42
  unitTitle: i18n.t('About this visualization')
29
43
  }
@@ -19,6 +19,8 @@
19
19
  "About this map": "About this map",
20
20
  "About this line list": "About this line list",
21
21
  "About this visualization": "About this visualization",
22
+ "About this event chart": "About this event chart",
23
+ "About this event report": "About this event report",
22
24
  "This app could not retrieve required data.": "This app could not retrieve required data.",
23
25
  "Network error": "Network error",
24
26
  "Data / Edit calculation": "Data / Edit calculation",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2/analytics",
3
- "version": "26.8.1",
3
+ "version": "26.8.2",
4
4
  "main": "./build/cjs/index.js",
5
5
  "module": "./build/es/index.js",
6
6
  "exports": {