@gooddata/code-cli 0.52.0-alpha.0 → 0.52.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/NOTICE +34 -298
- package/dist/index.js +501 -95
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37370,7 +37370,7 @@ function isPromise(value) {
|
|
|
37370
37370
|
//#endregion
|
|
37371
37371
|
//#region package.json
|
|
37372
37372
|
var name$1 = "@gooddata/code-cli";
|
|
37373
|
-
var version$1 = "0.52.0-alpha.
|
|
37373
|
+
var version$1 = "0.52.0-alpha.2";
|
|
37374
37374
|
//#endregion
|
|
37375
37375
|
//#region ../../../common/temp/aac/node_modules/.pnpm/vscode-languageserver@8.1.0/node_modules/vscode-languageserver/lib/common/utils/is.js
|
|
37376
37376
|
var require_is$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -89288,7 +89288,7 @@ function createMetadataCompletionItem(metadataObject, range) {
|
|
|
89288
89288
|
kind,
|
|
89289
89289
|
insertText,
|
|
89290
89290
|
filterText: `{ ${maqlType} / ${metadataObject.id} } ${metadataObject.title}`,
|
|
89291
|
-
sortText:
|
|
89291
|
+
sortText: metadataObject.id,
|
|
89292
89292
|
detail: `ID: '${identifier}', Description: '${metadataObject.description}'`,
|
|
89293
89293
|
textEdit: range ? import_main$1.TextEdit.replace(range, insertText) : void 0
|
|
89294
89294
|
};
|
|
@@ -89415,6 +89415,9 @@ var LdmObjects = class LdmObjects {
|
|
|
89415
89415
|
if (!object.tigerType) return;
|
|
89416
89416
|
return this.get(object.tigerType)?.find((tigerObject) => areObjRefsEqual(tigerObject.ref, object.ref));
|
|
89417
89417
|
}
|
|
89418
|
+
findById(type, id) {
|
|
89419
|
+
return this.get(type)?.find((object) => object.id === id);
|
|
89420
|
+
}
|
|
89418
89421
|
processAttributes(attributes) {
|
|
89419
89422
|
return attributes.flatMap((attribute) => ({
|
|
89420
89423
|
attributes: [LdmObjects.toTigerMetadataObject(attribute.attribute)],
|
|
@@ -93630,6 +93633,42 @@ function renderParameterDefaults(maql, ldmObjects) {
|
|
|
93630
93633
|
unresolved
|
|
93631
93634
|
};
|
|
93632
93635
|
}
|
|
93636
|
+
/**
|
|
93637
|
+
* Resolves every parameter the given MAQL templates and metrics depend on to its default value,
|
|
93638
|
+
* following `{metric/id}` references into metric expressions. Each parameter is reported once, in
|
|
93639
|
+
* order of first appearance.
|
|
93640
|
+
*/
|
|
93641
|
+
function resolveParameterValues(maqls, metricIds, ldmObjects) {
|
|
93642
|
+
const parameters = /* @__PURE__ */ new Map();
|
|
93643
|
+
const visitedMetrics = /* @__PURE__ */ new Set();
|
|
93644
|
+
const visitTemplate = (template) => {
|
|
93645
|
+
for (const object of findAllObjects(new MaqlMetric(template))) {
|
|
93646
|
+
if (object.tigerType === "parameter" && !parameters.has(object.id)) parameters.set(object.id, resolveParameter(object.id, ldmObjects));
|
|
93647
|
+
if (object.tigerType === "metric") visitMetric(object.id);
|
|
93648
|
+
}
|
|
93649
|
+
};
|
|
93650
|
+
const visitMetric = (metricId) => {
|
|
93651
|
+
if (visitedMetrics.has(metricId)) return;
|
|
93652
|
+
visitedMetrics.add(metricId);
|
|
93653
|
+
const expression = ldmObjects.findById("metric", metricId)?.expression;
|
|
93654
|
+
if (expression) visitTemplate(expression);
|
|
93655
|
+
};
|
|
93656
|
+
maqls.forEach(visitTemplate);
|
|
93657
|
+
metricIds.forEach(visitMetric);
|
|
93658
|
+
return [...parameters.values()];
|
|
93659
|
+
}
|
|
93660
|
+
function resolveParameter(id, ldmObjects) {
|
|
93661
|
+
const found = ldmObjects.findById("parameter", id);
|
|
93662
|
+
if (!found) return { id };
|
|
93663
|
+
return isRenderableDefinition(found.definition) ? {
|
|
93664
|
+
id,
|
|
93665
|
+
title: found.title,
|
|
93666
|
+
value: found.definition.defaultValue
|
|
93667
|
+
} : {
|
|
93668
|
+
id,
|
|
93669
|
+
title: found.title
|
|
93670
|
+
};
|
|
93671
|
+
}
|
|
93633
93672
|
//#endregion
|
|
93634
93673
|
//#region ../code-ast/esm/yaml/types.js
|
|
93635
93674
|
/**
|
|
@@ -106918,7 +106957,7 @@ function isMetricValueFilter$1(obj) {
|
|
|
106918
106957
|
}
|
|
106919
106958
|
return false;
|
|
106920
106959
|
}
|
|
106921
|
-
function isRankingFilter$
|
|
106960
|
+
function isRankingFilter$3(obj) {
|
|
106922
106961
|
return !!(typeof obj === "object" && obj && "using" in obj && "type" in obj && obj.type === "ranking_filter");
|
|
106923
106962
|
}
|
|
106924
106963
|
function isAttributeSort$2(obj) {
|
|
@@ -133253,7 +133292,7 @@ var merge = createAssigner(function(object, source, srcIndex) {
|
|
|
133253
133292
|
/**
|
|
133254
133293
|
* @public
|
|
133255
133294
|
*/
|
|
133256
|
-
const isAfmObjectIdentifier = (value) => {
|
|
133295
|
+
const isAfmObjectIdentifier$1 = (value) => {
|
|
133257
133296
|
return !!(value?.identifier?.id && value?.identifier?.type);
|
|
133258
133297
|
};
|
|
133259
133298
|
//#endregion
|
|
@@ -134544,7 +134583,7 @@ function isAttribute$2(obj) {
|
|
|
134544
134583
|
*
|
|
134545
134584
|
* @public
|
|
134546
134585
|
*/
|
|
134547
|
-
function isMeasure(obj) {
|
|
134586
|
+
function isMeasure$1(obj) {
|
|
134548
134587
|
return !isEmpty(obj) && obj.measure?.definition !== void 0;
|
|
134549
134588
|
}
|
|
134550
134589
|
/**
|
|
@@ -134552,7 +134591,7 @@ function isMeasure(obj) {
|
|
|
134552
134591
|
*
|
|
134553
134592
|
* @public
|
|
134554
134593
|
*/
|
|
134555
|
-
function isMeasureDefinition(obj) {
|
|
134594
|
+
function isMeasureDefinition$1(obj) {
|
|
134556
134595
|
return !isEmpty(obj) && obj.measureDefinition !== void 0;
|
|
134557
134596
|
}
|
|
134558
134597
|
/**
|
|
@@ -134560,7 +134599,7 @@ function isMeasureDefinition(obj) {
|
|
|
134560
134599
|
*
|
|
134561
134600
|
* @public
|
|
134562
134601
|
*/
|
|
134563
|
-
function isInlineMeasureDefinition(obj) {
|
|
134602
|
+
function isInlineMeasureDefinition$1(obj) {
|
|
134564
134603
|
return !isEmpty(obj) && obj.inlineDefinition !== void 0;
|
|
134565
134604
|
}
|
|
134566
134605
|
/**
|
|
@@ -134708,7 +134747,7 @@ function isDateFilter$1(obj) {
|
|
|
134708
134747
|
*
|
|
134709
134748
|
* @public
|
|
134710
134749
|
*/
|
|
134711
|
-
function isMeasureValueFilter(obj) {
|
|
134750
|
+
function isMeasureValueFilter$1(obj) {
|
|
134712
134751
|
return !isEmpty(obj) && obj.measureValueFilter !== void 0;
|
|
134713
134752
|
}
|
|
134714
134753
|
/**
|
|
@@ -134716,7 +134755,7 @@ function isMeasureValueFilter(obj) {
|
|
|
134716
134755
|
*
|
|
134717
134756
|
* @public
|
|
134718
134757
|
*/
|
|
134719
|
-
function isRankingFilter$
|
|
134758
|
+
function isRankingFilter$2(obj) {
|
|
134720
134759
|
return !isEmpty(obj) && obj.rankingFilter !== void 0;
|
|
134721
134760
|
}
|
|
134722
134761
|
/**
|
|
@@ -134725,7 +134764,7 @@ function isRankingFilter$1(obj) {
|
|
|
134725
134764
|
* @public
|
|
134726
134765
|
*/
|
|
134727
134766
|
function isFilter(obj) {
|
|
134728
|
-
return isDateFilter$1(obj) || isAttributeFilter$1(obj) || isMeasureValueFilter(obj) || isRankingFilter$
|
|
134767
|
+
return isDateFilter$1(obj) || isAttributeFilter$1(obj) || isMeasureValueFilter$1(obj) || isRankingFilter$2(obj);
|
|
134729
134768
|
}
|
|
134730
134769
|
/**
|
|
134731
134770
|
* Type guard checking whether the provided object is a measure value filter's comparison condition.
|
|
@@ -134793,8 +134832,8 @@ function filterLocalIdentifier(filter) {
|
|
|
134793
134832
|
if (isRelativeDateFilter$1(filter)) return filter.relativeDateFilter.localIdentifier;
|
|
134794
134833
|
if (isArbitraryAttributeFilter(filter)) return filter.arbitraryAttributeFilter.localIdentifier;
|
|
134795
134834
|
if (isMatchAttributeFilter(filter)) return filter.matchAttributeFilter.localIdentifier;
|
|
134796
|
-
if (isMeasureValueFilter(filter)) return filter.measureValueFilter.localIdentifier;
|
|
134797
|
-
if (isRankingFilter$
|
|
134835
|
+
if (isMeasureValueFilter$1(filter)) return filter.measureValueFilter.localIdentifier;
|
|
134836
|
+
if (isRankingFilter$2(filter)) return filter.rankingFilter.localIdentifier;
|
|
134798
134837
|
}
|
|
134799
134838
|
//#endregion
|
|
134800
134839
|
//#region ../../../sdk/libs/sdk-model/esm/execution/buckets/index.js
|
|
@@ -135176,13 +135215,13 @@ function createFilterItemKeyName(item, type = "date", errorContext) {
|
|
|
135176
135215
|
if (isNegativeAttributeFilter$1(item)) return item.negativeAttributeFilter.localIdentifier ?? `${getIdentifier(item.negativeAttributeFilter.displayForm, true, updateErrorContext(errorContext, { path: ["negativeAttributeFilter", "displayForm"] }))}_filter`;
|
|
135177
135216
|
if (isArbitraryAttributeFilter(item)) return item.arbitraryAttributeFilter.localIdentifier ?? `${getIdentifier(item.arbitraryAttributeFilter.label, true, updateErrorContext(errorContext, { path: ["arbitraryAttributeFilter", "label"] }))}_text_filter`;
|
|
135178
135217
|
if (isMatchAttributeFilter(item)) return item.matchAttributeFilter.localIdentifier ?? `${getIdentifier(item.matchAttributeFilter.label, true, updateErrorContext(errorContext, { path: ["matchAttributeFilter", "label"] }))}_text_filter`;
|
|
135179
|
-
if (isMeasureValueFilter(item)) return `maf_${getIdentifier(item.measureValueFilter.measure, true, updateErrorContext(errorContext, { path: ["measureValueFilter", "measure"] }))}_filter`;
|
|
135180
|
-
if (isRankingFilter$
|
|
135218
|
+
if (isMeasureValueFilter$1(item)) return `maf_${getIdentifier(item.measureValueFilter.measure, true, updateErrorContext(errorContext, { path: ["measureValueFilter", "measure"] }))}_filter`;
|
|
135219
|
+
if (isRankingFilter$2(item)) return `${getIdentifier(item.rankingFilter.measure, true, updateErrorContext(errorContext, { path: ["rankingFilter", "measure"] }))}_filter`;
|
|
135181
135220
|
throw newError("core.itemNotSupported", [JSON.stringify(item)], errorContext);
|
|
135182
135221
|
}
|
|
135183
135222
|
/** @public */
|
|
135184
135223
|
function getIdentifier(obj, untype, errorContext) {
|
|
135185
|
-
const idRef = isAfmObjectIdentifier(obj) ? {
|
|
135224
|
+
const idRef = isAfmObjectIdentifier$1(obj) ? {
|
|
135186
135225
|
type: obj.identifier.type,
|
|
135187
135226
|
identifier: obj.identifier.id
|
|
135188
135227
|
} : obj;
|
|
@@ -135767,7 +135806,7 @@ function isMetricAllValueFilter(obj) {
|
|
|
135767
135806
|
const condition = obj.condition;
|
|
135768
135807
|
return condition === void 0 || condition === null;
|
|
135769
135808
|
}
|
|
135770
|
-
function isRankingFilter(obj) {
|
|
135809
|
+
function isRankingFilter$1(obj) {
|
|
135771
135810
|
return typeof obj === "object" && obj !== null && "using" in obj && "type" in obj && obj.type === "ranking_filter";
|
|
135772
135811
|
}
|
|
135773
135812
|
function isAttributeSort(obj) {
|
|
@@ -139306,23 +139345,27 @@ function mapLocationLabel(entities, field) {
|
|
|
139306
139345
|
const fieldsId = Object.keys(dataset.fields || {});
|
|
139307
139346
|
for (const fieldId of fieldsId) {
|
|
139308
139347
|
const field = dataset.fields?.[fieldId];
|
|
139309
|
-
if (isAttribute(field)
|
|
139348
|
+
if (isAttribute(field)) {
|
|
139310
139349
|
const labelIds = Object.keys(field.labels || {});
|
|
139311
|
-
|
|
139312
|
-
|
|
139313
|
-
|
|
139314
|
-
|
|
139315
|
-
|
|
139316
|
-
|
|
139317
|
-
|
|
139318
|
-
|
|
139319
|
-
|
|
139320
|
-
|
|
139321
|
-
|
|
139322
|
-
|
|
139323
|
-
|
|
139324
|
-
|
|
139325
|
-
|
|
139350
|
+
const isAttributeItself = fieldId === displayForm?.identifier.id;
|
|
139351
|
+
const isLabel = labelIds.includes(displayForm?.identifier.id || "");
|
|
139352
|
+
if (isAttributeItself || isLabel) {
|
|
139353
|
+
let latitude;
|
|
139354
|
+
let longitude;
|
|
139355
|
+
for (const labelId of labelIds) {
|
|
139356
|
+
const label = field.labels?.[labelId];
|
|
139357
|
+
if (label?.value_type === "GEO_LATITUDE") latitude = labelId;
|
|
139358
|
+
if (label?.value_type === "GEO_LONGITUDE") longitude = labelId;
|
|
139359
|
+
}
|
|
139360
|
+
if (latitude) return {
|
|
139361
|
+
displayForm: { identifier: {
|
|
139362
|
+
id: latitude,
|
|
139363
|
+
type: "label"
|
|
139364
|
+
} },
|
|
139365
|
+
latitude,
|
|
139366
|
+
longitude
|
|
139367
|
+
};
|
|
139368
|
+
}
|
|
139326
139369
|
}
|
|
139327
139370
|
}
|
|
139328
139371
|
}
|
|
@@ -140174,7 +140217,7 @@ function yamlFilterToDeclarative(entities, key, filter, assignFilterLocalId) {
|
|
|
140174
140217
|
if (isMetricRangeValueFilter(filter)) return yamlMetricRangeValueFilterToDeclarative(filter);
|
|
140175
140218
|
if (isMetricComparisonValueFilter(filter)) return yamlMetricComparisonValueFilterToDeclarative(filter);
|
|
140176
140219
|
if (isMetricAllValueFilter(filter)) return yamlMetricAllValueFilterToDeclarative(filter);
|
|
140177
|
-
if (isRankingFilter(filter)) return yamlRankingFilterToDeclarative(filter);
|
|
140220
|
+
if (isRankingFilter$1(filter)) return yamlRankingFilterToDeclarative(filter);
|
|
140178
140221
|
assertUnreachable(filter);
|
|
140179
140222
|
}
|
|
140180
140223
|
function mergeDeclarativeResults(...results) {
|
|
@@ -141006,7 +141049,7 @@ function sourceInsightFilterIdToDeclarative(filterId, sourceVisualizationFilters
|
|
|
141006
141049
|
type: "measureValueFilter",
|
|
141007
141050
|
measure: createIdentifier(filter.using, { forceMetric: true }) ?? createLocalIdentifier(filter.using)
|
|
141008
141051
|
};
|
|
141009
|
-
if (isRankingFilter(filter)) return {
|
|
141052
|
+
if (isRankingFilter$1(filter)) return {
|
|
141010
141053
|
type: "rankingFilter",
|
|
141011
141054
|
measure: createIdentifier(filter.using, { forceMetric: true }) ?? createLocalIdentifier(filter.using)
|
|
141012
141055
|
};
|
|
@@ -141776,12 +141819,12 @@ function declarativeFilterToYaml(entities, filter, claimKey, connectedAttributeF
|
|
|
141776
141819
|
yaml: declarativeMatchAttributeFilterToYaml(filter.matchAttributeFilter, updateErrorContext(errorContext, { path: ["matchAttributeFilter"] })),
|
|
141777
141820
|
filter
|
|
141778
141821
|
};
|
|
141779
|
-
if (isMeasureValueFilter(filter)) return {
|
|
141822
|
+
if (isMeasureValueFilter$1(filter)) return {
|
|
141780
141823
|
key,
|
|
141781
141824
|
yaml: declarativeMeasureValueFilterToYaml$1(filter.measureValueFilter, updateErrorContext(errorContext, { path: ["measureValueFilter"] })),
|
|
141782
141825
|
filter
|
|
141783
141826
|
};
|
|
141784
|
-
if (isRankingFilter$
|
|
141827
|
+
if (isRankingFilter$2(filter)) return {
|
|
141785
141828
|
key,
|
|
141786
141829
|
yaml: declarativeRankingFilterToYaml(filter.rankingFilter, updateErrorContext(errorContext, { path: ["rankingFilter"] })),
|
|
141787
141830
|
filter
|
|
@@ -142209,31 +142252,31 @@ function declarativeBucketsToYaml(entities, buckets, errorContext) {
|
|
|
142209
142252
|
attributesMap[item.attribute.localIdentifier] = def;
|
|
142210
142253
|
return;
|
|
142211
142254
|
}
|
|
142212
|
-
if (isMeasure(item) && isInlineMeasureDefinition(item.measure.definition)) {
|
|
142255
|
+
if (isMeasure$1(item) && isInlineMeasureDefinition$1(item.measure.definition)) {
|
|
142213
142256
|
const def = declarativeInlineMetricToYaml(item.measure, item.measure.definition);
|
|
142214
142257
|
addField(item.measure.localIdentifier, def, group, { format: item.measure.format });
|
|
142215
142258
|
attributesMap[item.measure.localIdentifier] = def;
|
|
142216
142259
|
return;
|
|
142217
142260
|
}
|
|
142218
|
-
if (isMeasure(item) && isMeasureDefinition(item.measure.definition)) {
|
|
142261
|
+
if (isMeasure$1(item) && isMeasureDefinition$1(item.measure.definition)) {
|
|
142219
142262
|
const def = declarativeNormalMetricToYaml(item.measure, item.measure.definition, postProcessors, updateErrorContext(bucketItemErrorContext, { path: ["measure"] }));
|
|
142220
142263
|
addField(item.measure.localIdentifier, def, group, { format: item.measure.format });
|
|
142221
142264
|
attributesMap[item.measure.localIdentifier] = def;
|
|
142222
142265
|
return;
|
|
142223
142266
|
}
|
|
142224
|
-
if (isMeasure(item) && isArithmeticMeasureDefinition(item.measure.definition)) {
|
|
142267
|
+
if (isMeasure$1(item) && isArithmeticMeasureDefinition(item.measure.definition)) {
|
|
142225
142268
|
const def = declarativeArithmeticMetricToYaml(item.measure, item.measure.definition);
|
|
142226
142269
|
addField(item.measure.localIdentifier, def, group, { format: item.measure.format });
|
|
142227
142270
|
attributesMap[item.measure.localIdentifier] = def;
|
|
142228
142271
|
return;
|
|
142229
142272
|
}
|
|
142230
|
-
if (isMeasure(item) && isPoPMeasureDefinition(item.measure.definition)) {
|
|
142273
|
+
if (isMeasure$1(item) && isPoPMeasureDefinition(item.measure.definition)) {
|
|
142231
142274
|
const def = declarativePoPMetricToYaml(item.measure, item.measure.definition, updateErrorContext(bucketItemErrorContext, { path: ["measure"] }));
|
|
142232
142275
|
addField(item.measure.localIdentifier, def, group, { format: item.measure.format });
|
|
142233
142276
|
attributesMap[item.measure.localIdentifier] = def;
|
|
142234
142277
|
return;
|
|
142235
142278
|
}
|
|
142236
|
-
if (isMeasure(item) && isPreviousPeriodMeasureDefinition(item.measure.definition)) {
|
|
142279
|
+
if (isMeasure$1(item) && isPreviousPeriodMeasureDefinition(item.measure.definition)) {
|
|
142237
142280
|
const def = declarativePreviousPeriodMetricToYaml(item.measure, item.measure.definition, updateErrorContext(bucketItemErrorContext, { path: ["measure"] }));
|
|
142238
142281
|
addField(item.measure.localIdentifier, def, group, { format: item.measure.format });
|
|
142239
142282
|
attributesMap[item.measure.localIdentifier] = def;
|
|
@@ -143661,7 +143704,7 @@ function buildFilters(entities, filters_by) {
|
|
|
143661
143704
|
if (filter.dimensionality && Array.isArray(filter.dimensionality) && filter.dimensionality.length > 0) comparisonMeasureValueFilter.comparisonMeasureValueFilter.dimensionality = filter.dimensionality.map((item) => createIdentifier(item) || createLocalIdentifier(item));
|
|
143662
143705
|
filters.push(comparisonMeasureValueFilter);
|
|
143663
143706
|
}
|
|
143664
|
-
if (isRankingFilter(filter)) filters.push({ rankingFilter: {
|
|
143707
|
+
if (isRankingFilter$1(filter)) filters.push({ rankingFilter: {
|
|
143665
143708
|
measures: [createIdentifier(filter.using) || createLocalIdentifier(filter.using)],
|
|
143666
143709
|
...filter.attribute ? { dimensionality: [createIdentifier(filter.attribute) || createLocalIdentifier(filter.attribute)] } : {},
|
|
143667
143710
|
operator: filter.top === void 0 ? "BOTTOM" : "TOP",
|
|
@@ -144080,7 +144123,7 @@ function resolveFiltersReferences(filters) {
|
|
|
144080
144123
|
});
|
|
144081
144124
|
return;
|
|
144082
144125
|
}
|
|
144083
|
-
if (isRankingFilter$
|
|
144126
|
+
if (isRankingFilter$3(filter)) {
|
|
144084
144127
|
const ref = parseReferenceObject$1(filter.using);
|
|
144085
144128
|
ref && all.push(ref);
|
|
144086
144129
|
if (filter.attribute) {
|
|
@@ -145422,7 +145465,7 @@ function resolveCurrentInsightWidgetQueryFilterLocalIds(references, widget) {
|
|
|
145422
145465
|
const filters = visualisation.query?.filter_by ?? {};
|
|
145423
145466
|
const results = [];
|
|
145424
145467
|
Object.entries(filters).forEach(([id, filter]) => {
|
|
145425
|
-
if (isAttributeFilter$2(filter) || isTextFilter$1(filter) || isAbsoluteDateFilter$2(filter) || isRelativeDateFilter$2(filter) || isMetricValueFilter$1(filter) || isRankingFilter$
|
|
145468
|
+
if (isAttributeFilter$2(filter) || isTextFilter$1(filter) || isAbsoluteDateFilter$2(filter) || isRelativeDateFilter$2(filter) || isMetricValueFilter$1(filter) || isRankingFilter$3(filter)) results.push({
|
|
145426
145469
|
id,
|
|
145427
145470
|
visualisation: visualisation.id,
|
|
145428
145471
|
title: `${visualisation.title ?? convertIdToTitle(visualisation.id)}: ${id}`
|
|
@@ -145488,7 +145531,7 @@ function resolveCurrentInsightWidgetQueryFieldFilterLocalIds(references, widget)
|
|
|
145488
145531
|
for (const field of Object.values(fields)) {
|
|
145489
145532
|
const fullField = getFullField(field);
|
|
145490
145533
|
if ("filter_by" in fullField && fullField.filter_by) {
|
|
145491
|
-
for (const [id, filter] of Object.entries(fullField.filter_by)) if (isAttributeFilter$2(filter) || isTextFilter$1(filter) || isAbsoluteDateFilter$2(filter) || isRelativeDateFilter$2(filter) || isMetricValueFilter$1(filter) || isRankingFilter$
|
|
145534
|
+
for (const [id, filter] of Object.entries(fullField.filter_by)) if (isAttributeFilter$2(filter) || isTextFilter$1(filter) || isAbsoluteDateFilter$2(filter) || isRelativeDateFilter$2(filter) || isMetricValueFilter$1(filter) || isRankingFilter$3(filter)) results.push({
|
|
145492
145535
|
id,
|
|
145493
145536
|
visualisation: visualisation.id,
|
|
145494
145537
|
title: `${visualisation.title ?? convertIdToTitle(visualisation.id)}: ${id}`
|
|
@@ -157095,6 +157138,96 @@ function movePosition$2(fullDocument, point, position) {
|
|
|
157095
157138
|
};
|
|
157096
157139
|
}
|
|
157097
157140
|
//#endregion
|
|
157141
|
+
//#region ../../../sdk/libs/sdk-model/src/execution/measure/index.ts
|
|
157142
|
+
/**
|
|
157143
|
+
* Implementation of measure predicate which always returns true.
|
|
157144
|
+
*
|
|
157145
|
+
* @public
|
|
157146
|
+
*/
|
|
157147
|
+
const anyMeasure = (_) => true;
|
|
157148
|
+
/**
|
|
157149
|
+
* Type guard for checking whether object is any type of measure.
|
|
157150
|
+
*
|
|
157151
|
+
* @public
|
|
157152
|
+
*/
|
|
157153
|
+
function isMeasure(obj) {
|
|
157154
|
+
return !isEmpty(obj) && obj.measure?.definition !== void 0;
|
|
157155
|
+
}
|
|
157156
|
+
/**
|
|
157157
|
+
* Type guard for checking whether object is a measure definition.
|
|
157158
|
+
*
|
|
157159
|
+
* @public
|
|
157160
|
+
*/
|
|
157161
|
+
function isMeasureDefinition(obj) {
|
|
157162
|
+
return !isEmpty(obj) && obj.measureDefinition !== void 0;
|
|
157163
|
+
}
|
|
157164
|
+
/**
|
|
157165
|
+
* Type guard for checking whether object is a inline measure definition.
|
|
157166
|
+
*
|
|
157167
|
+
* @public
|
|
157168
|
+
*/
|
|
157169
|
+
function isInlineMeasureDefinition(obj) {
|
|
157170
|
+
return !isEmpty(obj) && obj.inlineDefinition !== void 0;
|
|
157171
|
+
}
|
|
157172
|
+
//#endregion
|
|
157173
|
+
//#region ../../../sdk/libs/sdk-model/src/execution/filter/index.ts
|
|
157174
|
+
/**
|
|
157175
|
+
* Type guard checking whether the provided object is a measure value filter.
|
|
157176
|
+
*
|
|
157177
|
+
* @public
|
|
157178
|
+
*/
|
|
157179
|
+
function isMeasureValueFilter(obj) {
|
|
157180
|
+
return !isEmpty(obj) && obj.measureValueFilter !== void 0;
|
|
157181
|
+
}
|
|
157182
|
+
/**
|
|
157183
|
+
* Type guard checking whether the provided object is a ranking filter.
|
|
157184
|
+
*
|
|
157185
|
+
* @public
|
|
157186
|
+
*/
|
|
157187
|
+
function isRankingFilter(obj) {
|
|
157188
|
+
return !isEmpty(obj) && obj.rankingFilter !== void 0;
|
|
157189
|
+
}
|
|
157190
|
+
//#endregion
|
|
157191
|
+
//#region ../../../sdk/libs/sdk-model/src/execution/buckets/index.ts
|
|
157192
|
+
/**
|
|
157193
|
+
* Gets all measures matching the provided predicate from the bucket.
|
|
157194
|
+
*
|
|
157195
|
+
* @remarks
|
|
157196
|
+
* If no predicate is provided, then the function defaults to anyMeasure predicate - meaning all measures from
|
|
157197
|
+
* the bucket will be returned.
|
|
157198
|
+
*
|
|
157199
|
+
* @param bucket - bucket to work with
|
|
157200
|
+
* @param predicate - measure predicate; {@link anyMeasure} predicate is default
|
|
157201
|
+
* @returns empty list if none match
|
|
157202
|
+
* @public
|
|
157203
|
+
*/
|
|
157204
|
+
function bucketMeasures(bucket, predicate = anyMeasure) {
|
|
157205
|
+
(0, import_invariant$1.invariant)(bucket, "bucket must be specified");
|
|
157206
|
+
const compositeGuard = (obj) => {
|
|
157207
|
+
return isMeasure(obj) && predicate(obj);
|
|
157208
|
+
};
|
|
157209
|
+
return bucket.items.filter(compositeGuard);
|
|
157210
|
+
}
|
|
157211
|
+
//#endregion
|
|
157212
|
+
//#region ../../../sdk/libs/sdk-model/src/execution/buckets/bucketArray.ts
|
|
157213
|
+
/**
|
|
157214
|
+
* Gets all measures matching the provided predicate from a list of buckets.
|
|
157215
|
+
*
|
|
157216
|
+
* @remarks
|
|
157217
|
+
* If no predicate is provided, then the function defaults to {@link anyMeasure} predicate - meaning all
|
|
157218
|
+
* measures will be returned.
|
|
157219
|
+
*
|
|
157220
|
+
* @param buckets - list of buckets to get measures from
|
|
157221
|
+
* @param predicate - measure predicate; {@link anyMeasure} is default
|
|
157222
|
+
* @returns empty list if none match
|
|
157223
|
+
* @public
|
|
157224
|
+
*/
|
|
157225
|
+
function bucketsMeasures(buckets, predicate = anyMeasure) {
|
|
157226
|
+
(0, import_invariant$1.invariant)(buckets, "buckets must be specified");
|
|
157227
|
+
if (!buckets.length) return [];
|
|
157228
|
+
return buckets.flatMap((b) => bucketMeasures(b, predicate));
|
|
157229
|
+
}
|
|
157230
|
+
//#endregion
|
|
157098
157231
|
//#region ../../../sdk/libs/sdk-model/src/dashboard/dashboard.ts
|
|
157099
157232
|
/**
|
|
157100
157233
|
* Value of {@link IDashboardTimezoneConfig.timezoneId} representing that the effective timezone
|
|
@@ -160532,7 +160665,7 @@ function createWidgetVisualisationQueryFieldFilterReference(references, value) {
|
|
|
160532
160665
|
function queryFieldFilterLocalIdDefinition(references, parents, nodeItem, value) {
|
|
160533
160666
|
if (isVisualisation(references.self)) {
|
|
160534
160667
|
const def = getNodeValue(getPropertyValueNode(getParentNode(parents[0], nodeItem))) ?? {};
|
|
160535
|
-
if (isAttributeFilter$2(def) || isAbsoluteDateFilter$2(def) || isRelativeDateFilter$2(def) || isMetricValueFilter$1(def) || isRankingFilter$
|
|
160668
|
+
if (isAttributeFilter$2(def) || isAbsoluteDateFilter$2(def) || isRelativeDateFilter$2(def) || isMetricValueFilter$1(def) || isRankingFilter$3(def)) return [createPartialLocalReferenceObjectInfo(references.self.id, [
|
|
160536
160669
|
"query",
|
|
160537
160670
|
"field",
|
|
160538
160671
|
"filter_by"
|
|
@@ -160543,7 +160676,7 @@ function queryFieldFilterLocalIdDefinition(references, parents, nodeItem, value)
|
|
|
160543
160676
|
function queryFilterLocalIdDefinition(references, parents, nodeItem, value) {
|
|
160544
160677
|
if (isVisualisation(references.self)) {
|
|
160545
160678
|
const def = getNodeValue(getPropertyValueNode(getParentNode(parents[0], nodeItem))) ?? {};
|
|
160546
|
-
if (isAttributeFilter$2(def) || isAbsoluteDateFilter$2(def) || isRelativeDateFilter$2(def) || isMetricValueFilter$1(def) || isRankingFilter$
|
|
160679
|
+
if (isAttributeFilter$2(def) || isAbsoluteDateFilter$2(def) || isRelativeDateFilter$2(def) || isMetricValueFilter$1(def) || isRankingFilter$3(def)) return [createPartialLocalReferenceObjectInfo(references.self.id, ["query", "filter_by"], value, value, true)];
|
|
160547
160680
|
}
|
|
160548
160681
|
return [];
|
|
160549
160682
|
}
|
|
@@ -161277,7 +161410,7 @@ async function open(state, emitter, file) {
|
|
|
161277
161410
|
//#endregion
|
|
161278
161411
|
//#region ../code/package.json
|
|
161279
161412
|
var name = "@gooddata/code";
|
|
161280
|
-
var version = "0.52.0-alpha.
|
|
161413
|
+
var version = "0.52.0-alpha.2";
|
|
161281
161414
|
//#endregion
|
|
161282
161415
|
//#region ../../../sdk/libs/api-client-tiger/src/axios.ts
|
|
161283
161416
|
/**
|
|
@@ -161299,7 +161432,7 @@ const _CONFIG = {
|
|
|
161299
161432
|
common: {
|
|
161300
161433
|
"X-Requested-With": "XMLHttpRequest",
|
|
161301
161434
|
"X-GDC-JS-PACKAGE": "@gooddata/api-client-tiger",
|
|
161302
|
-
"X-GDC-JS-PACKAGE-VERSION": "11.56.0-alpha.
|
|
161435
|
+
"X-GDC-JS-PACKAGE-VERSION": "11.56.0-alpha.2"
|
|
161303
161436
|
},
|
|
161304
161437
|
post: { "Content-Type": "application/json;charset=utf8" },
|
|
161305
161438
|
put: { "Content-Type": "application/json;charset=utf8" }
|
|
@@ -162688,6 +162821,41 @@ async function ActionsApiAxiosParamCreator_PauseWorkspaceAutomations(workspaceId
|
|
|
162688
162821
|
};
|
|
162689
162822
|
}
|
|
162690
162823
|
/**
|
|
162824
|
+
* Puts a new invitation requirement into the invitation generator queue. This is a GoodData Cloud specific endpoint.
|
|
162825
|
+
* @summary Invite User
|
|
162826
|
+
* @param {Invitation} invitation
|
|
162827
|
+
* @param {*} [options] Override http request option.
|
|
162828
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
162829
|
+
* @throws {RequiredError}
|
|
162830
|
+
*/
|
|
162831
|
+
async function ActionsApiAxiosParamCreator_ProcessInvitation$1(invitation, options = {}, configuration) {
|
|
162832
|
+
assertParamExists$7("processInvitation", "invitation", invitation);
|
|
162833
|
+
const localVarUrlObj = new URL(`/api/v1/actions/invite`, DUMMY_BASE_URL$7);
|
|
162834
|
+
let baseOptions;
|
|
162835
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
162836
|
+
const localVarRequestOptions = {
|
|
162837
|
+
method: "POST",
|
|
162838
|
+
...baseOptions,
|
|
162839
|
+
...options
|
|
162840
|
+
};
|
|
162841
|
+
const localVarHeaderParameter = {};
|
|
162842
|
+
const localVarQueryParameter = {};
|
|
162843
|
+
const consumes = ["application/json"];
|
|
162844
|
+
localVarHeaderParameter["Content-Type"] = consumes.includes("application/json") ? "application/json" : consumes[0];
|
|
162845
|
+
setSearchParams$7(localVarUrlObj, localVarQueryParameter);
|
|
162846
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
162847
|
+
localVarRequestOptions.headers = {
|
|
162848
|
+
...localVarHeaderParameter,
|
|
162849
|
+
...headersFromBaseOptions,
|
|
162850
|
+
...options.headers
|
|
162851
|
+
};
|
|
162852
|
+
localVarRequestOptions.data = typeof invitation !== "string" || localVarRequestOptions.headers["Content-Type"] === "application/json" ? JSON.stringify(invitation !== void 0 ? invitation : {}) : invitation || "";
|
|
162853
|
+
return {
|
|
162854
|
+
url: toPathString$7(localVarUrlObj),
|
|
162855
|
+
options: localVarRequestOptions
|
|
162856
|
+
};
|
|
162857
|
+
}
|
|
162858
|
+
/**
|
|
162691
162859
|
* Notification sets up all reports to be computed again with new data.
|
|
162692
162860
|
* @summary Register an upload notification
|
|
162693
162861
|
* @param {string} dataSourceId
|
|
@@ -163930,6 +164098,19 @@ async function ActionsApi_PauseWorkspaceAutomations(axios, basePath, requestPara
|
|
|
163930
164098
|
return createRequestFunction$7(await ActionsApiAxiosParamCreator_PauseWorkspaceAutomations(requestParameters.workspaceId, requestParameters.workspaceAutomationManagementBulkRequest, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
163931
164099
|
}
|
|
163932
164100
|
/**
|
|
164101
|
+
* Puts a new invitation requirement into the invitation generator queue. This is a GoodData Cloud specific endpoint.
|
|
164102
|
+
* @summary Invite User
|
|
164103
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
164104
|
+
* @param {string} basePath Base path.
|
|
164105
|
+
* @param {ActionsApiProcessInvitationRequest} requestParameters Request parameters.
|
|
164106
|
+
* @param {*} [options] Override http request option.
|
|
164107
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
164108
|
+
* @throws {RequiredError}
|
|
164109
|
+
*/
|
|
164110
|
+
async function ActionsApi_ProcessInvitation$1(axios, basePath, requestParameters, options, configuration) {
|
|
164111
|
+
return createRequestFunction$7(await ActionsApiAxiosParamCreator_ProcessInvitation$1(requestParameters.invitation, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
164112
|
+
}
|
|
164113
|
+
/**
|
|
163933
164114
|
* Notification sets up all reports to be computed again with new data.
|
|
163934
164115
|
* @summary Register an upload notification
|
|
163935
164116
|
* @param {AxiosInstance} axios Axios instance.
|
|
@@ -164614,6 +164795,17 @@ var ActionsApi$4 = class extends BaseAPI$7 {
|
|
|
164614
164795
|
return ActionsApi_PauseWorkspaceAutomations(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
164615
164796
|
}
|
|
164616
164797
|
/**
|
|
164798
|
+
* Puts a new invitation requirement into the invitation generator queue. This is a GoodData Cloud specific endpoint.
|
|
164799
|
+
* @summary Invite User
|
|
164800
|
+
* @param {ActionsApiProcessInvitationRequest} requestParameters Request parameters.
|
|
164801
|
+
* @param {*} [options] Override http request option.
|
|
164802
|
+
* @throws {RequiredError}
|
|
164803
|
+
* @memberof ActionsApi
|
|
164804
|
+
*/
|
|
164805
|
+
processInvitation(requestParameters, options) {
|
|
164806
|
+
return ActionsApi_ProcessInvitation$1(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
164807
|
+
}
|
|
164808
|
+
/**
|
|
164617
164809
|
* Notification sets up all reports to be computed again with new data.
|
|
164618
164810
|
* @summary Register an upload notification
|
|
164619
164811
|
* @param {ActionsApiRegisterUploadNotificationRequest} requestParameters Request parameters.
|
|
@@ -165978,12 +166170,13 @@ async function EntitiesApiAxiosParamCreator_CreateEntityParameters(workspaceId,
|
|
|
165978
166170
|
* @summary Post Report Page Layout
|
|
165979
166171
|
* @param {string} workspaceId
|
|
165980
166172
|
* @param {JsonApiReportPageLayoutPostOptionalIdDocument} jsonApiReportPageLayoutPostOptionalIdDocument
|
|
166173
|
+
* @param {Array<'userIdentifiers' | 'createdBy' | 'modifiedBy' | 'ALL'>} [include] Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.
|
|
165981
166174
|
* @param {Array<'origin' | 'all' | 'ALL'>} [metaInclude] Include Meta objects.
|
|
165982
166175
|
* @param {*} [options] Override http request option.
|
|
165983
166176
|
* @param {Configuration} [configuration] Optional configuration.
|
|
165984
166177
|
* @throws {RequiredError}
|
|
165985
166178
|
*/
|
|
165986
|
-
async function EntitiesApiAxiosParamCreator_CreateEntityReportPageLayouts(workspaceId, jsonApiReportPageLayoutPostOptionalIdDocument, metaInclude, options = {}, configuration) {
|
|
166179
|
+
async function EntitiesApiAxiosParamCreator_CreateEntityReportPageLayouts(workspaceId, jsonApiReportPageLayoutPostOptionalIdDocument, include, metaInclude, options = {}, configuration) {
|
|
165987
166180
|
assertParamExists$7("createEntityReportPageLayouts", "workspaceId", workspaceId);
|
|
165988
166181
|
assertParamExists$7("createEntityReportPageLayouts", "jsonApiReportPageLayoutPostOptionalIdDocument", jsonApiReportPageLayoutPostOptionalIdDocument);
|
|
165989
166182
|
const localVarPath = `/api/v1/entities/workspaces/{workspaceId}/reportPageLayouts`.replace(`{workspaceId}`, encodeURIComponent(String(workspaceId)));
|
|
@@ -165997,6 +166190,7 @@ async function EntitiesApiAxiosParamCreator_CreateEntityReportPageLayouts(worksp
|
|
|
165997
166190
|
};
|
|
165998
166191
|
const localVarHeaderParameter = {};
|
|
165999
166192
|
const localVarQueryParameter = {};
|
|
166193
|
+
if (include) localVarQueryParameter["include"] = include.join(COLLECTION_FORMATS$1.csv);
|
|
166000
166194
|
if (metaInclude) localVarQueryParameter["metaInclude"] = Array.from(metaInclude).join(COLLECTION_FORMATS$1.csv);
|
|
166001
166195
|
const consumes = ["application/vnd.gooddata.api+json", "application/json"];
|
|
166002
166196
|
localVarHeaderParameter["Content-Type"] = consumes.includes("application/json") ? "application/json" : consumes[0];
|
|
@@ -166018,12 +166212,13 @@ async function EntitiesApiAxiosParamCreator_CreateEntityReportPageLayouts(worksp
|
|
|
166018
166212
|
* @summary Post Report Template
|
|
166019
166213
|
* @param {string} workspaceId
|
|
166020
166214
|
* @param {JsonApiReportTemplatePostOptionalIdDocument} jsonApiReportTemplatePostOptionalIdDocument
|
|
166215
|
+
* @param {Array<'userIdentifiers' | 'createdBy' | 'modifiedBy' | 'ALL'>} [include] Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.
|
|
166021
166216
|
* @param {Array<'origin' | 'all' | 'ALL'>} [metaInclude] Include Meta objects.
|
|
166022
166217
|
* @param {*} [options] Override http request option.
|
|
166023
166218
|
* @param {Configuration} [configuration] Optional configuration.
|
|
166024
166219
|
* @throws {RequiredError}
|
|
166025
166220
|
*/
|
|
166026
|
-
async function EntitiesApiAxiosParamCreator_CreateEntityReportTemplates(workspaceId, jsonApiReportTemplatePostOptionalIdDocument, metaInclude, options = {}, configuration) {
|
|
166221
|
+
async function EntitiesApiAxiosParamCreator_CreateEntityReportTemplates(workspaceId, jsonApiReportTemplatePostOptionalIdDocument, include, metaInclude, options = {}, configuration) {
|
|
166027
166222
|
assertParamExists$7("createEntityReportTemplates", "workspaceId", workspaceId);
|
|
166028
166223
|
assertParamExists$7("createEntityReportTemplates", "jsonApiReportTemplatePostOptionalIdDocument", jsonApiReportTemplatePostOptionalIdDocument);
|
|
166029
166224
|
const localVarPath = `/api/v1/entities/workspaces/{workspaceId}/reportTemplates`.replace(`{workspaceId}`, encodeURIComponent(String(workspaceId)));
|
|
@@ -166037,6 +166232,7 @@ async function EntitiesApiAxiosParamCreator_CreateEntityReportTemplates(workspac
|
|
|
166037
166232
|
};
|
|
166038
166233
|
const localVarHeaderParameter = {};
|
|
166039
166234
|
const localVarQueryParameter = {};
|
|
166235
|
+
if (include) localVarQueryParameter["include"] = include.join(COLLECTION_FORMATS$1.csv);
|
|
166040
166236
|
if (metaInclude) localVarQueryParameter["metaInclude"] = Array.from(metaInclude).join(COLLECTION_FORMATS$1.csv);
|
|
166041
166237
|
const consumes = ["application/vnd.gooddata.api+json", "application/json"];
|
|
166042
166238
|
localVarHeaderParameter["Content-Type"] = consumes.includes("application/json") ? "application/json" : consumes[0];
|
|
@@ -166058,12 +166254,13 @@ async function EntitiesApiAxiosParamCreator_CreateEntityReportTemplates(workspac
|
|
|
166058
166254
|
* @summary Post Report
|
|
166059
166255
|
* @param {string} workspaceId
|
|
166060
166256
|
* @param {JsonApiReportPostOptionalIdDocument} jsonApiReportPostOptionalIdDocument
|
|
166257
|
+
* @param {Array<'userIdentifiers' | 'createdBy' | 'modifiedBy' | 'ALL'>} [include] Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.
|
|
166061
166258
|
* @param {Array<'origin' | 'all' | 'ALL'>} [metaInclude] Include Meta objects.
|
|
166062
166259
|
* @param {*} [options] Override http request option.
|
|
166063
166260
|
* @param {Configuration} [configuration] Optional configuration.
|
|
166064
166261
|
* @throws {RequiredError}
|
|
166065
166262
|
*/
|
|
166066
|
-
async function EntitiesApiAxiosParamCreator_CreateEntityReports(workspaceId, jsonApiReportPostOptionalIdDocument, metaInclude, options = {}, configuration) {
|
|
166263
|
+
async function EntitiesApiAxiosParamCreator_CreateEntityReports(workspaceId, jsonApiReportPostOptionalIdDocument, include, metaInclude, options = {}, configuration) {
|
|
166067
166264
|
assertParamExists$7("createEntityReports", "workspaceId", workspaceId);
|
|
166068
166265
|
assertParamExists$7("createEntityReports", "jsonApiReportPostOptionalIdDocument", jsonApiReportPostOptionalIdDocument);
|
|
166069
166266
|
const localVarPath = `/api/v1/entities/workspaces/{workspaceId}/reports`.replace(`{workspaceId}`, encodeURIComponent(String(workspaceId)));
|
|
@@ -166077,6 +166274,7 @@ async function EntitiesApiAxiosParamCreator_CreateEntityReports(workspaceId, jso
|
|
|
166077
166274
|
};
|
|
166078
166275
|
const localVarHeaderParameter = {};
|
|
166079
166276
|
const localVarQueryParameter = {};
|
|
166277
|
+
if (include) localVarQueryParameter["include"] = include.join(COLLECTION_FORMATS$1.csv);
|
|
166080
166278
|
if (metaInclude) localVarQueryParameter["metaInclude"] = Array.from(metaInclude).join(COLLECTION_FORMATS$1.csv);
|
|
166081
166279
|
const consumes = ["application/vnd.gooddata.api+json", "application/json"];
|
|
166082
166280
|
localVarHeaderParameter["Content-Type"] = consumes.includes("application/json") ? "application/json" : consumes[0];
|
|
@@ -169837,6 +170035,7 @@ async function EntitiesApiAxiosParamCreator_GetAllEntitiesParameters(workspaceId
|
|
|
169837
170035
|
* @param {string} workspaceId
|
|
169838
170036
|
* @param {'ALL' | 'PARENTS' | 'NATIVE'} [origin]
|
|
169839
170037
|
* @param {string} [filter] Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title==\'Some Title\';description==\'desc\'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty==\'Value 123\').
|
|
170038
|
+
* @param {Array<'userIdentifiers' | 'createdBy' | 'modifiedBy' | 'ALL'>} [include] Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.
|
|
169840
170039
|
* @param {number} [page] Zero-based page index (0..N)
|
|
169841
170040
|
* @param {number} [size] The size of the page to be returned
|
|
169842
170041
|
* @param {Array<string>} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
@@ -169846,7 +170045,7 @@ async function EntitiesApiAxiosParamCreator_GetAllEntitiesParameters(workspaceId
|
|
|
169846
170045
|
* @param {Configuration} [configuration] Optional configuration.
|
|
169847
170046
|
* @throws {RequiredError}
|
|
169848
170047
|
*/
|
|
169849
|
-
async function EntitiesApiAxiosParamCreator_GetAllEntitiesReportPageLayouts(workspaceId, origin, filter, page, size, sort, xGDCVALIDATERELATIONS, metaInclude, options = {}, configuration) {
|
|
170048
|
+
async function EntitiesApiAxiosParamCreator_GetAllEntitiesReportPageLayouts(workspaceId, origin, filter, include, page, size, sort, xGDCVALIDATERELATIONS, metaInclude, options = {}, configuration) {
|
|
169850
170049
|
assertParamExists$7("getAllEntitiesReportPageLayouts", "workspaceId", workspaceId);
|
|
169851
170050
|
const localVarPath = `/api/v1/entities/workspaces/{workspaceId}/reportPageLayouts`.replace(`{workspaceId}`, encodeURIComponent(String(workspaceId)));
|
|
169852
170051
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$7);
|
|
@@ -169861,6 +170060,7 @@ async function EntitiesApiAxiosParamCreator_GetAllEntitiesReportPageLayouts(work
|
|
|
169861
170060
|
const localVarQueryParameter = {};
|
|
169862
170061
|
if (origin !== void 0) localVarQueryParameter["origin"] = origin;
|
|
169863
170062
|
if (filter !== void 0) localVarQueryParameter["filter"] = filter;
|
|
170063
|
+
if (include) localVarQueryParameter["include"] = include.join(COLLECTION_FORMATS$1.csv);
|
|
169864
170064
|
if (page !== void 0) localVarQueryParameter["page"] = page;
|
|
169865
170065
|
if (size !== void 0) localVarQueryParameter["size"] = size;
|
|
169866
170066
|
if (sort) localVarQueryParameter["sort"] = sort;
|
|
@@ -169884,6 +170084,7 @@ async function EntitiesApiAxiosParamCreator_GetAllEntitiesReportPageLayouts(work
|
|
|
169884
170084
|
* @param {string} workspaceId
|
|
169885
170085
|
* @param {'ALL' | 'PARENTS' | 'NATIVE'} [origin]
|
|
169886
170086
|
* @param {string} [filter] Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title==\'Some Title\';description==\'desc\'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty==\'Value 123\').
|
|
170087
|
+
* @param {Array<'userIdentifiers' | 'createdBy' | 'modifiedBy' | 'ALL'>} [include] Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.
|
|
169887
170088
|
* @param {number} [page] Zero-based page index (0..N)
|
|
169888
170089
|
* @param {number} [size] The size of the page to be returned
|
|
169889
170090
|
* @param {Array<string>} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
@@ -169893,7 +170094,7 @@ async function EntitiesApiAxiosParamCreator_GetAllEntitiesReportPageLayouts(work
|
|
|
169893
170094
|
* @param {Configuration} [configuration] Optional configuration.
|
|
169894
170095
|
* @throws {RequiredError}
|
|
169895
170096
|
*/
|
|
169896
|
-
async function EntitiesApiAxiosParamCreator_GetAllEntitiesReportTemplates(workspaceId, origin, filter, page, size, sort, xGDCVALIDATERELATIONS, metaInclude, options = {}, configuration) {
|
|
170097
|
+
async function EntitiesApiAxiosParamCreator_GetAllEntitiesReportTemplates(workspaceId, origin, filter, include, page, size, sort, xGDCVALIDATERELATIONS, metaInclude, options = {}, configuration) {
|
|
169897
170098
|
assertParamExists$7("getAllEntitiesReportTemplates", "workspaceId", workspaceId);
|
|
169898
170099
|
const localVarPath = `/api/v1/entities/workspaces/{workspaceId}/reportTemplates`.replace(`{workspaceId}`, encodeURIComponent(String(workspaceId)));
|
|
169899
170100
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$7);
|
|
@@ -169908,6 +170109,7 @@ async function EntitiesApiAxiosParamCreator_GetAllEntitiesReportTemplates(worksp
|
|
|
169908
170109
|
const localVarQueryParameter = {};
|
|
169909
170110
|
if (origin !== void 0) localVarQueryParameter["origin"] = origin;
|
|
169910
170111
|
if (filter !== void 0) localVarQueryParameter["filter"] = filter;
|
|
170112
|
+
if (include) localVarQueryParameter["include"] = include.join(COLLECTION_FORMATS$1.csv);
|
|
169911
170113
|
if (page !== void 0) localVarQueryParameter["page"] = page;
|
|
169912
170114
|
if (size !== void 0) localVarQueryParameter["size"] = size;
|
|
169913
170115
|
if (sort) localVarQueryParameter["sort"] = sort;
|
|
@@ -169931,6 +170133,7 @@ async function EntitiesApiAxiosParamCreator_GetAllEntitiesReportTemplates(worksp
|
|
|
169931
170133
|
* @param {string} workspaceId
|
|
169932
170134
|
* @param {'ALL' | 'PARENTS' | 'NATIVE'} [origin]
|
|
169933
170135
|
* @param {string} [filter] Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title==\'Some Title\';description==\'desc\'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty==\'Value 123\').
|
|
170136
|
+
* @param {Array<'userIdentifiers' | 'createdBy' | 'modifiedBy' | 'ALL'>} [include] Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.
|
|
169934
170137
|
* @param {number} [page] Zero-based page index (0..N)
|
|
169935
170138
|
* @param {number} [size] The size of the page to be returned
|
|
169936
170139
|
* @param {Array<string>} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
@@ -169940,7 +170143,7 @@ async function EntitiesApiAxiosParamCreator_GetAllEntitiesReportTemplates(worksp
|
|
|
169940
170143
|
* @param {Configuration} [configuration] Optional configuration.
|
|
169941
170144
|
* @throws {RequiredError}
|
|
169942
170145
|
*/
|
|
169943
|
-
async function EntitiesApiAxiosParamCreator_GetAllEntitiesReports(workspaceId, origin, filter, page, size, sort, xGDCVALIDATERELATIONS, metaInclude, options = {}, configuration) {
|
|
170146
|
+
async function EntitiesApiAxiosParamCreator_GetAllEntitiesReports(workspaceId, origin, filter, include, page, size, sort, xGDCVALIDATERELATIONS, metaInclude, options = {}, configuration) {
|
|
169944
170147
|
assertParamExists$7("getAllEntitiesReports", "workspaceId", workspaceId);
|
|
169945
170148
|
const localVarPath = `/api/v1/entities/workspaces/{workspaceId}/reports`.replace(`{workspaceId}`, encodeURIComponent(String(workspaceId)));
|
|
169946
170149
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$7);
|
|
@@ -169955,6 +170158,7 @@ async function EntitiesApiAxiosParamCreator_GetAllEntitiesReports(workspaceId, o
|
|
|
169955
170158
|
const localVarQueryParameter = {};
|
|
169956
170159
|
if (origin !== void 0) localVarQueryParameter["origin"] = origin;
|
|
169957
170160
|
if (filter !== void 0) localVarQueryParameter["filter"] = filter;
|
|
170161
|
+
if (include) localVarQueryParameter["include"] = include.join(COLLECTION_FORMATS$1.csv);
|
|
169958
170162
|
if (page !== void 0) localVarQueryParameter["page"] = page;
|
|
169959
170163
|
if (size !== void 0) localVarQueryParameter["size"] = size;
|
|
169960
170164
|
if (sort) localVarQueryParameter["sort"] = sort;
|
|
@@ -172228,13 +172432,14 @@ async function EntitiesApiAxiosParamCreator_GetEntityParameters(workspaceId, obj
|
|
|
172228
172432
|
* @param {string} workspaceId
|
|
172229
172433
|
* @param {string} objectId
|
|
172230
172434
|
* @param {string} [filter] Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title==\'Some Title\';description==\'desc\'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty==\'Value 123\').
|
|
172435
|
+
* @param {Array<'userIdentifiers' | 'createdBy' | 'modifiedBy' | 'ALL'>} [include] Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.
|
|
172231
172436
|
* @param {boolean} [xGDCVALIDATERELATIONS]
|
|
172232
172437
|
* @param {Array<'origin' | 'all' | 'ALL'>} [metaInclude] Include Meta objects.
|
|
172233
172438
|
* @param {*} [options] Override http request option.
|
|
172234
172439
|
* @param {Configuration} [configuration] Optional configuration.
|
|
172235
172440
|
* @throws {RequiredError}
|
|
172236
172441
|
*/
|
|
172237
|
-
async function EntitiesApiAxiosParamCreator_GetEntityReportPageLayouts(workspaceId, objectId, filter, xGDCVALIDATERELATIONS, metaInclude, options = {}, configuration) {
|
|
172442
|
+
async function EntitiesApiAxiosParamCreator_GetEntityReportPageLayouts(workspaceId, objectId, filter, include, xGDCVALIDATERELATIONS, metaInclude, options = {}, configuration) {
|
|
172238
172443
|
assertParamExists$7("getEntityReportPageLayouts", "workspaceId", workspaceId);
|
|
172239
172444
|
assertParamExists$7("getEntityReportPageLayouts", "objectId", objectId);
|
|
172240
172445
|
const localVarPath = `/api/v1/entities/workspaces/{workspaceId}/reportPageLayouts/{objectId}`.replace(`{workspaceId}`, encodeURIComponent(String(workspaceId))).replace(`{objectId}`, encodeURIComponent(String(objectId)));
|
|
@@ -172249,6 +172454,7 @@ async function EntitiesApiAxiosParamCreator_GetEntityReportPageLayouts(workspace
|
|
|
172249
172454
|
const localVarHeaderParameter = {};
|
|
172250
172455
|
const localVarQueryParameter = {};
|
|
172251
172456
|
if (filter !== void 0) localVarQueryParameter["filter"] = filter;
|
|
172457
|
+
if (include) localVarQueryParameter["include"] = include.join(COLLECTION_FORMATS$1.csv);
|
|
172252
172458
|
if (metaInclude) localVarQueryParameter["metaInclude"] = Array.from(metaInclude).join(COLLECTION_FORMATS$1.csv);
|
|
172253
172459
|
if (xGDCVALIDATERELATIONS !== void 0 && xGDCVALIDATERELATIONS !== null) localVarHeaderParameter["X-GDC-VALIDATE-RELATIONS"] = String(JSON.stringify(xGDCVALIDATERELATIONS));
|
|
172254
172460
|
setSearchParams$7(localVarUrlObj, localVarQueryParameter);
|
|
@@ -172269,13 +172475,14 @@ async function EntitiesApiAxiosParamCreator_GetEntityReportPageLayouts(workspace
|
|
|
172269
172475
|
* @param {string} workspaceId
|
|
172270
172476
|
* @param {string} objectId
|
|
172271
172477
|
* @param {string} [filter] Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title==\'Some Title\';description==\'desc\'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty==\'Value 123\').
|
|
172478
|
+
* @param {Array<'userIdentifiers' | 'createdBy' | 'modifiedBy' | 'ALL'>} [include] Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.
|
|
172272
172479
|
* @param {boolean} [xGDCVALIDATERELATIONS]
|
|
172273
172480
|
* @param {Array<'origin' | 'all' | 'ALL'>} [metaInclude] Include Meta objects.
|
|
172274
172481
|
* @param {*} [options] Override http request option.
|
|
172275
172482
|
* @param {Configuration} [configuration] Optional configuration.
|
|
172276
172483
|
* @throws {RequiredError}
|
|
172277
172484
|
*/
|
|
172278
|
-
async function EntitiesApiAxiosParamCreator_GetEntityReportTemplates(workspaceId, objectId, filter, xGDCVALIDATERELATIONS, metaInclude, options = {}, configuration) {
|
|
172485
|
+
async function EntitiesApiAxiosParamCreator_GetEntityReportTemplates(workspaceId, objectId, filter, include, xGDCVALIDATERELATIONS, metaInclude, options = {}, configuration) {
|
|
172279
172486
|
assertParamExists$7("getEntityReportTemplates", "workspaceId", workspaceId);
|
|
172280
172487
|
assertParamExists$7("getEntityReportTemplates", "objectId", objectId);
|
|
172281
172488
|
const localVarPath = `/api/v1/entities/workspaces/{workspaceId}/reportTemplates/{objectId}`.replace(`{workspaceId}`, encodeURIComponent(String(workspaceId))).replace(`{objectId}`, encodeURIComponent(String(objectId)));
|
|
@@ -172290,6 +172497,7 @@ async function EntitiesApiAxiosParamCreator_GetEntityReportTemplates(workspaceId
|
|
|
172290
172497
|
const localVarHeaderParameter = {};
|
|
172291
172498
|
const localVarQueryParameter = {};
|
|
172292
172499
|
if (filter !== void 0) localVarQueryParameter["filter"] = filter;
|
|
172500
|
+
if (include) localVarQueryParameter["include"] = include.join(COLLECTION_FORMATS$1.csv);
|
|
172293
172501
|
if (metaInclude) localVarQueryParameter["metaInclude"] = Array.from(metaInclude).join(COLLECTION_FORMATS$1.csv);
|
|
172294
172502
|
if (xGDCVALIDATERELATIONS !== void 0 && xGDCVALIDATERELATIONS !== null) localVarHeaderParameter["X-GDC-VALIDATE-RELATIONS"] = String(JSON.stringify(xGDCVALIDATERELATIONS));
|
|
172295
172503
|
setSearchParams$7(localVarUrlObj, localVarQueryParameter);
|
|
@@ -172310,13 +172518,14 @@ async function EntitiesApiAxiosParamCreator_GetEntityReportTemplates(workspaceId
|
|
|
172310
172518
|
* @param {string} workspaceId
|
|
172311
172519
|
* @param {string} objectId
|
|
172312
172520
|
* @param {string} [filter] Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title==\'Some Title\';description==\'desc\'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty==\'Value 123\').
|
|
172521
|
+
* @param {Array<'userIdentifiers' | 'createdBy' | 'modifiedBy' | 'ALL'>} [include] Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.
|
|
172313
172522
|
* @param {boolean} [xGDCVALIDATERELATIONS]
|
|
172314
172523
|
* @param {Array<'origin' | 'all' | 'ALL'>} [metaInclude] Include Meta objects.
|
|
172315
172524
|
* @param {*} [options] Override http request option.
|
|
172316
172525
|
* @param {Configuration} [configuration] Optional configuration.
|
|
172317
172526
|
* @throws {RequiredError}
|
|
172318
172527
|
*/
|
|
172319
|
-
async function EntitiesApiAxiosParamCreator_GetEntityReports(workspaceId, objectId, filter, xGDCVALIDATERELATIONS, metaInclude, options = {}, configuration) {
|
|
172528
|
+
async function EntitiesApiAxiosParamCreator_GetEntityReports(workspaceId, objectId, filter, include, xGDCVALIDATERELATIONS, metaInclude, options = {}, configuration) {
|
|
172320
172529
|
assertParamExists$7("getEntityReports", "workspaceId", workspaceId);
|
|
172321
172530
|
assertParamExists$7("getEntityReports", "objectId", objectId);
|
|
172322
172531
|
const localVarPath = `/api/v1/entities/workspaces/{workspaceId}/reports/{objectId}`.replace(`{workspaceId}`, encodeURIComponent(String(workspaceId))).replace(`{objectId}`, encodeURIComponent(String(objectId)));
|
|
@@ -172331,6 +172540,7 @@ async function EntitiesApiAxiosParamCreator_GetEntityReports(workspaceId, object
|
|
|
172331
172540
|
const localVarHeaderParameter = {};
|
|
172332
172541
|
const localVarQueryParameter = {};
|
|
172333
172542
|
if (filter !== void 0) localVarQueryParameter["filter"] = filter;
|
|
172543
|
+
if (include) localVarQueryParameter["include"] = include.join(COLLECTION_FORMATS$1.csv);
|
|
172334
172544
|
if (metaInclude) localVarQueryParameter["metaInclude"] = Array.from(metaInclude).join(COLLECTION_FORMATS$1.csv);
|
|
172335
172545
|
if (xGDCVALIDATERELATIONS !== void 0 && xGDCVALIDATERELATIONS !== null) localVarHeaderParameter["X-GDC-VALIDATE-RELATIONS"] = String(JSON.stringify(xGDCVALIDATERELATIONS));
|
|
172336
172546
|
setSearchParams$7(localVarUrlObj, localVarQueryParameter);
|
|
@@ -174284,11 +174494,12 @@ async function EntitiesApiAxiosParamCreator_PatchEntityParameters(workspaceId, o
|
|
|
174284
174494
|
* @param {string} objectId
|
|
174285
174495
|
* @param {JsonApiReportPageLayoutPatchDocument} jsonApiReportPageLayoutPatchDocument
|
|
174286
174496
|
* @param {string} [filter] Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title==\'Some Title\';description==\'desc\'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty==\'Value 123\').
|
|
174497
|
+
* @param {Array<'userIdentifiers' | 'createdBy' | 'modifiedBy' | 'ALL'>} [include] Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.
|
|
174287
174498
|
* @param {*} [options] Override http request option.
|
|
174288
174499
|
* @param {Configuration} [configuration] Optional configuration.
|
|
174289
174500
|
* @throws {RequiredError}
|
|
174290
174501
|
*/
|
|
174291
|
-
async function EntitiesApiAxiosParamCreator_PatchEntityReportPageLayouts(workspaceId, objectId, jsonApiReportPageLayoutPatchDocument, filter, options = {}, configuration) {
|
|
174502
|
+
async function EntitiesApiAxiosParamCreator_PatchEntityReportPageLayouts(workspaceId, objectId, jsonApiReportPageLayoutPatchDocument, filter, include, options = {}, configuration) {
|
|
174292
174503
|
assertParamExists$7("patchEntityReportPageLayouts", "workspaceId", workspaceId);
|
|
174293
174504
|
assertParamExists$7("patchEntityReportPageLayouts", "objectId", objectId);
|
|
174294
174505
|
assertParamExists$7("patchEntityReportPageLayouts", "jsonApiReportPageLayoutPatchDocument", jsonApiReportPageLayoutPatchDocument);
|
|
@@ -174304,6 +174515,7 @@ async function EntitiesApiAxiosParamCreator_PatchEntityReportPageLayouts(workspa
|
|
|
174304
174515
|
const localVarHeaderParameter = {};
|
|
174305
174516
|
const localVarQueryParameter = {};
|
|
174306
174517
|
if (filter !== void 0) localVarQueryParameter["filter"] = filter;
|
|
174518
|
+
if (include) localVarQueryParameter["include"] = include.join(COLLECTION_FORMATS$1.csv);
|
|
174307
174519
|
const consumes = ["application/vnd.gooddata.api+json", "application/json"];
|
|
174308
174520
|
localVarHeaderParameter["Content-Type"] = consumes.includes("application/json") ? "application/json" : consumes[0];
|
|
174309
174521
|
setSearchParams$7(localVarUrlObj, localVarQueryParameter);
|
|
@@ -174326,11 +174538,12 @@ async function EntitiesApiAxiosParamCreator_PatchEntityReportPageLayouts(workspa
|
|
|
174326
174538
|
* @param {string} objectId
|
|
174327
174539
|
* @param {JsonApiReportTemplatePatchDocument} jsonApiReportTemplatePatchDocument
|
|
174328
174540
|
* @param {string} [filter] Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title==\'Some Title\';description==\'desc\'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty==\'Value 123\').
|
|
174541
|
+
* @param {Array<'userIdentifiers' | 'createdBy' | 'modifiedBy' | 'ALL'>} [include] Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.
|
|
174329
174542
|
* @param {*} [options] Override http request option.
|
|
174330
174543
|
* @param {Configuration} [configuration] Optional configuration.
|
|
174331
174544
|
* @throws {RequiredError}
|
|
174332
174545
|
*/
|
|
174333
|
-
async function EntitiesApiAxiosParamCreator_PatchEntityReportTemplates(workspaceId, objectId, jsonApiReportTemplatePatchDocument, filter, options = {}, configuration) {
|
|
174546
|
+
async function EntitiesApiAxiosParamCreator_PatchEntityReportTemplates(workspaceId, objectId, jsonApiReportTemplatePatchDocument, filter, include, options = {}, configuration) {
|
|
174334
174547
|
assertParamExists$7("patchEntityReportTemplates", "workspaceId", workspaceId);
|
|
174335
174548
|
assertParamExists$7("patchEntityReportTemplates", "objectId", objectId);
|
|
174336
174549
|
assertParamExists$7("patchEntityReportTemplates", "jsonApiReportTemplatePatchDocument", jsonApiReportTemplatePatchDocument);
|
|
@@ -174346,6 +174559,7 @@ async function EntitiesApiAxiosParamCreator_PatchEntityReportTemplates(workspace
|
|
|
174346
174559
|
const localVarHeaderParameter = {};
|
|
174347
174560
|
const localVarQueryParameter = {};
|
|
174348
174561
|
if (filter !== void 0) localVarQueryParameter["filter"] = filter;
|
|
174562
|
+
if (include) localVarQueryParameter["include"] = include.join(COLLECTION_FORMATS$1.csv);
|
|
174349
174563
|
const consumes = ["application/vnd.gooddata.api+json", "application/json"];
|
|
174350
174564
|
localVarHeaderParameter["Content-Type"] = consumes.includes("application/json") ? "application/json" : consumes[0];
|
|
174351
174565
|
setSearchParams$7(localVarUrlObj, localVarQueryParameter);
|
|
@@ -174368,11 +174582,12 @@ async function EntitiesApiAxiosParamCreator_PatchEntityReportTemplates(workspace
|
|
|
174368
174582
|
* @param {string} objectId
|
|
174369
174583
|
* @param {JsonApiReportPatchDocument} jsonApiReportPatchDocument
|
|
174370
174584
|
* @param {string} [filter] Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title==\'Some Title\';description==\'desc\'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty==\'Value 123\').
|
|
174585
|
+
* @param {Array<'userIdentifiers' | 'createdBy' | 'modifiedBy' | 'ALL'>} [include] Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.
|
|
174371
174586
|
* @param {*} [options] Override http request option.
|
|
174372
174587
|
* @param {Configuration} [configuration] Optional configuration.
|
|
174373
174588
|
* @throws {RequiredError}
|
|
174374
174589
|
*/
|
|
174375
|
-
async function EntitiesApiAxiosParamCreator_PatchEntityReports(workspaceId, objectId, jsonApiReportPatchDocument, filter, options = {}, configuration) {
|
|
174590
|
+
async function EntitiesApiAxiosParamCreator_PatchEntityReports(workspaceId, objectId, jsonApiReportPatchDocument, filter, include, options = {}, configuration) {
|
|
174376
174591
|
assertParamExists$7("patchEntityReports", "workspaceId", workspaceId);
|
|
174377
174592
|
assertParamExists$7("patchEntityReports", "objectId", objectId);
|
|
174378
174593
|
assertParamExists$7("patchEntityReports", "jsonApiReportPatchDocument", jsonApiReportPatchDocument);
|
|
@@ -174388,6 +174603,7 @@ async function EntitiesApiAxiosParamCreator_PatchEntityReports(workspaceId, obje
|
|
|
174388
174603
|
const localVarHeaderParameter = {};
|
|
174389
174604
|
const localVarQueryParameter = {};
|
|
174390
174605
|
if (filter !== void 0) localVarQueryParameter["filter"] = filter;
|
|
174606
|
+
if (include) localVarQueryParameter["include"] = include.join(COLLECTION_FORMATS$1.csv);
|
|
174391
174607
|
const consumes = ["application/vnd.gooddata.api+json", "application/json"];
|
|
174392
174608
|
localVarHeaderParameter["Content-Type"] = consumes.includes("application/json") ? "application/json" : consumes[0];
|
|
174393
174609
|
setSearchParams$7(localVarUrlObj, localVarQueryParameter);
|
|
@@ -177180,11 +177396,12 @@ async function EntitiesApiAxiosParamCreator_UpdateEntityParameters(workspaceId,
|
|
|
177180
177396
|
* @param {string} objectId
|
|
177181
177397
|
* @param {JsonApiReportPageLayoutInDocument} jsonApiReportPageLayoutInDocument
|
|
177182
177398
|
* @param {string} [filter] Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title==\'Some Title\';description==\'desc\'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty==\'Value 123\').
|
|
177399
|
+
* @param {Array<'userIdentifiers' | 'createdBy' | 'modifiedBy' | 'ALL'>} [include] Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.
|
|
177183
177400
|
* @param {*} [options] Override http request option.
|
|
177184
177401
|
* @param {Configuration} [configuration] Optional configuration.
|
|
177185
177402
|
* @throws {RequiredError}
|
|
177186
177403
|
*/
|
|
177187
|
-
async function EntitiesApiAxiosParamCreator_UpdateEntityReportPageLayouts(workspaceId, objectId, jsonApiReportPageLayoutInDocument, filter, options = {}, configuration) {
|
|
177404
|
+
async function EntitiesApiAxiosParamCreator_UpdateEntityReportPageLayouts(workspaceId, objectId, jsonApiReportPageLayoutInDocument, filter, include, options = {}, configuration) {
|
|
177188
177405
|
assertParamExists$7("updateEntityReportPageLayouts", "workspaceId", workspaceId);
|
|
177189
177406
|
assertParamExists$7("updateEntityReportPageLayouts", "objectId", objectId);
|
|
177190
177407
|
assertParamExists$7("updateEntityReportPageLayouts", "jsonApiReportPageLayoutInDocument", jsonApiReportPageLayoutInDocument);
|
|
@@ -177200,6 +177417,7 @@ async function EntitiesApiAxiosParamCreator_UpdateEntityReportPageLayouts(worksp
|
|
|
177200
177417
|
const localVarHeaderParameter = {};
|
|
177201
177418
|
const localVarQueryParameter = {};
|
|
177202
177419
|
if (filter !== void 0) localVarQueryParameter["filter"] = filter;
|
|
177420
|
+
if (include) localVarQueryParameter["include"] = include.join(COLLECTION_FORMATS$1.csv);
|
|
177203
177421
|
const consumes = ["application/vnd.gooddata.api+json", "application/json"];
|
|
177204
177422
|
localVarHeaderParameter["Content-Type"] = consumes.includes("application/json") ? "application/json" : consumes[0];
|
|
177205
177423
|
setSearchParams$7(localVarUrlObj, localVarQueryParameter);
|
|
@@ -177222,11 +177440,12 @@ async function EntitiesApiAxiosParamCreator_UpdateEntityReportPageLayouts(worksp
|
|
|
177222
177440
|
* @param {string} objectId
|
|
177223
177441
|
* @param {JsonApiReportTemplateInDocument} jsonApiReportTemplateInDocument
|
|
177224
177442
|
* @param {string} [filter] Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title==\'Some Title\';description==\'desc\'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty==\'Value 123\').
|
|
177443
|
+
* @param {Array<'userIdentifiers' | 'createdBy' | 'modifiedBy' | 'ALL'>} [include] Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.
|
|
177225
177444
|
* @param {*} [options] Override http request option.
|
|
177226
177445
|
* @param {Configuration} [configuration] Optional configuration.
|
|
177227
177446
|
* @throws {RequiredError}
|
|
177228
177447
|
*/
|
|
177229
|
-
async function EntitiesApiAxiosParamCreator_UpdateEntityReportTemplates(workspaceId, objectId, jsonApiReportTemplateInDocument, filter, options = {}, configuration) {
|
|
177448
|
+
async function EntitiesApiAxiosParamCreator_UpdateEntityReportTemplates(workspaceId, objectId, jsonApiReportTemplateInDocument, filter, include, options = {}, configuration) {
|
|
177230
177449
|
assertParamExists$7("updateEntityReportTemplates", "workspaceId", workspaceId);
|
|
177231
177450
|
assertParamExists$7("updateEntityReportTemplates", "objectId", objectId);
|
|
177232
177451
|
assertParamExists$7("updateEntityReportTemplates", "jsonApiReportTemplateInDocument", jsonApiReportTemplateInDocument);
|
|
@@ -177242,6 +177461,7 @@ async function EntitiesApiAxiosParamCreator_UpdateEntityReportTemplates(workspac
|
|
|
177242
177461
|
const localVarHeaderParameter = {};
|
|
177243
177462
|
const localVarQueryParameter = {};
|
|
177244
177463
|
if (filter !== void 0) localVarQueryParameter["filter"] = filter;
|
|
177464
|
+
if (include) localVarQueryParameter["include"] = include.join(COLLECTION_FORMATS$1.csv);
|
|
177245
177465
|
const consumes = ["application/vnd.gooddata.api+json", "application/json"];
|
|
177246
177466
|
localVarHeaderParameter["Content-Type"] = consumes.includes("application/json") ? "application/json" : consumes[0];
|
|
177247
177467
|
setSearchParams$7(localVarUrlObj, localVarQueryParameter);
|
|
@@ -177264,11 +177484,12 @@ async function EntitiesApiAxiosParamCreator_UpdateEntityReportTemplates(workspac
|
|
|
177264
177484
|
* @param {string} objectId
|
|
177265
177485
|
* @param {JsonApiReportInDocument} jsonApiReportInDocument
|
|
177266
177486
|
* @param {string} [filter] Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title==\'Some Title\';description==\'desc\'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty==\'Value 123\').
|
|
177487
|
+
* @param {Array<'userIdentifiers' | 'createdBy' | 'modifiedBy' | 'ALL'>} [include] Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.
|
|
177267
177488
|
* @param {*} [options] Override http request option.
|
|
177268
177489
|
* @param {Configuration} [configuration] Optional configuration.
|
|
177269
177490
|
* @throws {RequiredError}
|
|
177270
177491
|
*/
|
|
177271
|
-
async function EntitiesApiAxiosParamCreator_UpdateEntityReports(workspaceId, objectId, jsonApiReportInDocument, filter, options = {}, configuration) {
|
|
177492
|
+
async function EntitiesApiAxiosParamCreator_UpdateEntityReports(workspaceId, objectId, jsonApiReportInDocument, filter, include, options = {}, configuration) {
|
|
177272
177493
|
assertParamExists$7("updateEntityReports", "workspaceId", workspaceId);
|
|
177273
177494
|
assertParamExists$7("updateEntityReports", "objectId", objectId);
|
|
177274
177495
|
assertParamExists$7("updateEntityReports", "jsonApiReportInDocument", jsonApiReportInDocument);
|
|
@@ -177284,6 +177505,7 @@ async function EntitiesApiAxiosParamCreator_UpdateEntityReports(workspaceId, obj
|
|
|
177284
177505
|
const localVarHeaderParameter = {};
|
|
177285
177506
|
const localVarQueryParameter = {};
|
|
177286
177507
|
if (filter !== void 0) localVarQueryParameter["filter"] = filter;
|
|
177508
|
+
if (include) localVarQueryParameter["include"] = include.join(COLLECTION_FORMATS$1.csv);
|
|
177287
177509
|
const consumes = ["application/vnd.gooddata.api+json", "application/json"];
|
|
177288
177510
|
localVarHeaderParameter["Content-Type"] = consumes.includes("application/json") ? "application/json" : consumes[0];
|
|
177289
177511
|
setSearchParams$7(localVarUrlObj, localVarQueryParameter);
|
|
@@ -178238,7 +178460,7 @@ async function EntitiesApi_CreateEntityParameters(axios, basePath, requestParame
|
|
|
178238
178460
|
* @throws {RequiredError}
|
|
178239
178461
|
*/
|
|
178240
178462
|
async function EntitiesApi_CreateEntityReportPageLayouts(axios, basePath, requestParameters, options, configuration) {
|
|
178241
|
-
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_CreateEntityReportPageLayouts(requestParameters.workspaceId, requestParameters.jsonApiReportPageLayoutPostOptionalIdDocument, requestParameters.metaInclude, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
178463
|
+
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_CreateEntityReportPageLayouts(requestParameters.workspaceId, requestParameters.jsonApiReportPageLayoutPostOptionalIdDocument, requestParameters.include, requestParameters.metaInclude, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
178242
178464
|
}
|
|
178243
178465
|
/**
|
|
178244
178466
|
*
|
|
@@ -178251,7 +178473,7 @@ async function EntitiesApi_CreateEntityReportPageLayouts(axios, basePath, reques
|
|
|
178251
178473
|
* @throws {RequiredError}
|
|
178252
178474
|
*/
|
|
178253
178475
|
async function EntitiesApi_CreateEntityReportTemplates(axios, basePath, requestParameters, options, configuration) {
|
|
178254
|
-
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_CreateEntityReportTemplates(requestParameters.workspaceId, requestParameters.jsonApiReportTemplatePostOptionalIdDocument, requestParameters.metaInclude, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
178476
|
+
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_CreateEntityReportTemplates(requestParameters.workspaceId, requestParameters.jsonApiReportTemplatePostOptionalIdDocument, requestParameters.include, requestParameters.metaInclude, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
178255
178477
|
}
|
|
178256
178478
|
/**
|
|
178257
178479
|
*
|
|
@@ -178264,7 +178486,7 @@ async function EntitiesApi_CreateEntityReportTemplates(axios, basePath, requestP
|
|
|
178264
178486
|
* @throws {RequiredError}
|
|
178265
178487
|
*/
|
|
178266
178488
|
async function EntitiesApi_CreateEntityReports(axios, basePath, requestParameters, options, configuration) {
|
|
178267
|
-
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_CreateEntityReports(requestParameters.workspaceId, requestParameters.jsonApiReportPostOptionalIdDocument, requestParameters.metaInclude, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
178489
|
+
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_CreateEntityReports(requestParameters.workspaceId, requestParameters.jsonApiReportPostOptionalIdDocument, requestParameters.include, requestParameters.metaInclude, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
178268
178490
|
}
|
|
178269
178491
|
/**
|
|
178270
178492
|
*
|
|
@@ -179537,7 +179759,7 @@ async function EntitiesApi_GetAllEntitiesParameters(axios, basePath, requestPara
|
|
|
179537
179759
|
* @throws {RequiredError}
|
|
179538
179760
|
*/
|
|
179539
179761
|
async function EntitiesApi_GetAllEntitiesReportPageLayouts(axios, basePath, requestParameters, options, configuration) {
|
|
179540
|
-
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_GetAllEntitiesReportPageLayouts(requestParameters.workspaceId, requestParameters.origin, requestParameters.filter, requestParameters.page, requestParameters.size, requestParameters.sort, requestParameters.xGDCVALIDATERELATIONS, requestParameters.metaInclude, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
179762
|
+
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_GetAllEntitiesReportPageLayouts(requestParameters.workspaceId, requestParameters.origin, requestParameters.filter, requestParameters.include, requestParameters.page, requestParameters.size, requestParameters.sort, requestParameters.xGDCVALIDATERELATIONS, requestParameters.metaInclude, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
179541
179763
|
}
|
|
179542
179764
|
/**
|
|
179543
179765
|
*
|
|
@@ -179550,7 +179772,7 @@ async function EntitiesApi_GetAllEntitiesReportPageLayouts(axios, basePath, requ
|
|
|
179550
179772
|
* @throws {RequiredError}
|
|
179551
179773
|
*/
|
|
179552
179774
|
async function EntitiesApi_GetAllEntitiesReportTemplates(axios, basePath, requestParameters, options, configuration) {
|
|
179553
|
-
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_GetAllEntitiesReportTemplates(requestParameters.workspaceId, requestParameters.origin, requestParameters.filter, requestParameters.page, requestParameters.size, requestParameters.sort, requestParameters.xGDCVALIDATERELATIONS, requestParameters.metaInclude, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
179775
|
+
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_GetAllEntitiesReportTemplates(requestParameters.workspaceId, requestParameters.origin, requestParameters.filter, requestParameters.include, requestParameters.page, requestParameters.size, requestParameters.sort, requestParameters.xGDCVALIDATERELATIONS, requestParameters.metaInclude, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
179554
179776
|
}
|
|
179555
179777
|
/**
|
|
179556
179778
|
*
|
|
@@ -179563,7 +179785,7 @@ async function EntitiesApi_GetAllEntitiesReportTemplates(axios, basePath, reques
|
|
|
179563
179785
|
* @throws {RequiredError}
|
|
179564
179786
|
*/
|
|
179565
179787
|
async function EntitiesApi_GetAllEntitiesReports(axios, basePath, requestParameters, options, configuration) {
|
|
179566
|
-
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_GetAllEntitiesReports(requestParameters.workspaceId, requestParameters.origin, requestParameters.filter, requestParameters.page, requestParameters.size, requestParameters.sort, requestParameters.xGDCVALIDATERELATIONS, requestParameters.metaInclude, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
179788
|
+
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_GetAllEntitiesReports(requestParameters.workspaceId, requestParameters.origin, requestParameters.filter, requestParameters.include, requestParameters.page, requestParameters.size, requestParameters.sort, requestParameters.xGDCVALIDATERELATIONS, requestParameters.metaInclude, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
179567
179789
|
}
|
|
179568
179790
|
/**
|
|
179569
179791
|
*
|
|
@@ -180302,7 +180524,7 @@ async function EntitiesApi_GetEntityParameters(axios, basePath, requestParameter
|
|
|
180302
180524
|
* @throws {RequiredError}
|
|
180303
180525
|
*/
|
|
180304
180526
|
async function EntitiesApi_GetEntityReportPageLayouts(axios, basePath, requestParameters, options, configuration) {
|
|
180305
|
-
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_GetEntityReportPageLayouts(requestParameters.workspaceId, requestParameters.objectId, requestParameters.filter, requestParameters.xGDCVALIDATERELATIONS, requestParameters.metaInclude, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
180527
|
+
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_GetEntityReportPageLayouts(requestParameters.workspaceId, requestParameters.objectId, requestParameters.filter, requestParameters.include, requestParameters.xGDCVALIDATERELATIONS, requestParameters.metaInclude, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
180306
180528
|
}
|
|
180307
180529
|
/**
|
|
180308
180530
|
*
|
|
@@ -180315,7 +180537,7 @@ async function EntitiesApi_GetEntityReportPageLayouts(axios, basePath, requestPa
|
|
|
180315
180537
|
* @throws {RequiredError}
|
|
180316
180538
|
*/
|
|
180317
180539
|
async function EntitiesApi_GetEntityReportTemplates(axios, basePath, requestParameters, options, configuration) {
|
|
180318
|
-
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_GetEntityReportTemplates(requestParameters.workspaceId, requestParameters.objectId, requestParameters.filter, requestParameters.xGDCVALIDATERELATIONS, requestParameters.metaInclude, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
180540
|
+
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_GetEntityReportTemplates(requestParameters.workspaceId, requestParameters.objectId, requestParameters.filter, requestParameters.include, requestParameters.xGDCVALIDATERELATIONS, requestParameters.metaInclude, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
180319
180541
|
}
|
|
180320
180542
|
/**
|
|
180321
180543
|
*
|
|
@@ -180328,7 +180550,7 @@ async function EntitiesApi_GetEntityReportTemplates(axios, basePath, requestPara
|
|
|
180328
180550
|
* @throws {RequiredError}
|
|
180329
180551
|
*/
|
|
180330
180552
|
async function EntitiesApi_GetEntityReports(axios, basePath, requestParameters, options, configuration) {
|
|
180331
|
-
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_GetEntityReports(requestParameters.workspaceId, requestParameters.objectId, requestParameters.filter, requestParameters.xGDCVALIDATERELATIONS, requestParameters.metaInclude, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
180553
|
+
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_GetEntityReports(requestParameters.workspaceId, requestParameters.objectId, requestParameters.filter, requestParameters.include, requestParameters.xGDCVALIDATERELATIONS, requestParameters.metaInclude, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
180332
180554
|
}
|
|
180333
180555
|
/**
|
|
180334
180556
|
*
|
|
@@ -180952,7 +181174,7 @@ async function EntitiesApi_PatchEntityParameters(axios, basePath, requestParamet
|
|
|
180952
181174
|
* @throws {RequiredError}
|
|
180953
181175
|
*/
|
|
180954
181176
|
async function EntitiesApi_PatchEntityReportPageLayouts(axios, basePath, requestParameters, options, configuration) {
|
|
180955
|
-
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_PatchEntityReportPageLayouts(requestParameters.workspaceId, requestParameters.objectId, requestParameters.jsonApiReportPageLayoutPatchDocument, requestParameters.filter, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
181177
|
+
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_PatchEntityReportPageLayouts(requestParameters.workspaceId, requestParameters.objectId, requestParameters.jsonApiReportPageLayoutPatchDocument, requestParameters.filter, requestParameters.include, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
180956
181178
|
}
|
|
180957
181179
|
/**
|
|
180958
181180
|
*
|
|
@@ -180965,7 +181187,7 @@ async function EntitiesApi_PatchEntityReportPageLayouts(axios, basePath, request
|
|
|
180965
181187
|
* @throws {RequiredError}
|
|
180966
181188
|
*/
|
|
180967
181189
|
async function EntitiesApi_PatchEntityReportTemplates(axios, basePath, requestParameters, options, configuration) {
|
|
180968
|
-
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_PatchEntityReportTemplates(requestParameters.workspaceId, requestParameters.objectId, requestParameters.jsonApiReportTemplatePatchDocument, requestParameters.filter, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
181190
|
+
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_PatchEntityReportTemplates(requestParameters.workspaceId, requestParameters.objectId, requestParameters.jsonApiReportTemplatePatchDocument, requestParameters.filter, requestParameters.include, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
180969
181191
|
}
|
|
180970
181192
|
/**
|
|
180971
181193
|
*
|
|
@@ -180978,7 +181200,7 @@ async function EntitiesApi_PatchEntityReportTemplates(axios, basePath, requestPa
|
|
|
180978
181200
|
* @throws {RequiredError}
|
|
180979
181201
|
*/
|
|
180980
181202
|
async function EntitiesApi_PatchEntityReports(axios, basePath, requestParameters, options, configuration) {
|
|
180981
|
-
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_PatchEntityReports(requestParameters.workspaceId, requestParameters.objectId, requestParameters.jsonApiReportPatchDocument, requestParameters.filter, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
181203
|
+
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_PatchEntityReports(requestParameters.workspaceId, requestParameters.objectId, requestParameters.jsonApiReportPatchDocument, requestParameters.filter, requestParameters.include, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
180982
181204
|
}
|
|
180983
181205
|
/**
|
|
180984
181206
|
*
|
|
@@ -181849,7 +182071,7 @@ async function EntitiesApi_UpdateEntityParameters(axios, basePath, requestParame
|
|
|
181849
182071
|
* @throws {RequiredError}
|
|
181850
182072
|
*/
|
|
181851
182073
|
async function EntitiesApi_UpdateEntityReportPageLayouts(axios, basePath, requestParameters, options, configuration) {
|
|
181852
|
-
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_UpdateEntityReportPageLayouts(requestParameters.workspaceId, requestParameters.objectId, requestParameters.jsonApiReportPageLayoutInDocument, requestParameters.filter, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
182074
|
+
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_UpdateEntityReportPageLayouts(requestParameters.workspaceId, requestParameters.objectId, requestParameters.jsonApiReportPageLayoutInDocument, requestParameters.filter, requestParameters.include, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
181853
182075
|
}
|
|
181854
182076
|
/**
|
|
181855
182077
|
*
|
|
@@ -181862,7 +182084,7 @@ async function EntitiesApi_UpdateEntityReportPageLayouts(axios, basePath, reques
|
|
|
181862
182084
|
* @throws {RequiredError}
|
|
181863
182085
|
*/
|
|
181864
182086
|
async function EntitiesApi_UpdateEntityReportTemplates(axios, basePath, requestParameters, options, configuration) {
|
|
181865
|
-
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_UpdateEntityReportTemplates(requestParameters.workspaceId, requestParameters.objectId, requestParameters.jsonApiReportTemplateInDocument, requestParameters.filter, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
182087
|
+
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_UpdateEntityReportTemplates(requestParameters.workspaceId, requestParameters.objectId, requestParameters.jsonApiReportTemplateInDocument, requestParameters.filter, requestParameters.include, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
181866
182088
|
}
|
|
181867
182089
|
/**
|
|
181868
182090
|
*
|
|
@@ -181875,7 +182097,7 @@ async function EntitiesApi_UpdateEntityReportTemplates(axios, basePath, requestP
|
|
|
181875
182097
|
* @throws {RequiredError}
|
|
181876
182098
|
*/
|
|
181877
182099
|
async function EntitiesApi_UpdateEntityReports(axios, basePath, requestParameters, options, configuration) {
|
|
181878
|
-
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_UpdateEntityReports(requestParameters.workspaceId, requestParameters.objectId, requestParameters.jsonApiReportInDocument, requestParameters.filter, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
182100
|
+
return createRequestFunction$7(await EntitiesApiAxiosParamCreator_UpdateEntityReports(requestParameters.workspaceId, requestParameters.objectId, requestParameters.jsonApiReportInDocument, requestParameters.filter, requestParameters.include, options || {}, configuration), axios$1, BASE_PATH$7, configuration)(axios, basePath);
|
|
181879
182101
|
}
|
|
181880
182102
|
/**
|
|
181881
182103
|
*
|
|
@@ -194087,6 +194309,70 @@ async function SmartFunctionsAiAxiosParamCreator_AiSearch(workspaceId, aiSearchR
|
|
|
194087
194309
|
};
|
|
194088
194310
|
}
|
|
194089
194311
|
/**
|
|
194312
|
+
* Resolves the active LLM provider configuration for the given workspace.
|
|
194313
|
+
* @summary Get active LLM configuration for this workspace
|
|
194314
|
+
* @param {string} workspaceId
|
|
194315
|
+
* @param {*} [options] Override http request option.
|
|
194316
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
194317
|
+
* @throws {RequiredError}
|
|
194318
|
+
*/
|
|
194319
|
+
async function SmartFunctionsAiAxiosParamCreator_ResolveLlmProviders(workspaceId, options = {}, configuration) {
|
|
194320
|
+
assertParamExists$2("resolveLlmProviders", "workspaceId", workspaceId);
|
|
194321
|
+
const localVarPath = `/api/v1/actions/workspaces/{workspace_id}/ai/resolveLlmProviders`.replace(`{workspace_id}`, encodeURIComponent(String(workspaceId)));
|
|
194322
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
|
|
194323
|
+
let baseOptions;
|
|
194324
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
194325
|
+
const localVarRequestOptions = {
|
|
194326
|
+
method: "GET",
|
|
194327
|
+
...baseOptions,
|
|
194328
|
+
...options
|
|
194329
|
+
};
|
|
194330
|
+
const localVarHeaderParameter = {};
|
|
194331
|
+
setSearchParams$2(localVarUrlObj, {});
|
|
194332
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
194333
|
+
localVarRequestOptions.headers = {
|
|
194334
|
+
...localVarHeaderParameter,
|
|
194335
|
+
...headersFromBaseOptions,
|
|
194336
|
+
...options.headers
|
|
194337
|
+
};
|
|
194338
|
+
return {
|
|
194339
|
+
url: toPathString$2(localVarUrlObj),
|
|
194340
|
+
options: localVarRequestOptions
|
|
194341
|
+
};
|
|
194342
|
+
}
|
|
194343
|
+
/**
|
|
194344
|
+
* Resolves the active LLM provider configuration for the given workspace.
|
|
194345
|
+
* @summary Get active LLM configuration for this workspace
|
|
194346
|
+
* @param {string} workspaceId
|
|
194347
|
+
* @param {*} [options] Override http request option.
|
|
194348
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
194349
|
+
* @throws {RequiredError}
|
|
194350
|
+
*/
|
|
194351
|
+
async function SmartFunctionsAiAxiosParamCreator_ResolveLlmProvidersV2(workspaceId, options = {}, configuration) {
|
|
194352
|
+
assertParamExists$2("resolveLlmProvidersV2", "workspaceId", workspaceId);
|
|
194353
|
+
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/resolveLlmProviders`.replace(`{workspace_id}`, encodeURIComponent(String(workspaceId)));
|
|
194354
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
|
|
194355
|
+
let baseOptions;
|
|
194356
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
194357
|
+
const localVarRequestOptions = {
|
|
194358
|
+
method: "GET",
|
|
194359
|
+
...baseOptions,
|
|
194360
|
+
...options
|
|
194361
|
+
};
|
|
194362
|
+
const localVarHeaderParameter = {};
|
|
194363
|
+
setSearchParams$2(localVarUrlObj, {});
|
|
194364
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
194365
|
+
localVarRequestOptions.headers = {
|
|
194366
|
+
...localVarHeaderParameter,
|
|
194367
|
+
...headersFromBaseOptions,
|
|
194368
|
+
...options.headers
|
|
194369
|
+
};
|
|
194370
|
+
return {
|
|
194371
|
+
url: toPathString$2(localVarUrlObj),
|
|
194372
|
+
options: localVarRequestOptions
|
|
194373
|
+
};
|
|
194374
|
+
}
|
|
194375
|
+
/**
|
|
194090
194376
|
* (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
|
|
194091
194377
|
* @summary (BETA) Semantic Search in Metadata
|
|
194092
194378
|
* @param {string} workspaceId
|
|
@@ -194138,6 +194424,32 @@ async function SmartFunctionsAi_AiSearch(axios, basePath, requestParameters, opt
|
|
|
194138
194424
|
return createRequestFunction$2(await SmartFunctionsAiAxiosParamCreator_AiSearch(requestParameters.workspaceId, requestParameters.aiSearchRequest, options || {}, configuration), axios$1, BASE_PATH$2, configuration)(axios, basePath);
|
|
194139
194425
|
}
|
|
194140
194426
|
/**
|
|
194427
|
+
* Resolves the active LLM provider configuration for the given workspace.
|
|
194428
|
+
* @summary Get active LLM configuration for this workspace
|
|
194429
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
194430
|
+
* @param {string} basePath Base path.
|
|
194431
|
+
* @param {SmartFunctionsAiResolveLlmProvidersRequest} requestParameters Request parameters.
|
|
194432
|
+
* @param {*} [options] Override http request option.
|
|
194433
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
194434
|
+
* @throws {RequiredError}
|
|
194435
|
+
*/
|
|
194436
|
+
async function SmartFunctionsAi_ResolveLlmProviders(axios, basePath, requestParameters, options, configuration) {
|
|
194437
|
+
return createRequestFunction$2(await SmartFunctionsAiAxiosParamCreator_ResolveLlmProviders(requestParameters.workspaceId, options || {}, configuration), axios$1, BASE_PATH$2, configuration)(axios, basePath);
|
|
194438
|
+
}
|
|
194439
|
+
/**
|
|
194440
|
+
* Resolves the active LLM provider configuration for the given workspace.
|
|
194441
|
+
* @summary Get active LLM configuration for this workspace
|
|
194442
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
194443
|
+
* @param {string} basePath Base path.
|
|
194444
|
+
* @param {SmartFunctionsAiResolveLlmProvidersV2Request} requestParameters Request parameters.
|
|
194445
|
+
* @param {*} [options] Override http request option.
|
|
194446
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
194447
|
+
* @throws {RequiredError}
|
|
194448
|
+
*/
|
|
194449
|
+
async function SmartFunctionsAi_ResolveLlmProvidersV2(axios, basePath, requestParameters, options, configuration) {
|
|
194450
|
+
return createRequestFunction$2(await SmartFunctionsAiAxiosParamCreator_ResolveLlmProvidersV2(requestParameters.workspaceId, options || {}, configuration), axios$1, BASE_PATH$2, configuration)(axios, basePath);
|
|
194451
|
+
}
|
|
194452
|
+
/**
|
|
194141
194453
|
* (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
|
|
194142
194454
|
* @summary (BETA) Semantic Search in Metadata
|
|
194143
194455
|
* @param {AxiosInstance} axios Axios instance.
|
|
@@ -194170,6 +194482,29 @@ var SmartFunctionsAi = class extends BaseAPI$2 {
|
|
|
194170
194482
|
return SmartFunctionsAi_AiSearch(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
194171
194483
|
}
|
|
194172
194484
|
/**
|
|
194485
|
+
* Resolves the active LLM provider configuration for the given workspace.
|
|
194486
|
+
* @summary Get active LLM configuration for this workspace
|
|
194487
|
+
* @param {SmartFunctionsAiResolveLlmProvidersRequest} requestParameters Request parameters.
|
|
194488
|
+
* @param {*} [options] Override http request option.
|
|
194489
|
+
* @deprecated
|
|
194490
|
+
* @throws {RequiredError}
|
|
194491
|
+
* @memberof SmartFunctionsAi
|
|
194492
|
+
*/
|
|
194493
|
+
resolveLlmProviders(requestParameters, options) {
|
|
194494
|
+
return SmartFunctionsAi_ResolveLlmProviders(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
194495
|
+
}
|
|
194496
|
+
/**
|
|
194497
|
+
* Resolves the active LLM provider configuration for the given workspace.
|
|
194498
|
+
* @summary Get active LLM configuration for this workspace
|
|
194499
|
+
* @param {SmartFunctionsAiResolveLlmProvidersV2Request} requestParameters Request parameters.
|
|
194500
|
+
* @param {*} [options] Override http request option.
|
|
194501
|
+
* @throws {RequiredError}
|
|
194502
|
+
* @memberof SmartFunctionsAi
|
|
194503
|
+
*/
|
|
194504
|
+
resolveLlmProvidersV2(requestParameters, options) {
|
|
194505
|
+
return SmartFunctionsAi_ResolveLlmProvidersV2(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
194506
|
+
}
|
|
194507
|
+
/**
|
|
194173
194508
|
* (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
|
|
194174
194509
|
* @summary (BETA) Semantic Search in Metadata
|
|
194175
194510
|
* @param {SmartFunctionsAiSemanticSearchRequest} requestParameters Request parameters.
|
|
@@ -195694,6 +196029,12 @@ function isAttributeHeader(header) {
|
|
|
195694
196029
|
/**
|
|
195695
196030
|
* @public
|
|
195696
196031
|
*/
|
|
196032
|
+
const isAfmObjectIdentifier = (value) => {
|
|
196033
|
+
return !!(value?.identifier?.id && value?.identifier?.type);
|
|
196034
|
+
};
|
|
196035
|
+
/**
|
|
196036
|
+
* @public
|
|
196037
|
+
*/
|
|
195697
196038
|
function isResultAttributeHeader(header) {
|
|
195698
196039
|
return header.attributeHeader !== void 0;
|
|
195699
196040
|
}
|
|
@@ -201957,6 +202298,51 @@ async function toExecution(store, profile, query) {
|
|
|
201957
202298
|
return buildAfmExecution(entities, query);
|
|
201958
202299
|
}
|
|
201959
202300
|
//#endregion
|
|
202301
|
+
//#region ../code/esm/shared/maql/querySources.js
|
|
202302
|
+
/**
|
|
202303
|
+
* Collects the metrics and inline MAQL a visualisation executes. Walks the declarative form the
|
|
202304
|
+
* deploy produces, so exactly what deploys counts: surplus bucket items a chart type drops, fields
|
|
202305
|
+
* no bucket references and no-op filters contribute nothing. A visualisation that cannot be
|
|
202306
|
+
* converted executes nothing and yields no sources.
|
|
202307
|
+
*/
|
|
202308
|
+
function collectVisualisationMaqlSources(visualisation) {
|
|
202309
|
+
const sources = {
|
|
202310
|
+
maqls: [],
|
|
202311
|
+
metricIds: []
|
|
202312
|
+
};
|
|
202313
|
+
let content;
|
|
202314
|
+
try {
|
|
202315
|
+
content = yamlVisualisationToDeclarative([], visualisation).content;
|
|
202316
|
+
} catch {
|
|
202317
|
+
return sources;
|
|
202318
|
+
}
|
|
202319
|
+
const scopes = [content, ...content.layers ?? []];
|
|
202320
|
+
for (const scope of scopes) {
|
|
202321
|
+
for (const measure of bucketsMeasures(scope.buckets ?? [])) collectMeasure(sources, measure);
|
|
202322
|
+
for (const filter of scope.filters ?? []) collectFilter(sources, filter);
|
|
202323
|
+
}
|
|
202324
|
+
return sources;
|
|
202325
|
+
}
|
|
202326
|
+
function collectMeasure(sources, measure) {
|
|
202327
|
+
const definition = measure.measure.definition;
|
|
202328
|
+
if (isMeasureDefinition(definition)) pushMetricRef(sources, definition.measureDefinition.item);
|
|
202329
|
+
if (isInlineMeasureDefinition(definition)) sources.maqls.push(definition.inlineDefinition.maql);
|
|
202330
|
+
}
|
|
202331
|
+
function collectFilter(sources, filter) {
|
|
202332
|
+
if (isMeasureValueFilter(filter)) {
|
|
202333
|
+
const { measure, condition, conditions } = filter.measureValueFilter;
|
|
202334
|
+
if (condition || (conditions?.length ?? 0) > 0) pushMetricRef(sources, measure);
|
|
202335
|
+
}
|
|
202336
|
+
if (isRankingFilter(filter)) pushMetricRef(sources, filter.rankingFilter.measure);
|
|
202337
|
+
}
|
|
202338
|
+
/**
|
|
202339
|
+
* The converter emits AFM-shaped identifiers; a local-identifier reference points at a bucket item
|
|
202340
|
+
* that is collected on its own.
|
|
202341
|
+
*/
|
|
202342
|
+
function pushMetricRef(sources, ref) {
|
|
202343
|
+
if (isAfmObjectIdentifier(ref) && ref.identifier.type === "metric" && ref.identifier.id.length > 0) sources.metricIds.push(ref.identifier.id);
|
|
202344
|
+
}
|
|
202345
|
+
//#endregion
|
|
201960
202346
|
//#region ../code/esm/actions/services/preview.js
|
|
201961
202347
|
async function datasetPreview(state, emitter, file, datasetId) {
|
|
201962
202348
|
await awaitWaiters(state, ["initialize"]);
|
|
@@ -202020,7 +202406,7 @@ async function metricPreview(state, emitter, file, metricId, columns) {
|
|
|
202020
202406
|
},
|
|
202021
202407
|
diagnostics: [offlineDiagnostic()]
|
|
202022
202408
|
}, () => server.loadMetricPreview(profile, metric, columns)),
|
|
202023
|
-
rendered: renderMetricMaql(state,
|
|
202409
|
+
rendered: guardPreviewExtra(emitter, () => renderMetricMaql(state, file, metric))
|
|
202024
202410
|
};
|
|
202025
202411
|
}
|
|
202026
202412
|
return null;
|
|
@@ -202067,16 +202453,19 @@ async function visualisationPreview(state, emitter, file, visualisationId) {
|
|
|
202067
202453
|
const visualisation = resolveObject(file, visualisationId);
|
|
202068
202454
|
if (visualisation && manifestContent && server) {
|
|
202069
202455
|
const { profile } = resolveUsingProfile(state, manifestContent);
|
|
202070
|
-
if (profile) return
|
|
202071
|
-
|
|
202072
|
-
|
|
202073
|
-
|
|
202074
|
-
|
|
202075
|
-
|
|
202076
|
-
|
|
202077
|
-
|
|
202078
|
-
|
|
202079
|
-
|
|
202456
|
+
if (profile) return {
|
|
202457
|
+
...await runServiceMethod(state, {
|
|
202458
|
+
data: {
|
|
202459
|
+
visualisationId: visualisation.id,
|
|
202460
|
+
host: "",
|
|
202461
|
+
token: "",
|
|
202462
|
+
workspaceId: "",
|
|
202463
|
+
settings: { mapboxToken: "" }
|
|
202464
|
+
},
|
|
202465
|
+
diagnostics: [offlineDiagnostic()]
|
|
202466
|
+
}, () => server.loadVisualisationPreview(state, profile, visualisation)),
|
|
202467
|
+
parameters: guardPreviewExtra(emitter, () => resolveVisualisationParameters(state, file, visualisation))
|
|
202468
|
+
};
|
|
202080
202469
|
}
|
|
202081
202470
|
return null;
|
|
202082
202471
|
} catch (err) {
|
|
@@ -202129,18 +202518,35 @@ async function schemaPreview(state, emitter, file, datasetId) {
|
|
|
202129
202518
|
}
|
|
202130
202519
|
}
|
|
202131
202520
|
/**
|
|
202132
|
-
*
|
|
202133
|
-
*
|
|
202521
|
+
* Runs a computation that enriches an already loaded preview. On failure the error is reported and
|
|
202522
|
+
* the preview is kept rather than lost.
|
|
202134
202523
|
*/
|
|
202135
|
-
function
|
|
202136
|
-
if (!metric.maql) return;
|
|
202524
|
+
function guardPreviewExtra(emitter, compute) {
|
|
202137
202525
|
try {
|
|
202138
|
-
return
|
|
202526
|
+
return compute();
|
|
202139
202527
|
} catch (err) {
|
|
202140
202528
|
emitter.emit("core.error", err);
|
|
202141
202529
|
return;
|
|
202142
202530
|
}
|
|
202143
202531
|
}
|
|
202532
|
+
/**
|
|
202533
|
+
* Resolves the parameters the visualisation's query depends on to their defaults. Returns undefined
|
|
202534
|
+
* when no parameter is involved.
|
|
202535
|
+
*/
|
|
202536
|
+
function resolveVisualisationParameters(state, file, visualisation) {
|
|
202537
|
+
const { maqls, metricIds } = collectVisualisationMaqlSources(visualisation);
|
|
202538
|
+
if (maqls.length === 0 && metricIds.length === 0) return;
|
|
202539
|
+
const parameters = resolveParameterValues(maqls, metricIds, resolvedReferences(state, file).objects);
|
|
202540
|
+
return parameters.length > 0 ? parameters : void 0;
|
|
202541
|
+
}
|
|
202542
|
+
/**
|
|
202543
|
+
* Renders the metric's MAQL with its parameters' defaults substituted. Returns undefined when the
|
|
202544
|
+
* template names no parameters, so the preview only shows a rendered form when it differs.
|
|
202545
|
+
*/
|
|
202546
|
+
function renderMetricMaql(state, file, metric) {
|
|
202547
|
+
if (!metric.maql) return;
|
|
202548
|
+
return renderParameterDefaults(metric.maql, resolvedReferences(state, file).objects);
|
|
202549
|
+
}
|
|
202144
202550
|
//#endregion
|
|
202145
202551
|
//#region ../code/esm/store/textDocument/load.js
|
|
202146
202552
|
function loadTextDocument(file) {
|