@schemeless/event-store-types 2.4.0 → 2.4.3
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/dist/EventStore.types.d.ts +3 -3
- package/dist/index.js +5 -1
- package/package.json +5 -3
|
@@ -22,7 +22,7 @@ export interface CreatedEvent<Payload, META = undefined> extends BaseEvent<Paylo
|
|
|
22
22
|
}
|
|
23
23
|
export interface StoredEvent<Payload, META = undefined> extends CreatedEvent<Payload, META> {
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type Event<Payload, META = undefined> = StoredEvent<Payload, META>;
|
|
26
26
|
export interface EventFlow<PartialPayload = any, Payload extends PartialPayload = PartialPayload> {
|
|
27
27
|
readonly domain: string;
|
|
28
28
|
readonly type: string;
|
|
@@ -43,7 +43,7 @@ export interface EventFlow<PartialPayload = any, Payload extends PartialPayload
|
|
|
43
43
|
readonly cancelApply?: (event: CreatedEvent<Payload>) => Promise<void> | void;
|
|
44
44
|
readonly createConsequentEvents?: (causalEvent: CreatedEvent<Payload>) => Promise<BaseEvent<any>[]> | BaseEvent<any>[];
|
|
45
45
|
}
|
|
46
|
-
export
|
|
46
|
+
export type EventTaskAndError = {
|
|
47
47
|
task: CreatedEvent<any>;
|
|
48
48
|
error: Error;
|
|
49
49
|
};
|
|
@@ -54,7 +54,7 @@ interface EventObserverStaticFilter {
|
|
|
54
54
|
domain: string;
|
|
55
55
|
type: string;
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
type EventObserverFilter = EventObserverStaticFilter;
|
|
58
58
|
export interface SuccessEventObserver<Payload = any> {
|
|
59
59
|
filters: EventObserverFilter[];
|
|
60
60
|
priority: number;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schemeless/event-store-types",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3",
|
|
4
4
|
"typescript:main": "src/index.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"clean": "node_modules/.bin/rimraf ./dist",
|
|
10
10
|
"test": "node_modules/.bin/jest --passWithNoTests",
|
|
11
11
|
"compile": "yarn run clean && node_modules/.bin/tsc",
|
|
12
|
-
"prepublish": "yarn run
|
|
12
|
+
"prepublish": "yarn run prepare",
|
|
13
|
+
"prepare": "yarn run compile"
|
|
13
14
|
},
|
|
14
15
|
"repository": {
|
|
15
16
|
"type": "git",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"devDependencies": {
|
|
24
25
|
"@types/debug": "^4.1.5",
|
|
25
26
|
"@types/jest": "^26.0.15",
|
|
27
|
+
"@types/minimatch": "^3.0.5",
|
|
26
28
|
"@types/node": "^14.14.7",
|
|
27
29
|
"jest": "^26.6.3",
|
|
28
30
|
"rimraf": "^3.0.2",
|
|
@@ -32,5 +34,5 @@
|
|
|
32
34
|
"publishConfig": {
|
|
33
35
|
"access": "public"
|
|
34
36
|
},
|
|
35
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "c94ac386be41b1a90c8d9bd4c047fac3c7b5031f"
|
|
36
38
|
}
|