@gooddata/code-cli 0.38.0-alpha.4 → 0.38.0

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/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Change Log - @gooddata/code-cli
2
2
 
3
- This log was last generated on Mon, 25 May 2026 11:03:40 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 18 Jun 2026 07:03:40 GMT and should not be manually modified.
4
+
5
+ ## 0.38.0
6
+
7
+ Thu, 18 Jun 2026 07:03:40 GMT
8
+
9
+ _Version update only_
4
10
 
5
11
  ## 0.32.0
6
12
 
package/NOTICE CHANGED
@@ -7,9 +7,9 @@
7
7
 
8
8
  The following 3rd-party software packages may be used by or distributed with gdc-analytics-as-code. Any information relevant to third-party vendors listed below are collected using common, reasonable means.
9
9
 
10
- Date generated: 2026-6-16
10
+ Date generated: 2026-6-18
11
11
 
12
- Revision ID: bd5b0513be93b4710c1edc1e735093bf8065cf73
12
+ Revision ID: ec388781486abeeefb9613ea8533ec8b7b666371
13
13
 
14
14
  ================================================================================
15
15
  ================================================================================
@@ -38857,4 +38857,4 @@ POSSIBILITY OF SUCH DAMAGE.
38857
38857
  --------------------------------------------------------------------------------
38858
38858
  --------------------------------------------------------------------------------
38859
38859
 
38860
- Report Generated by FOSSA on 2026-6-16
38860
+ Report Generated by FOSSA on 2026-6-18
package/dist/index.js CHANGED
@@ -36944,7 +36944,7 @@ function isPromise(value) {
36944
36944
  //#endregion
36945
36945
  //#region package.json
36946
36946
  var name$1 = "@gooddata/code-cli";
36947
- var version$1 = "0.38.0-alpha.4";
36947
+ var version$1 = "0.38.0";
36948
36948
  //#endregion
36949
36949
  //#region ../code/esm/features/references/types.js
36950
36950
  var UpdateReferencesType;
@@ -41977,6 +41977,10 @@ const metadata_v1 = {
41977
41977
  "top": {
41978
41978
  "type": "number",
41979
41979
  "description": "Number of top N values to use in this filter."
41980
+ },
41981
+ "strict_limit_of_rows": {
41982
+ "type": "boolean",
41983
+ "description": "When true, the filter returns exactly N rows, excluding additional rows that share the same value (ties). Default is false."
41980
41984
  }
41981
41985
  },
41982
41986
  "oneOf": [{
@@ -93848,7 +93852,8 @@ function yamlRankingFilterToDeclarative(filter) {
93848
93852
  measure: createIdentifier(filter.using, { forceMetric: true }) || createLocalIdentifier(filter.using),
93849
93853
  ...filter.attribute ? { attributes: [createIdentifier(filter.attribute) || createLocalIdentifier(filter.attribute)] } : {},
93850
93854
  operator: filter.top === void 0 ? "BOTTOM" : "TOP",
93851
- value: filter.top === void 0 ? filter.bottom : filter.top
93855
+ value: filter.top === void 0 ? filter.bottom : filter.top,
93856
+ ...filter.strict_limit_of_rows === void 0 ? {} : { strictLimitOfRows: filter.strict_limit_of_rows }
93852
93857
  } }] };
93853
93858
  }
93854
93859
  function yamlFilterToDeclarative(entities, key, filter) {
@@ -95906,6 +95911,7 @@ function declarativeRankingFilterToYaml(rankingFilter, errorContext) {
95906
95911
  if (isLocalIdRef$1(first)) map.add(new import_dist$1.Pair("attribute", first.localIdentifier));
95907
95912
  else map.add(new import_dist$1.Pair("attribute", getIdentifier(first)));
95908
95913
  }
95914
+ if (rankingFilter.strictLimitOfRows !== void 0) map.add(new import_dist$1.Pair("strict_limit_of_rows", rankingFilter.strictLimitOfRows));
95909
95915
  return map;
95910
95916
  }
95911
95917
  /** @internal */
@@ -150532,7 +150538,7 @@ const _CONFIG = {
150532
150538
  common: {
150533
150539
  "X-Requested-With": "XMLHttpRequest",
150534
150540
  "X-GDC-JS-PACKAGE": "@gooddata/api-client-tiger",
150535
- "X-GDC-JS-PACKAGE-VERSION": "11.42.0-alpha.4"
150541
+ "X-GDC-JS-PACKAGE-VERSION": "11.42.0"
150536
150542
  },
150537
150543
  post: { "Content-Type": "application/json;charset=utf8" },
150538
150544
  put: { "Content-Type": "application/json;charset=utf8" }
@@ -189929,10 +189935,50 @@ function resolveCurrentWidgetVisualisationQueryFieldAttribute(references, types)
189929
189935
  ]);
