@singularsystems/neo-core 1.0.9 → 1.0.10

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.
@@ -1,7 +1,7 @@
1
1
  import { IAsyncDataSource } from "./AsyncDataSource";
2
2
  export interface IDataCacheEntry {
3
3
  expire(refetch?: boolean): void;
4
- get(): IAsyncDataSource<any>;
4
+ get(clearPreviousError?: boolean): IAsyncDataSource<any>;
5
5
  /**
6
6
  * Will return true if the data has expired, or the data source is loading.
7
7
  */
@@ -1,5 +1,6 @@
1
1
  import { UserEventBase } from './UserEvent';
2
2
  export declare class ReasonedUserEvent extends UserEventBase {
3
+ constructor();
3
4
  reason: string;
4
5
  static None(): ReasonedUserEvent;
5
6
  }
@@ -1,24 +1,21 @@
1
1
  import { __decorate, __extends, __metadata } from "tslib";
2
2
  import { UserEventBase } from './UserEvent';
3
- import NeoModel from '../NeoModel';
4
3
  import { StringLength } from '../../Validation/Decorators';
5
4
  var ReasonedUserEvent = /** @class */ (function (_super) {
6
5
  __extends(ReasonedUserEvent, _super);
7
6
  function ReasonedUserEvent() {
8
- return _super !== null && _super.apply(this, arguments) || this;
7
+ var _this = _super.call(this) || this;
8
+ _this.reason = "";
9
+ _this.makeObservable();
10
+ return _this;
9
11
  }
10
- ReasonedUserEvent_1 = ReasonedUserEvent;
11
12
  ReasonedUserEvent.None = function () {
12
- return new ReasonedUserEvent_1();
13
+ return new ReasonedUserEvent();
13
14
  };
14
- var ReasonedUserEvent_1;
15
15
  __decorate([
16
16
  StringLength(255),
17
17
  __metadata("design:type", String)
18
18
  ], ReasonedUserEvent.prototype, "reason", void 0);
19
- ReasonedUserEvent = ReasonedUserEvent_1 = __decorate([
20
- NeoModel
21
- ], ReasonedUserEvent);
22
19
  return ReasonedUserEvent;
23
20
  }(UserEventBase));
24
21
  export { ReasonedUserEvent };
@@ -5,5 +5,6 @@ export declare abstract class UserEventBase extends ValueObject {
5
5
  get isCompleted(): boolean;
6
6
  }
7
7
  export declare class UserEvent extends UserEventBase {
8
+ constructor();
8
9
  static None(): UserEvent;
9
10
  }
@@ -1,7 +1,6 @@
1
1
  import { __decorate, __extends, __metadata } from "tslib";
2
2
  import ValueObject from '../ValueObject';
3
3
  import { Date as DateAttribute } from '../Decorators';
4
- import NeoModel from '../NeoModel';
5
4
  var UserEventBase = /** @class */ (function (_super) {
6
5
  __extends(UserEventBase, _super);
7
6
  function UserEventBase() {
@@ -27,16 +26,13 @@ export { UserEventBase };
27
26
  var UserEvent = /** @class */ (function (_super) {
28
27
  __extends(UserEvent, _super);
29
28
  function UserEvent() {
30
- return _super !== null && _super.apply(this, arguments) || this;
29
+ var _this = _super.call(this) || this;
30
+ _this.makeObservable();
31
+ return _this;
31
32
  }
32
- UserEvent_1 = UserEvent;
33
33
  UserEvent.None = function () {
34
- return new UserEvent_1();
34
+ return new UserEvent();
35
35
  };
36
- var UserEvent_1;
37
- UserEvent = UserEvent_1 = __decorate([
38
- NeoModel
39
- ], UserEvent);
40
36
  return UserEvent;
41
37
  }(UserEventBase));
42
38
  export { UserEvent };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularsystems/neo-core",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Core functionality for the Neo client library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",