@lightdash/query-sdk 2.487.0 → 2.487.1
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/dist/apiTransport.js
CHANGED
|
@@ -386,7 +386,7 @@ function mapApiRowsToQueryResult({ apiRows, columns, fields, fieldIds, fieldName
|
|
|
386
386
|
const colMeta = columns[fieldId];
|
|
387
387
|
return {
|
|
388
388
|
name,
|
|
389
|
-
label: fieldMeta?.label ?? name,
|
|
389
|
+
label: fieldMeta?.label ?? fieldMeta?.displayName ?? name,
|
|
390
390
|
type: mapColumnType(colMeta?.type ?? fieldMeta?.type ?? 'string'),
|
|
391
391
|
};
|
|
392
392
|
});
|
|
@@ -458,8 +458,17 @@ export function createApiTransport(config, adapter) {
|
|
|
458
458
|
const { queryUuid, fields } = execResult;
|
|
459
459
|
// Build a mapping from qualified → short field names
|
|
460
460
|
// so app code uses row.driver_name, not row.fct_race_results_driver_name
|
|
461
|
-
const
|
|
462
|
-
const
|
|
461
|
+
const tableCalculationNames = query.tableCalculations.map((calculation) => calculation.name);
|
|
462
|
+
const allShort = [
|
|
463
|
+
...query.dimensions,
|
|
464
|
+
...query.metrics,
|
|
465
|
+
...tableCalculationNames,
|
|
466
|
+
];
|
|
467
|
+
const allQualified = [
|
|
468
|
+
...qualifiedDims,
|
|
469
|
+
...qualifiedMetrics,
|
|
470
|
+
...tableCalculationNames,
|
|
471
|
+
];
|
|
463
472
|
const qualifiedToShort = new Map();
|
|
464
473
|
for (let i = 0; i < allShort.length; i++) {
|
|
465
474
|
qualifiedToShort.set(allQualified[i], allShort[i]);
|
package/dist/features.js
CHANGED
|
@@ -205,6 +205,13 @@ export const SDK_FEATURE_KEYS = SDK_FEATURES.map((f) => f.key);
|
|
|
205
205
|
* stable fix identifiers here; do not use SDK version floors or backfill
|
|
206
206
|
* historical fixes.
|
|
207
207
|
*/
|
|
208
|
-
export const SDK_FIXES = [
|
|
208
|
+
export const SDK_FIXES = [
|
|
209
|
+
{
|
|
210
|
+
key: 'table-calculation-results',
|
|
211
|
+
label: 'Table calculation results',
|
|
212
|
+
description: 'Includes table calculation values and formatted results in data app tables and charts instead of showing them as missing.',
|
|
213
|
+
appliesTo: ['data_app'],
|
|
214
|
+
},
|
|
215
|
+
];
|
|
209
216
|
export const SDK_FIX_KEYS = SDK_FIXES.map((fix) => fix.key);
|
|
210
217
|
export const SDK_MANIFEST_MESSAGE_TYPE = 'lightdash:sdk:manifest';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.487.
|
|
1
|
+
export declare const SDK_VERSION = "2.487.1";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by scripts/generateSdkVersion.mjs (prebuild) — do not edit.
|
|
2
|
-
export const SDK_VERSION = '2.487.
|
|
2
|
+
export const SDK_VERSION = '2.487.1';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightdash/query-sdk",
|
|
3
|
-
"version": "2.487.
|
|
3
|
+
"version": "2.487.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "SDK for building custom data apps against the Lightdash semantic layer",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@lightdash/common": "2.487.
|
|
29
|
+
"@lightdash/common": "2.487.1",
|
|
30
30
|
"@types/node": "22.13.1",
|
|
31
31
|
"@types/react": "19.3.0",
|
|
32
32
|
"@types/react-dom": "19.3.0",
|