@olympeio/runtime-web 9.1.0-dev → 9.1.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/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
+ }
package/types/utils.d.ts CHANGED
@@ -65,11 +65,6 @@ export class ServiceRequest {
65
65
  */
66
66
  userTag(): Promise<string>;
67
67
 
68
- /**
69
- * @return the type of the request
70
- */
71
- getType(): RequestType;
72
-
73
68
  /**
74
69
  * Get the request body.
75
70
  *
@@ -170,16 +165,6 @@ export class Service {
170
165
  static observe(service: string, context: Context, payload?: Object): Observable<Object>;
171
166
  }
172
167
 
173
- /**
174
- * Possible types of request coming for services.
175
- */
176
- export enum RequestType {
177
- SEND,
178
- GET,
179
- PUBLISH,
180
- SUBSCRIBE
181
- }
182
-
183
168
  // -- Authentication --
184
169
  /**
185
170
  * A static class that gathers all the required methods to handle the authentication and sessions with Olympe.