@gooddata/sdk-backend-base 11.68.0-alpha.2 → 11.68.0-alpha.3
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/esm/customBackend/execution.d.ts.map +1 -1
- package/esm/customBackend/execution.js +2 -2
- package/esm/decoratedBackend/index.d.ts.map +1 -1
- package/esm/decoratedBackend/index.js +2 -2
- package/esm/dummyBackend/index.d.ts.map +1 -1
- package/esm/dummyBackend/index.js +3 -3
- package/esm/eventingBackend/index.d.ts.map +1 -1
- package/esm/eventingBackend/index.js +3 -3
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../src/customBackend/execution.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../src/customBackend/execution.ts"],"names":[],"mappings":"AAEA,OAAO,EAYH,KAAK,kBAAkB,EAG1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAMH,KAAK,oBAAoB,EAQ5B,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EAG1B,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,wBAAwB;IAG5D,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAH1B,YACI,SAAS,EAAE,MAAM,EACA,MAAM,EAAE,mBAAmB,EAC3B,KAAK,EAAE,kBAAkB,EAG7C;IAEM,aAAa,QAAS,oBAAoB,KAAG,kBAAkB,CAEpE;CACL"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { isEqual } from "lodash-es";
|
|
3
2
|
import { NotImplemented, NotSupported, } from "@gooddata/sdk-backend-spi";
|
|
4
3
|
import { defFingerprint, defWithBuckets, defWithDateFormat, defWithDimensions, defWithExecConfig, defWithSorting, } from "@gooddata/sdk-model";
|
|
4
|
+
import { _isEqual } from "@gooddata/util";
|
|
5
5
|
import { AbstractExecutionFactory } from "../toolkit/execution.js";
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
|
@@ -72,7 +72,7 @@ class CustomPreparedExecution {
|
|
|
72
72
|
throw new NotSupported("Cancelling is not supported by the custom backend.");
|
|
73
73
|
};
|
|
74
74
|
equals = (other) => {
|
|
75
|
-
return
|
|
75
|
+
return _isEqual(this.definition, other.definition);
|
|
76
76
|
};
|
|
77
77
|
fingerprint = () => {
|
|
78
78
|
if (!this._fingerprint) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decoratedBackend/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decoratedBackend/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,kBAAkB,EAa1B,MAAM,2BAA2B,CAAC;AAMnC,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAwFrD;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAC5B,OAAO,EAAE,kBAAkB,EAC3B,UAAU,EAAE,kBAAkB,GAC/B,kBAAkB,CAMpB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { _isEmpty } from "@gooddata/util";
|
|
3
3
|
import { AnalyticalWorkspaceDecorator } from "./analyticalWorkspace.js";
|
|
4
4
|
import { OrganizationDecorator } from "./organization.js";
|
|
5
5
|
import { OrganizationsDecorator } from "./organizations.js";
|
|
@@ -79,7 +79,7 @@ class BackendWithDecoratedServices {
|
|
|
79
79
|
* @alpha
|
|
80
80
|
*/
|
|
81
81
|
export function decoratedBackend(backend, decorators) {
|
|
82
|
-
if (
|
|
82
|
+
if (_isEmpty(decorators)) {
|
|
83
83
|
return backend;
|
|
84
84
|
}
|
|
85
85
|
return new BackendWithDecoratedServices(backend, decorators);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dummyBackend/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dummyBackend/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAMH,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EA2B7B,KAAK,SAAS,EAYd,KAAK,gBAAgB,EAqGxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EA0CH,KAAK,oBAAoB,EA6C5B,MAAM,qBAAqB,CAAC;AAY7B;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG;IACxD;;;;;;;;;;OAUG;IACH,qBAAqB,EAAE,KAAK,GAAG,mBAAmB,GAAG,gBAAgB,CAAC;CACzE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,kBAGvC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,MAAM,GAAE,kBAA8C,GAAG,kBAAkB,CAiGvG;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,IAAI,kBAAkB,CAE1D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CACzB,UAAU,EAAE,oBAAoB,EAChC,MAAM,CAAC,EAAE,gBAAgB,EACzB,MAAM,GAAE,kBAA8C,GACvD,SAAS,CAwDX"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { isEmpty, isEqual } from "lodash-es";
|
|
3
2
|
import { NoDataError, NotSupported, } from "@gooddata/sdk-backend-spi";
|
|
4
3
|
import { defFingerprint, defWithBuckets, defWithDateFormat, defWithDimensions, defWithSorting, idRef, isIdentifierRef, isUriRef, } from "@gooddata/sdk-model";
|
|
4
|
+
import { _isEmpty, _isEqual } from "@gooddata/util";
|
|
5
5
|
import { AbstractExecutionFactory } from "../toolkit/execution.js";
|
|
6
6
|
import { DummyAnalyticsCatalogService } from "./DummyAnalyticsCatalogService.js";
|
|
7
7
|
import { DummyChatConversations } from "./DummyGenAIChatThread.js";
|
|
@@ -522,10 +522,10 @@ function dummyPreparedExecution(definition, executionFactory, config, context) {
|
|
|
522
522
|
return fp;
|
|
523
523
|
},
|
|
524
524
|
equals(other) {
|
|
525
|
-
return
|
|
525
|
+
return _isEqual(this.definition, other.definition);
|
|
526
526
|
},
|
|
527
527
|
withExecConfig(config) {
|
|
528
|
-
if (!
|
|
528
|
+
if (!_isEmpty(config?.dataSamplingPercentage)) {
|
|
529
529
|
console.warn("Backend does not support data sampling, result will be not affected");
|
|
530
530
|
}
|
|
531
531
|
return executionFactory.forDefinition(definition, { context });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eventingBackend/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,kBAAkB,EAKvB,KAAK,SAAS,EACd,KAAK,gBAAgB,EAErB,KAAK,eAAe,EAEpB,KAAK,eAAe,EAEvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eventingBackend/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,kBAAkB,EAKvB,KAAK,SAAS,EACd,KAAK,gBAAgB,EAErB,KAAK,eAAe,EAEpB,KAAK,eAAe,EAEvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AA6IhE;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACrC;;;;;OA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AAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3E,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,YAAY,CACxB,WAAW,EAAE,kBAAkB,EAC/B,SAAS,EAAE,0BAA0B,GACtC,kBAAkB,CAYpB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// (C) 2007-
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
1
|
+
// (C) 2007-2026 GoodData Corporation
|
|
3
2
|
import { v4 as uuid } from "uuid";
|
|
3
|
+
import { _isEmpty } from "@gooddata/util";
|
|
4
4
|
import { DecoratedExecutionFactory, DecoratedExecutionResult, DecoratedPreparedExecution, } from "../decoratedBackend/execution.js";
|
|
5
5
|
import { decoratedBackend } from "../decoratedBackend/index.js";
|
|
6
6
|
class WithExecutionEventing extends DecoratedPreparedExecution {
|
|
@@ -109,7 +109,7 @@ class WithExecutionResultEventing extends DecoratedExecutionResult {
|
|
|
109
109
|
* @beta
|
|
110
110
|
*/
|
|
111
111
|
export function withEventing(realBackend, callbacks) {
|
|
112
|
-
if (
|
|
112
|
+
if (_isEmpty(callbacks)) {
|
|
113
113
|
return realBackend;
|
|
114
114
|
}
|
|
115
115
|
return decoratedBackend(realBackend, {
|
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.3",
|
|
4
4
|
"description": "GoodData.UI SDK - Base for backend implementations",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"ts-invariant": "0.10.3",
|
|
30
30
|
"tslib": "2.8.1",
|
|
31
31
|
"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.
|
|
32
|
+
"@gooddata/sdk-backend-spi": "11.68.0-alpha.3",
|
|
33
|
+
"@gooddata/sdk-model": "11.68.0-alpha.3",
|
|
34
|
+
"@gooddata/util": "11.68.0-alpha.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@microsoft/api-documenter": "7.30.20",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"oxlint-tsgolint": "7.0.2001",
|
|
56
56
|
"typescript": "7.0.2",
|
|
57
57
|
"vitest": "5.0.4",
|
|
58
|
-
"@gooddata/
|
|
59
|
-
"@gooddata/
|
|
60
|
-
"@gooddata/reference-workspace": "11.68.0-alpha.
|
|
58
|
+
"@gooddata/oxlint-config": "11.68.0-alpha.3",
|
|
59
|
+
"@gooddata/eslint-config": "11.68.0-alpha.3",
|
|
60
|
+
"@gooddata/reference-workspace": "11.68.0-alpha.3"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"_phase:build": "npm run build",
|