@gooddata/sdk-backend-mockingbird 11.63.0-alpha.0 → 11.63.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,7 +1,7 @@
1
1
  // (C) 2019-2026 GoodData Corporation
2
2
  import { DummyChatConversations, DummySemanticSearchQueryBuilder, InMemoryPaging, } from "@gooddata/sdk-backend-base";
3
3
  import { NotSupported, UnexpectedResponseError, } from "@gooddata/sdk-backend-spi";
4
- import { BuiltInPublisherPageLayouts, areObjRefsEqual, idRef, isIdentifierRef, } from "@gooddata/sdk-model";
4
+ import { DefaultPublisherPageTemplates, areObjRefsEqual, idRef, isIdentifierRef, } from "@gooddata/sdk-model";
5
5
  import { createMockGeoService } from "../geoService.js";
6
6
  import { RecordedAttributeHierarchiesService } from "./attributeHierarchies.js";
7
7
  import { RecordedAttributes } from "./attributes.js";
@@ -458,24 +458,24 @@ function recordedWorkspace(workspace, recordings = {}, implConfig) {
458
458
  },
459
459
  publisher() {
460
460
  return {
461
- getPageLayouts: () => Promise.resolve([...BuiltInPublisherPageLayouts]),
462
- getPageLayout: (ref) => {
463
- const page = BuiltInPublisherPageLayouts.find((candidate) => areObjRefsEqual(candidate.ref, ref));
461
+ getPageTemplates: () => Promise.resolve([...DefaultPublisherPageTemplates]),
462
+ getPageTemplate: (ref) => {
463
+ const page = DefaultPublisherPageTemplates.find((candidate) => areObjRefsEqual(candidate.ref, ref));
464
464
  if (!page) {
465
465
  throw new UnexpectedResponseError("Report page not found", 404, {});
466
466
  }
467
467
  return Promise.resolve(page);
468
468
  },
469
- createPageLayout: (page) => Promise.resolve({ ...page, ref: idRef("recordedReportPage") }),
470
- updatePageLayout: (page) => {
471
- if (BuiltInPublisherPageLayouts.some((candidate) => areObjRefsEqual(candidate.ref, page.ref))) {
472
- throw new NotSupported("Built-in report page layouts cannot be updated.");
469
+ createPageTemplate: (page) => Promise.resolve({ ...page, ref: idRef("recordedReportPage") }),
470
+ updatePageTemplate: (page) => {
471
+ if (DefaultPublisherPageTemplates.some((candidate) => areObjRefsEqual(candidate.ref, page.ref))) {
472
+ throw new NotSupported("Default page templates cannot be updated.");
473
473
  }
474
474
  return Promise.resolve(page);
475
475
  },
476
- deletePageLayout: (ref) => {
477
- if (BuiltInPublisherPageLayouts.some((candidate) => areObjRefsEqual(candidate.ref, ref))) {
478
- throw new NotSupported("Built-in report page layouts cannot be deleted.");
476
+ deletePageTemplate: (ref) => {
477
+ if (DefaultPublisherPageTemplates.some((candidate) => areObjRefsEqual(candidate.ref, ref))) {
478
+ throw new NotSupported("Default page templates cannot be deleted.");
479
479
  }
480
480
  return Promise.resolve();
481
481
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-backend-mockingbird",
3
- "version": "11.63.0-alpha.0",
3
+ "version": "11.63.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.63.0-alpha.0",
29
- "@gooddata/sdk-model": "11.63.0-alpha.0",
30
- "@gooddata/util": "11.63.0-alpha.0",
31
- "@gooddata/sdk-backend-spi": "11.63.0-alpha.0"
28
+ "@gooddata/sdk-backend-base": "11.63.0-alpha.2",
29
+ "@gooddata/sdk-backend-spi": "11.63.0-alpha.2",
30
+ "@gooddata/util": "11.63.0-alpha.2",
31
+ "@gooddata/sdk-model": "11.63.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/eslint-config": "11.63.0-alpha.0",
54
- "@gooddata/oxlint-config": "11.63.0-alpha.0",
55
- "@gooddata/reference-workspace": "11.63.0-alpha.0"
53
+ "@gooddata/eslint-config": "11.63.0-alpha.2",
54
+ "@gooddata/oxlint-config": "11.63.0-alpha.2",
55
+ "@gooddata/reference-workspace": "11.63.0-alpha.2"
56
56
  },
57
57
  "scripts": {
58
58
  "_phase:build": "npm run build",