@sisense/sdk-query-client 1.2.0 → 1.3.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.
@@ -2,9 +2,9 @@ export const translation = {
2
2
  errors: {
3
3
  invalidAttribute: 'Invalid attribute {{attributeName}}. Hint: attributes for query should be extracted from the data model generated by the CLI tool.',
4
4
  noDimensionsOrMeasures: 'Neither dimensions nor measures found. Query should have at least one dimension or measure.',
5
- invalidMeasure: 'Invalid measure "{{measureName}}". Hint: measures for the query can be constructed using the "measures" functions.',
6
- invalidFilter: 'Invalid filter "{{filterName}}". Hint: filters for the query can be constructed using the "filters" functions.',
7
- invalidHighlight: 'Invalid highlight "{{highlightName}}". Hint: highlights for the query can be constructed using the "filters" functions.',
5
+ invalidMeasure: 'Invalid measure "{{measureName}}". Hint: measures for the query can be constructed using the "measureFactory" functions.',
6
+ invalidFilter: 'Invalid filter "{{filterName}}". Hint: filters for the query can be constructed using the "filterFactory" functions.',
7
+ invalidHighlight: 'Invalid highlight "{{highlightName}}". Hint: highlights for the query can be constructed using the "filterFactory" functions.',
8
8
  invalidCountNegative: 'Invalid count "{{count}}". Count should be non-negative.',
9
9
  invalidCountLimit: 'Invalid count "{{count}}". Count should not exceed {{limit}}.',
10
10
  invalidOffset: 'Invalid offset "{{offset}}". Offset should be non-negative.',
@@ -1,10 +1,10 @@
1
1
  export const translation = {
2
2
  errors: {
3
3
  invalidAttribute: `Недійсний атрибут {{attributeName}}. Підказка: атрибути для запиту повинні бути витягнуті з моделі даних, створеної за допомогою CLI-інструменту.`,
4
- noDimensionsOrMeasures: `Не знайдено ні розмірів, ні показників. Запит повинен мати щонайменше один розмір або показник.`,
5
- invalidMeasure: `Недійсний показник "{{measureName}}". Підказка: показники для запиту можна створити за допомогою функцій "measures".`,
6
- invalidFilter: `Недійсний фільтр "{{filterName}}". Підказка: фільтри для запиту можна створити за допомогою функцій "filters".`,
7
- invalidHighlight: `Недійсне виділення "{{highlightName}}". Підказка: виділення для запиту можна створити за допомогою функцій "filters".`,
4
+ noDimensionsOrMeasures: `Не знайдено ні вимірів, ні показників. Запит повинен мати щонайменше один вимір або показник.`,
5
+ invalidMeasure: `Недійсний показник "{{measureName}}". Підказка: показники для запиту можна створити за допомогою функцій "measureFactory".`,
6
+ invalidFilter: `Недійсний фільтр "{{filterName}}". Підказка: фільтри для запиту можна створити за допомогою функцій "filterFactory".`,
7
+ invalidHighlight: `Недійсне виділення "{{highlightName}}". Підказка: виділення для запиту можна створити за допомогою функцій "filterFactory".`,
8
8
  invalidCountNegative: `Недійсний count "{{count}}". Count повинен бути не від'ємним.`,
9
9
  invalidCountLimit: `Недійсний count "{{count}}". Count не повинен перевищувати {{limit}}.`,
10
10
  invalidOffset: `Недійсний offset "{{offset}}". Offset повинен бути не від'ємним.`,
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Filter, Measure, Attribute, Cell, QueryResultData, DataSource, FilterRelation, PivotAttribute, PivotMeasure, PivotQueryResultData, PivotGrandTotals } from '@sisense/sdk-data';
1
+ import { Filter, Measure, Attribute, Cell, QueryResultData, DataSource, PivotAttribute, PivotMeasure, PivotQueryResultData, PivotGrandTotals, FilterRelationsJaql } from '@sisense/sdk-data';
2
2
  /**
3
3
  * All the properties that fully describe a query you want to send.
4
4
  */
@@ -8,7 +8,7 @@ export type QueryDescription = {
8
8
  measures: Measure[];
9
9
  filters: Filter[];
10
10
  highlights: Filter[];
11
- filterRelations?: FilterRelation;
11
+ filterRelations?: FilterRelationsJaql;
12
12
  count?: number;
13
13
  offset?: number;
14
14
  };
@@ -23,7 +23,7 @@ export type PivotQueryDescription = {
23
23
  grandTotals: PivotGrandTotals;
24
24
  filters: Filter[];
25
25
  highlights: Filter[];
26
- filterRelations?: FilterRelation;
26
+ filterRelations?: FilterRelationsJaql;
27
27
  count?: number;
28
28
  offset?: number;
29
29
  };
@@ -119,7 +119,7 @@ export type MetadataItemJaql = {
119
119
  filter?: MetadataItem;
120
120
  };
121
121
  export type JaqlQueryPayload = QueryOptions & {
122
- filterRelations?: FilterRelation;
122
+ filterRelations?: FilterRelationsJaql;
123
123
  metadata: MetadataItem[];
124
124
  };
125
125
  export type DataSourceField = {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "Sisense",
12
12
  "Compose SDK"
13
13
  ],
14
- "version": "1.2.0",
14
+ "version": "1.3.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.2.0",
24
- "@sisense/sdk-data": "^1.2.0",
25
- "@sisense/sdk-pivot-client": "^1.2.0",
26
- "@sisense/sdk-rest-client": "^1.2.0",
23
+ "@sisense/sdk-common": "^1.3.0",
24
+ "@sisense/sdk-data": "^1.3.0",
25
+ "@sisense/sdk-pivot-client": "^1.3.0",
26
+ "@sisense/sdk-rest-client": "^1.3.0",
27
27
  "@sisense/task-manager": "^0.1.0",
28
28
  "numeral": "^2.0.6",
29
29
  "ts-deepmerge": "6.0.2",