@olympeio/runtime-node 9.0.1 → 9.0.2

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.0.1",
3
+ "version": "9.0.2",
4
4
  "description": "Olympe Node Runtime Environment",
5
5
  "types": "types/index.d.ts",
6
6
  "dependencies": {
package/types/base.d.ts CHANGED
@@ -66,7 +66,7 @@ export abstract class CloudObject implements HasTag {
66
66
  static instancesOf<T extends CloudObject>(this: Class<T>): Query<T, Empty>;
67
67
 
68
68
  static get<T extends CloudObject>(tag: Tag): T;
69
- static createWith<T>(this: Class<T>, properties: Map<Tag, any>, model?: Tag): T;
69
+ static createWith<T>(this: Class<T>, properties: Map<Tag, any>, model?: Tag, source?: string): T;
70
70
  static asInstance<T>(this: Class<T>): T;
71
71
 
72
72
  getTag(): string;
@@ -75,6 +75,7 @@ export abstract class CloudObject implements HasTag {
75
75
  getModel(): CloudObject;
76
76
  query(): Query<this, Empty>;
77
77
  isPersisted(): boolean;
78
+ equals(object: any): boolean;
78
79
 
79
80
  follow<D extends CloudObject>(relation: Relation<this, D>): Query<D, Empty>;
80
81
  followSingle<D extends CloudObject>(relation: Relation<this, D>): QuerySingle<D>;
package/types/legacy.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // @ts-ignore
2
2
  import Observable from 'rxjs';
3
3
  import {CloudObject, Direction, HasTag, Property, Relation, Tag} from "./base";
4
- import {VisualBrick} from "./runtime";
4
+ import {Brick, VisualBrick} from "./runtime";
5
5
  /**
6
6
  * The entry of a brick is a static object linked to the brick class itself that is used to make the link between the
7
7
  * code and the database. It stores tags linked to a specific brick :
@@ -34,6 +34,9 @@ declare interface Entry extends HasTag {
34
34
  /** @deprecated use {@link VisualBrick} instead */
35
35
  export class UIBrick extends VisualBrick {}
36
36
 
37
+ /** @deprecated use {@link Brick} instead */
38
+ export type FunctionBrick = Brick;
39
+
37
40
  /* ======================
38
41
  DATACLOUD
39
42
  ====================== */
@@ -75,9 +78,9 @@ export class DBView {
75
78
  isModel(tag: InstanceTag): boolean;
76
79
  instanceOf(tag: InstanceTag, modelTag: InstanceTag): boolean;
77
80
  isPersisted(tag: InstanceTag): boolean;
78
- getProperty<T>(tag: InstanceTag, property: Property<T>, ownOnly: boolean): T | null;
81
+ getProperty<T>(tag: InstanceTag, property: Property<T>, ownOnly?: boolean): T | null;
79
82
  // @ts-ignore
80
- getProperties(tag: InstanceTag, ownOnly: boolean): Map<string, any>;
83
+ getProperties(tag: InstanceTag, ownOnly?: boolean): Map<string, any>;
81
84
  getRelated(tag: InstanceTag, relation: Relation<any, any>): string[];
82
85
  isRelated(tag: InstanceTag, relation: Relation<any, any>, related: InstanceTag): boolean;
83
86
  getMultiRelated(startTag: InstanceTag, relations: Relation<any, any>[]): string[];
@@ -278,4 +281,4 @@ export namespace comparators {
278
281
  export class DateTime extends Comparator {
279
282
  constructor(value: ValueDef);
280
283
  }
281
- }
284
+ }