@gooddata/sdk-backend-base 11.68.0-alpha.5 → 11.68.0-alpha.7
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/LICENSE +1 -1
- package/NOTICE +1302 -0
- package/esm/dummyBackend/index.js +2 -0
- package/esm/normalizingBackend/index.d.ts.map +1 -1
- package/esm/normalizingBackend/index.js +9 -9
- package/esm/normalizingBackend/normalizer.d.ts.map +1 -1
- package/esm/normalizingBackend/normalizer.js +3 -2
- package/package.json +9 -8
|
@@ -873,6 +873,8 @@ class DummyOrganization {
|
|
|
873
873
|
getAiRateLimit: () => Promise.resolve(undefined),
|
|
874
874
|
getMetadataLocale: () => Promise.resolve(undefined),
|
|
875
875
|
getDataLocale: () => Promise.resolve(undefined),
|
|
876
|
+
getEmbeddingOrigins: () => Promise.resolve(undefined),
|
|
877
|
+
setEmbeddingOrigins: () => Promise.resolve(),
|
|
876
878
|
setEnableDrillToUrlByDefault: () => Promise.resolve(),
|
|
877
879
|
setEnablePartialDataResults: () => Promise.resolve(),
|
|
878
880
|
setEnableNullJoins: () => Promise.resolve(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/normalizingBackend/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/normalizingBackend/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,kBAAkB,EAuB1B,MAAM,2BAA2B,CAAC;AAkBnC,OAAO,EAAgB,KAAK,kBAAkB,EAAc,MAAM,iBAAiB,CAAC;AAmTpF;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,UAAU,GAAG,UAAU,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,CAAC,kBAAkB,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAEvE;;;;;;;;;;;;OAYG;IACH,gBAAgB,CAAC,EAAE,6BAA6B,CAAC;CACpD,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAC7B,WAAW,EAAE,kBAAkB,EAC/B,MAAM,GAAE,mBAAwB,GACjC,kBAAkB,CAIpB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep } from "lodash-es";
|
|
3
2
|
import { NoDataError, NotSupported, isNoDataError, } from "@gooddata/sdk-backend-spi";
|
|
4
3
|
import { defFingerprint, } from "@gooddata/sdk-model";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
5
5
|
import { DecoratedExecutionFactory, DecoratedExecutionResult, DecoratedPreparedExecution, } from "../decoratedBackend/execution.js";
|
|
6
6
|
import { decoratedBackend } from "../decoratedBackend/index.js";
|
|
7
7
|
import { Denormalizer, Normalizer } from "./normalizer.js";
|
|
@@ -163,16 +163,16 @@ class DenormalizedDataView {
|
|
|
163
163
|
this.outliersResult = outliersResult;
|
|
164
164
|
this.clusteringConfig = clusteringConfig;
|
|
165
165
|
this.clusteringResult = clusteringResult;
|
|
166
|
-
this.context =
|
|
166
|
+
this.context = _cloneDeep(normalizedDataView.context);
|
|
167
167
|
this.definition = this.result.definition;
|
|
168
|
-
this.count =
|
|
169
|
-
this.data =
|
|
168
|
+
this.count = _cloneDeep(this.normalizedDataView.count);
|
|
169
|
+
this.data = _cloneDeep(this.normalizedDataView.data);
|
|
170
170
|
this.headerItems = denormalizer.denormalizeHeaders(this.normalizedDataView.headerItems);
|
|
171
|
-
this.offset =
|
|
172
|
-
this.totalCount =
|
|
173
|
-
this.totals =
|
|
174
|
-
this.totalTotals =
|
|
175
|
-
this.metadata =
|
|
171
|
+
this.offset = _cloneDeep(this.normalizedDataView.offset);
|
|
172
|
+
this.totalCount = _cloneDeep(this.normalizedDataView.totalCount);
|
|
173
|
+
this.totals = _cloneDeep(this.normalizedDataView.totals);
|
|
174
|
+
this.totalTotals = _cloneDeep(this.normalizedDataView.totalTotals);
|
|
175
|
+
this.metadata = _cloneDeep(this.normalizedDataView.metadata);
|
|
176
176
|
this._fingerprint = `${this.result.fingerprint()}/${this.offset.join(",")}-${this.count.join(",")}`;
|
|
177
177
|
}
|
|
178
178
|
equals = (other) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizer.d.ts","sourceRoot":"","sources":["../../src/normalizingBackend/normalizer.ts"],"names":[],"mappings":"AAKA,OAAO,EAGH,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAKzB,KAAK,aAAa,EAkCrB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"normalizer.d.ts","sourceRoot":"","sources":["../../src/normalizingBackend/normalizer.ts"],"names":[],"mappings":"AAKA,OAAO,EAGH,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAKzB,KAAK,aAAa,EAkCrB,MAAM,qBAAqB,CAAC;AAG7B;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,oBAAoB,CAAC;IAE1C;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,oBAAoB,CAAC;IAExC;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;CAC/B,CAAC;AAEF;;GAEG;AACH,qBAAa,YAAY;aAQe,KAAK,EAAE,kBAAkB;IAP7D,OAAc,IAAI,CAAC,KAAK,EAAE,kBAAkB,GAAG,YAAY,CAE1D;IAED,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAoC;IACvE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAkC;IAEnE,OAAO,eAGN;IAED;;;;;;;;;;;OAWG;IACI,yBAAyB,m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F,OAAO,CAAC,gBAAgB,CAgDtB;IAEF,OAAO,CAAC,yBAAyB,CAM/B;IAEF,OAAO,CAAC,iBAAiB,CAEvB;IAEF,OAAO,CAAC,gBAAgB,CAkCtB;IAEF,OAAO,CAAC,cAAc,CAoBpB;IAEF,OAAO,CAAC,mBAAmB,CAiBzB;IAEF,OAAO,CAAC,SAAS,CAaf;CACL"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { cloneDeepWith, keyBy } from "lodash-es";
|
|
3
3
|
import { invariant } from "ts-invariant";
|
|
4
4
|
import { MeasureGroupIdentifier, attributeAlias, attributeLocalId, filterIsEmpty, isArithmeticMeasureDefinition, isAttributeDescriptor, isAttributeFilter, isAttributeLocator, isAttributeSort, isLocalIdRef, isMeasureDefinition, isMeasureDescriptor, isMeasureGroupDescriptor, isMeasureLocator, isMeasureSort, isMeasureValueFilter, isNegativeAttributeFilter, isPoPMeasureDefinition, isPositiveAttributeFilter, isPreviousPeriodMeasureDefinition, isRankingFilter, isResultMeasureHeader, measureAlias, measureFormat, measureLocalId, measureMasterIdentifier, measureTitle, measureValueFilterConditions, modifyAttribute, modifyMeasure, } from "@gooddata/sdk-model";
|
|
5
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
5
6
|
/**
|
|
6
7
|
* @internal
|
|
7
8
|
*/
|
|
@@ -163,7 +164,7 @@ export class Normalizer {
|
|
|
163
164
|
constructor(original, options = {}) {
|
|
164
165
|
this.original = original;
|
|
165
166
|
this.options = options;
|
|
166
|
-
const copy =
|
|
167
|
+
const copy = _cloneDeep(this.original);
|
|
167
168
|
// throw away noop filters
|
|
168
169
|
const filters = copy.filters.filter((f) => {
|
|
169
170
|
if (isAttributeFilter(f)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-backend-base",
|
|
3
|
-
"version": "11.68.0-alpha.
|
|
3
|
+
"version": "11.68.0-alpha.7",
|
|
4
4
|
"description": "GoodData.UI SDK - Base for backend implementations",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"esm/**/*.js",
|
|
14
14
|
"esm/**/*.json",
|
|
15
15
|
"esm/**/*.d.ts",
|
|
16
|
-
"esm/**/*.map"
|
|
16
|
+
"esm/**/*.map",
|
|
17
|
+
"NOTICE"
|
|
17
18
|
],
|
|
18
19
|
"type": "module",
|
|
19
20
|
"sideEffects": false,
|
|
@@ -29,9 +30,9 @@
|
|
|
29
30
|
"ts-invariant": "0.10.3",
|
|
30
31
|
"tslib": "2.8.1",
|
|
31
32
|
"uuid": "11.1.1",
|
|
32
|
-
"@gooddata/sdk-backend-spi": "11.68.0-alpha.
|
|
33
|
-
"@gooddata/sdk-model": "11.68.0-alpha.
|
|
34
|
-
"@gooddata/util": "11.68.0-alpha.
|
|
33
|
+
"@gooddata/sdk-backend-spi": "11.68.0-alpha.7",
|
|
34
|
+
"@gooddata/sdk-model": "11.68.0-alpha.7",
|
|
35
|
+
"@gooddata/util": "11.68.0-alpha.7"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
38
|
"@microsoft/api-documenter": "7.30.20",
|
|
@@ -55,9 +56,9 @@
|
|
|
55
56
|
"oxlint-tsgolint": "7.0.2001",
|
|
56
57
|
"typescript": "7.0.2",
|
|
57
58
|
"vitest": "5.0.4",
|
|
58
|
-
"@gooddata/eslint-config": "11.68.0-alpha.
|
|
59
|
-
"@gooddata/
|
|
60
|
-
"@gooddata/
|
|
59
|
+
"@gooddata/eslint-config": "11.68.0-alpha.7",
|
|
60
|
+
"@gooddata/reference-workspace": "11.68.0-alpha.7",
|
|
61
|
+
"@gooddata/oxlint-config": "11.68.0-alpha.7"
|
|
61
62
|
},
|
|
62
63
|
"scripts": {
|
|
63
64
|
"_phase:build": "npm run build",
|