@singularsystems/neo-core 0.10.51 → 0.10.52

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,4 +1,5 @@
1
1
  import { UserEventBase } from './UserEvent';
2
2
  export declare class ReasonedUserEvent extends UserEventBase {
3
3
  reason: string;
4
+ static None(): ReasonedUserEvent;
4
5
  }
@@ -7,11 +7,16 @@ var ReasonedUserEvent = /** @class */ (function (_super) {
7
7
  function ReasonedUserEvent() {
8
8
  return _super !== null && _super.apply(this, arguments) || this;
9
9
  }
10
+ ReasonedUserEvent_1 = ReasonedUserEvent;
11
+ ReasonedUserEvent.None = function () {
12
+ return new ReasonedUserEvent_1();
13
+ };
14
+ var ReasonedUserEvent_1;
10
15
  __decorate([
11
16
  StringLength(255),
12
17
  __metadata("design:type", String)
13
18
  ], ReasonedUserEvent.prototype, "reason", void 0);
14
- ReasonedUserEvent = __decorate([
19
+ ReasonedUserEvent = ReasonedUserEvent_1 = __decorate([
15
20
  NeoModel
16
21
  ], ReasonedUserEvent);
17
22
  return ReasonedUserEvent;
@@ -5,4 +5,5 @@ export declare abstract class UserEventBase extends ValueObject {
5
5
  get isCompleted(): boolean;
6
6
  }
7
7
  export declare class UserEvent extends UserEventBase {
8
+ static None(): UserEvent;
8
9
  }
@@ -24,7 +24,12 @@ var UserEvent = /** @class */ (function (_super) {
24
24
  function UserEvent() {
25
25
  return _super !== null && _super.apply(this, arguments) || this;
26
26
  }
27
- UserEvent = __decorate([
27
+ UserEvent_1 = UserEvent;
28
+ UserEvent.None = function () {
29
+ return new UserEvent_1();
30
+ };
31
+ var UserEvent_1;
32
+ UserEvent = UserEvent_1 = __decorate([
28
33
  NeoModel
29
34
  ], UserEvent);
30
35
  return UserEvent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularsystems/neo-core",
3
- "version": "0.10.51",
3
+ "version": "0.10.52",
4
4
  "description": "Core functionality for the Neo client library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",