@byline/client 6.8.0 → 6.9.0
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/dist/response.js +3 -0
- package/dist/types.d.ts +5 -1
- package/package.json +5 -5
package/dist/response.js
CHANGED
|
@@ -35,6 +35,9 @@ export function shapeDocument(raw) {
|
|
|
35
35
|
if (Array.isArray(raw.restoreWarnings) && raw.restoreWarnings.length > 0) {
|
|
36
36
|
shaped._restoreWarnings = raw.restoreWarnings;
|
|
37
37
|
}
|
|
38
|
+
if (Array.isArray(raw.unavailableBlocks) && raw.unavailableBlocks.length > 0) {
|
|
39
|
+
shaped._unavailableBlocks = raw.unavailableBlocks;
|
|
40
|
+
}
|
|
38
41
|
// The per-document content source locale (storage key `source_locale`).
|
|
39
42
|
if (typeof raw.source_locale === 'string') {
|
|
40
43
|
shaped.sourceLocale = raw.source_locale;
|
package/dist/types.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Copyright (c) Infonomic Company Limited
|
|
7
7
|
*/
|
|
8
8
|
import type { RequestContext } from '@byline/auth';
|
|
9
|
-
import type { BylineLogger, CollectionDefinition, DocumentPublishSchedule, IDbAdapter, IStorageProvider, LocaleVisibility, MissingLocalePolicy, PopulateSpec, PredicateValue, QueryPredicate, ReadContext, ReadMode, RichTextPopulateFn, RichTextToTextFn, SearchFacetBucket, SearchHit, SearchMatching, SearchProvider, ServerConfig, SingletonSavePrecondition, SlugifierFn, SortSpec } from '@byline/core';
|
|
9
|
+
import type { BylineLogger, CollectionDefinition, DocumentPublishSchedule, IDbAdapter, IStorageProvider, LocaleVisibility, MissingLocalePolicy, PopulateSpec, PredicateValue, QueryPredicate, ReadContext, ReadMode, RichTextPopulateFn, RichTextToTextFn, SearchFacetBucket, SearchHit, SearchMatching, SearchProvider, ServerConfig, SingletonSavePrecondition, SlugifierFn, SortSpec, UnavailableBlock } from '@byline/core';
|
|
10
10
|
export type { FilterOperators, PredicateValue, QueryPredicate, SearchFacetBucket, SearchHit, SearchProvider, SearchResults, SortDirection, SortSpec, } from '@byline/core';
|
|
11
11
|
export interface BylineClientConfig {
|
|
12
12
|
/**
|
|
@@ -650,6 +650,10 @@ export interface ClientDocument<F = Record<string, any>> {
|
|
|
650
650
|
* normal reads.
|
|
651
651
|
*/
|
|
652
652
|
_restoreWarnings?: string[];
|
|
653
|
+
/** Blocks omitted under the current schema. Present on strict and lenient reads.
|
|
654
|
+
* Saving content drops these blocks from the new version; earlier versions retain them.
|
|
655
|
+
*/
|
|
656
|
+
_unavailableBlocks?: UnavailableBlock[];
|
|
653
657
|
/**
|
|
654
658
|
* The editorial *advertised* locale set — the content locales the editor
|
|
655
659
|
* has deliberately elected to promote for this document. Document-grain and
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@byline/client",
|
|
3
3
|
"private": false,
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
|
-
"version": "6.
|
|
5
|
+
"version": "6.9.0",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=22.22.2"
|
|
8
8
|
},
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"dist"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@byline/auth": "6.
|
|
47
|
-
"@byline/core": "6.
|
|
46
|
+
"@byline/auth": "6.9.0",
|
|
47
|
+
"@byline/core": "6.9.0",
|
|
48
48
|
"uuid": "^14.0.3"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@biomejs/biome": "2.5.15",
|
|
52
|
-
"@byline/db-postgres": "6.
|
|
53
|
-
"@byline/search-postgres": "6.
|
|
52
|
+
"@byline/db-postgres": "6.9.0",
|
|
53
|
+
"@byline/search-postgres": "6.9.0",
|
|
54
54
|
"@types/node": "^26.6.5",
|
|
55
55
|
"chokidar": "^5.0.0",
|
|
56
56
|
"chokidar-cli": "^3.0.0",
|