@gooddata/sdk-backend-mockingbird 11.64.0-alpha.0 → 11.64.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.
|
@@ -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;
|
|
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"}
|
|
@@ -101,7 +101,7 @@ export function recordedBackend(index, config = defaultConfig, capabilities = de
|
|
|
101
101
|
return recordedEntitlements();
|
|
102
102
|
},
|
|
103
103
|
dataSources() {
|
|
104
|
-
|
|
104
|
+
return recordedDataSourcesService();
|
|
105
105
|
},
|
|
106
106
|
geo() {
|
|
107
107
|
return geoService;
|
|
@@ -503,6 +503,9 @@ function recordedWorkspace(workspace, recordings = {}, implConfig) {
|
|
|
503
503
|
localization() {
|
|
504
504
|
return recordedLocalizationService();
|
|
505
505
|
},
|
|
506
|
+
delete() {
|
|
507
|
+
return Promise.resolve();
|
|
508
|
+
},
|
|
506
509
|
};
|
|
507
510
|
}
|
|
508
511
|
function recordedEntitlements() {
|
|
@@ -717,6 +720,7 @@ function recordedOrganization(organizationId, implConfig) {
|
|
|
717
720
|
removeUsersFromUserGroups: () => Promise.resolve(),
|
|
718
721
|
updateUser: () => Promise.resolve(),
|
|
719
722
|
updateUserGroup: () => Promise.resolve(),
|
|
723
|
+
inviteUser: () => Promise.resolve(),
|
|
720
724
|
};
|
|
721
725
|
},
|
|
722
726
|
automations: () => {
|
|
@@ -818,11 +822,48 @@ function recordedOrganization(organizationId, implConfig) {
|
|
|
818
822
|
delete: () => Promise.resolve(),
|
|
819
823
|
};
|
|
820
824
|
},
|
|
825
|
+
cspDirectives() {
|
|
826
|
+
return {
|
|
827
|
+
getAll: () => Promise.resolve([]),
|
|
828
|
+
get: (id) => Promise.resolve({ id, sources: [] }),
|
|
829
|
+
create: (directive) => Promise.resolve(directive),
|
|
830
|
+
update: (directive) => Promise.resolve(directive),
|
|
831
|
+
delete: () => Promise.resolve(),
|
|
832
|
+
};
|
|
833
|
+
},
|
|
834
|
+
getPlatformUsage() {
|
|
835
|
+
return Promise.resolve([]);
|
|
836
|
+
},
|
|
821
837
|
localization() {
|
|
822
838
|
return recordedLocalizationService();
|
|
823
839
|
},
|
|
824
840
|
};
|
|
825
841
|
}
|
|
842
|
+
function recordedDataSourcesService() {
|
|
843
|
+
return {
|
|
844
|
+
getDataSourceIdentifiers: () => Promise.resolve([]),
|
|
845
|
+
getDataSources: () => Promise.resolve([]),
|
|
846
|
+
hasDataSources: () => Promise.resolve(false),
|
|
847
|
+
getDataSource: () => Promise.reject(new NotSupported("not supported")),
|
|
848
|
+
createDataSource: ({ id, name, schema, type }) => Promise.resolve({ id, name, schema, type }),
|
|
849
|
+
updateDataSource: (_id, { id, name, schema, type }) => Promise.resolve({ id, name, schema, type }),
|
|
850
|
+
patchDataSource: () => Promise.reject(new NotSupported("not supported")),
|
|
851
|
+
deleteDataSource: () => Promise.resolve(),
|
|
852
|
+
testConnection: () => Promise.resolve({ successful: true }),
|
|
853
|
+
getSchemata: () => Promise.resolve([]),
|
|
854
|
+
registerUploadNotification: () => Promise.resolve(),
|
|
855
|
+
files: () => ({
|
|
856
|
+
upload: () => Promise.resolve(""),
|
|
857
|
+
analyzeCsv: () => Promise.resolve([]),
|
|
858
|
+
importCsv: () => Promise.resolve([]),
|
|
859
|
+
analyzeSav: () => Promise.resolve([]),
|
|
860
|
+
importSav: () => Promise.resolve([]),
|
|
861
|
+
getFiles: () => Promise.resolve([]),
|
|
862
|
+
deleteFiles: () => Promise.resolve(),
|
|
863
|
+
getCsvManifests: () => Promise.resolve([]),
|
|
864
|
+
}),
|
|
865
|
+
};
|
|
866
|
+
}
|
|
826
867
|
function recordedLocalizationService() {
|
|
827
868
|
return {
|
|
828
869
|
getUsage: () => Promise.resolve({
|
|
@@ -866,6 +907,13 @@ function recordedUserService(implConfig) {
|
|
|
866
907
|
lastName: "",
|
|
867
908
|
});
|
|
868
909
|
},
|
|
910
|
+
apiTokens() {
|
|
911
|
+
return {
|
|
912
|
+
getAll: () => Promise.resolve([]),
|
|
913
|
+
create: (id) => Promise.resolve({ id, bearerToken: "" }),
|
|
914
|
+
delete: () => Promise.resolve(),
|
|
915
|
+
};
|
|
916
|
+
},
|
|
869
917
|
settings() {
|
|
870
918
|
return {
|
|
871
919
|
getSettings: async () => 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.
|
|
3
|
+
"version": "11.64.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-
|
|
29
|
-
"@gooddata/
|
|
30
|
-
"@gooddata/sdk-
|
|
31
|
-
"@gooddata/
|
|
28
|
+
"@gooddata/sdk-backend-spi": "11.64.0-alpha.2",
|
|
29
|
+
"@gooddata/util": "11.64.0-alpha.2",
|
|
30
|
+
"@gooddata/sdk-model": "11.64.0-alpha.2",
|
|
31
|
+
"@gooddata/sdk-backend-base": "11.64.0-alpha.2"
|
|
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/
|
|
54
|
-
"@gooddata/
|
|
55
|
-
"@gooddata/reference-workspace": "11.64.0-alpha.
|
|
53
|
+
"@gooddata/eslint-config": "11.64.0-alpha.2",
|
|
54
|
+
"@gooddata/oxlint-config": "11.64.0-alpha.2",
|
|
55
|
+
"@gooddata/reference-workspace": "11.64.0-alpha.2"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"_phase:build": "npm run build",
|