@sisense/sdk-query-client 1.5.0 → 1.6.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/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import './translation/initialize-i18n.js';
2
2
  export { DimensionalQueryClient } from './query-client.js';
3
+ export { getJaqlQueryPayload } from './jaql/get-jaql-query-payload.js';
3
4
  export * from './types.js';
4
5
  export * from './interfaces.js';
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import './translation/initialize-i18n.js';
2
2
  export { DimensionalQueryClient } from './query-client.js';
3
+ export { getJaqlQueryPayload } from './jaql/get-jaql-query-payload.js';
3
4
  export * from './types.js';
4
5
  export * from './interfaces.js';
@@ -1,4 +1,7 @@
1
1
  import { JaqlQueryPayload, QueryDescription, PivotQueryDescription } from '../types.js';
2
+ /**
3
+ * @internal
4
+ */
2
5
  export declare function getJaqlQueryPayload(queryDescription: QueryDescription, shouldSkipHighlightsWithoutAttributes: boolean): JaqlQueryPayload;
3
6
  /**
4
7
  * Converts a pivot query description to a JAQL query payload.
@@ -5,6 +5,9 @@ import merge from 'ts-deepmerge';
5
5
  import { isPivotAttribute, isPivotMeasure, DEFAULT_PIVOT_GRAND_TOTALS, isDataSourceInfo, } from '@sisense/sdk-data';
6
6
  import { applyHighlightFilters, matchHighlightsWithAttributes } from './metadata/highlights.js';
7
7
  const JAQL_BY_CSDK = 'ComposeSDK';
8
+ /**
9
+ * @internal
10
+ */
8
11
  export function getJaqlQueryPayload(queryDescription, shouldSkipHighlightsWithoutAttributes) {
9
12
  const { attributes, measures, filters, filterRelations, highlights, dataSource, count, offset } = queryDescription;
10
13
  const queryPayload = Object.assign({ metadata: prepareQueryMetadata({ attributes, measures, filters, filterRelations, highlights }, shouldSkipHighlightsWithoutAttributes) }, prepareQueryOptions(dataSource, count, offset));
package/dist/types.d.ts CHANGED
@@ -110,6 +110,10 @@ export type MetadataItem = {
110
110
  };
111
111
  export type MetadataItemJaql = {
112
112
  dim?: string;
113
+ agg?: string;
114
+ datatype?: string;
115
+ table?: string;
116
+ column?: string;
113
117
  level?: string;
114
118
  dateTimeLevel?: string;
115
119
  bucket?: string;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "Sisense",
12
12
  "Compose SDK"
13
13
  ],
14
- "version": "1.5.0",
14
+ "version": "1.6.0",
15
15
  "type": "module",
16
16
  "exports": "./dist/index.js",
17
17
  "main": "./dist/index.js",
@@ -20,10 +20,10 @@
20
20
  "author": "Sisense",
21
21
  "license": "SEE LICENSE IN LICENSE.md",
22
22
  "dependencies": {
23
- "@sisense/sdk-common": "^1.5.0",
24
- "@sisense/sdk-data": "^1.5.0",
25
- "@sisense/sdk-pivot-client": "^1.5.0",
26
- "@sisense/sdk-rest-client": "^1.5.0",
23
+ "@sisense/sdk-common": "^1.6.0",
24
+ "@sisense/sdk-data": "^1.6.0",
25
+ "@sisense/sdk-pivot-client": "^1.6.0",
26
+ "@sisense/sdk-rest-client": "^1.6.0",
27
27
  "@sisense/task-manager": "^0.1.0",
28
28
  "numeral": "^2.0.6",
29
29
  "ts-deepmerge": "6.0.2",