@gooddata/sdk-backend-tiger 11.59.0-alpha.2 → 11.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/backend/settings/mapping.d.ts.map +1 -1
- package/esm/convertors/fromBackend/KdaConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/KdaConverter.js +17 -9
- package/esm/convertors/fromBackend/genAIConvertor.d.ts.map +1 -1
- package/esm/convertors/fromBackend/genAIConvertor.js +6 -0
- package/package.json +11 -11
package/esm/__version.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "11.59.0
|
|
1
|
+
export declare const LIB_VERSION = "11.59.0";
|
|
2
2
|
export declare const LIB_DESCRIPTION = "GoodData Backend SPI implementation for GoodData Cloud and GoodData.CN";
|
|
3
3
|
export declare const LIB_NAME = "@gooddata/sdk-backend-tiger";
|
|
4
4
|
//# sourceMappingURL=__version.d.ts.map
|
package/esm/__version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__version.d.ts","sourceRoot":"","sources":["../src/__version.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"__version.d.ts","sourceRoot":"","sources":["../src/__version.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,YAAY,CAAC;AAErC,eAAO,MAAM,eAAe,2EAA2E,CAAC;AAExG,eAAO,MAAM,QAAQ,gCAAgC,CAAC"}
|
package/esm/__version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2021 GoodData Corporation
|
|
2
2
|
// DO NOT CHANGE THIS FILE, IT IS RE-GENERATED ON EVERY BUILD
|
|
3
|
-
export const LIB_VERSION = "11.59.0
|
|
3
|
+
export const LIB_VERSION = "11.59.0";
|
|
4
4
|
export const LIB_DESCRIPTION = "GoodData Backend SPI implementation for GoodData Cloud and GoodData.CN";
|
|
5
5
|
export const LIB_NAME = "@gooddata/sdk-backend-tiger";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapping.d.ts","sourceRoot":"","sources":["../../../src/backend/settings/mapping.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"mapping.d.ts","sourceRoot":"","sources":["../../../src/backend/settings/mapping.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAyEzF,wBAAgB,YAAY,CACxB,IAAI,EAAE,iBAAiB,GAAG,oBAAoB,GAAG,SAAS,EAC1D,QAAQ,SAAK,GACd,MAAM,SAAS,CAIjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdaConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/KdaConverter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"KdaConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/KdaConverter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAG5D,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,oBAAoB,GAAG,UAAU,CAavF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
|
+
import { idRef } from "@gooddata/sdk-model";
|
|
2
3
|
export function convertChangeAnalyzeToKeyDriver(value) {
|
|
3
4
|
return {
|
|
4
5
|
value: value.attributeValue,
|
|
@@ -7,17 +8,24 @@ export function convertChangeAnalyzeToKeyDriver(value) {
|
|
|
7
8
|
to: value.metricValueInAnalyzedPeriod,
|
|
8
9
|
delta: value.metricValueDelta,
|
|
9
10
|
},
|
|
10
|
-
|
|
11
|
-
// attribute's fabricated display form, and there is no discriminator to resolve which. The
|
|
12
|
-
// ref is therefore left untyped, making ref comparisons fall back to identifier equality.
|
|
13
|
-
// Known limitation: if a label and a computed attribute share the same id, the consumer
|
|
14
|
-
// cannot tell them apart; fixing that needs a type discriminator in the changeAnalysis
|
|
15
|
-
// response.
|
|
16
|
-
displayForm: {
|
|
17
|
-
identifier: value.attributeName,
|
|
18
|
-
},
|
|
11
|
+
displayForm: convertKeyDriverDisplayForm(value),
|
|
19
12
|
std: value.attributeValuesChangeStd,
|
|
20
13
|
mean: value.attributeValuesChangeMean,
|
|
21
14
|
isSignificantChange: value.isSignificantChange,
|
|
22
15
|
};
|
|
23
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Builds the driver's display form ref from `attributeRef`, which carries the object type. A computed attribute
|
|
19
|
+
* is referenced the same way the catalog references its fabricated display form, typed `computedAttribute`.
|
|
20
|
+
*
|
|
21
|
+
* A backend that predates `attributeRef` sends only the bare id in `attributeName`. That ref is left untyped, so
|
|
22
|
+
* ref comparisons fall back to identifier equality and a consumer cannot tell a label from a computed attribute
|
|
23
|
+
* with the same id.
|
|
24
|
+
*/
|
|
25
|
+
function convertKeyDriverDisplayForm(value) {
|
|
26
|
+
const identifier = value.attributeRef?.identifier;
|
|
27
|
+
if (!identifier) {
|
|
28
|
+
return { identifier: value.attributeName };
|
|
29
|
+
}
|
|
30
|
+
return idRef(identifier.id, identifier.type === "computedAttribute" ? "computedAttribute" : "displayForm");
|
|
31
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genAIConvertor.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/genAIConvertor.ts"],"names":[],"mappings":"AAKA,OAAO,EAGH,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAI/B,KAAK,yBAAyB,EAK9B,KAAK,aAAa,EAQrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,KAAK,iBAAiB,EAGtB,KAAK,sBAAsB,EAE3B,KAAK,gCAAgC,EACrC,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAGhC,KAAK,gBAAgB,EAExB,MAAM,2BAA2B,CAAC;AAwCnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAIhE,wBAAgB,kCAAkC,CAAC,YAAY,EAAE,sBAAsB,GAAG,iBAAiB,CAS1G;AAED,wBAAgB,sCAAsC,CAClD,IAAI,EAAE,0BAA0B,EAChC,SAAS,EAAE,0BAA0B,CAAC,WAAW,CAAC,GAAG,SAAS,EAC9D,OAAO,EAAE,qBAAqB,EAAE,EAChC,cAAc,EAAE,cAAc,EAC9B,MAAM,CAAC,EAAE,gBAAgB,EACzB,QAAQ,CAAC,EAAE,MAAM,GAClB,qBAAqB,GAAG,SAAS,CA6BnC;AAED,wBAAgB,uCAAuC,CACnD,KAAK,EAAE,0BAA0B,EAAE,EACnC,SAAS,EAAE,0BAA0B,CAAC,WAAW,CAAC,GAAG,SAAS,EAC9D,cAAc,EAAE,cAAc,EAC9B,MAAM,CAAC,EAAE,gBAAgB,EACzB,QAAQ,CAAC,EAAE,MAAM,GAClB,qBAAqB,EAAE,CAkBzB;
|
|
1
|
+
{"version":3,"file":"genAIConvertor.d.ts","sourceRoot":"","sources":["../../../src/conv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MAAM,GACjB,sBAAsB,CAQxB;AAED;;;GAGG;AACH,wBAAgB,iDAAiD,CAC7D,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,MAAM,GACjB,gCAAgC,CAgBlC;AAED;;;;GAIG;AACH,wBAAgB,4CAA4C,CACxD,MAAM,EAAE,gCAAgC,GAAG,IAAI,GAAG,SAAS,GAC5D,2BAA2B,GAAG,SAAS,CAgEzC;AA2FD,wBAAgB,oCAAoC,CAChD,IAAI,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,GACvC,gBAAgB,CAQlB"}
|
|
@@ -174,11 +174,17 @@ function convertMultipartPart(part, history, siblings, dateNormalizer, locale, t
|
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
176
|
case "kda":
|
|
177
|
+
if (!part.kda) {
|
|
178
|
+
return undefined;
|
|
179
|
+
}
|
|
177
180
|
return {
|
|
178
181
|
type: "kda",
|
|
179
182
|
kda: convertKda(part.kda, dateNormalizer, locale, timezone),
|
|
180
183
|
};
|
|
181
184
|
case "whatIf":
|
|
185
|
+
if (!part.whatIf) {
|
|
186
|
+
return undefined;
|
|
187
|
+
}
|
|
182
188
|
return {
|
|
183
189
|
type: "whatIf",
|
|
184
190
|
whatIf: convertWhatIf(part.whatIf),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-backend-tiger",
|
|
3
|
-
"version": "11.59.0
|
|
3
|
+
"version": "11.59.0",
|
|
4
4
|
"description": "GoodData Backend SPI implementation for GoodData Cloud and GoodData.CN",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"ts-invariant": "0.10.3",
|
|
35
35
|
"tslib": "2.8.1",
|
|
36
36
|
"uuid": "11.1.1",
|
|
37
|
-
"@gooddata/api-client-tiger": "11.59.0
|
|
38
|
-
"@gooddata/sdk-backend-
|
|
39
|
-
"@gooddata/sdk-
|
|
40
|
-
"@gooddata/sdk-
|
|
41
|
-
"@gooddata/sdk-model": "11.59.0
|
|
42
|
-
"@gooddata/util": "11.59.0
|
|
37
|
+
"@gooddata/api-client-tiger": "11.59.0",
|
|
38
|
+
"@gooddata/sdk-backend-base": "11.59.0",
|
|
39
|
+
"@gooddata/sdk-backend-spi": "11.59.0",
|
|
40
|
+
"@gooddata/sdk-code-convertors": "11.59.0",
|
|
41
|
+
"@gooddata/sdk-model": "11.59.0",
|
|
42
|
+
"@gooddata/util": "11.59.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@gooddata/fixtures": "3.7.0",
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
"oxlint-tsgolint": "7.0.2001",
|
|
65
65
|
"typescript": "7.0.2",
|
|
66
66
|
"vitest": "4.1.11",
|
|
67
|
-
"@gooddata/catalog-export": "11.59.0
|
|
68
|
-
"@gooddata/eslint-config": "11.59.0
|
|
69
|
-
"@gooddata/reference-workspace": "11.59.0
|
|
70
|
-
"@gooddata/oxlint-config": "11.59.0
|
|
67
|
+
"@gooddata/catalog-export": "11.59.0",
|
|
68
|
+
"@gooddata/eslint-config": "11.59.0",
|
|
69
|
+
"@gooddata/reference-workspace": "11.59.0",
|
|
70
|
+
"@gooddata/oxlint-config": "11.59.0"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"_phase:build": "npm run build",
|