189930
189936
  if (isDashboard(self) && matched.match) {
189931
189937
  const widget = referencePathResolve(self, matched);
189932
- if (widget && isInsightWidget(widget)) return resolveCurrentInsightWidgetQueryFieldAttribute(references, widget, types);
189938
+ if (widget && isInsightWidget(widget)) {
189939
+ const [fields, diagnostics] = resolveCurrentInsightWidgetQueryFieldAttribute(references, widget, types);
189940
+ const hierarchyFields = resolveAttributeHierarchyMemberAttributes(references, resolveCurrentIgnoredDrillDownHierarchyId(references)).filter((attribute) => !fields.some((field) => field.id === attribute.id)).map((attribute) => ({
189941
+ ...attribute,
189942
+ visualisation: widget.visualization
189943
+ }));
189944
+ return [[...fields, ...hierarchyFields], diagnostics];
189945
+ }
189933
189946
  }
189934
189947
  return [[], []];
189935
189948
  }
189949
+ /**
189950
+ * Resolves the attribute hierarchy id of the ignored drill down that contains the current path.
189951
+ *
189952
+ * Returns undefined when the current path is not within an ignored drill down or the ignored
189953
+ * drill down does not reference an attribute hierarchy (e.g. a date hierarchy template).
189954
+ */
189955
+ function resolveCurrentIgnoredDrillDownHierarchyId(references) {
189956
+ const self = references.self;
189957
+ if (!isDashboard(self)) return;
189958
+ const matched = referencePathMatch(references.path, [
189959
+ "tabs[*]/sections[*]/widgets[*]/sections[*]/widgets[*]/visualizations[*]/ignored_drill_downs[*]",
189960
+ "tabs[*]/sections[*]/widgets[*]/sections[*]/widgets[*]/ignored_drill_downs[*]",
189961
+ "sections[*]/widgets[*]/sections[*]/widgets[*]/visualizations[*]/ignored_drill_downs[*]",
189962
+ "sections[*]/widgets[*]/sections[*]/widgets[*]/ignored_drill_downs[*]",
189963
+ "tabs[*]/sections[*]/widgets[*]/visualizations[*]/ignored_drill_downs[*]",
189964
+ "tabs[*]/sections[*]/widgets[*]/ignored_drill_downs[*]",
189965
+ "sections[*]/widgets[*]/visualizations[*]/ignored_drill_downs[*]",
189966
+ "sections[*]/widgets[*]/ignored_drill_downs[*]"
189967
+ ]);
189968
+ if (!matched.match) return;
189969
+ return referencePathResolve(self, matched)?.hierarchy;
189970
+ }
189971
+ /**
189972
+ * Resolves the member attributes of a referenced attribute hierarchy.
189973
+ *
189974
+ * Used to validate the `on` attribute of an ignored drill down. An ignored drill down can
189975
+ * reference any attribute that is a member of the hierarchy - not only attributes that are
189976
+ * displayed in the visualization (e.g. for dashboards cloned on the server).
189977
+ */
189978
+ function resolveAttributeHierarchyMemberAttributes(references, hierarchyId) {
189979
+ if (!hierarchyId) return [];
189980
+ return (references.references.filter(filterByTypes(AttributeHierarchyTypes)).find((item) => item.id === hierarchyId)?.attributes ?? []).map((attribute) => ({ id: attribute }));
189981
+ }
189936
189982
  function resolveCurrentDashboardFiltersLocalsIds(references, types) {
189937
189983
  const self = references.self;
189938
189984
  if (isDashboard(self) && matchesDashboardFilterParentsPath(references.path)) return [collectDashboardFilterLocalIds(resolveCurrentDashboardFilterScope(self, references.path), types, resolveCurrentDashboardFilterLocalId(references.path)), []];
@@ -195372,7 +195418,7 @@ async function get(state, opts) {
195372
195418
  //#endregion
195373
195419
  //#region ../code/package.json
195374
195420
  var name = "@gooddata/code";
195375
- var version = "0.38.0-alpha.4";
195421
+ var version = "0.38.0";
195376
195422
  //#endregion
195377
195423
  //#region ../code/esm/actions/initialize.js
195378
195424
  async function initialize(state, emitter, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/code-cli",
3
- "version": "0.38.0-alpha.4",
3
+ "version": "0.38.0",
4
4
  "description": "GoodData CLI",
5
5
  "keywords": [
6
6
  "analytics",