@gooddata/sdk-backend-base 11.68.0-alpha.10 → 11.68.0-alpha.12
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/NOTICE +11 -11
- package/esm/decoratedBackend/workspacePublisherV2.d.ts +2 -1
- package/esm/decoratedBackend/workspacePublisherV2.d.ts.map +1 -1
- package/esm/decoratedBackend/workspacePublisherV2.js +3 -0
- package/esm/dummyBackend/InMemoryPublisherDocumentsQueryV2.d.ts +22 -0
- package/esm/dummyBackend/InMemoryPublisherDocumentsQueryV2.d.ts.map +1 -0
- package/esm/dummyBackend/InMemoryPublisherDocumentsQueryV2.js +70 -0
- package/esm/dummyBackend/InMemoryWorkspacePublisherServiceV2.d.ts +2 -1
- package/esm/dummyBackend/InMemoryWorkspacePublisherServiceV2.d.ts.map +1 -1
- package/esm/dummyBackend/InMemoryWorkspacePublisherServiceV2.js +4 -0
- package/esm/sdk-backend-base.d.ts +3 -0
- package/package.json +7 -7
package/NOTICE
CHANGED
|
@@ -3,11 +3,11 @@ Copyright (c) 2017-2026 GoodData Corporation
|
|
|
3
3
|
This product includes a number of subcomponents with separate copyright notices and license terms below. Your use of these subcomponents is subject to the terms and conditions of the subcomponent's license. This GoodData project does not necessarily use all the open source software referred to below and may also only use portions of a given package. With respect to the open source software listed in this document, if you (i) have any questions, (ii) wish to receive source code for packages under licenses that require their source code to be made available (such as the GNU Lesser Public License), or (iii) discover any errors or omissions in the licensing information provided, please contact us at legal@gooddata.com. Please identify in source code requests: (i) the packages for which you are requesting corresponding source, (ii) the GoodData product (including any available version) with which the package was provided; and (iii) an email address (if available) or postal address at which GoodData may contact you.
|
|
4
4
|
|
|
5
5
|
--------------------------------------------------------------------------------
|
|
6
|
-
Attribution Notice for @gooddata/sdk-backend-base (11.68.0-alpha.
|
|
6
|
+
Attribution Notice for @gooddata/sdk-backend-base (11.68.0-alpha.12)
|
|
7
7
|
Package License: MIT
|
|
8
8
|
Own License File: LICENSE
|
|
9
|
-
Date generated: 2026-11-
|
|
10
|
-
Revision ID:
|
|
9
|
+
Date generated: 2026-11-11
|
|
10
|
+
Revision ID: dcb0869bf079d57a743488c12b4ca59e52b9dc57
|
|
11
11
|
|
|
12
12
|
This notice lists the components that @gooddata/sdk-backend-base depends on, directly or through other
|
|
13
13
|
packages, with the license and copyright information reported for each of them.
|
|
@@ -19,10 +19,10 @@ change those terms.
|
|
|
19
19
|
Dependencies
|
|
20
20
|
|
|
21
21
|
Local GoodData SDK components
|
|
22
|
-
- @gooddata/sdk-backend-spi (11.68.0-alpha.
|
|
23
|
-
- @gooddata/sdk-code-schemas (11.68.0-alpha.
|
|
24
|
-
- @gooddata/sdk-model (11.68.0-alpha.
|
|
25
|
-
- @gooddata/util (11.68.0-alpha.
|
|
22
|
+
- @gooddata/sdk-backend-spi (11.68.0-alpha.12) [MIT] — Direct
|
|
23
|
+
- @gooddata/sdk-code-schemas (11.68.0-alpha.12) [MIT] — Transitive
|
|
24
|
+
- @gooddata/sdk-model (11.68.0-alpha.12) [MIT] — Direct
|
|
25
|
+
- @gooddata/util (11.68.0-alpha.12) [MIT] — Direct
|
|
26
26
|
|
|
27
27
|
External components
|
|
28
28
|
- @braintree/sanitize-url (6.0.4) [MIT] — Direct
|
|
@@ -64,7 +64,7 @@ Local GoodData SDK components
|
|
|
64
64
|
================================================================================
|
|
65
65
|
|
|
66
66
|
--------------------------------------------------------------------------------
|
|
67
|
-
Package Title: @gooddata/sdk-backend-spi (11.68.0-alpha.
|
|
67
|
+
Package Title: @gooddata/sdk-backend-spi (11.68.0-alpha.12)
|
|
68
68
|
Package Source: Local workspace
|
|
69
69
|
Package Depth: Direct
|
|
70
70
|
--------------------------------------------------------------------------------
|
|
@@ -82,7 +82,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
82
82
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
83
83
|
|
|
84
84
|
--------------------------------------------------------------------------------
|
|
85
|
-
Package Title: @gooddata/sdk-code-schemas (11.68.0-alpha.
|
|
85
|
+
Package Title: @gooddata/sdk-code-schemas (11.68.0-alpha.12)
|
|
86
86
|
Package Source: Local workspace
|
|
87
87
|
Package Depth: Transitive
|
|
88
88
|
--------------------------------------------------------------------------------
|
|
@@ -112,7 +112,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
112
112
|
SOFTWARE.
|
|
113
113
|
|
|
114
114
|
--------------------------------------------------------------------------------
|
|
115
|
-
Package Title: @gooddata/sdk-model (11.68.0-alpha.
|
|
115
|
+
Package Title: @gooddata/sdk-model (11.68.0-alpha.12)
|
|
116
116
|
Package Source: Local workspace
|
|
117
117
|
Package Depth: Direct
|
|
118
118
|
--------------------------------------------------------------------------------
|
|
@@ -130,7 +130,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
130
130
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
131
131
|
|
|
132
132
|
--------------------------------------------------------------------------------
|
|
133
|
-
Package Title: @gooddata/util (11.68.0-alpha.
|
|
133
|
+
Package Title: @gooddata/util (11.68.0-alpha.12)
|
|
134
134
|
Package Source: Local workspace
|
|
135
135
|
Package Depth: Direct
|
|
136
136
|
--------------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IExportResult, type IPublisherDocumentExportPdfOptions, type IWorkspacePublisherServiceV2, type PublisherDocumentListItemV2 } from "@gooddata/sdk-backend-spi";
|
|
1
|
+
import { type IExportResult, type IPublisherDocumentExportPdfOptions, type IPublisherDocumentsQueryV2, type IWorkspacePublisherServiceV2, type PublisherDocumentListItemV2 } from "@gooddata/sdk-backend-spi";
|
|
2
2
|
import { type IPublisherDocumentDefinitionV2, type IPublisherDocumentTemplateDefinitionV2, type IPublisherDocumentTemplateV2, type IPublisherDocumentV2, type IPublisherPageTemplateDefinitionV2, type IPublisherPageTemplateV2, type ObjRef } from "@gooddata/sdk-model";
|
|
3
3
|
/**
|
|
4
4
|
* Base class for content version 2 publisher-service decorators. Delegates every method of the decorated
|
|
@@ -20,6 +20,7 @@ export declare abstract class DecoratedWorkspacePublisherServiceV2 implements IW
|
|
|
20
20
|
updateDocumentTemplate(template: IPublisherDocumentTemplateV2): Promise<IPublisherDocumentTemplateV2>;
|
|
21
21
|
deleteDocumentTemplate(ref: ObjRef): Promise<void>;
|
|
22
22
|
getDocuments(): Promise<PublisherDocumentListItemV2[]>;
|
|
23
|
+
getDocumentsQuery(): IPublisherDocumentsQueryV2;
|
|
23
24
|
getDocument(ref: ObjRef): Promise<IPublisherDocumentV2>;
|
|
24
25
|
createDocument(publisherDocument: IPublisherDocumentDefinitionV2): Promise<IPublisherDocumentV2>;
|
|
25
26
|
updateDocument(publisherDocument: IPublisherDocumentV2): Promise<IPublisherDocumentV2>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,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
|
return this.decorated.getDocuments();
|
|
45
45
|
}
|
|
46
|
+
getDocumentsQuery() {
|
|
47
|
+
return this.decorated.getDocumentsQuery();
|
|
48
|
+
}
|
|
46
49
|
getDocument(ref) {
|
|
47
50
|
return this.decorated.getDocument(ref);
|
|
48
51
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type IFilterBaseOptions, type IPublisherDocumentsQueryResultV2, type IPublisherDocumentsQueryV2 } from "@gooddata/sdk-backend-spi";
|
|
2
|
+
import { type IPublisherDocumentV2 } from "@gooddata/sdk-model";
|
|
3
|
+
/**
|
|
4
|
+
* Pages over the documents of {@link InMemoryWorkspacePublisherServiceV2}. Filters by id, tags and the
|
|
5
|
+
* title; ignores the user filters, the origin and the sorting.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare class InMemoryPublisherDocumentsQueryV2 implements IPublisherDocumentsQueryV2 {
|
|
10
|
+
private readonly documents;
|
|
11
|
+
private size;
|
|
12
|
+
private page;
|
|
13
|
+
private filter;
|
|
14
|
+
constructor(documents: () => IPublisherDocumentV2[]);
|
|
15
|
+
withSize(size: number): IPublisherDocumentsQueryV2;
|
|
16
|
+
withPage(page: number): IPublisherDocumentsQueryV2;
|
|
17
|
+
withFilter(filter: IFilterBaseOptions): IPublisherDocumentsQueryV2;
|
|
18
|
+
withSorting(_sort: string[]): IPublisherDocumentsQueryV2;
|
|
19
|
+
withOrigin(_origin: string): IPublisherDocumentsQueryV2;
|
|
20
|
+
query(): Promise<IPublisherDocumentsQueryResultV2>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=InMemoryPublisherDocumentsQueryV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InMemoryPublisherDocumentsQueryV2.d.ts","sourceRoot":"","sources":["../../src/dummyBackend/InMemoryPublisherDocumentsQueryV2.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,kBAAkB,EAEvB,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAClC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,oBAAoB,EAAmB,MAAM,qBAAqB,CAAC;AAoCjF;;;;;GAKG;AACH,qBAAa,iCAAkC,YAAW,0BAA0B;IAKpE,OAAO,CAAC,QAAQ,CAAC,SAAS;IAJtC,OAAO,CAAC,IAAI,CAAM;IAClB,OAAO,CAAC,IAAI,CAAK;IACjB,OAAO,CAAC,MAAM,CAA0B;IAExC,YAA6B,SAAS,EAAE,MAAM,oBAAoB,EAAE,EAAI;IAEjE,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,0BAA0B,CAGxD;IAEM,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,0BAA0B,CAGxD;IAEM,UAAU,CAAC,MAAM,EAAE,kBAAkB,GAAG,0BAA0B,CAGxE;IAEM,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,0BAA0B,CAE9D;IAEM,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,0BAA0B,CAE7D;IAEY,KAAK,IAAI,OAAO,CAAC,gCAAgC,CAAC,CAK9D;CACJ"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
import { isIdentifierRef } from "@gooddata/sdk-model";
|
|
3
|
+
import { InMemoryPaging } from "../toolkit/paging.js";
|
|
4
|
+
function documentId(document) {
|
|
5
|
+
return isIdentifierRef(document.ref) ? document.ref.identifier : undefined;
|
|
6
|
+
}
|
|
7
|
+
function matches(document, filter) {
|
|
8
|
+
const id = documentId(document);
|
|
9
|
+
const tags = document.tags ?? [];
|
|
10
|
+
const search = filter.search?.toLowerCase();
|
|
11
|
+
if (filter.isHidden || filter.certification) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
if (filter.id && (id === undefined || !filter.id.includes(id))) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
if (filter.excludeId && id !== undefined && filter.excludeId.includes(id)) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
if (filter.tags?.length && !filter.tags.some((tag) => tags.includes(tag))) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
if (filter.excludeTags?.some((tag) => tags.includes(tag))) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
return !search || document.title.toLowerCase().includes(search);
|
|
27
|
+
}
|
|
28
|
+
function toSummary(document) {
|
|
29
|
+
const { ref, title, description, tags, version, isLocked, created, updated, createdBy, updatedBy } = document;
|
|
30
|
+
return { ref, title, description, tags, version, isLocked, created, updated, createdBy, updatedBy };
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Pages over the documents of {@link InMemoryWorkspacePublisherServiceV2}. Filters by id, tags and the
|
|
34
|
+
* title; ignores the user filters, the origin and the sorting.
|
|
35
|
+
*
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
export class InMemoryPublisherDocumentsQueryV2 {
|
|
39
|
+
documents;
|
|
40
|
+
size = 50;
|
|
41
|
+
page = 0;
|
|
42
|
+
filter = {};
|
|
43
|
+
constructor(documents) {
|
|
44
|
+
this.documents = documents;
|
|
45
|
+
}
|
|
46
|
+
withSize(size) {
|
|
47
|
+
this.size = size;
|
|
48
|
+
return this;
|
|
49
|
+
}
|
|
50
|
+
withPage(page) {
|
|
51
|
+
this.page = page;
|
|
52
|
+
return this;
|
|
53
|
+
}
|
|
54
|
+
withFilter(filter) {
|
|
55
|
+
this.filter = filter;
|
|
56
|
+
return this;
|
|
57
|
+
}
|
|
58
|
+
withSorting(_sort) {
|
|
59
|
+
return this;
|
|
60
|
+
}
|
|
61
|
+
withOrigin(_origin) {
|
|
62
|
+
return this;
|
|
63
|
+
}
|
|
64
|
+
async query() {
|
|
65
|
+
const summaries = this.documents()
|
|
66
|
+
.filter((document) => matches(document, this.filter))
|
|
67
|
+
.map(toSummary);
|
|
68
|
+
return new InMemoryPaging(summaries, this.size, this.page * this.size);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IExportResult, type IPublisherDocumentExportPdfOptions, type IWorkspacePublisherServiceV2, type PublisherDocumentListItemV2 } from "@gooddata/sdk-backend-spi";
|
|
1
|
+
import { type IExportResult, type IPublisherDocumentExportPdfOptions, type IPublisherDocumentsQueryV2, type IWorkspacePublisherServiceV2, type PublisherDocumentListItemV2 } from "@gooddata/sdk-backend-spi";
|
|
2
2
|
import { type IPublisherDocumentDefinitionV2, type IPublisherDocumentTemplateDefinitionV2, type IPublisherDocumentTemplateV2, type IPublisherDocumentV2, type IPublisherPageTemplateDefinitionV2, type IPublisherPageTemplateV2, type ObjRef } from "@gooddata/sdk-model";
|
|
3
3
|
/**
|
|
4
4
|
* In-memory implementation of the content version 2 publisher service.
|
|
@@ -25,6 +25,7 @@ export declare class InMemoryWorkspacePublisherServiceV2 implements IWorkspacePu
|
|
|
25
25
|
updateDocumentTemplate(template: IPublisherDocumentTemplateV2): Promise<IPublisherDocumentTemplateV2>;
|
|
26
26
|
deleteDocumentTemplate(ref: ObjRef): Promise<void>;
|
|
27
27
|
getDocuments(): Promise<PublisherDocumentListItemV2[]>;
|
|
28
|
+
getDocumentsQuery(): IPublisherDocumentsQueryV2;
|
|
28
29
|
getDocument(ref: ObjRef): Promise<IPublisherDocumentV2>;
|
|
29
30
|
createDocument(publisherDocument: IPublisherDocumentDefinitionV2): Promise<IPublisherDocumentV2>;
|
|
30
31
|
updateDocument(publisherDocument: IPublisherDocumentV2): Promise<IPublisherDocumentV2>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InMemoryWorkspacePublisherServiceV2.d.ts","sourceRoot":"","sources":["../../src/dummyBackend/InMemoryWorkspacePublisherServiceV2.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,kCAAkC,EACvC,KAAK,4BAA4B,EAEjC,KAAK,2B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Y,oBAAoB,IAAI,OAAO,CAAC,4BAA4B,EAAE,CAAC,CAE3E;IAEY,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAEnF;IAEY,sBAAsB,CAC/B,QAAQ,EAAE,sCAAsC,GACjD,OAAO,CAAC,4BAA4B,CAAC,CAMvC;IAEY,sBAAsB,CAC/B,QAAQ,EAAE,4BAA4B,GACvC,OAAO,CAAC,4BAA4B,CAAC,CAGvC;IAEY,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE9D;IAEY,YAAY,IAAI,OAAO,CAAC,2BAA2B,EAAE,CAAC,CAElE;IAEM,iBAAiB,IAAI,0BAA0B,CAErD;IAEY,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAEnE;IAEY,cAAc,CACvB,iBAAiB,EAAE,8BAA8B,GAClD,OAAO,CAAC,oBAAoB,CAAC,CAM/B;IAEY,cAAc,CAAC,iBAAiB,EAAE,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAGlG;IAEY,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEtD;IAEY,mBAAmB,CAC5B,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,kCAAkC,GAC9C,OAAO,CAAC,aAAa,CAAC,CAExB;CACJ"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
import { NotSupported, assertPublisherEntitySupportedV2, } from "@gooddata/sdk-backend-spi";
|
|
3
|
+
import { InMemoryPublisherDocumentsQueryV2 } from "./InMemoryPublisherDocumentsQueryV2.js";
|
|
3
4
|
import { InMemoryPublisherStore } from "./inMemoryPublisherStore.js";
|
|
4
5
|
function withoutIsDefault(template) {
|
|
5
6
|
const { isDefault: _, ...rest } = template;
|
|
@@ -62,6 +63,9 @@ export class InMemoryWorkspacePublisherServiceV2 {
|
|
|
62
63
|
async getDocuments() {
|
|
63
64
|
return this.documents.list().map((document) => ({ supported: true, document }));
|
|
64
65
|
}
|
|
66
|
+
getDocumentsQuery() {
|
|
67
|
+
return new InMemoryPublisherDocumentsQueryV2(() => this.documents.list());
|
|
68
|
+
}
|
|
65
69
|
async getDocument(ref) {
|
|
66
70
|
return this.documents.get(ref);
|
|
67
71
|
}
|
|
@@ -145,6 +145,7 @@ import { IPreparedExecutionOptions } from '@gooddata/sdk-backend-spi';
|
|
|
145
145
|
import { IPublisherDocumentDefinitionV1 } from '@gooddata/sdk-model';
|
|
146
146
|
import { IPublisherDocumentDefinitionV2 } from '@gooddata/sdk-model';
|
|
147
147
|
import { IPublisherDocumentExportPdfOptions } from '@gooddata/sdk-backend-spi';
|
|
148
|
+
import { IPublisherDocumentsQueryV2 } from '@gooddata/sdk-backend-spi';
|
|
148
149
|
import { IPublisherDocumentTemplateDefinitionV1 } from '@gooddata/sdk-model';
|
|
149
150
|
import { IPublisherDocumentTemplateDefinitionV2 } from '@gooddata/sdk-model';
|
|
150
151
|
import { IPublisherDocumentTemplateV1 } from '@gooddata/sdk-model';
|
|
@@ -1543,6 +1544,7 @@ export declare abstract class DecoratedWorkspacePublisherServiceV2 implements IW
|
|
|
1543
1544
|
updateDocumentTemplate(template: IPublisherDocumentTemplateV2): Promise<IPublisherDocumentTemplateV2>;
|
|
1544
1545
|
deleteDocumentTemplate(ref: ObjRef): Promise<void>;
|
|
1545
1546
|
getDocuments(): Promise<PublisherDocumentListItemV2[]>;
|
|
1547
|
+
getDocumentsQuery(): IPublisherDocumentsQueryV2;
|
|
1546
1548
|
getDocument(ref: ObjRef): Promise<IPublisherDocumentV2>;
|
|
1547
1549
|
createDocument(publisherDocument: IPublisherDocumentDefinitionV2): Promise<IPublisherDocumentV2>;
|
|
1548
1550
|
updateDocument(publisherDocument: IPublisherDocumentV2): Promise<IPublisherDocumentV2>;
|
|
@@ -2095,6 +2097,7 @@ export declare class InMemoryWorkspacePublisherServiceV2 implements IWorkspacePu
|
|
|
2095
2097
|
updateDocumentTemplate(template: IPublisherDocumentTemplateV2): Promise<IPublisherDocumentTemplateV2>;
|
|
2096
2098
|
deleteDocumentTemplate(ref: ObjRef): Promise<void>;
|
|
2097
2099
|
getDocuments(): Promise<PublisherDocumentListItemV2[]>;
|
|
2100
|
+
getDocumentsQuery(): IPublisherDocumentsQueryV2;
|
|
2098
2101
|
getDocument(ref: ObjRef): Promise<IPublisherDocumentV2>;
|
|
2099
2102
|
createDocument(publisherDocument: IPublisherDocumentDefinitionV2): Promise<IPublisherDocumentV2>;
|
|
2100
2103
|
updateDocument(publisherDocument: IPublisherDocumentV2): Promise<IPublisherDocumentV2>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-backend-base",
|
|
3
|
-
"version": "11.68.0-alpha.
|
|
3
|
+
"version": "11.68.0-alpha.12",
|
|
4
4
|
"description": "GoodData.UI SDK - Base for backend implementations",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"ts-invariant": "0.10.3",
|
|
31
31
|
"tslib": "2.8.1",
|
|
32
32
|
"uuid": "11.1.1",
|
|
33
|
-
"@gooddata/sdk-backend-spi": "11.68.0-alpha.
|
|
34
|
-
"@gooddata/
|
|
35
|
-
"@gooddata/
|
|
33
|
+
"@gooddata/sdk-backend-spi": "11.68.0-alpha.12",
|
|
34
|
+
"@gooddata/sdk-model": "11.68.0-alpha.12",
|
|
35
|
+
"@gooddata/util": "11.68.0-alpha.12"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@microsoft/api-documenter": "7.30.20",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"oxlint-tsgolint": "7.0.2001",
|
|
57
57
|
"typescript": "7.0.2",
|
|
58
58
|
"vitest": "5.0.4",
|
|
59
|
-
"@gooddata/oxlint-config": "11.68.0-alpha.
|
|
60
|
-
"@gooddata/
|
|
61
|
-
"@gooddata/
|
|
59
|
+
"@gooddata/oxlint-config": "11.68.0-alpha.12",
|
|
60
|
+
"@gooddata/reference-workspace": "11.68.0-alpha.12",
|
|
61
|
+
"@gooddata/eslint-config": "11.68.0-alpha.12"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"_phase:build": "npm run build",
|