@gooddata/code-cli 0.36.0-alpha.0 → 0.36.0-alpha.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.
- package/dist/index.js +23 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37092,7 +37092,7 @@ function isPromise(value) {
|
|
|
37092
37092
|
//#endregion
|
|
37093
37093
|
//#region package.json
|
|
37094
37094
|
var name$1 = "@gooddata/code-cli";
|
|
37095
|
-
var version$1 = "0.36.0-alpha.
|
|
37095
|
+
var version$1 = "0.36.0-alpha.2";
|
|
37096
37096
|
//#endregion
|
|
37097
37097
|
//#region ../code/esm/features/references/types.js
|
|
37098
37098
|
var UpdateReferencesType;
|
|
@@ -41183,6 +41183,11 @@ const metadata_v1 = {
|
|
|
41183
41183
|
"description": "OR-ed list of conditions. Empty or omitted means \"All\" (no filtering).",
|
|
41184
41184
|
"items": { "$ref": "#/$defs/mvfCondition" }
|
|
41185
41185
|
},
|
|
41186
|
+
"dimensionality": {
|
|
41187
|
+
"type": "array",
|
|
41188
|
+
"description": "Optional array of label references to apply dimensionality to the filter.",
|
|
41189
|
+
"items": { "$ref": "#/$defs/labelIdentifier" }
|
|
41190
|
+
},
|
|
41186
41191
|
"null_values_as_zero": {
|
|
41187
41192
|
"type": "boolean",
|
|
41188
41193
|
"description": "Null values will be treated as zero during comparisons."
|
|
@@ -86156,7 +86161,7 @@ var merge = createAssigner(function(object, source, srcIndex) {
|
|
|
86156
86161
|
});
|
|
86157
86162
|
//#endregion
|
|
86158
86163
|
//#region ../../../sdk/libs/api-client-tiger/esm/__version.js
|
|
86159
|
-
const LIB_VERSION = "11.40.0-alpha.
|
|
86164
|
+
const LIB_VERSION = "11.40.0-alpha.2";
|
|
86160
86165
|
const LIB_NAME = "@gooddata/api-client-tiger";
|
|
86161
86166
|
//#endregion
|
|
86162
86167
|
//#region ../../../sdk/libs/api-client-tiger/esm/axios.js
|
|
@@ -123680,10 +123685,13 @@ function yamlFilterContextToDeclarative(baseId, yamlFilters) {
|
|
|
123680
123685
|
...treatNullValuesAs === void 0 ? {} : { treatNullValuesAs }
|
|
123681
123686
|
} };
|
|
123682
123687
|
});
|
|
123688
|
+
const measureRef = createIdentifier(mvf.using ?? "", { forceMetric: true }) ?? createLocalIdentifier(mvf.using ?? "");
|
|
123689
|
+
const dimensionality = mvf.dimensionality?.map((item) => createIdentifier(item)).filter((item) => item !== null);
|
|
123683
123690
|
return { dashboardMeasureValueFilter: {
|
|
123684
|
-
measure:
|
|
123691
|
+
measure: measureRef,
|
|
123685
123692
|
localIdentifier: key,
|
|
123686
123693
|
...conditions && conditions.length > 0 ? { conditions } : {},
|
|
123694
|
+
...dimensionality && dimensionality.length > 0 ? { dimensionality } : {},
|
|
123687
123695
|
...mvf.title ? { title: mvf.title } : {}
|
|
123688
123696
|
} };
|
|
123689
123697
|
}
|
|
@@ -125631,6 +125639,17 @@ function declarativeMeasureValueFilterToYaml(filter, errorContext) {
|
|
|
125631
125639
|
conditions.forEach((c) => conditionsSeq.add(measureValueConditionToYaml(c)));
|
|
125632
125640
|
measureValueFilter.add(new import_dist$1.Pair("conditions", conditionsSeq));
|
|
125633
125641
|
}
|
|
125642
|
+
if (filter.dashboardMeasureValueFilter.dimensionality?.length) {
|
|
125643
|
+
const dimensionalitySeq = new import_dist$1.YAMLSeq();
|
|
125644
|
+
filter.dashboardMeasureValueFilter.dimensionality.forEach((item, i) => {
|
|
125645
|
+
dimensionalitySeq.add(getIdentifier(item, void 0, updateErrorContext(errorContext, { path: [
|
|
125646
|
+
"dashboardMeasureValueFilter",
|
|
125647
|
+
"dimensionality",
|
|
125648
|
+
i.toString()
|
|
125649
|
+
] })));
|
|
125650
|
+
});
|
|
125651
|
+
measureValueFilter.add(new import_dist$1.Pair("dimensionality", dimensionalitySeq));
|
|
125652
|
+
}
|
|
125634
125653
|
if (conditions.some(conditionHasTreatNullValuesAs)) measureValueFilter.add(new import_dist$1.Pair("null_values_as_zero", true));
|
|
125635
125654
|
return measureValueFilter;
|
|
125636
125655
|
}
|
|
@@ -193637,7 +193656,7 @@ async function get(state, opts) {
|
|
|
193637
193656
|
//#endregion
|
|
193638
193657
|
//#region ../code/package.json
|
|
193639
193658
|
var name = "@gooddata/code";
|
|
193640
|
-
var version = "0.36.0-alpha.
|
|
193659
|
+
var version = "0.36.0-alpha.2";
|
|
193641
193660
|
//#endregion
|
|
193642
193661
|
//#region ../code/esm/actions/initialize.js
|
|
193643
193662
|
async function initialize(state, emitter, options) {
|