@gooddata/sdk-backend-base 11.41.0-alpha.0 → 11.41.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,4 +1,4 @@
1
- import { type IOrganization, type IOrganizationAgentsService, type IOrganizationAutomationService, type IOrganizationExportTemplatesService, type IOrganizationGenAIService, type IOrganizationLlmProvidersService, type IOrganizationNotificationChannelService, type IOrganizationNotificationService, type IOrganizationPermissionService, type IOrganizationSettingsService, type IOrganizationStylingService, type IOrganizationUserService, type ISecuritySettingsService } from "@gooddata/sdk-backend-spi";
1
+ import { type IOrganization, type IOrganizationAgentsService, type IOrganizationAutomationService, type IOrganizationExportTemplatesService, type IOrganizationGenAIService, type IOrganizationIpAllowlistService, type IOrganizationLlmProvidersService, type IOrganizationNotificationChannelService, type IOrganizationNotificationService, type IOrganizationPermissionService, type IOrganizationSettingsService, type IOrganizationStylingService, type IOrganizationUserService, type ISecuritySettingsService } from "@gooddata/sdk-backend-spi";
2
2
  import { type IOrganizationDescriptor, type IOrganizationDescriptorUpdate } from "@gooddata/sdk-model";
3
3
  import { type DecoratorFactories } from "./types.js";
4
4
  export declare class OrganizationDecorator implements IOrganization {
@@ -20,4 +20,5 @@ export declare class OrganizationDecorator implements IOrganization {
20
20
  agents(): IOrganizationAgentsService;
21
21
  genAI(): IOrganizationGenAIService;
22
22
  exportTemplates(): IOrganizationExportTemplatesService;
23
+ ipAllowlists(): IOrganizationIpAllowlistService;
23
24
  }
@@ -58,4 +58,7 @@ export class OrganizationDecorator {
58
58
  }
59
59
  return this.decorated.exportTemplates();
60
60
  }
61
+ ipAllowlists() {
62
+ return this.decorated.ipAllowlists();
63
+ }
61
64
  }
@@ -897,6 +897,9 @@ class DummyOrganization {
897
897
  getKnowledgeDocuments: () => {
898
898
  throw new NotSupported("not supported");
899
899
  },
900
+ getObservability: () => {
901
+ throw new NotSupported("not supported");
902
+ },
900
903
  };
901
904
  }
902
905
  exportTemplates() {
@@ -904,6 +907,22 @@ class DummyOrganization {
904
907
  getExportTemplates: () => Promise.resolve([]),
905
908
  };
906
909
  }
910
+ ipAllowlists() {
911
+ const echo = (definition) => ({
912
+ id: definition.id,
913
+ allowedSources: definition.allowedSources,
914
+ userIds: definition.userIds,
915
+ userGroupIds: definition.userGroupIds,
916
+ users: definition.userIds.map((id) => ({ id })),
917
+ userGroups: definition.userGroupIds.map((id) => ({ id })),
918
+ });
919
+ return {
920
+ getAll: () => Promise.resolve([]),
921
+ create: (definition) => Promise.resolve(echo(definition)),
922
+ update: (definition) => Promise.resolve(echo(definition)),
923
+ delete: () => Promise.resolve(),
924
+ };
925
+ }
907
926
  }
908
927
  class DummyWorkspaceSettingsService {
909
928
  workspace;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-backend-base",
3
- "version": "11.41.0-alpha.0",
3
+ "version": "11.41.0-alpha.2",
4
4
  "description": "GoodData.UI SDK - Base for backend implementations",
5
5
  "license": "MIT",
6
6
  "author": "GoodData",
@@ -29,9 +29,9 @@
29
29
  "ts-invariant": "0.10.3",
30
30
  "tslib": "2.8.1",
31
31
  "uuid": "11.1.0",
32
- "@gooddata/sdk-backend-spi": "11.41.0-alpha.0",
33
- "@gooddata/util": "11.41.0-alpha.0",
34
- "@gooddata/sdk-model": "11.41.0-alpha.0"
32
+ "@gooddata/sdk-model": "11.41.0-alpha.2",
33
+ "@gooddata/util": "11.41.0-alpha.2",
34
+ "@gooddata/sdk-backend-spi": "11.41.0-alpha.2"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@microsoft/api-documenter": "^7.17.0",
@@ -56,9 +56,9 @@
56
56
  "oxlint-tsgolint": "0.15.0",
57
57
  "typescript": "5.9.3",
58
58
  "vitest": "4.1.8",
59
- "@gooddata/oxlint-config": "11.41.0-alpha.0",
60
- "@gooddata/reference-workspace": "11.41.0-alpha.0",
61
- "@gooddata/eslint-config": "11.41.0-alpha.0"
59
+ "@gooddata/eslint-config": "11.41.0-alpha.2",
60
+ "@gooddata/oxlint-config": "11.41.0-alpha.2",
61
+ "@gooddata/reference-workspace": "11.41.0-alpha.2"
62
62
  },
63
63
  "scripts": {
64
64
  "_phase:build": "npm run build",