@gooddata/sdk-backend-mockingbird 11.51.0-alpha.0 → 11.51.0-alpha.2

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 CHANGED
@@ -13,6 +13,6 @@ export type { RecordingIndex, ExecutionRecording, InsightRecording, DisplayFormR
13
13
  export { type NamedDataView, recordedDataView, recordedDataViews, recordedInsight, recordedInsights, DataViewAll, dataViewWindow, DataViewFirstPage, } from "./recordedBackend/execution.js";
14
14
  export { newAttributeFilterLimitingItem, newDateFilterLimitingItem, newMeasureLimitingItem, } from "./recordedBackend/elementsUtils.js";
15
15
  export { type CompositeBackendPart, compositeBackend } from "./compositeBackend/index.js";
16
- export { type LegacyExecutionRecording, type LegacyRecordingIndex, type LegacyWorkspaceRecordings, legacyRecordedBackend, legacyRecordedDataView, } from "./legacyRecordedBackend/index.js";
16
+ export { type LegacyExecutionRecording, type LegacyRecordingIndex, type LegacyWorkspaceRecordings, legacyRecordedDataView, } from "./legacyRecordedBackend/index.js";
17
17
  export { objRefsToStringKey } from "./recordedBackend/utils.js";
18
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,aAAa,EAAE,CAAC;AAE9D,OAAO,EAAE,eAAe,EAAE,kCAAkC,EAAE,MAAM,4BAA4B,CAAC;AAEjG,YAAY,EACR,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,4BAA4B,EAC5B,iCAAiC,EACjC,kCAAkC,EAClC,UAAU,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EACf,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,iBAAiB,GACpB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EACH,8BAA8B,EAC9B,yBAAyB,EACzB,sBAAsB,GACzB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,KAAK,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE1F,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,sBAAsB,GACzB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC"}
package/esm/index.js CHANGED
@@ -14,5 +14,5 @@ export { recordedBackend, defaultRecordedBackendCapabilities } from "./recordedB
14
14
  export { recordedDataView, recordedDataViews, recordedInsight, recordedInsights, DataViewAll, dataViewWindow, DataViewFirstPage, } from "./recordedBackend/execution.js";
15
15
  export { newAttributeFilterLimitingItem, newDateFilterLimitingItem, newMeasureLimitingItem, } from "./recordedBackend/elementsUtils.js";
16
16
  export { compositeBackend } from "./compositeBackend/index.js";
17
- export { legacyRecordedBackend, legacyRecordedDataView, } from "./legacyRecordedBackend/index.js";
17
+ export { legacyRecordedDataView, } from "./legacyRecordedBackend/index.js";
18
18
  export { objRefsToStringKey } from "./recordedBackend/utils.js";
@@ -1,4 +1,4 @@
1
- import { type IAnalyticalBackend, type IAnalyticalBackendConfig, type IDataView } from "@gooddata/sdk-backend-spi";
1
+ import { type IDataView } from "@gooddata/sdk-backend-spi";
2
2
  import { type IAttributeDisplayFormMetadataObject, type IAttributeElement, type IExecutionDefinition } from "@gooddata/sdk-model";
3
3
  /**
4
4
  * Master Index is the input needed to initialize the recorded backend.
@@ -38,12 +38,6 @@ export type LegacyExecutionRecording = {
38
38
  response: any;
39
39
  result: any;
40
40
  };
41
- /**
42
- * This is legacy implementation of the recorded backend. Do not use for new tests.
43
- * @internal
44
- * @deprecated this implementation is deprecated, use non-legacy recorded backend
45
- */
46
- export declare function legacyRecordedBackend(index: LegacyRecordingIndex, config?: IAnalyticalBackendConfig): IAnalyticalBackend;
47
41
  /**
48
42
  * Creates a new data view facade for the provided recording.
49
43
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/legacyRecordedBackend/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAY7B,KAAK,SAAS,EA6CjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGH,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EAKtB,KAAK,oBAAoB,EAS5B,MAAM,qBAAqB,CAAC;AAa7B;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,CAAC,SAAS,EAAE,MAAM,GAAG,yBAAyB,CAAC;CAClD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACpC,SAAS,CAAC,EAAE;QACR,CAAC,EAAE,EAAE,MAAM,GAAG,wBAAwB,CAAC;KAC1C,CAAC;IACF,QAAQ,CAAC,EAAE;QACP,oBAAoB,CAAC,EAAE;YAAE,CAAC,EAAE,EAAE,MAAM,GAAG,mCAAmC,CAAA;SAAE,CAAC;KAChF,CAAC;IACF,QAAQ,CAAC,EAAE;QACP,CAAC,EAAE,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAAC;KACrC,CAAC;CACL,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACnC,UAAU,EAAE,oBAAoB,CAAC;IACjC,QAAQ,EAAE,GAAG,CAAC;IACd,MAAM,EAAE,GAAG,CAAC;CACf,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,qBAAqB,CACjC,KAAK,EAAE,oBAAoB,EAC3B,MAAM,GAAE,wBAAwC,GACjD,kBAAkB,CAsDpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,wBAAwB,GAAG,SAAS,CAMrF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/legacyRecordedBackend/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAOH,KAAK,SAAS,EAcjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGH,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EAKtB,KAAK,oBAAoB,EAS5B,MAAM,qBAAqB,CAAC;AAS7B;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,CAAC,SAAS,EAAE,MAAM,GAAG,yBAAyB,CAAC;CAClD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACpC,SAAS,CAAC,EAAE;QACR,CAAC,EAAE,EAAE,MAAM,GAAG,wBAAwB,CAAC;KAC1C,CAAC;IACF,QAAQ,CAAC,EAAE;QACP,oBAAoB,CAAC,EAAE;YAAE,CAAC,EAAE,EAAE,MAAM,GAAG,mCAAmC,CAAA;SAAE,CAAC;KAChF,CAAC;IACF,QAAQ,CAAC,EAAE;QACP,CAAC,EAAE,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAAC;KACrC,CAAC;CACL,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACnC,UAAU,EAAE,oBAAoB,CAAC;IACjC,QAAQ,EAAE,GAAG,CAAC;IACd,MAAM,EAAE,GAAG,CAAC;CACf,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,wBAAwB,GAAG,SAAS,CAMrF"}
@@ -3,67 +3,7 @@ import { isEmpty, isEqual } from "lodash-es";
3
3
  import { AbstractExecutionFactory } from "@gooddata/sdk-backend-base";
4
4
  import { NotSupported, } from "@gooddata/sdk-backend-spi";
5
5
  import { defFingerprint, defWithBuckets, defWithDateFormat, defWithDimensions, defWithSorting, uriRef, } from "@gooddata/sdk-model";
6
- import { createMockGeoService } from "../geoService.js";
7
6
  import { isAttributeHeader, } from "./legacyBackendTypes.js";
8
- const defaultConfig = { hostname: "test" };
9
- /**
10
- * This is legacy implementation of the recorded backend. Do not use for new tests.
11
- * @internal
12
- * @deprecated this implementation is deprecated, use non-legacy recorded backend
13
- */
14
- export function legacyRecordedBackend(index, config = defaultConfig) {
15
- const geoService = createMockGeoService();
16
- const noopBackend = {
17
- capabilities: {},
18
- config,
19
- onHostname(hostname) {
20
- return legacyRecordedBackend(index, { ...config, hostname });
21
- },
22
- withTelemetry(_component, _props) {
23
- return noopBackend;
24
- },
25
- withCorrelation(_correlationMetadata) {
26
- return noopBackend;
27
- },
28
- withAuthentication(_) {
29
- return this;
30
- },
31
- organization(_organizationId) {
32
- throw new NotSupported("not yet supported");
33
- },
34
- organizations() {
35
- throw new NotSupported("not yet supported");
36
- },
37
- currentUser() {
38
- throw new NotSupported("not yet supported");
39
- },
40
- workspace(id) {
41
- return recordedWorkspace(id, index[id]);
42
- },
43
- workspaces() {
44
- throw new NotSupported("not yet supported");
45
- },
46
- authenticate() {
47
- return Promise.resolve({ userId: "recordedUser" });
48
- },
49
- deauthenticate() {
50
- return Promise.resolve();
51
- },
52
- isAuthenticated() {
53
- return Promise.resolve({ userId: "recordedUser" });
54
- },
55
- entitlements() {
56
- throw new NotSupported("not yet supported");
57
- },
58
- dataSources() {
59
- throw new NotSupported("not yet supported");
60
- },
61
- geo() {
62
- return geoService;
63
- },
64
- };
65
- return noopBackend;
66
- }
67
7
  /**
68
8
  * Creates a new data view facade for the provided recording.
69
9
  *
@@ -82,101 +22,6 @@ export function legacyRecordedDataView(recording) {
82
22
  //
83
23
  // Internals
84
24
  //
85
- function recordedWorkspace(workspace, recordings = {}) {
86
- return {
87
- workspace,
88
- getDescriptor() {
89
- throw new NotSupported("not supported");
90
- },
91
- updateDescriptor() {
92
- throw new NotSupported("not supported");
93
- },
94
- getParentWorkspace() {
95
- throw new NotSupported("not supported");
96
- },
97
- execution() {
98
- return new RecordedExecutionFactory(recordings, workspace);
99
- },
100
- keyDriverAnalysis() {
101
- throw new NotSupported("not supported");
102
- },
103
- settings() {
104
- throw new NotSupported("not supported");
105
- },
106
- attributes() {
107
- throw new NotSupported("not supported");
108
- },
109
- measures() {
110
- throw new NotSupported("not supported");
111
- },
112
- parameters() {
113
- throw new NotSupported("not supported");
114
- },
115
- facts() {
116
- throw new NotSupported("not supported");
117
- },
118
- insights() {
119
- throw new NotSupported("not supported");
120
- },
121
- dashboards() {
122
- throw new NotSupported("not supported");
123
- },
124
- styling() {
125
- throw new NotSupported("not supported");
126
- },
127
- catalog() {
128
- throw new NotSupported("not supported");
129
- },
130
- datasets() {
131
- throw new NotSupported("not supported");
132
- },
133
- permissions() {
134
- throw new NotSupported("not supported");
135
- },
136
- users() {
137
- throw new NotSupported("not supported");
138
- },
139
- dateFilterConfigs() {
140
- throw new NotSupported("not supported");
141
- },
142
- userGroups() {
143
- throw new NotSupported("not supported");
144
- },
145
- accessControl() {
146
- throw new NotSupported("not supported");
147
- },
148
- objectPermissions() {
149
- throw new NotSupported("not supported");
150
- },
151
- attributeHierarchies() {
152
- throw new NotSupported("not supported");
153
- },
154
- agents() {
155
- throw new NotSupported("not supported");
156
- },
157
- exportDefinitions() {
158
- throw new NotSupported("not supported");
159
- },
160
- dataFilters() {
161
- throw new NotSupported("not supported");
162
- },
163
- logicalModel() {
164
- throw new NotSupported("not supported");
165
- },
166
- automations() {
167
- throw new NotSupported("not supported");
168
- },
169
- genAI() {
170
- throw new NotSupported("not supported");
171
- },
172
- references() {
173
- throw new NotSupported("not supported");
174
- },
175
- exportTemplates() {
176
- throw new NotSupported("not supported");
177
- },
178
- };
179
- }
180
25
  class RecordedExecutionFactory extends AbstractExecutionFactory {
181
26
  recordings;
182
27
  constructor(recordings, workspace) {
@@ -220,13 +220,6 @@ export declare type LegacyExecutionRecording = {
220
220
  result: any;
221
221
  };
222
222
 
223
- /**
224
- * This is legacy implementation of the recorded backend. Do not use for new tests.
225
- * @internal
226
- * @deprecated this implementation is deprecated, use non-legacy recorded backend
227
- */
228
- export declare function legacyRecordedBackend(index: LegacyRecordingIndex, config?: IAnalyticalBackendConfig): IAnalyticalBackend;
229
-
230
223
  /**
231
224
  * Creates a new data view facade for the provided recording.
232
225
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-backend-mockingbird",
3
- "version": "11.51.0-alpha.0",
3
+ "version": "11.51.0-alpha.2",
4
4
  "description": "Mock GoodData Backend SPI implementation",
5
5
  "license": "MIT",
6
6
  "author": "GoodData",
@@ -25,10 +25,10 @@
25
25
  "ts-invariant": "0.10.3",
26
26
  "tslib": "2.8.1",
27
27
  "uuid": "11.1.1",
28
- "@gooddata/sdk-backend-base": "11.51.0-alpha.0",
29
- "@gooddata/sdk-backend-spi": "11.51.0-alpha.0",
30
- "@gooddata/sdk-model": "11.51.0-alpha.0",
31
- "@gooddata/util": "11.51.0-alpha.0"
28
+ "@gooddata/sdk-backend-base": "11.51.0-alpha.2",
29
+ "@gooddata/sdk-model": "11.51.0-alpha.2",
30
+ "@gooddata/sdk-backend-spi": "11.51.0-alpha.2",
31
+ "@gooddata/util": "11.51.0-alpha.2"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@microsoft/api-documenter": "^7.17.0",
@@ -52,9 +52,9 @@
52
52
  "oxlint-tsgolint": "0.15.0",
53
53
  "typescript": "5.9.3",
54
54
  "vitest": "4.1.8",
55
- "@gooddata/eslint-config": "11.51.0-alpha.0",
56
- "@gooddata/reference-workspace": "11.51.0-alpha.0",
57
- "@gooddata/oxlint-config": "11.51.0-alpha.0"
55
+ "@gooddata/eslint-config": "11.51.0-alpha.2",
56
+ "@gooddata/oxlint-config": "11.51.0-alpha.2",
57
+ "@gooddata/reference-workspace": "11.51.0-alpha.2"
58
58
  },
59
59
  "scripts": {
60
60
  "_phase:build": "npm run build",