@gooddata/reference-workspace 11.18.0-alpha.3 → 11.18.0-alpha.5
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/index.d.ts.map +1 -1
- package/esm/index.js +2 -1
- package/esm/index.js.map +1 -1
- package/esm/md/ext.d.ts.map +1 -1
- package/esm/md/ext.js +12 -12
- package/esm/md/ext.js.map +1 -1
- package/package.json +5 -6
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,cAAc,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,WAAW,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,mBAAmB,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,aAAa,EAAE,CAAC"}
|
package/esm/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
// (C) 2019-
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
2
|
+
/* eslint-disable no-barrel-files/no-barrel-files,no-restricted-syntax */
|
|
2
3
|
import * as ReferenceMdExt from "./md/ext.js";
|
|
3
4
|
import * as ReferenceMd from "./md/full.js";
|
|
4
5
|
import { DataSamples as ReferenceData } from "./recordings/dataSample.js";
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,KAAK,cAAc,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,WAAW,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,mBAAmB,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,aAAa,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,yEAAyE;AAEzE,OAAO,KAAK,cAAc,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,WAAW,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,mBAAmB,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,aAAa,EAAE,CAAC"}
|
package/esm/md/ext.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ext.d.ts","sourceRoot":"","sources":["../../src/md/ext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ext.d.ts","sourceRoot":"","sources":["../../src/md/ext.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,UAAU,EACf,KAAK,MAAM,EAQd,MAAM,qBAAqB,CAAC;AAU7B,eAAO,MAAM,SAAS,0FAA6E,CAAC;AACpG,eAAO,MAAM,YAAY,0FAAmF,CAAC;AAC7G,eAAO,MAAM,SAAS,0FAA6E,CAAC;AAEpG;;GAEG;AACH,eAAO,MAAM,cAAc,oGAE1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,oGAElC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,6FAE5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,wGAE5B,CAAC;AACH;;GAEG;AACH,eAAO,MAAM,eAAe,0FAE3B,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAsC,CAAC;AAC9E;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,UAEhC,CAAC"}
|
package/esm/md/ext.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
// (C) 2019-
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
2
2
|
import { idRef, modifyAttribute, modifyMeasure, modifySimpleMeasure, newArithmeticMeasure, newPopMeasure, newPreviousPeriodMeasure, } from "@gooddata/sdk-model";
|
|
3
|
-
import
|
|
3
|
+
import { Amount, Amount_1, DateDatasets, Won } from "./full.js";
|
|
4
4
|
/*
|
|
5
5
|
* This file contains our custom extensions on top of the reference LDM. Things such as arithmetic
|
|
6
6
|
* measure definitions, PoP measure definitions and any custom yet reusable stuff that is useful
|
|
7
7
|
* when testing.
|
|
8
8
|
*/
|
|
9
|
-
export const MinAmount = modifyMeasure(
|
|
10
|
-
export const MedianAmount = modifyMeasure(
|
|
11
|
-
export const MaxAmount = modifyMeasure(
|
|
9
|
+
export const MinAmount = modifyMeasure(Amount_1.Min, (m) => m.alias("Min Amount").defaultLocalId());
|
|
10
|
+
export const MedianAmount = modifyMeasure(Amount_1.Median, (m) => m.alias("Median Amount").defaultLocalId());
|
|
11
|
+
export const MaxAmount = modifyMeasure(Amount_1.Max, (m) => m.alias("Max Amount").defaultLocalId());
|
|
12
12
|
/**
|
|
13
13
|
* Arithmetic measure doing difference of Amount and Won measures
|
|
14
14
|
*/
|
|
15
|
-
export const CalculatedLost = newArithmeticMeasure([
|
|
15
|
+
export const CalculatedLost = newArithmeticMeasure([Amount, Won], "difference", (m) => m.alias("Calculated 'Lost' measure"));
|
|
16
16
|
/**
|
|
17
17
|
* Arithmetic measure calculating ratio of calculated 'Lost' and
|
|
18
18
|
* MAQL 'Won' measure
|
|
19
19
|
*/
|
|
20
|
-
export const CalculatedWonLostRatio = newArithmeticMeasure([CalculatedLost,
|
|
20
|
+
export const CalculatedWonLostRatio = newArithmeticMeasure([CalculatedLost, Won], "ratio", (m) => m.alias("Ratio of Won and Lost"));
|
|
21
21
|
/**
|
|
22
22
|
* A PoP measure derived from 'Won' measure, comparing same period previous year
|
|
23
23
|
*/
|
|
24
|
-
export const WonPopClosedYear = newPopMeasure(
|
|
24
|
+
export const WonPopClosedYear = newPopMeasure(Won, DateDatasets.Closed.ClosedYear.ref, (m) => m.alias("Won Last Year"));
|
|
25
25
|
/**
|
|
26
26
|
* A previous period measure derived from 'Won' measure
|
|
27
27
|
*/
|
|
28
|
-
export const WonPreviousPeriod = newPreviousPeriodMeasure(
|
|
29
|
-
{ dataSet:
|
|
28
|
+
export const WonPreviousPeriod = newPreviousPeriodMeasure(Won, [
|
|
29
|
+
{ dataSet: DateDatasets.Closed.identifier, periodsAgo: 1 },
|
|
30
30
|
]);
|
|
31
31
|
/**
|
|
32
32
|
* Measure that computes ratio
|
|
33
33
|
*/
|
|
34
|
-
export const AmountWithRatio = modifySimpleMeasure(
|
|
34
|
+
export const AmountWithRatio = modifySimpleMeasure(Amount, (m) => m.alias("Amount with Ratio").ratio().localId("Amount with Ratio"));
|
|
35
35
|
/**
|
|
36
36
|
* A reference to Stage History Attribute
|
|
37
37
|
*/
|
|
@@ -39,5 +39,5 @@ export const StageHistoryAttributeRef = idRef("attr.stagehistory.id");
|
|
|
39
39
|
/**
|
|
40
40
|
* Copy of ClosedYear attribute
|
|
41
41
|
*/
|
|
42
|
-
export const ModifiedClosedYear = modifyAttribute(
|
|
42
|
+
export const ModifiedClosedYear = modifyAttribute(DateDatasets.Closed.ClosedYear.Default, (m) => m.localId("closed.second"));
|
|
43
43
|
//# sourceMappingURL=ext.js.map
|
package/esm/md/ext.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ext.js","sourceRoot":"","sources":["../../src/md/ext.ts"],"names":[],"mappings":"AAAA,qCAAqC;
|
|
1
|
+
{"version":3,"file":"ext.js","sourceRoot":"","sources":["../../src/md/ext.ts"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YAAY,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CACzF,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,GAAG,EAAE;IAC3D,EAAE,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC,UAAU,EAAE,UAAU,EAAE,CAAC,EAAE;CAC7D,CAAC,CAAC;AACH;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,mBAAmB,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAC7D,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,CACpE,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAW,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAC9E;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAe,eAAe,CAAC,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CACxG,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAC7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/reference-workspace",
|
|
3
|
-
"version": "11.18.0-alpha.
|
|
3
|
+
"version": "11.18.0-alpha.5",
|
|
4
4
|
"description": "GoodData SDK - Reference Workspace for tests",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash-es": "^4.17.21",
|
|
24
24
|
"tslib": "2.8.1",
|
|
25
|
-
"@gooddata/sdk-backend-spi": "11.18.0-alpha.
|
|
26
|
-
"@gooddata/sdk-model": "11.18.0-alpha.
|
|
25
|
+
"@gooddata/sdk-backend-spi": "11.18.0-alpha.5",
|
|
26
|
+
"@gooddata/sdk-model": "11.18.0-alpha.5"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"eslint-plugin-import": "2.32.0",
|
|
39
39
|
"eslint-plugin-import-esm": "1.2.1",
|
|
40
40
|
"eslint-plugin-jsdoc": "62.1.0",
|
|
41
|
+
"eslint-plugin-no-barrel-files": "1.2.2",
|
|
41
42
|
"eslint-plugin-no-only-tests": "2.6.0",
|
|
42
43
|
"eslint-plugin-prettier": "5.5.4",
|
|
43
44
|
"eslint-plugin-regexp": "1.15.0",
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
"eslint-plugin-tsdoc": "0.2.14",
|
|
46
47
|
"prettier": "^3.6.2",
|
|
47
48
|
"typescript": "5.9.3",
|
|
48
|
-
"@gooddata/eslint-config": "11.18.0-alpha.
|
|
49
|
+
"@gooddata/eslint-config": "11.18.0-alpha.5"
|
|
49
50
|
},
|
|
50
51
|
"scripts": {
|
|
51
52
|
"_phase:build": "npm run build",
|
|
@@ -54,9 +55,7 @@
|
|
|
54
55
|
"clean": "../../common/scripts/clean-command-state.sh && rm -rf ci dist esm coverage *.log tsconfig.tsbuildinfo",
|
|
55
56
|
"clear-recordings": "rm -r src/recordings/uiTestScenarios",
|
|
56
57
|
"dep-cruiser": "depcruise --validate .dependency-cruiser.cjs --output-type err-long src/",
|
|
57
|
-
"dep-cruiser-ci": "mkdir -p ci/results && depcruise --validate .dependency-cruiser.cjs --output-type err-html src/ >./ci/results/dep-cruiser.html",
|
|
58
58
|
"eslint": "eslint -c .eslintrc.cjs src/",
|
|
59
|
-
"eslint-ci": "mkdir -p ./ci/results && eslint -f checkstyle -o ci/results/eslint-results.xml -c .eslintrc.cjs src/",
|
|
60
59
|
"eslint-fix": "eslint -c .eslintrc.cjs src/ --fix",
|
|
61
60
|
"export-ref-workspace": "cd ../reference-workspace-mgmt && npm run export-ref-workspace",
|
|
62
61
|
"import-ref-workspace": "cd ../reference-workspace-mgmt && npm run import-ref-workspace",
|