@olympeio/runtime-node 9.4.4 → 9.4.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olympeio/runtime-node",
3
- "version": "9.4.4",
3
+ "version": "9.4.5",
4
4
  "description": "Olympe Node Runtime Environment",
5
5
  "types": "types/index.d.ts",
6
6
  "dependencies": {
package/types/cloud.d.ts CHANGED
@@ -790,26 +790,6 @@ export class QueryResult<T extends CloudObject | CloudObject[]> {
790
790
  */
791
791
  shift(): T[];
792
792
 
793
- /**
794
- * Returns the new values added since the last `QueryResult` update.
795
- * In other words, `getAdded` returns the new values that exists in this query result, but did not in the previous query result pushed by the Observable.
796
- *
797
- * This applies only when {@apilink Query.observe | observing} a {@apilink Query}.
798
- *
799
- * @return values added
800
- */
801
- getAdded(): T[];
802
-
803
- /**
804
- * Returns the keys of values removed since the last `QueryResult` update.
805
- * In other words, `getRemoved` returns the old values that existed in the previous query result, but are no longer present in this query result pushed by the Observable.
806
- *
807
- * This applies only when {@apilink Query.observe | observing} a {@apilink Query}.
808
- *
809
- * @return keys of the removed values
810
- */
811
- getRemoved(): string[] | string[][];
812
-
813
793
  /**
814
794
  * Returns an array containing the values matching the provided filter predicate.
815
795
  *
@@ -1642,9 +1622,10 @@ export abstract class DataSource extends CloudObject {
1642
1622
  /**
1643
1623
  * Applies the provided {@apilink Operation} array to the data source as one transaction
1644
1624
  * @param {Operation[]} transaction - The {@apilink Operation} array to apply.
1625
+ * @param {?TransactionOptions} options
1645
1626
  * @return {Promise<void>} A Promise that resolves when the transaction is completed. Rejects when the transaction fails.
1646
1627
  */
1647
- protected applyTransaction(transaction: Operation[]): Promise<void>;
1628
+ protected applyTransaction(transaction: Operation[], options?: TransactionOptions): Promise<void>;
1648
1629
 
1649
1630
  /**
1650
1631
  * Uploads one file's content to the data source.
@@ -1671,3 +1652,11 @@ export abstract class DataSource extends CloudObject {
1671
1652
  */
1672
1653
  protected deleteFileContent(fileTag: string, dataType: string): Promise<void>;
1673
1654
  }
1655
+
1656
+ /**
1657
+ * Additional options for transactions to be processed by a data source.
1658
+ * - batch: if true, it means that the transaction has been executed using the {@apilink Transaction.executeAsLarge()} function.
1659
+ */
1660
+ export type TransactionOptions = {
1661
+ batch: boolean
1662
+ };