UNPKG

@hisptz/react-ui

Version:

A collection of reusable complex DHIS2 react ui components.

50 lines (49 loc) 1.27 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DATA_SOURCES = exports.DATASTORE_FUNCTIONS_ENDPOINT = void 0; const DATA_SOURCES = [{ label: "Indicators", resource: "indicators", groupResource: "indicatorGroups", dimensionItemType: "INDICATOR", groupKey: "indicatorGroups.id", type: "indicator", native: true }, { label: "Program Indicators", resource: "programIndicators", dimensionItemType: "PROGRAM_INDICATOR", groupKey: "program.id", groupResource: "programs", type: "programIndicator", native: true }, { label: "Data Elements", resource: "dataElements", groupResource: "dataElementGroups", dimensionItemType: "DATA_ELEMENT", groupKey: "dataElementGroups.id", type: "dataElement", native: false }, { label: "Data Sets", resource: "dataSets", groupResource: "", dimensionItemType: "", groupKey: "", type: "dataSet", native: false }, { label: "Custom Functions", resource: "customFunctions", groupResource: "", dimensionItemType: "", groupKey: "", type: "customFunction", native: false }]; exports.DATA_SOURCES = DATA_SOURCES; const DATASTORE_FUNCTIONS_ENDPOINT = "dataStore/functions"; exports.DATASTORE_FUNCTIONS_ENDPOINT = DATASTORE_FUNCTIONS_ENDPOINT;