@gooddata/sdk-code-convertors 11.67.0-alpha.2 → 11.67.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildAfmExecution.d.ts","sourceRoot":"","sources":["../../src/execution/buildAfmExecution.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAGR,KAAK,EAIR,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"buildAfmExecution.d.ts","sourceRoot":"","sources":["../../src/execution/buildAfmExecution.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAGR,KAAK,EAIR,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AA4C3E,cAAc;AACd,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,GAAG,kBAAkB,CAkB5F"}
|
|
@@ -3,7 +3,7 @@ import { convertBucketToTitle } from "../utils/convertBucketToTitle.js";
|
|
|
3
3
|
import { mapDateAttribute, mapDateDataset } from "../utils/dateUtils.js";
|
|
4
4
|
import { parseDateValues, yamlConditionToMatch } from "../utils/filterUtils.js";
|
|
5
5
|
import { getFullField } from "../utils/sharedUtils.js";
|
|
6
|
-
import { isAbsoluteDateFilter, isAllTimeDateFilter, isArbitraryTextFilter, isArithmeticMetricField, isAttributeField, isAttributeSort, isCalculatedMetricField, isComputedAttributeReference, isInlineMetricField, isMatchTextFilter, isMetricAllValueFilter, isMetricComparisonValueFilter, isMetricField, isMetricRangeValueFilter, isMetricValueFilterWithConditions, isNegativeAttributeFilter, isPoPMetricField, isPositiveAttributeFilter, isPreviousPeriodField, isRankingFilter, isRelativeDateFilter, isSimpleMetricSort, } from "../utils/typeGuards.js";
|
|
6
|
+
import { isAbsoluteDateFilter, isAllTimeDateFilter, isArbitraryTextFilter, isArithmeticMetricField, isAttributeField, isAttributeSort, isCalculatedMetricField, isComputedAttributeReference, isDateFilter, isInlineMetricField, isMatchTextFilter, isMetricAllValueFilter, isMetricComparisonValueFilter, isMetricField, isMetricRangeValueFilter, isMetricValueFilterWithConditions, isNegativeAttributeFilter, isPoPMetricField, isPositiveAttributeFilter, isPreviousPeriodField, isRankingFilter, isRelativeDateFilter, isSimpleMetricSort, } from "../utils/typeGuards.js";
|
|
7
7
|
import { createIdentifier, createLocalIdentifier } from "../utils/yamlUtils.js";
|
|
8
8
|
const MATCH_OPERATOR_TO_AFM = {
|
|
9
9
|
startsWith: "STARTS_WITH",
|
|
@@ -242,6 +242,11 @@ function buildFilters(entities, filters_by) {
|
|
|
242
242
|
},
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
|
+
if (isDateFilter(filter) && filter.with) {
|
|
246
|
+
// Mirrors yamlVisualisationToDeclarative: the attribute filters under `with:` are applied
|
|
247
|
+
// together with the date filter, right after it.
|
|
248
|
+
filters.push(...buildFilters(entities, filter.with));
|
|
249
|
+
}
|
|
245
250
|
if (isPositiveAttributeFilter(filter)) {
|
|
246
251
|
filters.push({
|
|
247
252
|
positiveAttributeFilter: {
|
|
@@ -397,6 +402,9 @@ function buildFilters(entities, filters_by) {
|
|
|
397
402
|
: {}),
|
|
398
403
|
operator: filter.top === undefined ? "BOTTOM" : "TOP",
|
|
399
404
|
value: filter.top === undefined ? filter.bottom : filter.top,
|
|
405
|
+
...(filter.strict_limit_of_rows === undefined
|
|
406
|
+
? {}
|
|
407
|
+
: { strictLimitOfRows: filter.strict_limit_of_rows }),
|
|
400
408
|
},
|
|
401
409
|
});
|
|
402
410
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-code-convertors",
|
|
3
|
-
"version": "11.67.0-alpha.
|
|
3
|
+
"version": "11.67.0-alpha.3",
|
|
4
4
|
"description": "GoodData AAC declarative converters",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"uuid": "11.1.1",
|
|
28
|
-
"yaml": "2.
|
|
29
|
-
"@gooddata/api-client-tiger": "11.67.0-alpha.
|
|
30
|
-
"@gooddata/sdk-
|
|
31
|
-
"@gooddata/sdk-
|
|
28
|
+
"yaml": "2.9.1",
|
|
29
|
+
"@gooddata/api-client-tiger": "11.67.0-alpha.3",
|
|
30
|
+
"@gooddata/sdk-code-schemas": "11.67.0-alpha.3",
|
|
31
|
+
"@gooddata/sdk-model": "11.67.0-alpha.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@microsoft/api-extractor": "7.59.2",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"dependency-cruiser": "17.3.10",
|
|
38
38
|
"eslint": "^9.39.2",
|
|
39
39
|
"eslint-plugin-headers": "1.3.3",
|
|
40
|
-
"eslint-plugin-import-esm": "
|
|
41
|
-
"eslint-plugin-jsdoc": "
|
|
40
|
+
"eslint-plugin-import-esm": "3.0.1",
|
|
41
|
+
"eslint-plugin-jsdoc": "65.4.2",
|
|
42
42
|
"eslint-plugin-no-barrel-files": "1.2.2",
|
|
43
|
-
"eslint-plugin-sonarjs": "
|
|
43
|
+
"eslint-plugin-sonarjs": "4.2.2",
|
|
44
44
|
"npm-run-all": "4.1.5",
|
|
45
45
|
"oxfmt": "0.68.0",
|
|
46
46
|
"oxlint": "1.83.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"oxlint-tsgolint": "7.0.2001",
|
|
49
49
|
"typescript": "7.0.2",
|
|
50
50
|
"vitest": "5.0.4",
|
|
51
|
-
"@gooddata/
|
|
52
|
-
"@gooddata/
|
|
51
|
+
"@gooddata/oxlint-config": "11.67.0-alpha.3",
|
|
52
|
+
"@gooddata/eslint-config": "11.67.0-alpha.3"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"_phase:build": "npm run build",
|