@gooddata/sdk-backend-base 11.69.0 → 11.70.0-alpha.1
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 +9 -9
- 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 +2 -1
- package/esm/dummyBackend/InMemoryPublisherDocumentsQueryV2.d.ts.map +1 -1
- package/esm/dummyBackend/InMemoryPublisherDocumentsQueryV2.js +1 -1
- package/esm/dummyBackend/InMemoryWorkspacePublisherServiceV2.d.ts +2 -1
- package/esm/dummyBackend/InMemoryWorkspacePublisherServiceV2.d.ts.map +1 -1
- package/esm/dummyBackend/InMemoryWorkspacePublisherServiceV2.js +10 -1
- package/esm/sdk-backend-base.d.ts +4 -0
- package/package.json +7 -7
package/NOTICE
CHANGED
|
@@ -3,7 +3,7 @@ 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.
|
|
6
|
+
Attribution Notice for @gooddata/sdk-backend-base (11.70.0-alpha.1)
|
|
7
7
|
Package License: MIT
|
|
8
8
|
Own License File: LICENSE
|
|
9
9
|
Date generated: 2026-11-18
|
|
@@ -19,10 +19,10 @@ change those terms.
|
|
|
19
19
|
Dependencies
|
|
20
20
|
|
|
21
21
|
Local GoodData SDK components
|
|
22
|
-
- @gooddata/sdk-backend-spi (11.
|
|
23
|
-
- @gooddata/sdk-code-schemas (11.
|
|
24
|
-
- @gooddata/sdk-model (11.
|
|
25
|
-
- @gooddata/util (11.
|
|
22
|
+
- @gooddata/sdk-backend-spi (11.70.0-alpha.1) [MIT] — Direct
|
|
23
|
+
- @gooddata/sdk-code-schemas (11.70.0-alpha.1) [MIT] — Transitive
|
|
24
|
+
- @gooddata/sdk-model (11.70.0-alpha.1) [MIT] — Direct
|
|
25
|
+
- @gooddata/util (11.70.0-alpha.1) [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.
|
|
67
|
+
Package Title: @gooddata/sdk-backend-spi (11.70.0-alpha.1)
|
|
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.
|
|
85
|
+
Package Title: @gooddata/sdk-code-schemas (11.70.0-alpha.1)
|
|
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.
|
|
115
|
+
Package Title: @gooddata/sdk-model (11.70.0-alpha.1)
|
|
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.
|
|
133
|
+
Package Title: @gooddata/util (11.70.0-alpha.1)
|
|
134
134
|
Package Source: Local workspace
|
|
135
135
|
Package Depth: Direct
|
|
136
136
|
--------------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IExportResult, type IPublisherDocumentExportPdfOptions, type IPublisherDocumentsQueryV2, type IWorkspacePublisherServiceV2, type PublisherDocumentListItemV2 } from "@gooddata/sdk-backend-spi";
|
|
1
|
+
import { type IExportResult, type IPublisherDocumentExportPdfOptions, type IPublisherDocumentMetaV2, type IPublisherDocumentSummaryV2, 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
|
|
@@ -24,6 +24,7 @@ export declare abstract class DecoratedWorkspacePublisherServiceV2 implements IW
|
|
|
24
24
|
getDocument(ref: ObjRef): Promise<IPublisherDocumentV2>;
|
|
25
25
|
createDocument(publisherDocument: IPublisherDocumentDefinitionV2): Promise<IPublisherDocumentV2>;
|
|
26
26
|
updateDocument(publisherDocument: IPublisherDocumentV2): Promise<IPublisherDocumentV2>;
|
|
27
|
+
updateDocumentMeta(meta: IPublisherDocumentMetaV2): Promise<IPublisherDocumentSummaryV2>;
|
|
27
28
|
deleteDocument(ref: ObjRef): Promise<void>;
|
|
28
29
|
exportDocumentToPdf(ref: ObjRef, options?: IPublisherDocumentExportPdfOptions): Promise<IExportResult>;
|
|
29
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspacePublisherV2.d.ts","sourceRoot":"","sources":["../../src/decoratedBackend/workspacePublisherV2.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,kCAAkC,EACvC,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EACnC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,KA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+
updateDocumentMeta(meta) {
|
|
59
|
+
return this.decorated.updateDocumentMeta(meta);
|
|
60
|
+
}
|
|
58
61
|
deleteDocument(ref) {
|
|
59
62
|
return this.decorated.deleteDocument(ref);
|
|
60
63
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type IFilterBaseOptions, type IPublisherDocumentsQueryResultV2, type IPublisherDocumentsQueryV2, type QueryMethod } from "@gooddata/sdk-backend-spi";
|
|
1
|
+
import { type IFilterBaseOptions, type IPublisherDocumentSummaryV2, type IPublisherDocumentsQueryResultV2, type IPublisherDocumentsQueryV2, type QueryMethod } from "@gooddata/sdk-backend-spi";
|
|
2
2
|
import { type IPublisherDocumentV2 } from "@gooddata/sdk-model";
|
|
3
|
+
export declare function toSummary(document: IPublisherDocumentV2): IPublisherDocumentSummaryV2;
|
|
3
4
|
/**
|
|
4
5
|
* Pages over the documents of {@link InMemoryWorkspacePublisherServiceV2}. Filters by id, tags and the
|
|
5
6
|
* title; ignores the user filters, the origin and the sorting.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InMemoryPublisherDocumentsQueryV2.d.ts","sourceRoot":"","sources":["../../src/dummyBackend/InMemoryPublisherDocumentsQueryV2.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,kBAAkB,
|
|
1
|
+
{"version":3,"file":"InMemoryPublisherDocumentsQueryV2.d.ts","sourceRoot":"","sources":["../../src/dummyBackend/InMemoryPublisherDocumentsQueryV2.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAC/B,KAAK,WAAW,EACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,oBAAoB,EAAmB,MAAM,qBAAqB,CAAC;AA8BjF,wBAAgB,SAAS,CAAC,QAAQ,EAAE,oBAAoB,GAAG,2BAA2B,CAIrF;AAED;;;;;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;IAEM,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,0BAA0B,CAElE;IAEY,KAAK,IAAI,OAAO,CAAC,gCAAgC,CAAC,CAK9D;CACJ"}
|
|
@@ -25,7 +25,7 @@ function matches(document, filter) {
|
|
|
25
25
|
}
|
|
26
26
|
return !search || document.title.toLowerCase().includes(search);
|
|
27
27
|
}
|
|
28
|
-
function toSummary(document) {
|
|
28
|
+
export function toSummary(document) {
|
|
29
29
|
const { ref, title, description, tags, version, isLocked, created, updated, createdBy, updatedBy } = document;
|
|
30
30
|
return { ref, title, description, tags, version, isLocked, created, updated, createdBy, updatedBy };
|
|
31
31
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IExportResult, type IPublisherDocumentExportPdfOptions, type IPublisherDocumentsQueryV2, type IWorkspacePublisherServiceV2, type PublisherDocumentListItemV2 } from "@gooddata/sdk-backend-spi";
|
|
1
|
+
import { type IExportResult, type IPublisherDocumentExportPdfOptions, type IPublisherDocumentMetaV2, type IPublisherDocumentSummaryV2, 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.
|
|
@@ -29,6 +29,7 @@ export declare class InMemoryWorkspacePublisherServiceV2 implements IWorkspacePu
|
|
|
29
29
|
getDocument(ref: ObjRef): Promise<IPublisherDocumentV2>;
|
|
30
30
|
createDocument(publisherDocument: IPublisherDocumentDefinitionV2): Promise<IPublisherDocumentV2>;
|
|
31
31
|
updateDocument(publisherDocument: IPublisherDocumentV2): Promise<IPublisherDocumentV2>;
|
|
32
|
+
updateDocumentMeta({ ref, title, description, tags, }: IPublisherDocumentMetaV2): Promise<IPublisherDocumentSummaryV2>;
|
|
32
33
|
deleteDocument(ref: ObjRef): Promise<void>;
|
|
33
34
|
exportDocumentToPdf(_ref: ObjRef, _options?: IPublisherDocumentExportPdfOptions): Promise<IExportResult>;
|
|
34
35
|
}
|
|
@@ -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,0BAA0B,EAC/B,KAAK,4BAA4B,EAEjC,KAAK,2BAA2B,EAEnC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,KAAK,8BAA8B,EACnC,KAAK,sCAAsC,EAC3C,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EACzB,KAAK,kCAAkC,EACvC,KAAK,wBAAwB,EAC7B,KAAK,MAAM,EACd,MAAM,qBAAqB,CAAC;AAY7B;;;;;;;;;GASG;AACH,qBAAa,mCAAoC,YAAW,4BAA4B;IACpF,OAAO,CAAC,Q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,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,kBAAkB,CAAC,EAC5B,GAAG,EACH,KAAK,EACL,WAAW,EACX,IAAI,GACP,EAAE,wBAAwB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAUjE;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,6 +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
|
+
import { InMemoryPublisherDocumentsQueryV2, toSummary } from "./InMemoryPublisherDocumentsQueryV2.js";
|
|
4
4
|
import { InMemoryPublisherStore } from "./inMemoryPublisherStore.js";
|
|
5
5
|
function withoutIsDefault(template) {
|
|
6
6
|
const { isDefault: _, ...rest } = template;
|
|
@@ -80,6 +80,15 @@ export class InMemoryWorkspacePublisherServiceV2 {
|
|
|
80
80
|
assertPublisherEntitySupportedV2(publisherDocument);
|
|
81
81
|
return this.documents.replace(publisherDocument);
|
|
82
82
|
}
|
|
83
|
+
async updateDocumentMeta({ ref, title, description, tags, }) {
|
|
84
|
+
const stored = this.documents.get(ref);
|
|
85
|
+
return toSummary(this.documents.replace({
|
|
86
|
+
...stored,
|
|
87
|
+
...(title === undefined ? {} : { title }),
|
|
88
|
+
...(description === undefined ? {} : { description }),
|
|
89
|
+
...(tags === undefined ? {} : { tags }),
|
|
90
|
+
}));
|
|
91
|
+
}
|
|
83
92
|
async deleteDocument(ref) {
|
|
84
93
|
this.documents.remove(ref);
|
|
85
94
|
}
|
|
@@ -145,7 +145,9 @@ 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 { IPublisherDocumentMetaV2 } from '@gooddata/sdk-backend-spi';
|
|
148
149
|
import { IPublisherDocumentsQueryV2 } from '@gooddata/sdk-backend-spi';
|
|
150
|
+
import { IPublisherDocumentSummaryV2 } from '@gooddata/sdk-backend-spi';
|
|
149
151
|
import { IPublisherDocumentTemplateDefinitionV1 } from '@gooddata/sdk-model';
|
|
150
152
|
import { IPublisherDocumentTemplateDefinitionV2 } from '@gooddata/sdk-model';
|
|
151
153
|
import { IPublisherDocumentTemplateV1 } from '@gooddata/sdk-model';
|
|
@@ -1548,6 +1550,7 @@ export declare abstract class DecoratedWorkspacePublisherServiceV2 implements IW
|
|
|
1548
1550
|
getDocument(ref: ObjRef): Promise<IPublisherDocumentV2>;
|
|
1549
1551
|
createDocument(publisherDocument: IPublisherDocumentDefinitionV2): Promise<IPublisherDocumentV2>;
|
|
1550
1552
|
updateDocument(publisherDocument: IPublisherDocumentV2): Promise<IPublisherDocumentV2>;
|
|
1553
|
+
updateDocumentMeta(meta: IPublisherDocumentMetaV2): Promise<IPublisherDocumentSummaryV2>;
|
|
1551
1554
|
deleteDocument(ref: ObjRef): Promise<void>;
|
|
1552
1555
|
exportDocumentToPdf(ref: ObjRef, options?: IPublisherDocumentExportPdfOptions): Promise<IExportResult>;
|
|
1553
1556
|
}
|
|
@@ -2101,6 +2104,7 @@ export declare class InMemoryWorkspacePublisherServiceV2 implements IWorkspacePu
|
|
|
2101
2104
|
getDocument(ref: ObjRef): Promise<IPublisherDocumentV2>;
|
|
2102
2105
|
createDocument(publisherDocument: IPublisherDocumentDefinitionV2): Promise<IPublisherDocumentV2>;
|
|
2103
2106
|
updateDocument(publisherDocument: IPublisherDocumentV2): Promise<IPublisherDocumentV2>;
|
|
2107
|
+
updateDocumentMeta({ ref, title, description, tags, }: IPublisherDocumentMetaV2): Promise<IPublisherDocumentSummaryV2>;
|
|
2104
2108
|
deleteDocument(ref: ObjRef): Promise<void>;
|
|
2105
2109
|
exportDocumentToPdf(_ref: ObjRef, _options?: IPublisherDocumentExportPdfOptions): Promise<IExportResult>;
|
|
2106
2110
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-backend-base",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.70.0-alpha.1",
|
|
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-
|
|
34
|
-
"@gooddata/
|
|
35
|
-
"@gooddata/
|
|
33
|
+
"@gooddata/sdk-backend-spi": "11.70.0-alpha.1",
|
|
34
|
+
"@gooddata/util": "11.70.0-alpha.1",
|
|
35
|
+
"@gooddata/sdk-model": "11.70.0-alpha.1"
|
|
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/eslint-config": "11.
|
|
60
|
-
"@gooddata/oxlint-config": "11.
|
|
61
|
-
"@gooddata/reference-workspace": "11.
|
|
59
|
+
"@gooddata/eslint-config": "11.70.0-alpha.1",
|
|
60
|
+
"@gooddata/oxlint-config": "11.70.0-alpha.1",
|
|
61
|
+
"@gooddata/reference-workspace": "11.70.0-alpha.1"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"_phase:build": "npm run build",
|