@extrahorizon/javascript-sdk 8.12.0-dev-172-6fb7e9f → 8.12.0-dev-173-29c2711

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.
@@ -1599,6 +1599,7 @@ async function findAllGeneric(find, options, level = 1) {
1599
1599
  // Extra check is needed because this function is call recursively with updated RQL
1600
1600
  // But on the first run, we need to set the limit to the max to optimize
1601
1601
  const result = await find({
1602
+ ...options,
1602
1603
  rql: (options === null || options === void 0 ? void 0 : options.rql) && options.rql.includes('limit(') ?
1603
1604
  options.rql :
1604
1605
  rqlBuilder(options === null || options === void 0 ? void 0 : options.rql).limit(MAX_LIMIT).build(),
@@ -1610,6 +1611,7 @@ async function findAllGeneric(find, options, level = 1) {
1610
1611
  [
1611
1612
  ...result.data,
1612
1613
  ...(await findAllGeneric(find, {
1614
+ ...options,
1613
1615
  rql: rqlBuilder(options === null || options === void 0 ? void 0 : options.rql)
1614
1616
  .limit(result.page.limit, result.page.offset + result.page.limit)
1615
1617
  .build(),
@@ -1621,6 +1623,7 @@ function addPagersFn(find, options, pagedResult) {
1621
1623
  let result = pagedResult;
1622
1624
  async function previous() {
1623
1625
  result = await find({
1626
+ ...options,
1624
1627
  rql: rqlBuilder(options === null || options === void 0 ? void 0 : options.rql)
1625
1628
  .limit(result.page.limit, result.page.offset > 0 ? result.page.offset - result.page.limit : 0)
1626
1629
  .build(),
@@ -1629,6 +1632,7 @@ function addPagersFn(find, options, pagedResult) {
1629
1632
  }
1630
1633
  async function next() {
1631
1634
  result = await find({
1635
+ ...options,
1632
1636
  rql: rqlBuilder(options === null || options === void 0 ? void 0 : options.rql)
1633
1637
  .limit(result.page.limit, result.page.offset + result.page.limit < result.page.total ?
1634
1638
  result.page.offset + result.page.limit :
@@ -5655,7 +5659,7 @@ const templatesV2Service = (httpWithAuth) => {
5655
5659
  };
5656
5660
  };
5657
5661
 
5658
- const version = '8.12.0-dev-172-6fb7e9f';
5662
+ const version = '8.12.0-dev-173-29c2711';
5659
5663
 
5660
5664
  /**
5661
5665
  * Create ExtraHorizon client.
package/build/index.mjs CHANGED
@@ -1569,6 +1569,7 @@ async function findAllGeneric(find, options, level = 1) {
1569
1569
  // Extra check is needed because this function is call recursively with updated RQL
1570
1570
  // But on the first run, we need to set the limit to the max to optimize
1571
1571
  const result = await find({
1572
+ ...options,
1572
1573
  rql: (options === null || options === void 0 ? void 0 : options.rql) && options.rql.includes('limit(') ?
1573
1574
  options.rql :
1574
1575
  rqlBuilder(options === null || options === void 0 ? void 0 : options.rql).limit(MAX_LIMIT).build(),
@@ -1580,6 +1581,7 @@ async function findAllGeneric(find, options, level = 1) {
1580
1581
  [
1581
1582
  ...result.data,
1582
1583
  ...(await findAllGeneric(find, {
1584
+ ...options,
1583
1585
  rql: rqlBuilder(options === null || options === void 0 ? void 0 : options.rql)
1584
1586
  .limit(result.page.limit, result.page.offset + result.page.limit)
1585
1587
  .build(),
@@ -1591,6 +1593,7 @@ function addPagersFn(find, options, pagedResult) {
1591
1593
  let result = pagedResult;
1592
1594
  async function previous() {
1593
1595
  result = await find({
1596
+ ...options,
1594
1597
  rql: rqlBuilder(options === null || options === void 0 ? void 0 : options.rql)
1595
1598
  .limit(result.page.limit, result.page.offset > 0 ? result.page.offset - result.page.limit : 0)
1596
1599
  .build(),
@@ -1599,6 +1602,7 @@ function addPagersFn(find, options, pagedResult) {
1599
1602
  }
1600
1603
  async function next() {
1601
1604
  result = await find({
1605
+ ...options,
1602
1606
  rql: rqlBuilder(options === null || options === void 0 ? void 0 : options.rql)
1603
1607
  .limit(result.page.limit, result.page.offset + result.page.limit < result.page.total ?
1604
1608
  result.page.offset + result.page.limit :
@@ -5625,7 +5629,7 @@ const templatesV2Service = (httpWithAuth) => {
5625
5629
  };
5626
5630
  };
5627
5631
 
5628
- const version = '8.12.0-dev-172-6fb7e9f';
5632
+ const version = '8.12.0-dev-173-29c2711';
5629
5633
 
5630
5634
  /**
5631
5635
  * Create ExtraHorizon client.
@@ -1 +1 @@
1
- export declare const version = "8.12.0-dev-172-6fb7e9f";
1
+ export declare const version = "8.12.0-dev-173-29c2711";
@@ -1 +1 @@
1
- export declare const version = "8.12.0-dev-172-6fb7e9f";
1
+ export declare const version = "8.12.0-dev-173-29c2711";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extrahorizon/javascript-sdk",
3
- "version": "8.12.0-dev-172-6fb7e9f",
3
+ "version": "8.12.0-dev-173-29c2711",
4
4
  "description": "This package serves as a JavaScript wrapper around all Extra Horizon cloud services.",
5
5
  "main": "build/index.cjs.js",
6
6
  "types": "build/types/index.d.ts",