@gooddata/sdk-ui-analytical-designer 11.71.0-alpha.2 → 11.71.0-alpha.4
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.
- package/NOTICE +47 -47
- package/esm/components/buckets/MeasureDateFilter.d.ts +4 -2
- package/esm/components/buckets/MeasureDateFilter.d.ts.map +1 -1
- package/esm/components/buckets/MeasureDateFilter.js +5 -3
- package/esm/components/buckets/MeasureDateFilterPicker.d.ts +4 -2
- package/esm/components/buckets/MeasureDateFilterPicker.d.ts.map +1 -1
- package/esm/components/buckets/MeasureDateFilterPicker.js +2 -2
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.js +32 -17
- package/esm/components/filterBar/dateFilter/DateFilter.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/DateFilter.js +3 -4
- package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdown.d.ts +8 -4
- package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdown.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdown.js +13 -6
- package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdownButton.d.ts +4 -3
- package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdownButton.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdownButton.js +2 -2
- package/esm/components/filterBar/dateFilter/PresetSection/PresetsSection.d.ts +6 -2
- package/esm/components/filterBar/dateFilter/PresetSection/PresetsSection.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/PresetSection/PresetsSection.js +16 -5
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonSection.d.ts +4 -2
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonSection.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonSection.js +2 -2
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdown.d.ts +4 -2
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdown.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdown.js +2 -2
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdownItem.d.ts +4 -2
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdownItem.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdownItem.js +11 -11
- package/esm/components/filterBar/dateFilter/dateFilterOptionFactory.d.ts +6 -1
- package/esm/components/filterBar/dateFilter/dateFilterOptionFactory.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/dateFilterOptionFactory.js +14 -0
- package/esm/components/filterBar/dateFilter/selectors.d.ts +94 -3
- package/esm/components/filterBar/dateFilter/selectors.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/selectors.js +3 -0
- package/esm/components/filterBar/dateFilter/types.d.ts +3 -1
- package/esm/components/filterBar/dateFilter/types.d.ts.map +1 -1
- package/esm/models/metadata.d.ts.map +1 -1
- package/esm/models/metadata.js +3 -9
- package/esm/models/period.d.ts +6 -0
- package/esm/models/period.d.ts.map +1 -1
- package/esm/models/period.js +14 -0
- package/esm/postMessageApi/sagas/control_filtering_saga.d.ts +2 -2
- package/esm/postMessageApi/sagas/control_filtering_saga.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/control_filtering_saga.js +22 -5
- package/esm/sagas/catalog/catalog_saga.d.ts.map +1 -1
- package/esm/sagas/catalog/catalog_saga.js +3 -8
- package/esm/sagas/open_report_sagas.d.ts.map +1 -1
- package/esm/sagas/open_report_sagas.js +2 -6
- package/esm/selectors/feature_flag_selector.d.ts +2 -23
- package/esm/selectors/feature_flag_selector.d.ts.map +1 -1
- package/esm/selectors/feature_flag_selector.js +0 -2
- package/esm/selectors/report_visualization_selector.d.ts +0 -12
- package/esm/selectors/report_visualization_selector.d.ts.map +1 -1
- package/esm/store/bucket_filters/bucket_filters_operations.d.ts.map +1 -1
- package/esm/store/bucket_filters/bucket_filters_operations.js +9 -8
- package/esm/translations/en-US.json +12 -0
- package/package.json +21 -21
- package/esm/components/dialog_utils.d.ts +0 -19
- package/esm/components/dialog_utils.d.ts.map +0 -1
- package/esm/components/dialog_utils.js +0 -25
- package/esm/components/filterBar/__mocks__/DraggableFilterItem.d.ts +0 -3
- package/esm/components/filterBar/__mocks__/DraggableFilterItem.d.ts.map +0 -1
- package/esm/components/filterBar/__mocks__/DraggableFilterItem.js +0 -4
- package/esm/components/filterBar/__mocks__/FilterBarList.d.ts +0 -3
- package/esm/components/filterBar/__mocks__/FilterBarList.d.ts.map +0 -1
- package/esm/components/filterBar/__mocks__/FilterBarList.js +0 -4
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/fragments/AdditionalDateAttributes.d.ts +0 -22
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/fragments/AdditionalDateAttributes.d.ts.map +0 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/fragments/AdditionalDateAttributes.js +0 -85
- package/esm/components/filterBar/filterBarDropdown/__mocks__/FilterBarDropdown.d.ts +0 -2
- package/esm/components/filterBar/filterBarDropdown/__mocks__/FilterBarDropdown.d.ts.map +0 -1
- package/esm/components/filterBar/filterBarDropdown/__mocks__/FilterBarDropdown.js +0 -6
- package/esm/components/filterBar/rankingFilter/RankingFilter.test.helpers.d.ts +0 -19
- package/esm/components/filterBar/rankingFilter/RankingFilter.test.helpers.d.ts.map +0 -1
- package/esm/components/filterBar/rankingFilter/RankingFilter.test.helpers.js +0 -70
- package/esm/components/report/report.test.helpers.d.ts +0 -4
- package/esm/components/report/report.test.helpers.d.ts.map +0 -1
- package/esm/components/report/report.test.helpers.js +0 -15
- package/esm/components/sort/fragments/ChartSortFragment.d.ts +0 -24
- package/esm/components/sort/fragments/ChartSortFragment.d.ts.map +0 -1
- package/esm/components/sort/fragments/ChartSortFragment.js +0 -49
- package/esm/models/item_cache.d.ts +0 -10
- package/esm/models/item_cache.d.ts.map +0 -1
- package/esm/models/item_cache.js +0 -19
- package/esm/models/metadata.test.helpers.d.ts +0 -8
- package/esm/models/metadata.test.helpers.d.ts.map +0 -1
- package/esm/models/metadata.test.helpers.js +0 -276
- package/esm/postMessageApi/sagas/mocks.test.helpers.d.ts +0 -3
- package/esm/postMessageApi/sagas/mocks.test.helpers.d.ts.map +0 -1
- package/esm/postMessageApi/sagas/mocks.test.helpers.js +0 -11
- package/esm/sagas/properties_saga_mock.d.ts +0 -22
- package/esm/sagas/properties_saga_mock.d.ts.map +0 -1
- package/esm/sagas/properties_saga_mock.js +0 -18007
- package/esm/selectors/bucket.test.helpers.d.ts +0 -12
- package/esm/selectors/bucket.test.helpers.d.ts.map +0 -1
- package/esm/selectors/bucket.test.helpers.js +0 -83
- package/esm/selectors/date_dataset.test.helpers.d.ts +0 -7
- package/esm/selectors/date_dataset.test.helpers.d.ts.map +0 -1
- package/esm/selectors/date_dataset.test.helpers.js +0 -347
- package/esm/selectors/test_helpers.d.ts +0 -6
- package/esm/selectors/test_helpers.d.ts.map +0 -1
- package/esm/selectors/test_helpers.js +0 -66
- package/esm/services/buckets_service.test.helpers.d.ts +0 -3
- package/esm/services/buckets_service.test.helpers.d.ts.map +0 -1
- package/esm/services/buckets_service.test.helpers.js +0 -94
- package/esm/services/decorated_buckets_service.test.helpers.d.ts +0 -4
- package/esm/services/decorated_buckets_service.test.helpers.d.ts.map +0 -1
- package/esm/services/decorated_buckets_service.test.helpers.js +0 -175
- package/esm/services/telemetry/tracking_state.test.helpers.d.ts +0 -9
- package/esm/services/telemetry/tracking_state.test.helpers.d.ts.map +0 -1
- package/esm/services/telemetry/tracking_state.test.helpers.js +0 -28
- package/esm/store/bucket_filters/bucket_filters.test.helpers.d.ts +0 -4
- package/esm/store/bucket_filters/bucket_filters.test.helpers.d.ts.map +0 -1
- package/esm/store/bucket_filters/bucket_filters.test.helpers.js +0 -12
- package/esm/store/filter_bar/cache_item.test.helpers.d.ts +0 -3
- package/esm/store/filter_bar/cache_item.test.helpers.d.ts.map +0 -1
- package/esm/store/filter_bar/cache_item.test.helpers.js +0 -13
- package/esm/store/filter_bar/invalid_type_guard.test.helpers.d.ts +0 -7
- package/esm/store/filter_bar/invalid_type_guard.test.helpers.d.ts.map +0 -1
- package/esm/store/filter_bar/invalid_type_guard.test.helpers.js +0 -19
- package/esm/store/metric_editor/metric_editor.test.helpers.d.ts +0 -6
- package/esm/store/metric_editor/metric_editor.test.helpers.d.ts.map +0 -1
- package/esm/store/metric_editor/metric_editor.test.helpers.js +0 -17
- package/esm/tests/DateDatasetWithGranularities.test.helpers.d.ts +0 -7
- package/esm/tests/DateDatasetWithGranularities.test.helpers.d.ts.map +0 -1
- package/esm/tests/DateDatasetWithGranularities.test.helpers.js +0 -641
- package/esm/tests/bucket_item.test.helpers.d.ts +0 -3
- package/esm/tests/bucket_item.test.helpers.d.ts.map +0 -1
- package/esm/tests/bucket_item.test.helpers.js +0 -37
- package/esm/tests/buckets_builder.test.helpers.d.ts +0 -33
- package/esm/tests/buckets_builder.test.helpers.d.ts.map +0 -1
- package/esm/tests/buckets_builder.test.helpers.js +0 -89
- package/esm/tests/catalog.test.helpers.d.ts +0 -18
- package/esm/tests/catalog.test.helpers.d.ts.map +0 -1
- package/esm/tests/catalog.test.helpers.js +0 -37
- package/esm/tests/catalog_attribute_hierarchy.test.helpers.d.ts +0 -3
- package/esm/tests/catalog_attribute_hierarchy.test.helpers.d.ts.map +0 -1
- package/esm/tests/catalog_attribute_hierarchy.test.helpers.js +0 -37
- package/esm/tests/catalog_components.test.helpers.d.ts +0 -7
- package/esm/tests/catalog_components.test.helpers.d.ts.map +0 -1
- package/esm/tests/catalog_components.test.helpers.js +0 -53
- package/esm/tests/chart_sort.test.helpers.d.ts +0 -28
- package/esm/tests/chart_sort.test.helpers.d.ts.map +0 -1
- package/esm/tests/chart_sort.test.helpers.js +0 -80
- package/esm/tests/constants.test.helpers.d.ts +0 -230
- package/esm/tests/constants.test.helpers.d.ts.map +0 -1
- package/esm/tests/constants.test.helpers.js +0 -1930
- package/esm/tests/dashboard.test.helpers.d.ts +0 -5
- package/esm/tests/dashboard.test.helpers.d.ts.map +0 -1
- package/esm/tests/dashboard.test.helpers.js +0 -65
- package/esm/tests/data_layer.test.helpers.d.ts +0 -5
- package/esm/tests/data_layer.test.helpers.d.ts.map +0 -1
- package/esm/tests/data_layer.test.helpers.js +0 -106
- package/esm/tests/date_datasets_meta.test.helpers.d.ts +0 -5
- package/esm/tests/date_datasets_meta.test.helpers.d.ts.map +0 -1
- package/esm/tests/date_datasets_meta.test.helpers.js +0 -323
- package/esm/tests/decorated_bucket.test.helpers.d.ts +0 -5
- package/esm/tests/decorated_bucket.test.helpers.d.ts.map +0 -1
- package/esm/tests/decorated_bucket.test.helpers.js +0 -12
- package/esm/tests/extended_reference_point_builder.test.helpers.d.ts +0 -47
- package/esm/tests/extended_reference_point_builder.test.helpers.d.ts.map +0 -1
- package/esm/tests/extended_reference_point_builder.test.helpers.js +0 -36
- package/esm/tests/feature_flags.test.helpers.d.ts +0 -4
- package/esm/tests/feature_flags.test.helpers.d.ts.map +0 -1
- package/esm/tests/feature_flags.test.helpers.js +0 -10
- package/esm/tests/filter.test.helpers.d.ts +0 -22
- package/esm/tests/filter.test.helpers.d.ts.map +0 -1
- package/esm/tests/filter.test.helpers.js +0 -329
- package/esm/tests/insightMocking.test.helpers.d.ts +0 -3
- package/esm/tests/insightMocking.test.helpers.d.ts.map +0 -1
- package/esm/tests/insightMocking.test.helpers.js +0 -13
- package/esm/tests/measure_date_datasets.test.helpers.d.ts +0 -17
- package/esm/tests/measure_date_datasets.test.helpers.d.ts.map +0 -1
- package/esm/tests/measure_date_datasets.test.helpers.js +0 -40
- package/esm/tests/parameter.test.helpers.d.ts +0 -5
- package/esm/tests/parameter.test.helpers.d.ts.map +0 -1
- package/esm/tests/parameter.test.helpers.js +0 -16
- package/esm/tests/reference_point.test.helpers.d.ts +0 -9
- package/esm/tests/reference_point.test.helpers.d.ts.map +0 -1
- package/esm/tests/reference_point.test.helpers.js +0 -29
- package/esm/tests/reference_point_builder.test.helpers.d.ts +0 -20
- package/esm/tests/reference_point_builder.test.helpers.d.ts.map +0 -1
- package/esm/tests/reference_point_builder.test.helpers.js +0 -22
- package/esm/tests/report_builder.test.helpers.d.ts +0 -22
- package/esm/tests/report_builder.test.helpers.d.ts.map +0 -1
- package/esm/tests/report_builder.test.helpers.js +0 -28
- package/esm/tests/route.test.helpers.d.ts +0 -15
- package/esm/tests/route.test.helpers.d.ts.map +0 -1
- package/esm/tests/route.test.helpers.js +0 -9
- package/esm/tests/state.test.helpers.d.ts +0 -3
- package/esm/tests/state.test.helpers.d.ts.map +0 -1
- package/esm/tests/state.test.helpers.js +0 -8
- package/esm/tests/state_builder.test.helpers.d.ts +0 -10
- package/esm/tests/state_builder.test.helpers.d.ts.map +0 -1
- package/esm/tests/state_builder.test.helpers.js +0 -46
- package/esm/tests/visualization_class.test.helpers.d.ts +0 -7
- package/esm/tests/visualization_class.test.helpers.d.ts.map +0 -1
- package/esm/tests/visualization_class.test.helpers.js +0 -16
- package/esm/utils/drilling/executeAfmToAfm.test.helpers.d.ts +0 -32
- package/esm/utils/drilling/executeAfmToAfm.test.helpers.d.ts.map +0 -1
- package/esm/utils/drilling/executeAfmToAfm.test.helpers.js +0 -390
- package/esm/utils/sdkModelToADRep/ReferenceConverter.test.helpers.d.ts +0 -13
- package/esm/utils/sdkModelToADRep/ReferenceConverter.test.helpers.d.ts.map +0 -1
- package/esm/utils/sdkModelToADRep/ReferenceConverter.test.helpers.js +0 -200
|
@@ -1,1930 +0,0 @@
|
|
|
1
|
-
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import { idRef, localIdRef, newAbsoluteDateFilter, newMeasure, newMeasureValueFilter, newNegativeAttributeFilter, newPositiveAttributeFilter, newRankingFilter, newRelativeDateFilter, uriRef, } from "@gooddata/sdk-model";
|
|
3
|
-
import { OverTimeComparisonTypes } from "@gooddata/sdk-ui";
|
|
4
|
-
import { _omit } from "@gooddata/util";
|
|
5
|
-
import { setDateDatasetsMeta } from "../actions/data_actions.js";
|
|
6
|
-
import { ATTRIBUTE, DATE } from "../constants/bucket.js";
|
|
7
|
-
import { LOCAL_BAR, LOCAL_COLUMN, LOCAL_COMBO2, LOCAL_HEADLINE, LOCAL_LINE, LOCAL_PIE, LOCAL_TABLE, } from "../constants/visualization_types.js";
|
|
8
|
-
import { decoratedDateDatasets as createDecoratedDateDatasets } from "../models/date_dataset.js";
|
|
9
|
-
import { DATE_DATASET_ATTRIBUTE } from "../models/date_item.js";
|
|
10
|
-
import { DecoratedDateDataset } from "../models/decorated_date_dataset.js";
|
|
11
|
-
import { combinedRootReducer } from "../reducers/combined_root_reducer.js";
|
|
12
|
-
import { dateDatasetsInitialState } from "../store/date_datasets/date_datasets_state.js";
|
|
13
|
-
import { newInsight } from "../tests/insightMocking.test.helpers.js";
|
|
14
|
-
import { withData } from "../tests/state_builder.test.helpers.js";
|
|
15
|
-
import { ArithmeticOperatorType } from "../typings/arithmetic_measure.js";
|
|
16
|
-
export const elements = [
|
|
17
|
-
{
|
|
18
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/949/elements?id=168279",
|
|
19
|
-
title: "CompuSci",
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/949/elements?id=168282",
|
|
23
|
-
title: "Educationly",
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/949/elements?id=169655",
|
|
27
|
-
title: "Explorer",
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/949/elements?id=168284",
|
|
31
|
-
title: "Grammar Plus",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/949/elements?id=964771",
|
|
35
|
-
title: "PhoenixSoft",
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/949/elements?id=169656",
|
|
39
|
-
title: "TouchAll",
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/949/elements?id=965523",
|
|
43
|
-
title: "WonderKid",
|
|
44
|
-
},
|
|
45
|
-
];
|
|
46
|
-
// State fixtures hold these mocks BY REFERENCE, so a single in-place mutation anywhere would
|
|
47
|
-
// corrupt every later test in the worker. Deep-freeze turns that into a loud throw at the
|
|
48
|
-
// mutation site.
|
|
49
|
-
function deepFreezeMock(value) {
|
|
50
|
-
if (value && typeof value === "object") {
|
|
51
|
-
Object.values(value).forEach(deepFreezeMock);
|
|
52
|
-
Object.freeze(value);
|
|
53
|
-
}
|
|
54
|
-
return value;
|
|
55
|
-
}
|
|
56
|
-
export const defaultBuckets = deepFreezeMock([
|
|
57
|
-
{
|
|
58
|
-
localIdentifier: "measures",
|
|
59
|
-
items: [],
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
localIdentifier: "view",
|
|
63
|
-
items: [],
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
localIdentifier: "stack",
|
|
67
|
-
items: [],
|
|
68
|
-
},
|
|
69
|
-
]);
|
|
70
|
-
export const tableVisualizationClass = {
|
|
71
|
-
visualizationClass: {
|
|
72
|
-
checksum: "local",
|
|
73
|
-
icon: "local:table",
|
|
74
|
-
iconSelected: "local:table.selected",
|
|
75
|
-
orderIndex: 0.0,
|
|
76
|
-
identifier: "id_table",
|
|
77
|
-
url: LOCAL_TABLE,
|
|
78
|
-
uri: "/gdc/md/mockproject/obj/table",
|
|
79
|
-
title: "Table",
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
export const columnVisualizationClass = {
|
|
83
|
-
visualizationClass: {
|
|
84
|
-
checksum: "local",
|
|
85
|
-
icon: "local:column",
|
|
86
|
-
iconSelected: "local:column.selected",
|
|
87
|
-
orderIndex: 1.0,
|
|
88
|
-
identifier: "id_column",
|
|
89
|
-
uri: "/gdc/md/mockproject/obj/column",
|
|
90
|
-
url: LOCAL_COLUMN,
|
|
91
|
-
title: "Column chart",
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
export const barVisualizationClass = {
|
|
95
|
-
visualizationClass: {
|
|
96
|
-
checksum: "local",
|
|
97
|
-
icon: "local:bar",
|
|
98
|
-
iconSelected: "local:bar.selected",
|
|
99
|
-
orderIndex: 2.0,
|
|
100
|
-
identifier: "id_bar",
|
|
101
|
-
uri: "/gdc/md/mockproject/obj/bar",
|
|
102
|
-
url: LOCAL_BAR,
|
|
103
|
-
title: "Bar chart",
|
|
104
|
-
},
|
|
105
|
-
};
|
|
106
|
-
export const lineVisualizationClass = {
|
|
107
|
-
visualizationClass: {
|
|
108
|
-
checksum: "local",
|
|
109
|
-
icon: "local:line",
|
|
110
|
-
iconSelected: "local:line.selected",
|
|
111
|
-
orderIndex: 3.0,
|
|
112
|
-
identifier: "id_line",
|
|
113
|
-
uri: "/gdc/md/mockproject/obj/line",
|
|
114
|
-
url: LOCAL_LINE,
|
|
115
|
-
title: "Line chart",
|
|
116
|
-
},
|
|
117
|
-
};
|
|
118
|
-
export const pieVisualizationClass = {
|
|
119
|
-
visualizationClass: {
|
|
120
|
-
checksum: "local",
|
|
121
|
-
icon: "local:pie",
|
|
122
|
-
iconSelected: "local:pie.selected",
|
|
123
|
-
orderIndex: 4.0,
|
|
124
|
-
identifier: "id_pie",
|
|
125
|
-
uri: "/gdc/md/mockproject/obj/pie",
|
|
126
|
-
url: LOCAL_PIE,
|
|
127
|
-
title: "Pie chart",
|
|
128
|
-
},
|
|
129
|
-
};
|
|
130
|
-
export const comboVisualizationClass = {
|
|
131
|
-
visualizationClass: {
|
|
132
|
-
checksum: "local",
|
|
133
|
-
icon: "local:combo",
|
|
134
|
-
iconSelected: "local:combo.selected",
|
|
135
|
-
orderIndex: 4.0,
|
|
136
|
-
identifier: "id_combo",
|
|
137
|
-
uri: "/gdc/md/mockproject/obj/combo",
|
|
138
|
-
url: LOCAL_COMBO2,
|
|
139
|
-
title: "Combo chart",
|
|
140
|
-
},
|
|
141
|
-
};
|
|
142
|
-
export const headlineVisualizationClass = {
|
|
143
|
-
visualizationClass: {
|
|
144
|
-
checksum: "local",
|
|
145
|
-
icon: "local:headline",
|
|
146
|
-
iconSelected: "local:headline.selected",
|
|
147
|
-
orderIndex: 4.0,
|
|
148
|
-
identifier: "id_headline",
|
|
149
|
-
uri: "/gdc/md/mockproject/obj/headline",
|
|
150
|
-
url: LOCAL_HEADLINE,
|
|
151
|
-
title: "Headline chart",
|
|
152
|
-
},
|
|
153
|
-
};
|
|
154
|
-
export const defaultVisualizationClasses = [
|
|
155
|
-
tableVisualizationClass,
|
|
156
|
-
columnVisualizationClass,
|
|
157
|
-
barVisualizationClass,
|
|
158
|
-
lineVisualizationClass,
|
|
159
|
-
pieVisualizationClass,
|
|
160
|
-
];
|
|
161
|
-
export const defaultUiConfig = {
|
|
162
|
-
buckets: {
|
|
163
|
-
measures: {
|
|
164
|
-
accepts: ["metric", "fact", "attribute"],
|
|
165
|
-
allowsDuplicateItems: true,
|
|
166
|
-
enabled: true,
|
|
167
|
-
allowsReordering: true,
|
|
168
|
-
allowsSwapping: false,
|
|
169
|
-
itemsLimit: 20,
|
|
170
|
-
isShowInPercentEnabled: false,
|
|
171
|
-
canAddItems: true,
|
|
172
|
-
title: "Measures",
|
|
173
|
-
},
|
|
174
|
-
view: {
|
|
175
|
-
accepts: ["attribute", "date"],
|
|
176
|
-
itemsLimit: 1,
|
|
177
|
-
allowsSwapping: true,
|
|
178
|
-
allowsReordering: false,
|
|
179
|
-
enabled: true,
|
|
180
|
-
canAddItems: true,
|
|
181
|
-
isShowInPercentEnabled: false,
|
|
182
|
-
title: "View by",
|
|
183
|
-
},
|
|
184
|
-
stack: {
|
|
185
|
-
accepts: ["attribute"],
|
|
186
|
-
itemsLimit: 1,
|
|
187
|
-
allowsSwapping: true,
|
|
188
|
-
allowsReordering: false,
|
|
189
|
-
enabled: true,
|
|
190
|
-
isShowInPercentEnabled: false,
|
|
191
|
-
canAddItems: true,
|
|
192
|
-
title: "Stack by",
|
|
193
|
-
},
|
|
194
|
-
filters: {
|
|
195
|
-
accepts: ["attribute", "date"],
|
|
196
|
-
itemsLimit: 20,
|
|
197
|
-
allowsReordering: false,
|
|
198
|
-
enabled: true,
|
|
199
|
-
isShowInPercentEnabled: false,
|
|
200
|
-
},
|
|
201
|
-
},
|
|
202
|
-
};
|
|
203
|
-
export const countryElements = [
|
|
204
|
-
{
|
|
205
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/901/elements?id=168288",
|
|
206
|
-
title: "US & A",
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/901/elements?id=168289",
|
|
210
|
-
title: "Canada",
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/901/elements?id=168290",
|
|
214
|
-
title: "Colombia",
|
|
215
|
-
},
|
|
216
|
-
];
|
|
217
|
-
export const countryElementNotAvailable = {
|
|
218
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/901/elements?id=666",
|
|
219
|
-
title: "/gdc/md/TeamOneGoodSales1/obj/901/elements?id=666",
|
|
220
|
-
available: false,
|
|
221
|
-
};
|
|
222
|
-
export const cartAdditionsFact = {
|
|
223
|
-
id: "fact.spend_analysis.cart_additions",
|
|
224
|
-
identifier: "fact.spend_analysis.cart_additions",
|
|
225
|
-
isAvailable: true,
|
|
226
|
-
summary: "",
|
|
227
|
-
title: "Cart Additions",
|
|
228
|
-
type: "fact",
|
|
229
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15418",
|
|
230
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/15418"),
|
|
231
|
-
};
|
|
232
|
-
export const awarenessMetric = {
|
|
233
|
-
expression: "SELECT SUM([/gdc/md/TeamOneGoodSales1/obj/15417])",
|
|
234
|
-
format: "[>=1000000000]$#,,,.0 B;[<=-1000000000]-$#,,,.0 B;[>=1000000]$#,,.0 M;[<=-1000000]-$#,,.0 M;[>=1000]$#,.0 K;[<=-1000]-$#,.0 K;$#,##0",
|
|
235
|
-
id: "aaeFKXFYiCc0",
|
|
236
|
-
identifier: "aaeFKXFYiCc0",
|
|
237
|
-
isMeasure: true,
|
|
238
|
-
isAvailable: true,
|
|
239
|
-
summary: "",
|
|
240
|
-
title: "Awareness",
|
|
241
|
-
type: "metric",
|
|
242
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/16212",
|
|
243
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/16212"),
|
|
244
|
-
};
|
|
245
|
-
export const awarenessMetricLong = {
|
|
246
|
-
...awarenessMetric,
|
|
247
|
-
id: `${awarenessMetric.id}_long`,
|
|
248
|
-
identifier: `${awarenessMetric.identifier}_long`,
|
|
249
|
-
title: "Awareness_5UOwfhdsuaijxVxvh1Q6uYAcSZP1qTdDrnCW9m1RsDfTX0vHdk3tqWMxAM8JlcUxpP979Ip3GlbgzOtZQSG9jvNHUllj2AwY5FLc1L5Q91sBW5DFAelefEEvLSIhrqvhgdat2zu0TGxqJdPfcKSPoUciPtZYZ3vBLZWeX4sVpmrbVbga3cSuOIBzLBISJi7ie8Cd6yhdPxe3vE0OFHfV1ynuGpymtXAkJwcoI8F3NOQ6jXmbQdrGdjaFJWrDGGIRoNwWVI0mAhN8Rd1kJXJCccBiZISTlXOS1BgAFBsf2Z6uH1GDVu3NbCZeb3EdCfk3qWqeeVkSJTBtRnL5HIm2DKsNVaj3FtlgJvLc2jMYrPRdDbIRG3ivkc9Ergu5y82EvOpc1USG7QMb07T8A1fu9ihcUDYmdOlzVkUGfthYyXZI8jXxa6jVYEkbO32KimIYehXU0EOCNILkXHrAAZDqr6RmLEEm3PgSK4ZNaJghqQe2l6tPLTX6cp0glA3YFPUVuIeZYQ1H6455dm6yQqOE79abAMK0wOjyET2n9cSk6Qch3PIah2Oc9gwenKHsjgu0ol82a7xw3pWoCsTQFofPycEM45kO9eCfrks4BoObofynUvOJADkA9qUL72AKUxzC894nfGcLGPnlzal8lS9WASwRAFV9RXT5GqlMu5jo4xlXfOtEMnKaovQvw0Uh1nTsmT0OsiHlrRSwi3eCZrUr7XDJ3XSlAVCmLPJit4AGExvOXDBrYgLULBPcJTaHa3mvXQJ4iCjZWY552EOOMFCgmJKANFwLTUnytbHqq0piXYjyTUIWpHSIgsFAmqleiOfmMW41RbdjYRYZUyDv7unRd19U0TFCLSY35WvjiOrfyb30HlhRzEe8bvPu8RC6XxMREwIt51acbJp1tiHKlX4kW3zLk36wdwg6Na38mwb9xvXAMWSdi0rBDYm6SEPKdhhWeCTa590f3lqPwX9Mu7734ns8fleya3nste5vdbc8_end",
|
|
250
|
-
};
|
|
251
|
-
export const awarenessMetricPercent = {
|
|
252
|
-
...awarenessMetric,
|
|
253
|
-
id: `${awarenessMetric.id}_percent`,
|
|
254
|
-
identifier: `${awarenessMetric.identifier}_percent`,
|
|
255
|
-
title: `${awarenessMetric.title}_percent`,
|
|
256
|
-
format: "#,##0%",
|
|
257
|
-
};
|
|
258
|
-
export const productAttribute = {
|
|
259
|
-
dimensionUri: "/gdc/md/TeamOneGoodSales1/obj/948",
|
|
260
|
-
summary: "",
|
|
261
|
-
identifier: "attr.product.id",
|
|
262
|
-
dfRef: uriRef("/gdc/md/TeamOneGoodSales1/obj/952"),
|
|
263
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/952",
|
|
264
|
-
dfIdentifier: "label.product.id.name",
|
|
265
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/949",
|
|
266
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/949"),
|
|
267
|
-
granularity: "attr.product.id",
|
|
268
|
-
elementsUri: "/gdc/md/TeamOneGoodSales1/obj/952/elements",
|
|
269
|
-
title: "Product",
|
|
270
|
-
type: "attribute",
|
|
271
|
-
id: "attr.product.id",
|
|
272
|
-
attribute: "attr.product.id",
|
|
273
|
-
isAvailable: true,
|
|
274
|
-
displayForms: [
|
|
275
|
-
{
|
|
276
|
-
id: "label.product.id.name",
|
|
277
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/952",
|
|
278
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/952"),
|
|
279
|
-
type: undefined,
|
|
280
|
-
title: "Product (long)",
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
id: "label.product.id.name.short",
|
|
284
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/953",
|
|
285
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/953"),
|
|
286
|
-
type: undefined,
|
|
287
|
-
title: "Product (short)",
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
id: "label.product.id.name.legacyGeo",
|
|
291
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/954",
|
|
292
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/954"),
|
|
293
|
-
type: "GDC.geo.ausstates.code",
|
|
294
|
-
title: "Product (location)",
|
|
295
|
-
},
|
|
296
|
-
],
|
|
297
|
-
};
|
|
298
|
-
// seeded both as an itemCache entry and as a raw VIEW bucket item (highlighting saga)
|
|
299
|
-
export const countryAttribute = {
|
|
300
|
-
dimensionUri: "/gdc/md/TeamOneGoodSales1/obj/902",
|
|
301
|
-
summary: "",
|
|
302
|
-
identifier: "attr.country.id",
|
|
303
|
-
dfRef: uriRef("/gdc/md/TeamOneGoodSales1/obj/902"),
|
|
304
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/902",
|
|
305
|
-
dfUris: ["/gdc/md/TeamOneGoodSales1/obj/902", "/gdc/md/TeamOneGoodSales1/obj/900"],
|
|
306
|
-
dfIdentifier: "label.country.id.name",
|
|
307
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/901",
|
|
308
|
-
granularity: "attr.country.id",
|
|
309
|
-
elementsUri: "/gdc/md/TeamOneGoodSales1/obj/901/elements",
|
|
310
|
-
title: "Country",
|
|
311
|
-
type: "attribute",
|
|
312
|
-
id: "attr.country.id",
|
|
313
|
-
attribute: "attr.country.id",
|
|
314
|
-
isAvailable: true,
|
|
315
|
-
localIdentifier: "a1",
|
|
316
|
-
};
|
|
317
|
-
export const currencyAttribute = {
|
|
318
|
-
dimensionUri: "/dimension/uri",
|
|
319
|
-
summary: "",
|
|
320
|
-
identifier: "attr.currency.id",
|
|
321
|
-
dfRef: uriRef("/df/uri"),
|
|
322
|
-
dfUri: "/df/uri",
|
|
323
|
-
dfIdentifier: "label.currency.id.name",
|
|
324
|
-
uri: "/uri",
|
|
325
|
-
granularity: "attr.currency.id",
|
|
326
|
-
elementsUri: "/uri/elements",
|
|
327
|
-
title: "Currency",
|
|
328
|
-
type: "attribute",
|
|
329
|
-
id: "attr.currency.id",
|
|
330
|
-
isAvailable: true,
|
|
331
|
-
displayForms: [
|
|
332
|
-
{
|
|
333
|
-
id: "label.currency.id.name",
|
|
334
|
-
uri: "/df/uri",
|
|
335
|
-
ref: uriRef("/df/uri"),
|
|
336
|
-
type: undefined,
|
|
337
|
-
title: "Currency",
|
|
338
|
-
},
|
|
339
|
-
],
|
|
340
|
-
};
|
|
341
|
-
export const cityAttribute = {
|
|
342
|
-
dimensionUri: "/dimension/uri",
|
|
343
|
-
summary: "",
|
|
344
|
-
identifier: "attr.city.id",
|
|
345
|
-
dfUri: "/df/uri",
|
|
346
|
-
dfIdentifier: "label.currency.id.name",
|
|
347
|
-
uri: "/uri",
|
|
348
|
-
granularity: "attr.currency.id",
|
|
349
|
-
elementsUri: "/uri/elements",
|
|
350
|
-
title: "Currency",
|
|
351
|
-
type: "attribute",
|
|
352
|
-
id: "attr.currency.id",
|
|
353
|
-
isAvailable: true,
|
|
354
|
-
isLocationIconVisible: true,
|
|
355
|
-
locationDisplayFormUri: "/uri/geoDF",
|
|
356
|
-
locationDisplayFormRef: uriRef("/uri/geoDF"),
|
|
357
|
-
displayForms: [
|
|
358
|
-
{
|
|
359
|
-
id: "label.city.id.name",
|
|
360
|
-
uri: "/city/df/uri",
|
|
361
|
-
ref: uriRef("/city/df/uri"),
|
|
362
|
-
type: "GDC.geo.pin",
|
|
363
|
-
title: "City",
|
|
364
|
-
},
|
|
365
|
-
],
|
|
366
|
-
};
|
|
367
|
-
export const repPerformanceComputedAttribute = {
|
|
368
|
-
identifier: "rep_performance",
|
|
369
|
-
ref: idRef("rep_performance", "computedAttribute"),
|
|
370
|
-
dfRef: idRef("rep_performance", "computedAttribute"),
|
|
371
|
-
dfIdentifier: "rep_performance",
|
|
372
|
-
title: "Rep Performance",
|
|
373
|
-
type: "computedAttribute",
|
|
374
|
-
};
|
|
375
|
-
export const itemCache = {
|
|
376
|
-
"fact.fact.spend_analysis.cart_additions": cartAdditionsFact,
|
|
377
|
-
"attribute.fact.spend_analysis.cart_additions": cartAdditionsFact,
|
|
378
|
-
"attribute.aaeFKXFYiCc0": awarenessMetric,
|
|
379
|
-
"metric.aaeFKXFYiCc0": awarenessMetric,
|
|
380
|
-
"metric.aaeFKXFYiCc0_long": awarenessMetricLong,
|
|
381
|
-
"metric.aaeFKXFYiCc0_percent": awarenessMetricPercent,
|
|
382
|
-
"attribute.attr.product.id": productAttribute,
|
|
383
|
-
"computedAttribute.rep_performance": repPerformanceComputedAttribute,
|
|
384
|
-
"attribute.attr.country.id": countryAttribute,
|
|
385
|
-
"attribute.attr.currency.id": currencyAttribute,
|
|
386
|
-
"attribute.attr.city.id": cityAttribute,
|
|
387
|
-
"activity.date": idRef("activity.date"),
|
|
388
|
-
"activity.week": idRef("activity.week"),
|
|
389
|
-
"activity.month": idRef("activity.month"),
|
|
390
|
-
"activity.quarter": idRef("activity.quarter"),
|
|
391
|
-
"activity.year": idRef("activity.year"),
|
|
392
|
-
"activity.day.in.week": idRef("activity.day.in.week"),
|
|
393
|
-
"activity.day.in.month": idRef("activity.day.in.month"),
|
|
394
|
-
"activity.day.in.quarter": idRef("activity.day.in.quarter"),
|
|
395
|
-
"activity.day.in.year": idRef("activity.day.in.year"),
|
|
396
|
-
"activity.week.in.quarter": idRef("activity.week.in.quarter"),
|
|
397
|
-
"activity.week.in.year": idRef("activity.week.in.year"),
|
|
398
|
-
"activity.month.in.quarter": idRef("activity.month.in.quarter"),
|
|
399
|
-
"activity.month.in.year": idRef("activity.month.in.year"),
|
|
400
|
-
"activity.quarter.in.year": idRef("activity.quarter.in.year"),
|
|
401
|
-
"timeline.date": idRef("timeline.date"),
|
|
402
|
-
"timeline.week": idRef("timeline.week"),
|
|
403
|
-
"timeline.month": idRef("timeline.month"),
|
|
404
|
-
"timeline.quarter": idRef("timeline.quarter"),
|
|
405
|
-
"timeline.year": idRef("timeline.year"),
|
|
406
|
-
"timeline.day.in.week": idRef("timeline.day.in.week"),
|
|
407
|
-
"timeline.day.in.month": idRef("timeline.day.in.month"),
|
|
408
|
-
"timeline.day.in.quarter": idRef("timeline.day.in.quarter"),
|
|
409
|
-
"timeline.day.in.year": idRef("timeline.day.in.year"),
|
|
410
|
-
"timeline.week.in.quarter": idRef("timeline.week.in.quarter"),
|
|
411
|
-
"timeline.week.in.year": idRef("timeline.week.in.year"),
|
|
412
|
-
"timeline.month.in.quarter": idRef("timeline.month.in.quarter"),
|
|
413
|
-
"timeline.month.in.year": idRef("timeline.month.in.year"),
|
|
414
|
-
"timeline.quarter.in.year": idRef("timeline.quarter.in.year"),
|
|
415
|
-
};
|
|
416
|
-
export const dateCreated = {
|
|
417
|
-
attributes: [
|
|
418
|
-
{
|
|
419
|
-
dateType: "GDC.time.year",
|
|
420
|
-
dfRef: uriRef("/gdc/md/project/obj/df_one"),
|
|
421
|
-
dfUri: "/gdc/md/project/obj/df_one",
|
|
422
|
-
dfIdentifier: "activity.df.one",
|
|
423
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/701",
|
|
424
|
-
granularity: "activity.year",
|
|
425
|
-
title: "Year (Activity)",
|
|
426
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/701"),
|
|
427
|
-
displayForms: [
|
|
428
|
-
{
|
|
429
|
-
id: "activity.df.one",
|
|
430
|
-
uri: "/gdc/md/project/obj/df_one",
|
|
431
|
-
ref: uriRef("/gdc/md/project/obj/df_one"),
|
|
432
|
-
title: "Year (Activity)",
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
id: "activity.df.two",
|
|
436
|
-
uri: "/gdc/md/project/obj/df_two",
|
|
437
|
-
ref: uriRef("/gdc/md/project/obj/df_two"),
|
|
438
|
-
title: "Year (Activity) - alternative",
|
|
439
|
-
},
|
|
440
|
-
],
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
dateType: "GDC.time.week_us",
|
|
444
|
-
dfRef: uriRef("/gdc/md/TeamOneGoodSales1/obj/629"),
|
|
445
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/629",
|
|
446
|
-
dfIdentifier: "date.dim_date",
|
|
447
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/624",
|
|
448
|
-
granularity: "activity.euweek",
|
|
449
|
-
title: "Week/Year (Activity)",
|
|
450
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/624"),
|
|
451
|
-
displayForms: [
|
|
452
|
-
{
|
|
453
|
-
id: "date.dim_date",
|
|
454
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/629",
|
|
455
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/629"),
|
|
456
|
-
title: "Week/Year (Activity)",
|
|
457
|
-
},
|
|
458
|
-
],
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
dateType: "GDC.time.quarter",
|
|
462
|
-
dfRef: uriRef("/gdc/md/TeamOneGoodSales1/obj/1629"),
|
|
463
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/1629",
|
|
464
|
-
dfIdentifier: "quarter.dim_date",
|
|
465
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/1624",
|
|
466
|
-
granularity: "GDC.time.quarter",
|
|
467
|
-
title: "Quarter (Activity)",
|
|
468
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/1624"),
|
|
469
|
-
displayForms: [],
|
|
470
|
-
},
|
|
471
|
-
],
|
|
472
|
-
id: "date.dim_date",
|
|
473
|
-
identifier: "date.dim_date",
|
|
474
|
-
isAvailable: true,
|
|
475
|
-
relevance: 0,
|
|
476
|
-
summary: "Date dimension (Date Created)",
|
|
477
|
-
title: "Date dimension (Date Created)",
|
|
478
|
-
type: "dimension",
|
|
479
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15174",
|
|
480
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/15174"),
|
|
481
|
-
};
|
|
482
|
-
export const measureBucketItems = deepFreezeMock([
|
|
483
|
-
{
|
|
484
|
-
attribute: "aaeFKXFYiCc0",
|
|
485
|
-
aggregation: null,
|
|
486
|
-
alias: null,
|
|
487
|
-
filters: [],
|
|
488
|
-
showInPercent: false,
|
|
489
|
-
showOnSecondaryAxis: false,
|
|
490
|
-
isTotalMeasure: false,
|
|
491
|
-
isThresholdMeasure: false,
|
|
492
|
-
localIdentifier: "m1",
|
|
493
|
-
type: "metric",
|
|
494
|
-
format: null,
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
aggregation: "sum",
|
|
498
|
-
alias: null,
|
|
499
|
-
attribute: "fact.spend_analysis.cart_additions",
|
|
500
|
-
filters: [],
|
|
501
|
-
showInPercent: true,
|
|
502
|
-
showOnSecondaryAxis: false,
|
|
503
|
-
isTotalMeasure: false,
|
|
504
|
-
isThresholdMeasure: false,
|
|
505
|
-
localIdentifier: "m2",
|
|
506
|
-
type: "metric",
|
|
507
|
-
format: "#,##0.00%",
|
|
508
|
-
},
|
|
509
|
-
{
|
|
510
|
-
attribute: "aaeFKXFYiCc0",
|
|
511
|
-
aggregation: null,
|
|
512
|
-
alias: null,
|
|
513
|
-
showInPercent: false,
|
|
514
|
-
showOnSecondaryAxis: false,
|
|
515
|
-
isTotalMeasure: false,
|
|
516
|
-
isThresholdMeasure: false,
|
|
517
|
-
type: "metric",
|
|
518
|
-
localIdentifier: "m3_pop",
|
|
519
|
-
filters: [],
|
|
520
|
-
masterLocalIdentifier: "m3",
|
|
521
|
-
overTimeComparisonType: OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR,
|
|
522
|
-
format: null,
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
attribute: "aaeFKXFYiCc0",
|
|
526
|
-
aggregation: null,
|
|
527
|
-
alias: "renamed",
|
|
528
|
-
showInPercent: false,
|
|
529
|
-
showOnSecondaryAxis: false,
|
|
530
|
-
isTotalMeasure: false,
|
|
531
|
-
isThresholdMeasure: false,
|
|
532
|
-
type: "metric",
|
|
533
|
-
localIdentifier: "m3_renamed_pop",
|
|
534
|
-
filters: [],
|
|
535
|
-
masterLocalIdentifier: "m3",
|
|
536
|
-
overTimeComparisonType: OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR,
|
|
537
|
-
format: null,
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
attribute: "aaeFKXFYiCc0",
|
|
541
|
-
aggregation: null,
|
|
542
|
-
alias: null,
|
|
543
|
-
showInPercent: false,
|
|
544
|
-
showOnSecondaryAxis: false,
|
|
545
|
-
isTotalMeasure: false,
|
|
546
|
-
isThresholdMeasure: false,
|
|
547
|
-
type: "metric",
|
|
548
|
-
localIdentifier: "m3",
|
|
549
|
-
format: null,
|
|
550
|
-
filters: [
|
|
551
|
-
{
|
|
552
|
-
attribute: countryAttribute.id,
|
|
553
|
-
displayFormRef: countryAttribute.dfRef,
|
|
554
|
-
allElements: countryElements,
|
|
555
|
-
selectedElements: [countryElements[0], countryElementNotAvailable],
|
|
556
|
-
isInverted: false,
|
|
557
|
-
totalElementsCount: countryElements.length,
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
attribute: DATE_DATASET_ATTRIBUTE,
|
|
561
|
-
allElements: [],
|
|
562
|
-
selectedElements: [],
|
|
563
|
-
isInverted: true,
|
|
564
|
-
totalElementsCount: 0,
|
|
565
|
-
dimension: "date.dim_date",
|
|
566
|
-
overTimeComparisonType: null,
|
|
567
|
-
interval: {
|
|
568
|
-
granularity: "GDC.time.year",
|
|
569
|
-
type: "relative",
|
|
570
|
-
interval: [-5, -5],
|
|
571
|
-
},
|
|
572
|
-
},
|
|
573
|
-
],
|
|
574
|
-
},
|
|
575
|
-
{
|
|
576
|
-
aggregation: "count",
|
|
577
|
-
attribute: "attr.product.id",
|
|
578
|
-
alias: null,
|
|
579
|
-
showInPercent: false,
|
|
580
|
-
showOnSecondaryAxis: false,
|
|
581
|
-
isTotalMeasure: false,
|
|
582
|
-
isThresholdMeasure: false,
|
|
583
|
-
filters: [],
|
|
584
|
-
localIdentifier: "m4",
|
|
585
|
-
type: "metric",
|
|
586
|
-
format: "#,##0",
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
attribute: "aaeFKXFYiCc0",
|
|
590
|
-
aggregation: null,
|
|
591
|
-
alias: null,
|
|
592
|
-
showInPercent: false,
|
|
593
|
-
showOnSecondaryAxis: false,
|
|
594
|
-
isTotalMeasure: false,
|
|
595
|
-
isThresholdMeasure: false,
|
|
596
|
-
type: "metric",
|
|
597
|
-
localIdentifier: "m3_previous_period",
|
|
598
|
-
filters: [],
|
|
599
|
-
masterLocalIdentifier: "m3",
|
|
600
|
-
overTimeComparisonType: OverTimeComparisonTypes.PREVIOUS_PERIOD,
|
|
601
|
-
format: null,
|
|
602
|
-
},
|
|
603
|
-
{
|
|
604
|
-
attribute: "aaeFKXFYiCc0",
|
|
605
|
-
aggregation: null,
|
|
606
|
-
alias: "previous_period_renamed",
|
|
607
|
-
showInPercent: false,
|
|
608
|
-
showOnSecondaryAxis: false,
|
|
609
|
-
isTotalMeasure: false,
|
|
610
|
-
isThresholdMeasure: false,
|
|
611
|
-
type: "metric",
|
|
612
|
-
localIdentifier: "m3_renamed_previous_period",
|
|
613
|
-
filters: [],
|
|
614
|
-
masterLocalIdentifier: "m3",
|
|
615
|
-
overTimeComparisonType: OverTimeComparisonTypes.PREVIOUS_PERIOD,
|
|
616
|
-
format: null,
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
attribute: null,
|
|
620
|
-
aggregation: null,
|
|
621
|
-
alias: null,
|
|
622
|
-
filters: [],
|
|
623
|
-
showInPercent: false,
|
|
624
|
-
showOnSecondaryAxis: false,
|
|
625
|
-
isTotalMeasure: false,
|
|
626
|
-
isThresholdMeasure: false,
|
|
627
|
-
localIdentifier: "m5",
|
|
628
|
-
type: "metric",
|
|
629
|
-
operandLocalIdentifiers: ["m1", "m2"],
|
|
630
|
-
operator: ArithmeticOperatorType.SUM,
|
|
631
|
-
format: "##AM",
|
|
632
|
-
},
|
|
633
|
-
{
|
|
634
|
-
attribute: null,
|
|
635
|
-
aggregation: null,
|
|
636
|
-
alias: null,
|
|
637
|
-
filters: [],
|
|
638
|
-
showInPercent: false,
|
|
639
|
-
showOnSecondaryAxis: false,
|
|
640
|
-
isTotalMeasure: false,
|
|
641
|
-
isThresholdMeasure: false,
|
|
642
|
-
localIdentifier: "m6",
|
|
643
|
-
type: "metric",
|
|
644
|
-
operandLocalIdentifiers: ["m1", "m5"],
|
|
645
|
-
operator: ArithmeticOperatorType.RATIO,
|
|
646
|
-
format: "#,##0.00",
|
|
647
|
-
},
|
|
648
|
-
{
|
|
649
|
-
attribute: null,
|
|
650
|
-
aggregation: null,
|
|
651
|
-
alias: null,
|
|
652
|
-
filters: [],
|
|
653
|
-
showInPercent: false,
|
|
654
|
-
showOnSecondaryAxis: false,
|
|
655
|
-
isTotalMeasure: false,
|
|
656
|
-
isThresholdMeasure: false,
|
|
657
|
-
localIdentifier: "m7",
|
|
658
|
-
type: "metric",
|
|
659
|
-
operandLocalIdentifiers: ["m1", "m6"],
|
|
660
|
-
operator: ArithmeticOperatorType.DIFFERENCE,
|
|
661
|
-
format: "#,##0.00",
|
|
662
|
-
},
|
|
663
|
-
{
|
|
664
|
-
attribute: null,
|
|
665
|
-
aggregation: null,
|
|
666
|
-
alias: null,
|
|
667
|
-
filters: [],
|
|
668
|
-
showInPercent: false,
|
|
669
|
-
showOnSecondaryAxis: false,
|
|
670
|
-
isTotalMeasure: false,
|
|
671
|
-
isThresholdMeasure: false,
|
|
672
|
-
localIdentifier: "m8",
|
|
673
|
-
type: "metric",
|
|
674
|
-
operandLocalIdentifiers: ["m1", "m2"],
|
|
675
|
-
operator: ArithmeticOperatorType.CHANGE,
|
|
676
|
-
format: "#,##0.00%",
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
attribute: null,
|
|
680
|
-
aggregation: null,
|
|
681
|
-
alias: null,
|
|
682
|
-
filters: [],
|
|
683
|
-
showInPercent: false,
|
|
684
|
-
showOnSecondaryAxis: false,
|
|
685
|
-
isTotalMeasure: false,
|
|
686
|
-
isThresholdMeasure: false,
|
|
687
|
-
localIdentifier: "m9",
|
|
688
|
-
type: "metric",
|
|
689
|
-
operandLocalIdentifiers: [null, null],
|
|
690
|
-
operator: ArithmeticOperatorType.DIFFERENCE,
|
|
691
|
-
format: null,
|
|
692
|
-
},
|
|
693
|
-
{
|
|
694
|
-
attribute: null,
|
|
695
|
-
aggregation: null,
|
|
696
|
-
alias: null,
|
|
697
|
-
filters: [],
|
|
698
|
-
showInPercent: false,
|
|
699
|
-
showOnSecondaryAxis: false,
|
|
700
|
-
isTotalMeasure: false,
|
|
701
|
-
isThresholdMeasure: false,
|
|
702
|
-
localIdentifier: "m10",
|
|
703
|
-
type: "metric",
|
|
704
|
-
operandLocalIdentifiers: [null, "m2"],
|
|
705
|
-
operator: ArithmeticOperatorType.RATIO,
|
|
706
|
-
format: null,
|
|
707
|
-
},
|
|
708
|
-
{
|
|
709
|
-
attribute: null,
|
|
710
|
-
aggregation: null,
|
|
711
|
-
alias: null,
|
|
712
|
-
filters: [],
|
|
713
|
-
showInPercent: false,
|
|
714
|
-
localIdentifier: "m11",
|
|
715
|
-
type: "metric",
|
|
716
|
-
operandLocalIdentifiers: ["notAvailableMeasureIdentifier", null],
|
|
717
|
-
operator: ArithmeticOperatorType.SUM,
|
|
718
|
-
format: null,
|
|
719
|
-
},
|
|
720
|
-
{
|
|
721
|
-
attribute: null,
|
|
722
|
-
aggregation: null,
|
|
723
|
-
alias: null,
|
|
724
|
-
showInPercent: false,
|
|
725
|
-
showOnSecondaryAxis: false,
|
|
726
|
-
isTotalMeasure: false,
|
|
727
|
-
isThresholdMeasure: false,
|
|
728
|
-
type: "metric",
|
|
729
|
-
localIdentifier: "m5_previous_period",
|
|
730
|
-
filters: [],
|
|
731
|
-
masterLocalIdentifier: "m5",
|
|
732
|
-
overTimeComparisonType: OverTimeComparisonTypes.PREVIOUS_PERIOD,
|
|
733
|
-
format: null,
|
|
734
|
-
},
|
|
735
|
-
{
|
|
736
|
-
attribute: null,
|
|
737
|
-
aggregation: null,
|
|
738
|
-
alias: null,
|
|
739
|
-
showInPercent: false,
|
|
740
|
-
showOnSecondaryAxis: false,
|
|
741
|
-
isTotalMeasure: false,
|
|
742
|
-
isThresholdMeasure: false,
|
|
743
|
-
type: "metric",
|
|
744
|
-
localIdentifier: "m7_previous_period",
|
|
745
|
-
filters: [],
|
|
746
|
-
masterLocalIdentifier: "m7",
|
|
747
|
-
overTimeComparisonType: OverTimeComparisonTypes.PREVIOUS_PERIOD,
|
|
748
|
-
format: null,
|
|
749
|
-
},
|
|
750
|
-
{
|
|
751
|
-
attribute: "aaeFKXFYiCc0",
|
|
752
|
-
aggregation: null,
|
|
753
|
-
alias: null,
|
|
754
|
-
filters: [],
|
|
755
|
-
showInPercent: false,
|
|
756
|
-
showOnSecondaryAxis: false,
|
|
757
|
-
isTotalMeasure: false,
|
|
758
|
-
isThresholdMeasure: false,
|
|
759
|
-
localIdentifier: "m1_pop",
|
|
760
|
-
type: "metric",
|
|
761
|
-
masterLocalIdentifier: "m1",
|
|
762
|
-
overTimeComparisonType: OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR,
|
|
763
|
-
format: null,
|
|
764
|
-
},
|
|
765
|
-
{
|
|
766
|
-
aggregation: "sum",
|
|
767
|
-
alias: null,
|
|
768
|
-
attribute: "fact.spend_analysis.cart_additions",
|
|
769
|
-
filters: [],
|
|
770
|
-
showInPercent: true,
|
|
771
|
-
showOnSecondaryAxis: false,
|
|
772
|
-
isTotalMeasure: false,
|
|
773
|
-
isThresholdMeasure: false,
|
|
774
|
-
localIdentifier: "m2_pop",
|
|
775
|
-
type: "metric",
|
|
776
|
-
masterLocalIdentifier: "m2",
|
|
777
|
-
overTimeComparisonType: OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR,
|
|
778
|
-
format: null,
|
|
779
|
-
},
|
|
780
|
-
{
|
|
781
|
-
attribute: null,
|
|
782
|
-
aggregation: null,
|
|
783
|
-
alias: null,
|
|
784
|
-
filters: [],
|
|
785
|
-
showInPercent: false,
|
|
786
|
-
localIdentifier: "m12",
|
|
787
|
-
type: "metric",
|
|
788
|
-
operandLocalIdentifiers: ["m1", null],
|
|
789
|
-
operator: ArithmeticOperatorType.SUM,
|
|
790
|
-
format: null,
|
|
791
|
-
},
|
|
792
|
-
]);
|
|
793
|
-
export const getBucketItemByLocalIdentifier = (localIdentifier) => measureBucketItems.find((bucketItem) => bucketItem.localIdentifier === localIdentifier);
|
|
794
|
-
export const categoriesBucketItems = [
|
|
795
|
-
{
|
|
796
|
-
attribute: "attr.product.id",
|
|
797
|
-
localIdentifier: "product",
|
|
798
|
-
filters: [],
|
|
799
|
-
type: ATTRIBUTE,
|
|
800
|
-
},
|
|
801
|
-
{
|
|
802
|
-
attribute: DATE_DATASET_ATTRIBUTE,
|
|
803
|
-
localIdentifier: "week",
|
|
804
|
-
filters: [],
|
|
805
|
-
granularity: "GDC.time.week_us",
|
|
806
|
-
type: DATE,
|
|
807
|
-
dateDatasetRef: uriRef("/gdc/md/TeamOneGoodSales1/obj/15174"),
|
|
808
|
-
},
|
|
809
|
-
];
|
|
810
|
-
export const enrichCategoriesBucketItems = deepFreezeMock([
|
|
811
|
-
{
|
|
812
|
-
attribute: "attr.product.id",
|
|
813
|
-
dfIdentifier: "label.product.id.name",
|
|
814
|
-
dfRef: uriRef("/gdc/md/TeamOneGoodSales1/obj/952"),
|
|
815
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/952",
|
|
816
|
-
dimensionUri: "/gdc/md/TeamOneGoodSales1/obj/948",
|
|
817
|
-
displayForm: uriRef("/gdc/md/TeamOneGoodSales1/obj/952"),
|
|
818
|
-
elementsUri: "/gdc/md/TeamOneGoodSales1/obj/952/elements",
|
|
819
|
-
granularity: "attr.product.id",
|
|
820
|
-
id: "attr.product.id",
|
|
821
|
-
identifier: "attr.product.id",
|
|
822
|
-
isAvailable: true,
|
|
823
|
-
localIdentifier: "product",
|
|
824
|
-
summary: "",
|
|
825
|
-
title: "Product",
|
|
826
|
-
type: "attribute",
|
|
827
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/949",
|
|
828
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/949"),
|
|
829
|
-
displayForms: productAttribute.displayForms,
|
|
830
|
-
},
|
|
831
|
-
{
|
|
832
|
-
attribute: "attr.datedataset",
|
|
833
|
-
dateType: "GDC.time.week_us",
|
|
834
|
-
dfIdentifier: "date.dim_date",
|
|
835
|
-
dfRef: uriRef("/gdc/md/TeamOneGoodSales1/obj/629"),
|
|
836
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/629",
|
|
837
|
-
displayForm: { uri: "/gdc/md/TeamOneGoodSales1/obj/629" },
|
|
838
|
-
granularity: "GDC.time.week_us",
|
|
839
|
-
identifier: "attr.datedataset",
|
|
840
|
-
localIdentifier: "week",
|
|
841
|
-
title: "Week/Year (Activity)",
|
|
842
|
-
type: "date",
|
|
843
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/624",
|
|
844
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/624"),
|
|
845
|
-
dateDatasetRef: uriRef("/gdc/md/TeamOneGoodSales1/obj/15174"),
|
|
846
|
-
displayForms: [
|
|
847
|
-
{
|
|
848
|
-
id: "date.dim_date",
|
|
849
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/629",
|
|
850
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/629"),
|
|
851
|
-
title: "Week/Year (Activity)",
|
|
852
|
-
},
|
|
853
|
-
],
|
|
854
|
-
},
|
|
855
|
-
{
|
|
856
|
-
attribute: "attr.country.id",
|
|
857
|
-
dfIdentifier: "label.country.id.name",
|
|
858
|
-
dfRef: uriRef("/gdc/md/TeamOneGoodSales1/obj/902"),
|
|
859
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/902",
|
|
860
|
-
dimensionUri: "/gdc/md/TeamOneGoodSales1/obj/901",
|
|
861
|
-
displayForm: { uri: "/gdc/md/TeamOneGoodSales1/obj/902" },
|
|
862
|
-
elementsUri: "/gdc/md/TeamOneGoodSales1/obj/902/elements",
|
|
863
|
-
granularity: "attr.country.id",
|
|
864
|
-
id: "attr.country.id",
|
|
865
|
-
identifier: "attr.country.id",
|
|
866
|
-
isAvailable: true,
|
|
867
|
-
localIdentifier: "country",
|
|
868
|
-
summary: "",
|
|
869
|
-
title: "Country",
|
|
870
|
-
type: "attribute",
|
|
871
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/903",
|
|
872
|
-
},
|
|
873
|
-
]);
|
|
874
|
-
export const stacksBucketItems = [
|
|
875
|
-
{
|
|
876
|
-
attribute: "attr.product.id",
|
|
877
|
-
localIdentifier: "f_product",
|
|
878
|
-
filters: [],
|
|
879
|
-
type: "attribute",
|
|
880
|
-
},
|
|
881
|
-
];
|
|
882
|
-
export const dateBucketItemRefs = [
|
|
883
|
-
uriRef("/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/attr.datedataset.activity"),
|
|
884
|
-
uriRef("/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/attr.datedataset.closed"),
|
|
885
|
-
];
|
|
886
|
-
export const metadataBucketMeasures = {
|
|
887
|
-
localIdentifier: "measures",
|
|
888
|
-
items: [
|
|
889
|
-
// 0 - simple measure
|
|
890
|
-
{
|
|
891
|
-
measure: {
|
|
892
|
-
definition: {
|
|
893
|
-
measureDefinition: {
|
|
894
|
-
computeRatio: false,
|
|
895
|
-
item: {
|
|
896
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/16212",
|
|
897
|
-
},
|
|
898
|
-
},
|
|
899
|
-
},
|
|
900
|
-
localIdentifier: "m1",
|
|
901
|
-
title: "Awareness",
|
|
902
|
-
},
|
|
903
|
-
},
|
|
904
|
-
// 1 - Fact-based Ad-hoc measure with "Show in % (computeRatio)"
|
|
905
|
-
{
|
|
906
|
-
measure: {
|
|
907
|
-
definition: {
|
|
908
|
-
measureDefinition: {
|
|
909
|
-
aggregation: "sum",
|
|
910
|
-
computeRatio: true,
|
|
911
|
-
item: {
|
|
912
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15418",
|
|
913
|
-
},
|
|
914
|
-
},
|
|
915
|
-
},
|
|
916
|
-
localIdentifier: "m2",
|
|
917
|
-
format: "#,##0.00%",
|
|
918
|
-
title: "% Sum of Cart Additions",
|
|
919
|
-
},
|
|
920
|
-
},
|
|
921
|
-
// 2 - Same period previous year over time comparison measure
|
|
922
|
-
{
|
|
923
|
-
measure: {
|
|
924
|
-
definition: {
|
|
925
|
-
popMeasureDefinition: {
|
|
926
|
-
measureIdentifier: "m3",
|
|
927
|
-
popAttribute: {
|
|
928
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/701",
|
|
929
|
-
},
|
|
930
|
-
},
|
|
931
|
-
},
|
|
932
|
-
localIdentifier: "m3_pop",
|
|
933
|
-
},
|
|
934
|
-
},
|
|
935
|
-
// 3 - Renamed same period previous year over time comparison measure
|
|
936
|
-
{
|
|
937
|
-
measure: {
|
|
938
|
-
definition: {
|
|
939
|
-
popMeasureDefinition: {
|
|
940
|
-
measureIdentifier: "m3",
|
|
941
|
-
popAttribute: {
|
|
942
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/701",
|
|
943
|
-
},
|
|
944
|
-
},
|
|
945
|
-
},
|
|
946
|
-
localIdentifier: "m3_renamed_pop",
|
|
947
|
-
alias: "renamed",
|
|
948
|
-
},
|
|
949
|
-
},
|
|
950
|
-
// 4 - Simple measure with filters
|
|
951
|
-
{
|
|
952
|
-
measure: {
|
|
953
|
-
definition: {
|
|
954
|
-
measureDefinition: {
|
|
955
|
-
computeRatio: false,
|
|
956
|
-
filters: [
|
|
957
|
-
{
|
|
958
|
-
positiveAttributeFilter: {
|
|
959
|
-
displayForm: {
|
|
960
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/902",
|
|
961
|
-
},
|
|
962
|
-
in: [
|
|
963
|
-
"/gdc/md/TeamOneGoodSales1/obj/901/elements?id=168288",
|
|
964
|
-
"/gdc/md/TeamOneGoodSales1/obj/901/elements?id=666",
|
|
965
|
-
],
|
|
966
|
-
},
|
|
967
|
-
},
|
|
968
|
-
{
|
|
969
|
-
relativeDateFilter: {
|
|
970
|
-
dataSet: {
|
|
971
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15174",
|
|
972
|
-
},
|
|
973
|
-
from: -5,
|
|
974
|
-
granularity: "GDC.time.year",
|
|
975
|
-
to: -5,
|
|
976
|
-
},
|
|
977
|
-
},
|
|
978
|
-
],
|
|
979
|
-
item: {
|
|
980
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/16212",
|
|
981
|
-
},
|
|
982
|
-
},
|
|
983
|
-
},
|
|
984
|
-
localIdentifier: "m3",
|
|
985
|
-
title: "Awareness, Date (Date Created): 5 years ago (Country: US & A)",
|
|
986
|
-
},
|
|
987
|
-
},
|
|
988
|
-
// 5 - Attribute-based ad-hoc measure
|
|
989
|
-
{
|
|
990
|
-
measure: {
|
|
991
|
-
definition: {
|
|
992
|
-
measureDefinition: {
|
|
993
|
-
aggregation: "count",
|
|
994
|
-
computeRatio: false,
|
|
995
|
-
item: {
|
|
996
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/949",
|
|
997
|
-
},
|
|
998
|
-
},
|
|
999
|
-
},
|
|
1000
|
-
format: "#,##0",
|
|
1001
|
-
localIdentifier: "m4",
|
|
1002
|
-
title: "Count of Product",
|
|
1003
|
-
},
|
|
1004
|
-
},
|
|
1005
|
-
// 6 - Previous period over time comparison measure
|
|
1006
|
-
{
|
|
1007
|
-
measure: {
|
|
1008
|
-
definition: {
|
|
1009
|
-
previousPeriodMeasure: {
|
|
1010
|
-
measureIdentifier: "m3",
|
|
1011
|
-
dateDataSets: [
|
|
1012
|
-
{
|
|
1013
|
-
dataSet: {
|
|
1014
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15174",
|
|
1015
|
-
},
|
|
1016
|
-
periodsAgo: 1,
|
|
1017
|
-
},
|
|
1018
|
-
],
|
|
1019
|
-
},
|
|
1020
|
-
},
|
|
1021
|
-
localIdentifier: "m3_previous_period",
|
|
1022
|
-
},
|
|
1023
|
-
},
|
|
1024
|
-
// 7 - Renamed previous period over time comparison measure
|
|
1025
|
-
{
|
|
1026
|
-
measure: {
|
|
1027
|
-
definition: {
|
|
1028
|
-
previousPeriodMeasure: {
|
|
1029
|
-
measureIdentifier: "m3",
|
|
1030
|
-
dateDataSets: [
|
|
1031
|
-
{
|
|
1032
|
-
dataSet: {
|
|
1033
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15174",
|
|
1034
|
-
},
|
|
1035
|
-
periodsAgo: 1,
|
|
1036
|
-
},
|
|
1037
|
-
],
|
|
1038
|
-
},
|
|
1039
|
-
},
|
|
1040
|
-
localIdentifier: "m3_renamed_previous_period",
|
|
1041
|
-
alias: "previous_period_renamed",
|
|
1042
|
-
},
|
|
1043
|
-
},
|
|
1044
|
-
// 8 - Arithmetic measure with custom format
|
|
1045
|
-
{
|
|
1046
|
-
measure: {
|
|
1047
|
-
definition: {
|
|
1048
|
-
arithmeticMeasure: {
|
|
1049
|
-
measureIdentifiers: ["m1", "m2"],
|
|
1050
|
-
operator: ArithmeticOperatorType.SUM,
|
|
1051
|
-
},
|
|
1052
|
-
},
|
|
1053
|
-
localIdentifier: "m5",
|
|
1054
|
-
format: "##AM",
|
|
1055
|
-
},
|
|
1056
|
-
},
|
|
1057
|
-
// 9 - Arithmetic measure based on simple and arithmetic measure
|
|
1058
|
-
{
|
|
1059
|
-
measure: {
|
|
1060
|
-
definition: {
|
|
1061
|
-
arithmeticMeasure: {
|
|
1062
|
-
measureIdentifiers: ["m1", "m5"],
|
|
1063
|
-
operator: ArithmeticOperatorType.RATIO,
|
|
1064
|
-
},
|
|
1065
|
-
},
|
|
1066
|
-
localIdentifier: "m6",
|
|
1067
|
-
format: "#,##0.00",
|
|
1068
|
-
},
|
|
1069
|
-
},
|
|
1070
|
-
// 10 - Arithmetic measure based on simple and arithmetic measure which is again based on another arithmetic measure
|
|
1071
|
-
{
|
|
1072
|
-
measure: {
|
|
1073
|
-
definition: {
|
|
1074
|
-
arithmeticMeasure: {
|
|
1075
|
-
measureIdentifiers: ["m1", "m6"],
|
|
1076
|
-
operator: ArithmeticOperatorType.DIFFERENCE,
|
|
1077
|
-
},
|
|
1078
|
-
},
|
|
1079
|
-
localIdentifier: "m7",
|
|
1080
|
-
format: "#,##0.00",
|
|
1081
|
-
},
|
|
1082
|
-
},
|
|
1083
|
-
// 11 - Arithmetic measure with operator Change
|
|
1084
|
-
{
|
|
1085
|
-
measure: {
|
|
1086
|
-
definition: {
|
|
1087
|
-
arithmeticMeasure: {
|
|
1088
|
-
measureIdentifiers: ["m1", "m2"],
|
|
1089
|
-
operator: ArithmeticOperatorType.CHANGE,
|
|
1090
|
-
},
|
|
1091
|
-
},
|
|
1092
|
-
localIdentifier: "m8",
|
|
1093
|
-
format: "#,##0.00%",
|
|
1094
|
-
},
|
|
1095
|
-
},
|
|
1096
|
-
// 12 - over time comparison of an arithmetic measure
|
|
1097
|
-
{
|
|
1098
|
-
measure: {
|
|
1099
|
-
definition: {
|
|
1100
|
-
previousPeriodMeasure: {
|
|
1101
|
-
dateDataSets: [
|
|
1102
|
-
{
|
|
1103
|
-
dataSet: {
|
|
1104
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15174",
|
|
1105
|
-
},
|
|
1106
|
-
periodsAgo: 1,
|
|
1107
|
-
},
|
|
1108
|
-
],
|
|
1109
|
-
measureIdentifier: "m5",
|
|
1110
|
-
},
|
|
1111
|
-
},
|
|
1112
|
-
localIdentifier: "m5_previous_period",
|
|
1113
|
-
},
|
|
1114
|
-
},
|
|
1115
|
-
// 13 - over time comparison of an arithmetic measure based on anothe arithmetic measure
|
|
1116
|
-
{
|
|
1117
|
-
measure: {
|
|
1118
|
-
definition: {
|
|
1119
|
-
previousPeriodMeasure: {
|
|
1120
|
-
dateDataSets: [
|
|
1121
|
-
{
|
|
1122
|
-
dataSet: {
|
|
1123
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15174",
|
|
1124
|
-
},
|
|
1125
|
-
periodsAgo: 1,
|
|
1126
|
-
},
|
|
1127
|
-
],
|
|
1128
|
-
measureIdentifier: "m7",
|
|
1129
|
-
},
|
|
1130
|
-
},
|
|
1131
|
-
localIdentifier: "m7_previous_period",
|
|
1132
|
-
},
|
|
1133
|
-
},
|
|
1134
|
-
{
|
|
1135
|
-
measure: {
|
|
1136
|
-
definition: {
|
|
1137
|
-
popMeasureDefinition: {
|
|
1138
|
-
measureIdentifier: "m1",
|
|
1139
|
-
popAttribute: {
|
|
1140
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/701",
|
|
1141
|
-
},
|
|
1142
|
-
},
|
|
1143
|
-
},
|
|
1144
|
-
localIdentifier: "m1_pop",
|
|
1145
|
-
},
|
|
1146
|
-
},
|
|
1147
|
-
{
|
|
1148
|
-
measure: {
|
|
1149
|
-
definition: {
|
|
1150
|
-
popMeasureDefinition: {
|
|
1151
|
-
measureIdentifier: "m2",
|
|
1152
|
-
popAttribute: {
|
|
1153
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/701",
|
|
1154
|
-
},
|
|
1155
|
-
},
|
|
1156
|
-
},
|
|
1157
|
-
localIdentifier: "m2_pop",
|
|
1158
|
-
},
|
|
1159
|
-
},
|
|
1160
|
-
],
|
|
1161
|
-
};
|
|
1162
|
-
export const metadataBucketCategories = {
|
|
1163
|
-
items: [
|
|
1164
|
-
{
|
|
1165
|
-
visualizationAttribute: {
|
|
1166
|
-
displayForm: {
|
|
1167
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/952",
|
|
1168
|
-
},
|
|
1169
|
-
localIdentifier: "product",
|
|
1170
|
-
},
|
|
1171
|
-
},
|
|
1172
|
-
{
|
|
1173
|
-
visualizationAttribute: {
|
|
1174
|
-
displayForm: {
|
|
1175
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/629",
|
|
1176
|
-
},
|
|
1177
|
-
localIdentifier: "week",
|
|
1178
|
-
},
|
|
1179
|
-
},
|
|
1180
|
-
],
|
|
1181
|
-
localIdentifier: "view",
|
|
1182
|
-
};
|
|
1183
|
-
export const metadataBucketStacksItems = [
|
|
1184
|
-
{
|
|
1185
|
-
visualizationAttribute: {
|
|
1186
|
-
displayForm: {
|
|
1187
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/952",
|
|
1188
|
-
},
|
|
1189
|
-
localIdentifier: "product",
|
|
1190
|
-
},
|
|
1191
|
-
},
|
|
1192
|
-
];
|
|
1193
|
-
export const metadataBucketCategoriesWithDate = [
|
|
1194
|
-
{
|
|
1195
|
-
type: "attribute",
|
|
1196
|
-
attribute: "/gdc/md/TeamOneGoodSales1/obj/949",
|
|
1197
|
-
displayForm: uriRef("/gdc/md/TeamOneGoodSales1/obj/952"),
|
|
1198
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/591",
|
|
1199
|
-
},
|
|
1200
|
-
{
|
|
1201
|
-
type: "date",
|
|
1202
|
-
displayForm: uriRef("/gdc/md/TeamOneGoodSales1/obj/629"),
|
|
1203
|
-
attribute: "/gdc/md/TeamOneGoodSales1/obj/701",
|
|
1204
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/590",
|
|
1205
|
-
},
|
|
1206
|
-
];
|
|
1207
|
-
export const metadataBucketFiltersNoSelection = [
|
|
1208
|
-
{
|
|
1209
|
-
positiveAttributeFilter: {
|
|
1210
|
-
localIdentifier: "f_product",
|
|
1211
|
-
displayForm: {
|
|
1212
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/952",
|
|
1213
|
-
},
|
|
1214
|
-
in: [],
|
|
1215
|
-
},
|
|
1216
|
-
},
|
|
1217
|
-
{
|
|
1218
|
-
relativeDateFilter: {
|
|
1219
|
-
dataSet: {
|
|
1220
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15174",
|
|
1221
|
-
},
|
|
1222
|
-
granularity: "GDC.time.year",
|
|
1223
|
-
},
|
|
1224
|
-
},
|
|
1225
|
-
];
|
|
1226
|
-
export const metadataFilterWithNonDefaultDisplayForm = {
|
|
1227
|
-
positiveAttributeFilter: {
|
|
1228
|
-
displayForm: {
|
|
1229
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/900",
|
|
1230
|
-
},
|
|
1231
|
-
in: [],
|
|
1232
|
-
},
|
|
1233
|
-
};
|
|
1234
|
-
export const measuresWithDateFilter = [
|
|
1235
|
-
{
|
|
1236
|
-
aggregation: null,
|
|
1237
|
-
attribute: "attr.currency.id",
|
|
1238
|
-
type: "metric",
|
|
1239
|
-
filters: [
|
|
1240
|
-
{
|
|
1241
|
-
attribute: "attr.datedataset",
|
|
1242
|
-
dimension: "activity.dataset.dt",
|
|
1243
|
-
interval: {
|
|
1244
|
-
granularity: "GDC.time.year",
|
|
1245
|
-
interval: [-1, -1],
|
|
1246
|
-
type: "relative",
|
|
1247
|
-
},
|
|
1248
|
-
},
|
|
1249
|
-
],
|
|
1250
|
-
localIdentifier: "129ecbcfcfa4441fb60545e81bd94e8e",
|
|
1251
|
-
},
|
|
1252
|
-
];
|
|
1253
|
-
export const metadataBucketFilterWithSelection = {
|
|
1254
|
-
positiveAttributeFilter: {
|
|
1255
|
-
localIdentifier: "localIdentifier",
|
|
1256
|
-
displayForm: {
|
|
1257
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/952",
|
|
1258
|
-
},
|
|
1259
|
-
in: [
|
|
1260
|
-
"/gdc/md/TeamOneGoodSales1/obj/949/elements?id=168282",
|
|
1261
|
-
"/gdc/md/TeamOneGoodSales1/obj/949/elements?id=168284",
|
|
1262
|
-
"/gdc/md/TeamOneGoodSales1/obj/949/elements?id=964771",
|
|
1263
|
-
],
|
|
1264
|
-
},
|
|
1265
|
-
};
|
|
1266
|
-
export const metadataBucketFiltersWithSelection = [
|
|
1267
|
-
metadataBucketFilterWithSelection,
|
|
1268
|
-
{
|
|
1269
|
-
relativeDateFilter: {
|
|
1270
|
-
dataSet: {
|
|
1271
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15174",
|
|
1272
|
-
},
|
|
1273
|
-
granularity: "GDC.time.year",
|
|
1274
|
-
from: -6,
|
|
1275
|
-
to: 0,
|
|
1276
|
-
},
|
|
1277
|
-
},
|
|
1278
|
-
{
|
|
1279
|
-
absoluteDateFilter: {
|
|
1280
|
-
dataSet: {
|
|
1281
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15174",
|
|
1282
|
-
},
|
|
1283
|
-
from: "2017-01-01",
|
|
1284
|
-
to: "2018-01-01",
|
|
1285
|
-
},
|
|
1286
|
-
},
|
|
1287
|
-
{
|
|
1288
|
-
measureValueFilter: {
|
|
1289
|
-
measure: {
|
|
1290
|
-
localIdentifier: "m1",
|
|
1291
|
-
},
|
|
1292
|
-
conditions: [
|
|
1293
|
-
{
|
|
1294
|
-
comparison: {
|
|
1295
|
-
operator: "GREATER_THAN",
|
|
1296
|
-
value: 12,
|
|
1297
|
-
},
|
|
1298
|
-
},
|
|
1299
|
-
],
|
|
1300
|
-
},
|
|
1301
|
-
},
|
|
1302
|
-
{
|
|
1303
|
-
measureValueFilter: {
|
|
1304
|
-
measure: {
|
|
1305
|
-
localIdentifier: "m2",
|
|
1306
|
-
},
|
|
1307
|
-
conditions: [
|
|
1308
|
-
{
|
|
1309
|
-
range: {
|
|
1310
|
-
operator: "BETWEEN",
|
|
1311
|
-
from: 12,
|
|
1312
|
-
to: 14,
|
|
1313
|
-
},
|
|
1314
|
-
},
|
|
1315
|
-
],
|
|
1316
|
-
},
|
|
1317
|
-
},
|
|
1318
|
-
{
|
|
1319
|
-
measureValueFilter: {
|
|
1320
|
-
measure: {
|
|
1321
|
-
localIdentifier: "m3",
|
|
1322
|
-
},
|
|
1323
|
-
},
|
|
1324
|
-
},
|
|
1325
|
-
{
|
|
1326
|
-
measureValueFilter: {
|
|
1327
|
-
measure: {
|
|
1328
|
-
localIdentifier: "m3_previous_period",
|
|
1329
|
-
},
|
|
1330
|
-
},
|
|
1331
|
-
},
|
|
1332
|
-
{
|
|
1333
|
-
rankingFilter: {
|
|
1334
|
-
measures: [
|
|
1335
|
-
{
|
|
1336
|
-
localIdentifier: "m5",
|
|
1337
|
-
},
|
|
1338
|
-
],
|
|
1339
|
-
attributes: [
|
|
1340
|
-
{
|
|
1341
|
-
localIdentifier: "a1",
|
|
1342
|
-
},
|
|
1343
|
-
{
|
|
1344
|
-
localIdentifier: "a2",
|
|
1345
|
-
},
|
|
1346
|
-
],
|
|
1347
|
-
operator: "BOTTOM",
|
|
1348
|
-
value: 3,
|
|
1349
|
-
},
|
|
1350
|
-
},
|
|
1351
|
-
{
|
|
1352
|
-
rankingFilter: {
|
|
1353
|
-
measures: [
|
|
1354
|
-
{
|
|
1355
|
-
localIdentifier: "m4",
|
|
1356
|
-
},
|
|
1357
|
-
],
|
|
1358
|
-
operator: "TOP",
|
|
1359
|
-
value: 10,
|
|
1360
|
-
},
|
|
1361
|
-
},
|
|
1362
|
-
];
|
|
1363
|
-
export const bucketFilterWithSelection = newPositiveAttributeFilter(uriRef("/gdc/md/TeamOneGoodSales1/obj/952"), {
|
|
1364
|
-
uris: [
|
|
1365
|
-
"/gdc/md/TeamOneGoodSales1/obj/949/elements?id=168282",
|
|
1366
|
-
"/gdc/md/TeamOneGoodSales1/obj/949/elements?id=168284",
|
|
1367
|
-
"/gdc/md/TeamOneGoodSales1/obj/949/elements?id=964771",
|
|
1368
|
-
],
|
|
1369
|
-
}, "localIdentifier");
|
|
1370
|
-
export const bucketFiltersWithSelection = [
|
|
1371
|
-
bucketFilterWithSelection,
|
|
1372
|
-
newRelativeDateFilter(uriRef("/gdc/md/TeamOneGoodSales1/obj/15174"), "GDC.time.year", -6, 0),
|
|
1373
|
-
newAbsoluteDateFilter(uriRef("/gdc/md/TeamOneGoodSales1/obj/15174"), "2017-01-01", "2018-01-01"),
|
|
1374
|
-
newMeasureValueFilter(localIdRef("m1"), "GREATER_THAN", 12),
|
|
1375
|
-
newMeasureValueFilter(localIdRef("m2"), "BETWEEN", 12, 14),
|
|
1376
|
-
// these cannot be created using a helper, because they are incomplete
|
|
1377
|
-
{
|
|
1378
|
-
measureValueFilter: {
|
|
1379
|
-
measure: {
|
|
1380
|
-
localIdentifier: "m3",
|
|
1381
|
-
},
|
|
1382
|
-
},
|
|
1383
|
-
},
|
|
1384
|
-
{
|
|
1385
|
-
measureValueFilter: {
|
|
1386
|
-
measure: {
|
|
1387
|
-
localIdentifier: "m3_previous_period",
|
|
1388
|
-
},
|
|
1389
|
-
},
|
|
1390
|
-
},
|
|
1391
|
-
newRankingFilter(localIdRef("m5"), [localIdRef("a1"), localIdRef("a2")], "BOTTOM", 3),
|
|
1392
|
-
newRankingFilter(localIdRef("m4"), "TOP", 10),
|
|
1393
|
-
];
|
|
1394
|
-
export const metadataBucketFiltersWithQuarterGranularity = [
|
|
1395
|
-
{
|
|
1396
|
-
relativeDateFilter: {
|
|
1397
|
-
dataSet: {
|
|
1398
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15174",
|
|
1399
|
-
},
|
|
1400
|
-
granularity: "GDC.time.quarter",
|
|
1401
|
-
from: -3,
|
|
1402
|
-
to: 0,
|
|
1403
|
-
},
|
|
1404
|
-
},
|
|
1405
|
-
];
|
|
1406
|
-
export const dateDatasetsAvailable = [
|
|
1407
|
-
{
|
|
1408
|
-
title: "Date (Activity)",
|
|
1409
|
-
summary: "DataSet Date",
|
|
1410
|
-
ref: {
|
|
1411
|
-
identifier: "activity.dataset.dt",
|
|
1412
|
-
},
|
|
1413
|
-
identifier: "activity.dataset.dt",
|
|
1414
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/727",
|
|
1415
|
-
attributes: [
|
|
1416
|
-
{
|
|
1417
|
-
granularity: "activity.date",
|
|
1418
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/590"),
|
|
1419
|
-
dfRef: idRef("activity.date.mmddyyyy"),
|
|
1420
|
-
dfIdentifier: "activity.date.mmddyyyy",
|
|
1421
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/593",
|
|
1422
|
-
dateType: "GDC.time.date",
|
|
1423
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/590",
|
|
1424
|
-
displayForms: [],
|
|
1425
|
-
},
|
|
1426
|
-
{
|
|
1427
|
-
granularity: "activity.month",
|
|
1428
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/616"),
|
|
1429
|
-
dfRef: idRef("activity.act81lMifn6q"),
|
|
1430
|
-
dfIdentifier: "activity.act81lMifn6q",
|
|
1431
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/617",
|
|
1432
|
-
dateType: "GDC.time.month",
|
|
1433
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/616",
|
|
1434
|
-
displayForms: [],
|
|
1435
|
-
},
|
|
1436
|
-
{
|
|
1437
|
-
granularity: "activity.euweek",
|
|
1438
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/644"),
|
|
1439
|
-
dfRef: idRef("activity.aa281lMifn6q"),
|
|
1440
|
-
dfIdentifier: "activity.aa281lMifn6q",
|
|
1441
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/649",
|
|
1442
|
-
dateType: "GDC.time.week_us",
|
|
1443
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/644",
|
|
1444
|
-
displayForms: [],
|
|
1445
|
-
},
|
|
1446
|
-
{
|
|
1447
|
-
granularity: "activity.quarter",
|
|
1448
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/656"),
|
|
1449
|
-
dfRef: idRef("activity.aci81lMifn6q"),
|
|
1450
|
-
dfIdentifier: "activity.aci81lMifn6q",
|
|
1451
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/657",
|
|
1452
|
-
dateType: "GDC.time.quarter",
|
|
1453
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/656",
|
|
1454
|
-
displayForms: [],
|
|
1455
|
-
},
|
|
1456
|
-
{
|
|
1457
|
-
granularity: "activity.year",
|
|
1458
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/701"),
|
|
1459
|
-
dfRef: idRef("activity.aag81lMifn6q"),
|
|
1460
|
-
dfIdentifier: "activity.aag81lMifn6q",
|
|
1461
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/721",
|
|
1462
|
-
dateType: "GDC.time.year",
|
|
1463
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/701",
|
|
1464
|
-
displayForms: [],
|
|
1465
|
-
},
|
|
1466
|
-
],
|
|
1467
|
-
type: "dateDataset",
|
|
1468
|
-
id: "activity.dataset.dt",
|
|
1469
|
-
isAvailable: true,
|
|
1470
|
-
relevance: 1,
|
|
1471
|
-
},
|
|
1472
|
-
{
|
|
1473
|
-
title: "Date (Date)",
|
|
1474
|
-
summary: "DataSet Date",
|
|
1475
|
-
ref: idRef("date.dataset.dt"),
|
|
1476
|
-
identifier: "date.dataset.dt",
|
|
1477
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/319917",
|
|
1478
|
-
attributes: [
|
|
1479
|
-
{
|
|
1480
|
-
granularity: "date.year",
|
|
1481
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/319857"),
|
|
1482
|
-
dfRef: idRef("date.aag81lMifn6q"),
|
|
1483
|
-
dfIdentifier: "date.aag81lMifn6q",
|
|
1484
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/319875",
|
|
1485
|
-
dateType: "GDC.time.year",
|
|
1486
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/319857",
|
|
1487
|
-
displayForms: [],
|
|
1488
|
-
},
|
|
1489
|
-
{
|
|
1490
|
-
granularity: "date.euweek",
|
|
1491
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/319862"),
|
|
1492
|
-
dfRef: idRef("date.aa281lMifn6q"),
|
|
1493
|
-
dfIdentifier: "date.aa281lMifn6q",
|
|
1494
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/319889",
|
|
1495
|
-
dateType: "GDC.time.week_us",
|
|
1496
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/319862",
|
|
1497
|
-
displayForms: [],
|
|
1498
|
-
},
|
|
1499
|
-
{
|
|
1500
|
-
granularity: "date.quarter",
|
|
1501
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/319872"),
|
|
1502
|
-
dfRef: idRef("date.aci81lMifn6q"),
|
|
1503
|
-
dfIdentifier: "date.aci81lMifn6q",
|
|
1504
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/319907",
|
|
1505
|
-
dateType: "GDC.time.quarter",
|
|
1506
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/319872",
|
|
1507
|
-
displayForms: [],
|
|
1508
|
-
},
|
|
1509
|
-
{
|
|
1510
|
-
granularity: "date.month",
|
|
1511
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/319873"),
|
|
1512
|
-
dfRef: idRef("date.act81lMifn6q"),
|
|
1513
|
-
dfIdentifier: "date.act81lMifn6q",
|
|
1514
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/319908",
|
|
1515
|
-
dateType: "GDC.time.month",
|
|
1516
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/319873",
|
|
1517
|
-
displayForms: [],
|
|
1518
|
-
},
|
|
1519
|
-
{
|
|
1520
|
-
granularity: "date.date",
|
|
1521
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/319874"),
|
|
1522
|
-
dfRef: idRef("date.date.mmddyyyy"),
|
|
1523
|
-
dfIdentifier: "date.date.mmddyyyy",
|
|
1524
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/319913",
|
|
1525
|
-
dateType: "GDC.time.date",
|
|
1526
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/319874",
|
|
1527
|
-
displayForms: [],
|
|
1528
|
-
},
|
|
1529
|
-
],
|
|
1530
|
-
type: "dateDataset",
|
|
1531
|
-
id: "date.dataset.dt",
|
|
1532
|
-
isAvailable: true,
|
|
1533
|
-
relevance: 2,
|
|
1534
|
-
},
|
|
1535
|
-
{
|
|
1536
|
-
title: "Date (Activity)",
|
|
1537
|
-
summary: "DataSet Date",
|
|
1538
|
-
ref: idRef("activity.dataset.dt"),
|
|
1539
|
-
identifier: "activity.dataset.dt",
|
|
1540
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15174",
|
|
1541
|
-
attributes: [],
|
|
1542
|
-
type: "dateDataset",
|
|
1543
|
-
id: "activity.dataset.dt",
|
|
1544
|
-
isAvailable: true,
|
|
1545
|
-
relevance: 3,
|
|
1546
|
-
},
|
|
1547
|
-
];
|
|
1548
|
-
export const dateDataset = {
|
|
1549
|
-
attributes: [
|
|
1550
|
-
{
|
|
1551
|
-
dateType: "GDC.time.date",
|
|
1552
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/15200"),
|
|
1553
|
-
dfRef: idRef("date.date.mmddyyyy"),
|
|
1554
|
-
dfIdentifier: "date.date.mmddyyyy",
|
|
1555
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/15203",
|
|
1556
|
-
granularity: "date.date",
|
|
1557
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15200",
|
|
1558
|
-
displayForms: [],
|
|
1559
|
-
},
|
|
1560
|
-
{
|
|
1561
|
-
dateType: "GDC.time.week_us",
|
|
1562
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/15254"),
|
|
1563
|
-
dfRef: idRef("date.aa281lMifn6q"),
|
|
1564
|
-
dfIdentifier: "date.aa281lMifn6q",
|
|
1565
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/15259",
|
|
1566
|
-
granularity: "date.euweek",
|
|
1567
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15254",
|
|
1568
|
-
displayForms: [
|
|
1569
|
-
{
|
|
1570
|
-
title: "Week DF1",
|
|
1571
|
-
ref: {
|
|
1572
|
-
uri: "/gdc/md/project/obj/df1",
|
|
1573
|
-
},
|
|
1574
|
-
id: "df1",
|
|
1575
|
-
uri: "/gdc/md/project/obj/df1",
|
|
1576
|
-
type: "displayForm",
|
|
1577
|
-
},
|
|
1578
|
-
{
|
|
1579
|
-
title: "Week DF2",
|
|
1580
|
-
ref: {
|
|
1581
|
-
uri: "/gdc/md/project/obj/df2",
|
|
1582
|
-
},
|
|
1583
|
-
id: "df2",
|
|
1584
|
-
uri: "/gdc/md/project/obj/df2",
|
|
1585
|
-
type: "displayForm",
|
|
1586
|
-
},
|
|
1587
|
-
],
|
|
1588
|
-
},
|
|
1589
|
-
],
|
|
1590
|
-
id: "date.dim_date",
|
|
1591
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/15174"),
|
|
1592
|
-
identifier: "date.dim_date",
|
|
1593
|
-
isAvailable: true,
|
|
1594
|
-
summary: "Date dimension (Date)",
|
|
1595
|
-
title: "Date dimension (Date)",
|
|
1596
|
-
type: "dimension",
|
|
1597
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15174",
|
|
1598
|
-
relevance: 0,
|
|
1599
|
-
};
|
|
1600
|
-
export const dateDatasetRef = {
|
|
1601
|
-
attributes: [
|
|
1602
|
-
{
|
|
1603
|
-
dateType: "GDC.time.date",
|
|
1604
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/15200"),
|
|
1605
|
-
dfRef: idRef("date.date.mmddyyyy"),
|
|
1606
|
-
dfIdentifier: "date.date.mmddyyyy",
|
|
1607
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/15203",
|
|
1608
|
-
granularity: "date.date",
|
|
1609
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15200",
|
|
1610
|
-
displayForms: [],
|
|
1611
|
-
},
|
|
1612
|
-
{
|
|
1613
|
-
dateType: "GDC.time.week_us",
|
|
1614
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/15254"),
|
|
1615
|
-
dfRef: idRef("date.aa281lMifn6q"),
|
|
1616
|
-
dfIdentifier: "date.aa281lMifn6q",
|
|
1617
|
-
dfUri: "/gdc/md/TeamOneGoodSales1/obj/15259",
|
|
1618
|
-
granularity: "date.euweek",
|
|
1619
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15254",
|
|
1620
|
-
displayForms: [],
|
|
1621
|
-
},
|
|
1622
|
-
],
|
|
1623
|
-
id: "date.dim_date",
|
|
1624
|
-
ref: uriRef("date.dim_date"),
|
|
1625
|
-
identifier: "date.dim_date",
|
|
1626
|
-
isAvailable: true,
|
|
1627
|
-
summary: "Date dimension (Date)",
|
|
1628
|
-
title: "Date dimension (Date)",
|
|
1629
|
-
type: "dimension",
|
|
1630
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15174",
|
|
1631
|
-
relevance: 0,
|
|
1632
|
-
};
|
|
1633
|
-
export const dateDatasets = createDecoratedDateDatasets({
|
|
1634
|
-
available: [dateDataset],
|
|
1635
|
-
unavailable: 0,
|
|
1636
|
-
});
|
|
1637
|
-
export const emptyDateDatasets = createDecoratedDateDatasets({
|
|
1638
|
-
available: [],
|
|
1639
|
-
unavailable: 0,
|
|
1640
|
-
});
|
|
1641
|
-
export const selectedDateDatasets = {
|
|
1642
|
-
globalDateDatasets: dateDatasets,
|
|
1643
|
-
measureDateDatasets: new Map([
|
|
1644
|
-
[
|
|
1645
|
-
"m1",
|
|
1646
|
-
{
|
|
1647
|
-
ref: uriRef("/gdc/md/TeamOneGoodSales1/obj/624"),
|
|
1648
|
-
identifier: "attr.datedataset",
|
|
1649
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/624",
|
|
1650
|
-
type: "date",
|
|
1651
|
-
title: "Week/Year (Activity)",
|
|
1652
|
-
summary: "Week/Year based on EU Weeks (Mon-Sun).",
|
|
1653
|
-
attributes: [],
|
|
1654
|
-
},
|
|
1655
|
-
],
|
|
1656
|
-
]),
|
|
1657
|
-
};
|
|
1658
|
-
export function setupAppStateWithDateDatasetMeta(state) {
|
|
1659
|
-
return seedDateDatasetsMeta(state, { items: [activityDateDataset, closedDateDataset] });
|
|
1660
|
-
}
|
|
1661
|
-
/**
|
|
1662
|
-
* Seeds the state exactly as a dispatched SET_DATE_DATASETS_META does: the meta leaf plus the
|
|
1663
|
-
* granularity entries derived into the itemCache.
|
|
1664
|
-
*/
|
|
1665
|
-
export function seedDateDatasetsMeta(state, dateDatasetsMeta) {
|
|
1666
|
-
const action = setDateDatasetsMeta(dateDatasetsMeta);
|
|
1667
|
-
return combinedRootReducer(state, action);
|
|
1668
|
-
}
|
|
1669
|
-
export const activityDateDataset = {
|
|
1670
|
-
attributes: [
|
|
1671
|
-
{
|
|
1672
|
-
ref: uriRef("/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/624"),
|
|
1673
|
-
dateType: "GDC.time.week_us",
|
|
1674
|
-
dfRef: idRef("activity.date.dim_date"),
|
|
1675
|
-
dfUri: "/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/629",
|
|
1676
|
-
dfIdentifier: "activity.date.dim_date",
|
|
1677
|
-
uri: "/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/624",
|
|
1678
|
-
granularity: "activity.euweek",
|
|
1679
|
-
displayForms: [],
|
|
1680
|
-
},
|
|
1681
|
-
],
|
|
1682
|
-
id: "date.activity",
|
|
1683
|
-
ref: idRef("attr.datedataset.activity"),
|
|
1684
|
-
identifier: "attr.datedataset.activity",
|
|
1685
|
-
isAvailable: true,
|
|
1686
|
-
summary: "Week/Year based on EU Weeks (Mon-Sun).",
|
|
1687
|
-
title: "Week/Year (Activity)",
|
|
1688
|
-
type: "dimension",
|
|
1689
|
-
uri: "/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/attr.datedataset.activity",
|
|
1690
|
-
relevance: 3,
|
|
1691
|
-
};
|
|
1692
|
-
export const closedDateDataset = {
|
|
1693
|
-
attributes: [
|
|
1694
|
-
{
|
|
1695
|
-
dateType: "GDC.time.week_us",
|
|
1696
|
-
ref: uriRef("/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/623"),
|
|
1697
|
-
dfRef: idRef("closed.date.dim_date"),
|
|
1698
|
-
dfUri: "/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/628",
|
|
1699
|
-
dfIdentifier: "closed.date.dim_date",
|
|
1700
|
-
uri: "/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/623",
|
|
1701
|
-
granularity: "closed.euweek",
|
|
1702
|
-
displayForms: [],
|
|
1703
|
-
},
|
|
1704
|
-
],
|
|
1705
|
-
id: "date.closed",
|
|
1706
|
-
ref: idRef("attr.datedataset.closed"),
|
|
1707
|
-
identifier: "attr.datedataset.closed",
|
|
1708
|
-
isAvailable: true,
|
|
1709
|
-
summary: "Week/Year based on EU Weeks (Mon-Sun).",
|
|
1710
|
-
title: "Week/Year (Closed)",
|
|
1711
|
-
type: "dimension",
|
|
1712
|
-
uri: "/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/attr.datedataset.closed",
|
|
1713
|
-
relevance: 4,
|
|
1714
|
-
};
|
|
1715
|
-
export const activityDateDatasetRef = {
|
|
1716
|
-
attributes: [
|
|
1717
|
-
{
|
|
1718
|
-
ref: uriRef("/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/624"),
|
|
1719
|
-
dateType: "GDC.time.week_us",
|
|
1720
|
-
dfRef: idRef("date.dim_date"),
|
|
1721
|
-
dfUri: "/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/629",
|
|
1722
|
-
dfIdentifier: "date.dim_date",
|
|
1723
|
-
uri: "/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/624",
|
|
1724
|
-
granularity: "activity.euweek",
|
|
1725
|
-
displayForms: [],
|
|
1726
|
-
},
|
|
1727
|
-
],
|
|
1728
|
-
id: "date.activity",
|
|
1729
|
-
ref: uriRef("/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/attr.datedataset.activity"),
|
|
1730
|
-
identifier: "attr.datedataset.activity",
|
|
1731
|
-
isAvailable: true,
|
|
1732
|
-
summary: "Week/Year based on EU Weeks (Mon-Sun).",
|
|
1733
|
-
title: "Week/Year (Activity)",
|
|
1734
|
-
type: "dimension",
|
|
1735
|
-
uri: "attr.datedataset.activity",
|
|
1736
|
-
relevance: 3,
|
|
1737
|
-
};
|
|
1738
|
-
export const closedDateDatasetRef = {
|
|
1739
|
-
attributes: [
|
|
1740
|
-
{
|
|
1741
|
-
dateType: "GDC.time.week_us",
|
|
1742
|
-
ref: uriRef("/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/623"),
|
|
1743
|
-
dfRef: idRef("date.dim_date"),
|
|
1744
|
-
dfUri: "/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/628",
|
|
1745
|
-
dfIdentifier: "date.dim_date",
|
|
1746
|
-
uri: "/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/623",
|
|
1747
|
-
granularity: "closed.euweek",
|
|
1748
|
-
displayForms: [],
|
|
1749
|
-
},
|
|
1750
|
-
],
|
|
1751
|
-
id: "date.closed",
|
|
1752
|
-
ref: uriRef("/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/attr.datedataset.closed"),
|
|
1753
|
-
identifier: "attr.datedataset.closed",
|
|
1754
|
-
isAvailable: true,
|
|
1755
|
-
summary: "Week/Year based on EU Weeks (Mon-Sun).",
|
|
1756
|
-
title: "Week/Year (Closed)",
|
|
1757
|
-
type: "dimension",
|
|
1758
|
-
uri: "/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/attr.datedataset.closed",
|
|
1759
|
-
relevance: 4,
|
|
1760
|
-
};
|
|
1761
|
-
export const decoratedActivityDateDataset = DecoratedDateDataset.createDecorated(activityDateDataset);
|
|
1762
|
-
export const decoratedActivityDateDatasetRef = DecoratedDateDataset.createDecorated(activityDateDatasetRef);
|
|
1763
|
-
export const decoratedClosedDateDataset = DecoratedDateDataset.createDecorated(closedDateDataset);
|
|
1764
|
-
export const decoratedClosedDateDatasetRef = DecoratedDateDataset.createDecorated(closedDateDatasetRef);
|
|
1765
|
-
export const decoratedClosedDateDatasetRefWithoutRelevance = _omit(decoratedClosedDateDatasetRef, "relevance");
|
|
1766
|
-
export function setupAppStateWithDateDatasets(state) {
|
|
1767
|
-
return withData(state, {
|
|
1768
|
-
dateDatasets: {
|
|
1769
|
-
...dateDatasetsInitialState,
|
|
1770
|
-
available: [activityDateDataset, closedDateDataset],
|
|
1771
|
-
unavailable: 2,
|
|
1772
|
-
loaded: true,
|
|
1773
|
-
dropdownLoaded: true,
|
|
1774
|
-
},
|
|
1775
|
-
});
|
|
1776
|
-
}
|
|
1777
|
-
export const decoratedDateDataset = decoratedActivityDateDataset;
|
|
1778
|
-
export const decoratedDateDatasets = {
|
|
1779
|
-
items: [decoratedActivityDateDataset, decoratedClosedDateDataset],
|
|
1780
|
-
unavailable: 2,
|
|
1781
|
-
};
|
|
1782
|
-
export const decoratedDateDatasetsRef = {
|
|
1783
|
-
items: [decoratedActivityDateDatasetRef, decoratedClosedDateDatasetRef],
|
|
1784
|
-
unavailable: 2,
|
|
1785
|
-
};
|
|
1786
|
-
export const activityDateDatasetsMetaItem = {
|
|
1787
|
-
ref: uriRef(activityDateDataset.uri),
|
|
1788
|
-
identifier: activityDateDataset.identifier,
|
|
1789
|
-
uri: activityDateDataset.uri,
|
|
1790
|
-
type: activityDateDataset.type,
|
|
1791
|
-
title: activityDateDataset.title,
|
|
1792
|
-
summary: activityDateDataset.summary,
|
|
1793
|
-
attributes: [],
|
|
1794
|
-
};
|
|
1795
|
-
export const closedDateDatasetsMetaItem = {
|
|
1796
|
-
ref: uriRef(closedDateDataset.uri),
|
|
1797
|
-
identifier: closedDateDataset.identifier,
|
|
1798
|
-
uri: closedDateDataset.uri,
|
|
1799
|
-
type: closedDateDataset.type,
|
|
1800
|
-
title: closedDateDataset.title,
|
|
1801
|
-
summary: closedDateDataset.summary,
|
|
1802
|
-
attributes: [],
|
|
1803
|
-
};
|
|
1804
|
-
export const dateDatasetsMeta = {
|
|
1805
|
-
items: [activityDateDatasetsMetaItem, closedDateDatasetsMetaItem],
|
|
1806
|
-
};
|
|
1807
|
-
export const insightWithMeasuresWithVariousTypesOfFilters = newInsight("local:foo", "foo", "gdc/md/foo", (i) => i
|
|
1808
|
-
.buckets([
|
|
1809
|
-
{
|
|
1810
|
-
localIdentifier: "measures",
|
|
1811
|
-
items: [
|
|
1812
|
-
newMeasure(uriRef("/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/9211"), (m) => m
|
|
1813
|
-
.localId("m1")
|
|
1814
|
-
.title("Apples")
|
|
1815
|
-
.filters(newRelativeDateFilter(uriRef("/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/attr.datedataset.activity"), "GDC.time.year", -2, -2), newNegativeAttributeFilter(uriRef("/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/992"), {
|
|
1816
|
-
uris: [
|
|
1817
|
-
"/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/990/elements?id=964772",
|
|
1818
|
-
"/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/990/elements?id=958078",
|
|
1819
|
-
],
|
|
1820
|
-
}))),
|
|
1821
|
-
newMeasure(uriRef("/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/2723"), (m) => m
|
|
1822
|
-
.localId("m2")
|
|
1823
|
-
.title("Pears")
|
|
1824
|
-
.filters(newRelativeDateFilter(uriRef("/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/attr.datedataset.closed"), "GDC.time.year", -3, -3))),
|
|
1825
|
-
newMeasure(uriRef("/gdc/md/i6k6sk4sznefv1kf0f2ls7jf8tm5ida6/obj/4906"), (m) => m.localId("m3").title("Oranges")),
|
|
1826
|
-
],
|
|
1827
|
-
},
|
|
1828
|
-
])
|
|
1829
|
-
.title("foo"));
|
|
1830
|
-
export const selectedDateDataSetRef = {
|
|
1831
|
-
attributes: [
|
|
1832
|
-
{
|
|
1833
|
-
dateType: "GDC.time.year",
|
|
1834
|
-
ref: uriRef("closed.uri"),
|
|
1835
|
-
dfRef: idRef("closed.dfIdentifier"),
|
|
1836
|
-
dfIdentifier: "closed.dfIdentifier",
|
|
1837
|
-
dfUri: "closed.dfUri",
|
|
1838
|
-
granularity: "closed.year",
|
|
1839
|
-
uri: "closed.uri",
|
|
1840
|
-
displayForms: [],
|
|
1841
|
-
},
|
|
1842
|
-
],
|
|
1843
|
-
id: "closed.dd",
|
|
1844
|
-
ref: idRef("closed.dd"),
|
|
1845
|
-
identifier: "closed.dd",
|
|
1846
|
-
isAvailable: true,
|
|
1847
|
-
relevance: 10,
|
|
1848
|
-
summary: "Closed date dataset",
|
|
1849
|
-
title: "Closed",
|
|
1850
|
-
type: "dateDataset",
|
|
1851
|
-
uri: "activity",
|
|
1852
|
-
};
|
|
1853
|
-
export const filterWithUnavailableElements = {
|
|
1854
|
-
cacheItemIdentifier: "attr.product.id",
|
|
1855
|
-
displayFormRef: uriRef("/gdc/md/TeamOneGoodSales1/obj/952"),
|
|
1856
|
-
filterConfig: {
|
|
1857
|
-
isInverted: false,
|
|
1858
|
-
selectedElements: [
|
|
1859
|
-
{
|
|
1860
|
-
available: false,
|
|
1861
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/949/elements?id=168282",
|
|
1862
|
-
title: "/gdc/md/TeamOneGoodSales1/obj/949/elements?id=168282",
|
|
1863
|
-
},
|
|
1864
|
-
{
|
|
1865
|
-
available: false,
|
|
1866
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/949/elements?id=168284",
|
|
1867
|
-
title: "/gdc/md/TeamOneGoodSales1/obj/949/elements?id=168284",
|
|
1868
|
-
},
|
|
1869
|
-
{
|
|
1870
|
-
available: false,
|
|
1871
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/949/elements?id=964771",
|
|
1872
|
-
title: "/gdc/md/TeamOneGoodSales1/obj/949/elements?id=964771",
|
|
1873
|
-
},
|
|
1874
|
-
],
|
|
1875
|
-
totalElementsCount: 0,
|
|
1876
|
-
},
|
|
1877
|
-
localIdentifier: "a1b783290dde460c92ded126aaae335d",
|
|
1878
|
-
type: "attribute",
|
|
1879
|
-
};
|
|
1880
|
-
export const dateFilterBarItem = {
|
|
1881
|
-
localIdentifier: "localIdentifierDate",
|
|
1882
|
-
type: "date",
|
|
1883
|
-
cacheItemIdentifier: "date.created",
|
|
1884
|
-
filterConfig: {
|
|
1885
|
-
granularity: "GDC.time.date",
|
|
1886
|
-
type: "absolute",
|
|
1887
|
-
interval: ["2010-01-01", "2012-12-31"],
|
|
1888
|
-
},
|
|
1889
|
-
overTimeComparisonType: OverTimeComparisonTypes.NOTHING,
|
|
1890
|
-
dateDatasetRef: uriRef("date/created/uri"),
|
|
1891
|
-
};
|
|
1892
|
-
export const dateFilterBarItemActivity = {
|
|
1893
|
-
localIdentifier: "localIdentifierDate",
|
|
1894
|
-
type: "date",
|
|
1895
|
-
cacheItemIdentifier: "date.closed",
|
|
1896
|
-
filterConfig: {
|
|
1897
|
-
granularity: "GDC.time.date",
|
|
1898
|
-
type: "absolute",
|
|
1899
|
-
interval: ["2010-01-01", "2012-12-31"],
|
|
1900
|
-
},
|
|
1901
|
-
overTimeComparisonType: OverTimeComparisonTypes.NOTHING,
|
|
1902
|
-
dateDatasetRef: activityDateDatasetRef.ref,
|
|
1903
|
-
};
|
|
1904
|
-
export const createAnalyticalDashboard = (name, identifier, id) => {
|
|
1905
|
-
return {
|
|
1906
|
-
title: name,
|
|
1907
|
-
type: "analyticalDashboard",
|
|
1908
|
-
uri: `/gdc/md/mockProject/obj/${id}`,
|
|
1909
|
-
id: identifier,
|
|
1910
|
-
deprecated: false,
|
|
1911
|
-
unlisted: false,
|
|
1912
|
-
production: true,
|
|
1913
|
-
ref: idRef(identifier),
|
|
1914
|
-
description: "",
|
|
1915
|
-
};
|
|
1916
|
-
};
|
|
1917
|
-
export const createListedDashboard = (name, identifier, id) => {
|
|
1918
|
-
const uri = `/gdc/md/mockProject/obj/${id}`;
|
|
1919
|
-
return {
|
|
1920
|
-
ref: uriRef(uri),
|
|
1921
|
-
uri,
|
|
1922
|
-
identifier,
|
|
1923
|
-
title: name,
|
|
1924
|
-
description: "",
|
|
1925
|
-
shareStatus: "shared",
|
|
1926
|
-
created: undefined,
|
|
1927
|
-
updated: undefined,
|
|
1928
|
-
availability: "full",
|
|
1929
|
-
};
|
|
1930
|
-
};
|