@gooddata/code-cli 0.65.0-alpha.4 → 0.65.0-alpha.6

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.
Files changed (2) hide show
  1. package/dist/index.js +191 -14
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -37445,7 +37445,7 @@ function isPromise(value) {
37445
37445
  //#endregion
37446
37446
  //#region package.json
37447
37447
  var name$1 = "@gooddata/code-cli";
37448
- var version$1 = "0.65.0-alpha.4";
37448
+ var version$1 = "0.65.0-alpha.6";
37449
37449
  //#endregion
37450
37450
  //#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+sdk-maql-language-server@file+..+..+..+sdk+libs+sdk-maql-language-server_debug@4.4.3/node_modules/@gooddata/sdk-maql-language-server/esm/docs/en/docs/create-metrics/maql/aggregation/approximate_count.js
37451
37451
  const content$65 = `# APPROXIMATE_COUNT
@@ -118137,7 +118137,7 @@ const _CONFIG$1 = {
118137
118137
  common: {
118138
118138
  "X-Requested-With": "XMLHttpRequest",
118139
118139
  "X-GDC-JS-PACKAGE": "@gooddata/api-client-tiger",
118140
- "X-GDC-JS-PACKAGE-VERSION": "11.68.0-alpha.4"
118140
+ "X-GDC-JS-PACKAGE-VERSION": "11.68.0-alpha.6"
118141
118141
  },
118142
118142
  post: { "Content-Type": "application/json;charset=utf8" },
118143
118143
  put: { "Content-Type": "application/json;charset=utf8" }
@@ -162550,7 +162550,7 @@ const CoreErrorMessages$1 = {
162550
162550
  [CoreErrorCode$1.DuplicateFilterName]: `Duplicate filter name "{0}". Each filter in a query must have a unique name, including the filters a date filter carries.`,
162551
162551
  [CoreErrorCode$1.DuplicateLayerIdentifier]: `Duplicate layer id "{0}". Each layer of a visualisation must have a unique id.`,
162552
162552
  [CoreErrorCode$1.DuplicateTabIdentifier]: `Duplicate tab identifier "{0}". Each tab must have a unique identifier within the dashboard.`,
162553
- [CoreErrorCode$1.TabsAndRootContentMutuallyExclusive]: `Dashboard "{0}" defines both "tabs" and root-level "sections" or "filters". These are mutually exclusive — keep all content inside tabs or at the root, not both.`,
162553
+ [CoreErrorCode$1.TabsAndRootContentMutuallyExclusive]: `Dashboard "{0}" defines both "tabs" and root-level "sections", "filters" or "parameters". These are mutually exclusive — keep all content inside tabs or at the root, not both.`,
162554
162554
  [CoreErrorCode$1.InvalidIanaTimezoneId]: `"{0}" is not a valid IANA timezone ID. Use a real timezone such as Europe/Prague or $browserDetected.`,
162555
162555
  [CoreErrorCode$1.UnsupportedContentVersion]: `Expected "{0}", got {1}.`,
162556
162556
  [CoreErrorCode$1.DateFilterWithoutDataSet]: `Date filter "{0}" names no date dataset. A document date filter must name the date dataset it applies to.`,
@@ -164419,7 +164419,10 @@ function declarativeDashboardToYaml(entities, dashboard, filterContexts, context
164419
164419
  const shouldUseTabs = hasMultipleTabs || hasSingleTabWithTitle;
164420
164420
  if (content.tabs && shouldUseTabs) {
164421
164421
  if (content.tabs[0].layout?.configuration?.sections?.enableHeader) doc.add(entryWithSpace("enable_section_headers", content.tabs[0].layout?.configuration?.sections?.enableHeader));
164422
- const tabs = declarativeTabsToYaml(content.tabs, filterContexts, entities, updateErrorContext(errorContext, { path: ["tabs"] }));
164422
+ const tabs = declarativeTabsToYaml(content.tabs, {
164423
+ filterContexts,
164424
+ rootParameters: content.parameters
164425
+ }, entities, updateErrorContext(errorContext, { path: ["tabs"] }));
164423
164426
  if (tabs) doc.add(entryWithSpace("tabs", tabs));
164424
164427
  } else if (content.tabs?.length === 1) {
164425
164428
  if (content.tabs[0].layout?.configuration?.sections?.enableHeader) doc.add(entryWithSpace("enable_section_headers", content.tabs[0].layout?.configuration?.sections?.enableHeader));
@@ -164431,6 +164434,12 @@ function declarativeDashboardToYaml(entities, dashboard, filterContexts, context
164431
164434
  declarativeFiltersConfigToYaml$1(filtersMap, tab.dateFilterConfig, tab.dateFilterConfigs, tab.attributeFilterConfigs, tab.measureValueFilterConfigs, errorContext);
164432
164435
  const groupedFilters = declarativeFilterGroupsToYaml(filters, tab.filterGroupsConfig);
164433
164436
  if (groupedFilters.items.length > 0) doc.add(entryWithSpace("filters", groupedFilters));
164437
+ const parameters = declarativeParametersToYaml(tabParameters(tab, content.tabs, content.parameters), updateErrorContext(errorContext, { path: [
164438
+ "tabs",
164439
+ "0",
164440
+ "parameters"
164441
+ ] }));
164442
+ if (parameters) doc.add(entryWithSpace("parameters", parameters));
164434
164443
  } else {
164435
164444
  if (content.layout?.configuration?.sections?.enableHeader) doc.add(entryWithSpace("enable_section_headers", content.layout?.configuration?.sections?.enableHeader));
164436
164445
  const section = declarativeSectionsToYaml(content.layout, entities, updateErrorContext(errorContext, { path: ["layout"] }));
@@ -164439,6 +164448,8 @@ function declarativeDashboardToYaml(entities, dashboard, filterContexts, context
164439
164448
  const { filters, filtersMap } = declarativeFilterContextToYaml(content.dateFilterConfig, filterContexts?.find((fc) => fc.id === filterContextId), updateErrorContext(errorContext, { path: ["dateFilterConfig"] }));
164440
164449
  declarativeFiltersConfigToYaml$1(filtersMap, content.dateFilterConfig, content.dateFilterConfigs, content.attributeFilterConfigs, content.measureValueFilterConfigs, errorContext);
164441
164450
  if (filters.items.length > 0) doc.add(entryWithSpace("filters", filters));
164451
+ const parameters = declarativeParametersToYaml(content.parameters, updateErrorContext(errorContext, { path: ["parameters"] }));
164452
+ if (parameters) doc.add(entryWithSpace("parameters", parameters));
164442
164453
  }
164443
164454
  const plugins = declarativePluginsToYaml(content, updateErrorContext(errorContext, { path: ["plugins"] }));
164444
164455
  if (plugins) doc.add(entryWithSpace("plugins", plugins));
@@ -164450,7 +164461,8 @@ function declarativeDashboardToYaml(entities, dashboard, filterContexts, context
164450
164461
  };
164451
164462
  }
164452
164463
  /** @internal */
164453
- function declarativeTabsToYaml(tabs, filterContexts, entities, errorContext) {
164464
+ function declarativeTabsToYaml(tabs, dependencies = {}, entities, errorContext) {
164465
+ const { filterContexts, rootParameters } = dependencies;
164454
164466
  if (!tabs || tabs.length === 0) return;
164455
164467
  const yamlTabs = new import_dist$5.YAMLSeq();
164456
164468
  tabs.forEach((tab, ti) => {
@@ -164469,6 +164481,8 @@ function declarativeTabsToYaml(tabs, filterContexts, entities, errorContext) {
164469
164481
  const groupedFilters = declarativeFilterGroupsToYaml(filters, tab.filterGroupsConfig);
164470
164482
  if (groupedFilters.items.length > 0) yamlTab.add(new import_dist$5.Pair("filters", groupedFilters));
164471
164483
  }
164484
+ const parameters = declarativeParametersToYaml(tabParameters(tab, tabs, rootParameters), updateErrorContext(tabErrorContext, { path: ["parameters"] }));
164485
+ if (parameters) yamlTab.add(new import_dist$5.Pair("parameters", parameters));
164472
164486
  if (tab.layout) {
164473
164487
  const sections = declarativeSectionsToYaml({ layout: tab.layout }.layout, entities, updateErrorContext(tabErrorContext, { path: ["layout"] }));
164474
164488
  if (sections) yamlTab.add(new import_dist$5.Pair("sections", sections));
@@ -164987,6 +165001,28 @@ function getFilterGroupIdBase({ title, localIdentifier }) {
164987
165001
  if (localIdentifier) return localIdentifier;
164988
165002
  return title.normalize().replace(/[^a-zA-Z0-9]/g, "_").toLowerCase();
164989
165003
  }
165004
+ /**
165005
+ * The parameters a tab shows: its own list, or the legacy root list when no tab has one.
165006
+ * Mirrors `pickTabParametersSource` in sdk-ui-dashboard, which this package cannot import.
165007
+ */
165008
+ function tabParameters(tab, allTabs, rootParameters) {
165009
+ if (tab.parameters !== void 0) return tab.parameters;
165010
+ return allTabs.every((other) => other.parameters === void 0) ? rootParameters : void 0;
165011
+ }
165012
+ function declarativeParametersToYaml(parameters, errorContext) {
165013
+ if (!parameters?.length) return;
165014
+ const yamlParameters = new import_dist$5.YAMLSeq();
165015
+ parameters.forEach((parameter, i) => {
165016
+ yamlParameters.add({
165017
+ id: getIdentifier(parameter.ref, true, updateErrorContext(errorContext, { path: [i.toString()] })),
165018
+ type: parameter.parameterType,
165019
+ ...parameter.value === void 0 ? {} : { value: parameter.value },
165020
+ ...parameter.label === void 0 ? {} : { title: parameter.label },
165021
+ ...parameter.mode && parameter.mode !== "active" ? { mode: parameter.mode } : {}
165022
+ });
165023
+ });
165024
+ return yamlParameters;
165025
+ }
164990
165026
  /** @internal */
164991
165027
  function declarativePluginsToYaml(dashboard, errorContext) {
164992
165028
  if (!dashboard.plugins?.length) return;
@@ -165043,7 +165079,8 @@ function yamlTabsToDeclarative(entities, tabs, enableSectionHeaders) {
165043
165079
  dateFilterConfigs,
165044
165080
  attributeFilterConfigs,
165045
165081
  measureValueFilterConfigs,
165046
- ...filterGroupsConfig ? { filterGroupsConfig } : {}
165082
+ ...filterGroupsConfig ? { filterGroupsConfig } : {},
165083
+ ...tab.parameters?.length ? { parameters: yamlParametersToDeclarative(tab.parameters) } : {}
165047
165084
  });
165048
165085
  });
165049
165086
  return {
@@ -165066,6 +165103,7 @@ function processDashboardWithTabsV2(entities, input) {
165066
165103
  dateFilterConfigs: defaultTab.dateFilterConfigs,
165067
165104
  attributeFilterConfigs: defaultTab.attributeFilterConfigs,
165068
165105
  measureValueFilterConfigs: defaultTab.measureValueFilterConfigs,
165106
+ parameters: defaultTab.parameters,
165069
165107
  tabs: tabsResult.tabs,
165070
165108
  tabFilterContexts: tabsResult.filterContexts
165071
165109
  };
@@ -165082,6 +165120,7 @@ function processDashboardWithoutTabsV2(entities, input) {
165082
165120
  id: "defaultTabId",
165083
165121
  title: "",
165084
165122
  filters: input.filters,
165123
+ parameters: input.parameters,
165085
165124
  sections: input.sections ?? []
165086
165125
  }]
165087
165126
  });
@@ -165114,6 +165153,7 @@ function processDashboardWithTabsV3(entities, input) {
165114
165153
  dateFilterConfigs: void 0,
165115
165154
  attributeFilterConfigs: void 0,
165116
165155
  measureValueFilterConfigs: void 0,
165156
+ parameters: void 0,
165117
165157
  tabs: tabsResult.tabs,
165118
165158
  tabFilterContexts: tabsResult.filterContexts
165119
165159
  };
@@ -165127,6 +165167,7 @@ function processDashboardWithoutTabsV3(entities, input) {
165127
165167
  id: "defaultTabId",
165128
165168
  title: "",
165129
165169
  filters: input.filters,
165170
+ parameters: input.parameters,
165130
165171
  sections: input.sections ?? []
165131
165172
  }], input.enable_section_headers);
165132
165173
  return {
@@ -165136,6 +165177,7 @@ function processDashboardWithoutTabsV3(entities, input) {
165136
165177
  dateFilterConfigs: void 0,
165137
165178
  attributeFilterConfigs: void 0,
165138
165179
  measureValueFilterConfigs: void 0,
165180
+ parameters: void 0,
165139
165181
  tabs: tabsResult.tabs,
165140
165182
  tabFilterContexts: tabsResult.filterContexts
165141
165183
  };
@@ -165143,10 +165185,10 @@ function processDashboardWithoutTabsV3(entities, input) {
165143
165185
  /** @public */
165144
165186
  function yamlDashboardToDeclarative(entities, input) {
165145
165187
  const hasTabs = Boolean(input.tabs && input.tabs.length > 0);
165146
- const hasRootContent = Boolean(input.sections && input.sections.length > 0 || input.filters && Object.keys(input.filters).length > 0);
165188
+ const hasRootContent = Boolean(input.sections && input.sections.length > 0 || input.filters && Object.keys(input.filters).length > 0 || input.parameters && input.parameters.length > 0);
165147
165189
  if (hasTabs && hasRootContent) throw newError$1(CoreErrorCode$1.TabsAndRootContentMutuallyExclusive, [input.id]);
165148
165190
  const yamlVersion = input.version ?? "2";
165149
- const { layout, filterContext, dateFilterConfig, dateFilterConfigs, attributeFilterConfigs, measureValueFilterConfigs, tabs, tabFilterContexts } = yamlVersion === "3" ? hasTabs ? processDashboardWithTabsV3(entities, input) : processDashboardWithoutTabsV3(entities, input) : hasTabs ? processDashboardWithTabsV2(entities, input) : processDashboardWithoutTabsV2(entities, input);
165191
+ const { layout, filterContext, dateFilterConfig, dateFilterConfigs, attributeFilterConfigs, measureValueFilterConfigs, parameters, tabs, tabFilterContexts } = yamlVersion === "3" ? hasTabs ? processDashboardWithTabsV3(entities, input) : processDashboardWithoutTabsV3(entities, input) : hasTabs ? processDashboardWithTabsV2(entities, input) : processDashboardWithoutTabsV2(entities, input);
165150
165192
  const plugins = yamlPluginsToDeclarative(input.plugins);
165151
165193
  const timezoneConfig = yamlTimezoneConfigToDeclarative(input.timezone_config);
165152
165194
  const [, permissions] = toDeclarativePermissions(input.permissions);
@@ -165168,6 +165210,7 @@ function yamlDashboardToDeclarative(entities, input) {
165168
165210
  measureValueFilterConfigs,
165169
165211
  dateFilterConfig,
165170
165212
  dateFilterConfigs,
165213
+ ...parameters ? { parameters } : {},
165171
165214
  ...timezoneConfig ? { timezoneConfig } : {},
165172
165215
  ...tabs ? { tabs } : {},
165173
165216
  ...input.cross_filtering === false ? { disableCrossFiltering: true } : {},
@@ -165435,6 +165478,15 @@ function yamlIgnoredFilterToDeclarative(input) {
165435
165478
  };
165436
165479
  return null;
165437
165480
  }
165481
+ function yamlParametersToDeclarative(parameters) {
165482
+ return parameters.map((parameter) => ({
165483
+ ref: createIdentifier(parameter.id, { forceType: "parameter" }),
165484
+ parameterType: parameter.type,
165485
+ ...parameter.value === void 0 ? {} : { value: parameter.value },
165486
+ ...parameter.title === void 0 ? {} : { label: parameter.title },
165487
+ ...parameter.mode && parameter.mode !== "active" ? { mode: parameter.mode } : {}
165488
+ }));
165489
+ }
165438
165490
  /** @internal */
165439
165491
  function yamlPluginsToDeclarative(plugins) {
165440
165492
  return plugins?.map((plugin) => yamlPluginToDeclarative$1(plugin));
@@ -189932,6 +189984,7 @@ function resolveDashboardReferences(item) {
189932
189984
  ...resolveSectionsReferences(item.sections),
189933
189985
  ...resolveFiltersReferences$1(item.filters),
189934
189986
  ...resolvePluginsReferences(item.plugins),
189987
+ ...resolveParametersReferences(item.parameters),
189935
189988
  ...resolveTabsReferences(item.tabs)
189936
189989
  ];
189937
189990
  }
@@ -189940,6 +189993,7 @@ function resolveTabsReferences(tabs) {
189940
189993
  if (tabs && Array.isArray(tabs)) tabs.forEach((tab) => {
189941
189994
  references.push(...resolveSectionsReferences(tab.sections));
189942
189995
  references.push(...resolveFiltersReferences$1(tab.filters));
189996
+ references.push(...resolveParametersReferences(tab.parameters));
189943
189997
  });
189944
189998
  return references;
189945
189999
  }
@@ -190014,6 +190068,13 @@ function resolveFiltersReferences$1(filters) {
190014
190068
  });
190015
190069
  return references;
190016
190070
  }
190071
+ function resolveParametersReferences(parameters) {
190072
+ const references = [];
190073
+ if (parameters && Array.isArray(parameters)) parameters.forEach((parameter) => {
190074
+ if (parameter && typeof parameter === "object" && typeof parameter.id === "string") references.push(createReferenceObject(parameter.id, "parameter"));
190075
+ });
190076
+ return references;
190077
+ }
190017
190078
  function resolvePluginsReferences(plugins) {
190018
190079
  const references = [];
190019
190080
  if (plugins && Array.isArray(plugins)) plugins.forEach((plugin) => {
@@ -193691,7 +193752,7 @@ const metadata_v1 = {
193691
193752
  "version": {
193692
193753
  "type": "string",
193693
193754
  "enum": ["2", "3"],
193694
- "description": "Dashboard model version. \"2\" (default if omitted) — legacy shape: root-level sections/filters are also mirrored into a default tab, producing a declarative model with duplicated content for backward compatibility with older SDK readers. \"3\" — clean shape: tabs are the sole source of layout and filters; root sections/filters in YAML are still allowed as an authoring shortcut but are wrapped into a single synthetic tab without duplication. Use \"3\" for new dashboards; \"2\" exists to keep existing files round-trippable."
193755
+ "description": "Dashboard model version. \"2\" (default if omitted) — legacy shape: root-level sections/filters/parameters are also mirrored into a default tab, producing a declarative model with duplicated content for backward compatibility with older SDK readers. \"3\" — clean shape: tabs are the sole source of layout, filters and parameters; root sections/filters/parameters in YAML are still allowed as an authoring shortcut but are wrapped into a single synthetic tab without duplication. Use \"3\" for new dashboards; \"2\" exists to keep existing files round-trippable."
193695
193756
  },
193696
193757
  "title": {
193697
193758
  "$ref": "#/$global/gaac/title",
@@ -193779,9 +193840,13 @@ const metadata_v1 = {
193779
193840
  }
193780
193841
  }] }
193781
193842
  },
193843
+ "parameters": {
193844
+ "$ref": "#/$defs/dashboardParameters",
193845
+ "description": "Parameters shown in the filter bar of this dashboard."
193846
+ },
193782
193847
  "tabs": {
193783
193848
  "type": "array",
193784
- "description": "A list of tabs in this dashboard. Each tab has its own layout, filters, and filter configurations. Mutually exclusive with sections and filters at dashboard level.",
193849
+ "description": "A list of tabs in this dashboard. Each tab has its own layout, filters, parameters, and filter configurations. Mutually exclusive with sections, filters and parameters at dashboard level.",
193785
193850
  "items": { "$ref": "#/$defs/tab" },
193786
193851
  "$semantic": { "type": "unique_tab_identifiers" }
193787
193852
  },
@@ -200689,7 +200754,7 @@ const metadata_v1 = {
200689
200754
  "version": {
200690
200755
  "type": "string",
200691
200756
  "enum": ["2", "3"],
200692
- "description": "Dashboard model version. \"2\" (default if omitted) — legacy shape: root-level sections/filters are also mirrored into a default tab, producing a declarative model with duplicated content for backward compatibility with older SDK readers. \"3\" — clean shape: tabs are the sole source of layout and filters; root sections/filters in YAML are still allowed as an authoring shortcut but are wrapped into a single synthetic tab without duplication. Use \"3\" for new dashboards; \"2\" exists to keep existing files round-trippable."
200757
+ "description": "Dashboard model version. \"2\" (default if omitted) — legacy shape: root-level sections/filters/parameters are also mirrored into a default tab, producing a declarative model with duplicated content for backward compatibility with older SDK readers. \"3\" — clean shape: tabs are the sole source of layout, filters and parameters; root sections/filters/parameters in YAML are still allowed as an authoring shortcut but are wrapped into a single synthetic tab without duplication. Use \"3\" for new dashboards; \"2\" exists to keep existing files round-trippable."
200693
200758
  },
200694
200759
  "title": {
200695
200760
  "$ref": "#/$global/gaac/title",
@@ -200777,9 +200842,13 @@ const metadata_v1 = {
200777
200842
  }
200778
200843
  }] }
200779
200844
  },
200845
+ "parameters": {
200846
+ "$ref": "#/$defs/dashboardParameters",
200847
+ "description": "Parameters shown in the filter bar of this dashboard."
200848
+ },
200780
200849
  "tabs": {
200781
200850
  "type": "array",
200782
- "description": "A list of tabs in this dashboard. Each tab has its own layout, filters, and filter configurations. Mutually exclusive with sections and filters at dashboard level.",
200851
+ "description": "A list of tabs in this dashboard. Each tab has its own layout, filters, parameters, and filter configurations. Mutually exclusive with sections, filters and parameters at dashboard level.",
200783
200852
  "items": { "$ref": "#/$defs/tab" },
200784
200853
  "$semantic": { "type": "unique_tab_identifiers" }
200785
200854
  },
@@ -200834,6 +200903,44 @@ const metadata_v1 = {
200834
200903
  },
200835
200904
  "required": ["widgets"]
200836
200905
  },
200906
+ "dashboardParameters": {
200907
+ "type": "array",
200908
+ "items": {
200909
+ "title": "Dashboard Parameter",
200910
+ "description": "A parameter shown in the filter bar: its value must have the parameter's type.",
200911
+ "allOf": [{
200912
+ "if": {
200913
+ "properties": { "type": { "const": "STRING" } },
200914
+ "required": ["type"]
200915
+ },
200916
+ "then": { "$ref": "#/$defs/stringDashboardParameter" }
200917
+ }, {
200918
+ "if": {
200919
+ "properties": { "type": { "const": "NUMBER" } },
200920
+ "required": ["type"]
200921
+ },
200922
+ "then": { "$ref": "#/$defs/numberDashboardParameter" }
200923
+ }],
200924
+ "properties": {
200925
+ "id": {
200926
+ "description": "An identifier of the parameter.",
200927
+ "$semantic": {
200928
+ "type": "reference",
200929
+ "source": "parameter.id"
200930
+ }
200931
+ },
200932
+ "type": {
200933
+ "type": "string",
200934
+ "enum": ["STRING", "NUMBER"],
200935
+ "description": "The data type of the parameter. Must match the type in the parameter definition."
200936
+ },
200937
+ "value": { "description": "The value this dashboard uses instead of the parameter's default value." },
200938
+ "title": { "description": "The label shown in the filter bar instead of the parameter's title." },
200939
+ "mode": { "description": "Setting parameter mode to readonly will disable the parameter. Setting it to hidden will hide the parameter from the dashboard. Setting it to active will enable the parameter." }
200940
+ },
200941
+ "required": ["id", "type"]
200942
+ }
200943
+ },
200837
200944
  "tab": {
200838
200945
  "type": "object",
200839
200946
  "additionalProperties": false,
@@ -200855,6 +200962,10 @@ const metadata_v1 = {
200855
200962
  "description": "Filters specific to this tab.",
200856
200963
  "$semantic": { "type": "unique_filter_local_identifiers" }
200857
200964
  },
200965
+ "parameters": {
200966
+ "$ref": "#/$defs/dashboardParameters",
200967
+ "description": "Parameters shown in the filter bar of this tab."
200968
+ },
200858
200969
  "sections": {
200859
200970
  "type": "array",
200860
200971
  "description": "A list of sections in this tab.",
@@ -200867,6 +200978,72 @@ const metadata_v1 = {
200867
200978
  "sections"
200868
200979
  ]
200869
200980
  },
200981
+ "stringDashboardParameter": {
200982
+ "type": "object",
200983
+ "additionalProperties": false,
200984
+ "properties": {
200985
+ "id": {
200986
+ "$ref": "#/$global/gaac/identifier",
200987
+ "description": "An identifier of the parameter."
200988
+ },
200989
+ "type": {
200990
+ "type": "string",
200991
+ "enum": ["STRING"],
200992
+ "description": "The data type of the parameter. Must match the type in the parameter definition."
200993
+ },
200994
+ "value": {
200995
+ "type": "string",
200996
+ "description": "The value this dashboard uses instead of the parameter's default value."
200997
+ },
200998
+ "title": {
200999
+ "$ref": "#/$global/gaac/title",
201000
+ "description": "The label shown in the filter bar instead of the parameter's title."
201001
+ },
201002
+ "mode": {
201003
+ "type": "string",
201004
+ "enum": [
201005
+ "readonly",
201006
+ "hidden",
201007
+ "active"
201008
+ ],
201009
+ "description": "Setting parameter mode to readonly will disable the parameter. Setting it to hidden will hide the parameter from the dashboard. Setting it to active will enable the parameter."
201010
+ }
201011
+ },
201012
+ "required": ["id", "type"]
201013
+ },
201014
+ "numberDashboardParameter": {
201015
+ "type": "object",
201016
+ "additionalProperties": false,
201017
+ "properties": {
201018
+ "id": {
201019
+ "$ref": "#/$global/gaac/identifier",
201020
+ "description": "An identifier of the parameter."
201021
+ },
201022
+ "type": {
201023
+ "type": "string",
201024
+ "enum": ["NUMBER"],
201025
+ "description": "The data type of the parameter. Must match the type in the parameter definition."
201026
+ },
201027
+ "value": {
201028
+ "type": "number",
201029
+ "description": "The value this dashboard uses instead of the parameter's default value."
201030
+ },
201031
+ "title": {
201032
+ "$ref": "#/$global/gaac/title",
201033
+ "description": "The label shown in the filter bar instead of the parameter's title."
201034
+ },
201035
+ "mode": {
201036
+ "type": "string",
201037
+ "enum": [
201038
+ "readonly",
201039
+ "hidden",
201040
+ "active"
201041
+ ],
201042
+ "description": "Setting parameter mode to readonly will disable the parameter. Setting it to hidden will hide the parameter from the dashboard. Setting it to active will enable the parameter."
201043
+ }
201044
+ },
201045
+ "required": ["id", "type"]
201046
+ },
200870
201047
  "timezoneId": {
200871
201048
  "description": "An IANA timezone ID (for example, Europe/Prague or UTC) or $browserDetected to use the viewer browser timezone.",
200872
201049
  "oneOf": [{
@@ -210329,7 +210506,7 @@ async function open(state, emitter, file) {
210329
210506
  //#endregion
210330
210507
  //#region ../code/package.json
210331
210508
  var name = "@gooddata/code";
210332
- var version = "0.65.0-alpha.4";
210509
+ var version = "0.65.0-alpha.6";
210333
210510
  //#endregion
210334
210511
  //#region ../code/esm/services/server/client.js
210335
210512
  function getApiClient$1(profile, { packageName, packageVersion }) {
@@ -237791,7 +237968,7 @@ const _CONFIG = {
237791
237968
  common: {
237792
237969
  "X-Requested-With": "XMLHttpRequest",
237793
237970
  "X-GDC-JS-PACKAGE": "@gooddata/api-client-tiger",
237794
- "X-GDC-JS-PACKAGE-VERSION": "11.68.0-alpha.4"
237971
+ "X-GDC-JS-PACKAGE-VERSION": "11.68.0-alpha.6"
237795
237972
  },
237796
237973
  post: { "Content-Type": "application/json;charset=utf8" },
237797
237974
  put: { "Content-Type": "application/json;charset=utf8" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/code-cli",
3
- "version": "0.65.0-alpha.4",
3
+ "version": "0.65.0-alpha.6",
4
4
  "description": "GoodData CLI",
5
5
  "keywords": [
6
6
  "analytics",