@olympeio/runtime-node 9.9.1 → 9.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olympeio/runtime-node",
3
- "version": "9.9.1",
3
+ "version": "9.10.0",
4
4
  "description": "Olympe Node Runtime Environment",
5
5
  "types": "types/index.d.ts",
6
6
  "dependencies": {
package/types/cloud.d.ts CHANGED
@@ -800,6 +800,22 @@ export class QueryResult<T extends CloudObject | CloudObject[]> {
800
800
  */
801
801
  getAt(index: number): T | null;
802
802
 
803
+ /**
804
+ * Query Results, when used in a subscription, can be used to observe changes compare to the previous QueryResult.
805
+ * This method returns the values that have added from the previous QueryResult.
806
+ *
807
+ * @return array of added values (CloudObjects or tuples of CloudObjects)
808
+ */
809
+ getAdded(): T[];
810
+
811
+ /**
812
+ * Query Results, when used in a subscription, can be used to observe changes compare to the previous QueryResult.
813
+ * This method returns the values the keys (eg: tags) of values that have been removed from the previous QueryResult.
814
+ *
815
+ * @return array of removed keys (tags or tags concatenation (tuples))
816
+ */
817
+ getRemoved(): string[];
818
+
803
819
  /**
804
820
  * Returns an array equivalent to {@apilink QueryResult.toArray | this.toArray().push(...object)}
805
821
  *
@@ -1320,16 +1336,6 @@ export class Predicate {
1320
1336
  */
1321
1337
  static smallerThan(property: Property<number>, value: number, strict?: boolean): Predicate;
1322
1338
 
1323
- /**
1324
- * Create a predicate matching the expected model. If extend=true, the predicate will match
1325
- * against inherited models as well
1326
- *
1327
- * @param expectedModel the expected model
1328
- * @param extend should the predicate also match against inherited models
1329
- * @return new Predicate
1330
- */
1331
- static instanceOf(expectedModel: InstanceOrTag, extend: boolean): Predicate;
1332
-
1333
1339
  /**
1334
1340
  * Create a predicate matching a specified number property to a number property lower bound
1335
1341
  *
@@ -1622,6 +1628,14 @@ export interface QueryPart {
1622
1628
  * Represents a data source that can be used to retrieve, manipulate and store data outside the Olympe application environment.
1623
1629
  * This class provides several methods for performing CRUD (create, read, update, delete) operations on data,
1624
1630
  * as well as file upload and download functionality.
1631
+ *
1632
+ * To create a new data source, add a _Data Connector_ in your project in DRAW and download the boilerplate.
1633
+ * Then implement or extend the required methods: `init`, `destroy`, `healthCheck`, `executeQuery` and `applyTransaction`
1634
+ * For file capabilities, you must also implement: `uploadFileContent`, `downloadFileContent` and `deleteFileContent`
1635
+ *
1636
+ * The CORE library already provide some default connectors such as PostgreSQL and MSSQL.
1637
+ * Their implementation is open source and available in [CORE on Github](https://github.com/olympeio/CORE/tree/master/src/core/data/connectors).
1638
+ *
1625
1639
  * @abstract
1626
1640
  * @extends {@apilink CloudObject}
1627
1641
  */
@@ -253,7 +253,9 @@ export abstract class Brick extends CloudObject {
253
253
  protected onDestroy($: BrickContext): void;
254
254
  }
255
255
 
256
-
256
+ /**
257
+ * @deprecated use {@apilink Brick} instead
258
+ */
257
259
  export abstract class ActionBrick extends Brick { }
258
260
 
259
261
  // **********************