@dotcms/client 1.2.1-next.5 → 1.2.1-next.7
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/index.cjs.js +6 -2
- package/index.esm.js +6 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -1435,7 +1435,8 @@ class CollectionBuilder extends BaseApiClient {
|
|
|
1435
1435
|
sort: this.sort,
|
|
1436
1436
|
limit: __classPrivateFieldGet(this, _CollectionBuilder_limit, "f"),
|
|
1437
1437
|
offset: this.offset,
|
|
1438
|
-
depth: __classPrivateFieldGet(this, _CollectionBuilder_depth, "f")
|
|
1438
|
+
depth: __classPrivateFieldGet(this, _CollectionBuilder_depth, "f"),
|
|
1439
|
+
languageId: __classPrivateFieldGet(this, _CollectionBuilder_languageId, "f")
|
|
1439
1440
|
//userId: This exist but we currently don't use it
|
|
1440
1441
|
//allCategoriesInfo: This exist but we currently don't use it
|
|
1441
1442
|
})
|
|
@@ -1477,7 +1478,10 @@ class CollectionBuilder extends BaseApiClient {
|
|
|
1477
1478
|
* // Returns: "+contentType:Blog -conhost:456 +languageId:1 +live:true +conhost:123" (site ID still added)
|
|
1478
1479
|
*/
|
|
1479
1480
|
getFinalQuery() {
|
|
1480
|
-
// Build base query with language and live/draft constraints
|
|
1481
|
+
// Build base query with language and live/draft constraints.
|
|
1482
|
+
// NOTE: languageId is intentionally sent in BOTH places:
|
|
1483
|
+
// - in the Lucene query (backend requires this)
|
|
1484
|
+
// - as a top-level request body field (backend also requires this)
|
|
1481
1485
|
let baseQuery = this.currentQuery.field('languageId').equals(__classPrivateFieldGet(this, _CollectionBuilder_languageId, "f").toString());
|
|
1482
1486
|
if (__classPrivateFieldGet(this, _CollectionBuilder_draft, "f")) {
|
|
1483
1487
|
baseQuery = baseQuery.raw('+(live:false AND working:true AND deleted:false)');
|
package/index.esm.js
CHANGED
|
@@ -1433,7 +1433,8 @@ class CollectionBuilder extends BaseApiClient {
|
|
|
1433
1433
|
sort: this.sort,
|
|
1434
1434
|
limit: __classPrivateFieldGet(this, _CollectionBuilder_limit, "f"),
|
|
1435
1435
|
offset: this.offset,
|
|
1436
|
-
depth: __classPrivateFieldGet(this, _CollectionBuilder_depth, "f")
|
|
1436
|
+
depth: __classPrivateFieldGet(this, _CollectionBuilder_depth, "f"),
|
|
1437
|
+
languageId: __classPrivateFieldGet(this, _CollectionBuilder_languageId, "f")
|
|
1437
1438
|
//userId: This exist but we currently don't use it
|
|
1438
1439
|
//allCategoriesInfo: This exist but we currently don't use it
|
|
1439
1440
|
})
|
|
@@ -1475,7 +1476,10 @@ class CollectionBuilder extends BaseApiClient {
|
|
|
1475
1476
|
* // Returns: "+contentType:Blog -conhost:456 +languageId:1 +live:true +conhost:123" (site ID still added)
|
|
1476
1477
|
*/
|
|
1477
1478
|
getFinalQuery() {
|
|
1478
|
-
// Build base query with language and live/draft constraints
|
|
1479
|
+
// Build base query with language and live/draft constraints.
|
|
1480
|
+
// NOTE: languageId is intentionally sent in BOTH places:
|
|
1481
|
+
// - in the Lucene query (backend requires this)
|
|
1482
|
+
// - as a top-level request body field (backend also requires this)
|
|
1479
1483
|
let baseQuery = this.currentQuery.field('languageId').equals(__classPrivateFieldGet(this, _CollectionBuilder_languageId, "f").toString());
|
|
1480
1484
|
if (__classPrivateFieldGet(this, _CollectionBuilder_draft, "f")) {
|
|
1481
1485
|
baseQuery = baseQuery.raw('+(live:false AND working:true AND deleted:false)');
|