@gooddata/sdk-backend-mockingbird 11.64.0-alpha.1 → 11.64.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":"index.d.ts","sourceRoot":"","sources":["../../src/recordedBackend/index.ts"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,kBAAkB,EAKvB,KAAK,oBAAoB,EAwD5B,MAAM,2BAA2B,CAAC;AAmCnC,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAkB7E;;GAEG;AACH,eAAO,MAAM,kCAAkC,EAAE,oBAehD,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAC3B,KAAK,EAAE,cAAc,EACrB,MAAM,GAAE,qBAAqC,EAC7C,YAAY,uBAAqC,GAClD,kBAAkB,CAsDpB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/recordedBackend/index.ts"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,kBAAkB,EAKvB,KAAK,oBAAoB,EAyD5B,MAAM,2BAA2B,CAAC;AAmCnC,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAkB7E;;GAEG;AACH,eAAO,MAAM,kCAAkC,EAAE,oBAehD,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAC3B,KAAK,EAAE,cAAc,EACrB,MAAM,GAAE,qBAAqC,EAC7C,YAAY,uBAAqC,GAClD,kBAAkB,CAsDpB"}
@@ -101,7 +101,7 @@ export function recordedBackend(index, config = defaultConfig, capabilities = de
101
101
  return recordedEntitlements();
102
102
  },
103
103
  dataSources() {
104
- throw new NotSupported("not supported");
104
+ return recordedDataSourcesService();
105
105
  },
106
106
  geo() {
107
107
  return geoService;
@@ -403,6 +403,9 @@ function recordedWorkspace(workspace, recordings = {}, implConfig) {
403
403
  logicalModel() {
404
404
  throw new NotSupported("not supported");
405
405
  },
406
+ customApplicationSettings() {
407
+ throw new NotSupported("not supported");
408
+ },
406
409
  automations() {
407
410
  throw new NotSupported("not supported");
408
411
  },
@@ -445,6 +448,12 @@ function recordedWorkspace(workspace, recordings = {}, implConfig) {
445
448
  edges: [],
446
449
  });
447
450
  },
451
+ getAllReferences() {
452
+ return Promise.resolve({
453
+ nodes: [],
454
+ edges: [],
455
+ });
456
+ },
448
457
  };
449
458
  },
450
459
  exportTemplates() {
@@ -839,6 +848,35 @@ function recordedOrganization(organizationId, implConfig) {
839
848
  },
840
849
  };
841
850
  }
851
+ function recordedDataSourcesService() {
852
+ return {
853
+ getDataSourceIdentifiers: () => Promise.resolve([]),
854
+ getDataSources: () => Promise.resolve([]),
855
+ hasDataSources: () => Promise.resolve(false),
856
+ getDataSource: () => Promise.reject(new NotSupported("not supported")),
857
+ createDataSource: ({ id, name, schema, type }) => Promise.resolve({ id, name, schema, type }),
858
+ updateDataSource: (_id, { id, name, schema, type }) => Promise.resolve({ id, name, schema, type }),
859
+ patchDataSource: () => Promise.reject(new NotSupported("not supported")),
860
+ deleteDataSource: () => Promise.resolve(),
861
+ testConnection: () => Promise.resolve({ successful: true }),
862
+ getSchemata: () => Promise.resolve([]),
863
+ registerUploadNotification: () => Promise.resolve(),
864
+ getDataSourceIdentifier: (id) => Promise.resolve({ id, name: "", schema: "", type: "POSTGRESQL", permissions: [] }),
865
+ scan: () => Promise.resolve({ pdm: { tables: [] }, warnings: [] }),
866
+ scanSql: () => Promise.resolve({ columns: [] }),
867
+ generateLogicalModel: () => Promise.resolve({}),
868
+ files: () => ({
869
+ upload: () => Promise.resolve(""),
870
+ analyzeCsv: () => Promise.resolve([]),
871
+ importCsv: () => Promise.resolve([]),
872
+ analyzeSav: () => Promise.resolve([]),
873
+ importSav: () => Promise.resolve([]),
874
+ getFiles: () => Promise.resolve([]),
875
+ deleteFiles: () => Promise.resolve(),
876
+ getCsvManifests: () => Promise.resolve([]),
877
+ }),
878
+ };
879
+ }
842
880
  function recordedLocalizationService() {
843
881
  return {
844
882
  getUsage: () => Promise.resolve({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-backend-mockingbird",
3
- "version": "11.64.0-alpha.1",
3
+ "version": "11.64.0-alpha.3",
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.64.0-alpha.1",
29
- "@gooddata/sdk-model": "11.64.0-alpha.1",
30
- "@gooddata/util": "11.64.0-alpha.1",
31
- "@gooddata/sdk-backend-spi": "11.64.0-alpha.1"
28
+ "@gooddata/sdk-backend-base": "11.64.0-alpha.3",
29
+ "@gooddata/sdk-backend-spi": "11.64.0-alpha.3",
30
+ "@gooddata/sdk-model": "11.64.0-alpha.3",
31
+ "@gooddata/util": "11.64.0-alpha.3"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@microsoft/api-documenter": "7.30.16",
@@ -50,9 +50,9 @@
50
50
  "oxlint-tsgolint": "7.0.2001",
51
51
  "typescript": "7.0.2",
52
52
  "vitest": "5.0.4",
53
- "@gooddata/oxlint-config": "11.64.0-alpha.1",
54
- "@gooddata/reference-workspace": "11.64.0-alpha.1",
55
- "@gooddata/eslint-config": "11.64.0-alpha.1"
53
+ "@gooddata/eslint-config": "11.64.0-alpha.3",
54
+ "@gooddata/oxlint-config": "11.64.0-alpha.3",
55
+ "@gooddata/reference-workspace": "11.64.0-alpha.3"
56
56
  },
57
57
  "scripts": {
58
58
  "_phase:build": "npm run build",