@event-nest/core 3.3.1 → 3.3.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": "@event-nest/core",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Nick Tsitlakidis",
|
|
6
6
|
"description": "Event sourcing module for NestJS. It provides a set of decorators and classes to build an application based on event sourcing.",
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { Class } from "type-fest";
|
|
2
1
|
import { AggregateRoot } from "../aggregate-root/aggregate-root";
|
|
3
2
|
import { StoredAggregateRoot } from "./stored-aggregate-root";
|
|
4
3
|
import { StoredEvent } from "./stored-event";
|
|
5
|
-
export type AggregateRootClass<T> =
|
|
4
|
+
export type AggregateRootClass<T> = Function & {
|
|
5
|
+
prototype: T;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* A unique symbol that can be used to inject the event store into other classes.
|
|
9
|
+
*/
|
|
6
10
|
export declare const EVENT_STORE: unique symbol;
|
|
7
11
|
/**
|
|
8
12
|
* Defines the main EventStore interface that can be used to retrieve and save events. Each implementation of this interface
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EVENT_STORE = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* A unique symbol that can be used to inject the event store into other classes.
|
|
6
|
+
*/
|
|
4
7
|
exports.EVENT_STORE = Symbol("EVENT_NEST_EVENT_STORE");
|
|
5
8
|
//# sourceMappingURL=event-store.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-store.js","sourceRoot":"","sources":["../../../../../../libs/core/src/lib/storage/event-store.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"event-store.js","sourceRoot":"","sources":["../../../../../../libs/core/src/lib/storage/event-store.ts"],"names":[],"mappings":";;;AAOA;;GAEG;AACU,QAAA,WAAW,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC"}
|