@olympeio/runtime-node 9.9.2 → 9.10.1
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/import/olympe.dm/datamodel/.Primordial.newInst.json +1 -1
- package/import/olympe.dm/datamodel/00_bootstrap.newInst.json +1 -1
- package/import/olympe.dm/datamodel/00_bootstrap.newRel.json +1 -1
- package/import/olympe.dm/datamodel/02_permissions.newInst.json +1 -1
- package/import/olympe.dm/datamodel/04_modules.newInst.json +1 -1
- package/import/olympe.dm/datamodel/05_permission_schema.updateInst.json +1 -1
- package/import/olympe.sc/datamodel/00_primordial.newInst.json +1 -1
- package/import/olympe.sc/datamodel/01_language.newInst.json +1 -1
- package/import/olympe.sc/datamodel/03_draw_metadata.newInst.json +1 -1
- package/import/olympe.sc/datamodel/04_data_types.newInst.json +1 -1
- package/index.js +970 -921
- package/package.json +1 -1
- package/types/cloud.d.ts +24 -10
- package/types/runtime.d.ts +3 -1
package/package.json
CHANGED
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
|
*/
|
package/types/runtime.d.ts
CHANGED
|
@@ -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
|
// **********************
|