@ddd-ts/event-sourcing-inmemory 0.0.16 → 0.0.18

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.
@@ -3,32 +3,7 @@ import { AggregateStreamId, EventSourced, type IEsAggregateStore, type IEventBus
3
3
  import type { InMemoryEventStore } from "./event-store/in-memory.event-store";
4
4
  import type { InMemorySnapshotter } from "./in-memory.snapshotter";
5
5
  import type { InMemoryTransaction, InMemoryTransactionPerformer } from "@ddd-ts/store-inmemory";
6
- export declare const MakeInMemoryEsAggregateStore: <A extends Omit<(abstract new (props: {}) => {
7
- acknowledgedRevision: number;
8
- changes: import("@ddd-ts/core").IEsEvent<string, any>[];
9
- load(fact: import("@ddd-ts/core").IEsEvent<string, any>): void;
10
- apply(change: import("@ddd-ts/core").IEsEvent<string, any>): void;
11
- play(event: import("@ddd-ts/core").IEsEvent<string, any>): any;
12
- clearChanges(): void;
13
- acknowledgeChanges(): void;
14
- }) & {
15
- events: import("@ddd-ts/types").Constructor<import("@ddd-ts/core").IEsEvent<string, any>>[];
16
- instanciate<TH extends import("@ddd-ts/types").Constructor>(this: TH, event: import("@ddd-ts/core").IEsEvent<string, any>): InstanceType<TH>;
17
- loadFirst<TH_1 extends import("@ddd-ts/types").Constructor>(this: TH_1, event: import("@ddd-ts/core").IEsEvent<string, any>): InstanceType<TH_1>;
18
- "new"<TH_2 extends import("@ddd-ts/types").Constructor>(this: TH_2, event: import("@ddd-ts/core").IEsEvent<string, any>): InstanceType<TH_2>;
19
- }, ""> & (new (...args: any[]) => {
20
- acknowledgedRevision: number;
21
- changes: import("@ddd-ts/core").IEsEvent<string, any>[];
22
- load(fact: import("@ddd-ts/core").IEsEvent<string, any>): void;
23
- apply(change: import("@ddd-ts/core").IEsEvent<string, any>): void;
24
- play(event: import("@ddd-ts/core").IEsEvent<string, any>): any;
25
- clearChanges(): void;
26
- acknowledgeChanges(): void;
27
- }) & Omit<abstract new (props: {}) => {
28
- id: import("@ddd-ts/core").Identifier;
29
- }, ""> & (new (...args: any[]) => {
30
- id: import("@ddd-ts/core").Identifier;
31
- })>(AGGREGATE: A) => {
6
+ export declare const MakeInMemoryEsAggregateStore: <A extends HasTrait<typeof EventSourced> & HasTrait<typeof Identifiable>>(AGGREGATE: A) => {
32
7
  new (eventStore: InMemoryEventStore, transaction: InMemoryTransactionPerformer, serializer: ISerializer<InstanceType<A>["changes"][number]>, snapshotter?: InMemorySnapshotter<InstanceType<A>> | undefined): {
33
8
  loadFirst(event: InstanceType<A>["changes"][number]): InstanceType<A>;
34
9
  getAggregateStreamId(id: InstanceType<A>["id"]): AggregateStreamId;
@@ -1 +1 @@
1
- {"version":3,"file":"in-memory.es-aggregate-store.d.ts","sourceRoot":"","sources":["../src/in-memory.es-aggregate-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EACL,iBAAiB,EAEjB,YAAY,EACZ,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EACV,mBAAmB,EACnB,4BAA4B,EAC7B,MAAM,wBAAwB,CAAC;AAEhC,eAAO,MAAM,4BAA4B,GAUC,CAAC;;;;;;;;;;;;;wBA6GrC,KAAF;;;;;;;;;;wBAAE,KAAF;;eA7GsC,CAAC,AAP7B;qBAqBkB,kBAAkB,eACjB,4BAA4B;yBAnBxC,YAAY,CAIS,CAAC,AAJR,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,GAAG,YAAY,CAI5B,CAAC,AAJ6B,CAAC;iCAI5C,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,iBAAiB;6BActC,kBAAk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CAAC,IAAI,CAAC;CAuCjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddd-ts/event-sourcing-inmemory",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "MIT",
@@ -9,14 +9,14 @@
9
9
  "build": "tsc"
10
10
  },
11
11
  "dependencies": {
12
- "@ddd-ts/core": "0.0.16",
13
- "@ddd-ts/store-inmemory": "0.0.16",
14
- "@ddd-ts/types": "0.0.16"
12
+ "@ddd-ts/core": "0.0.18",
13
+ "@ddd-ts/store-inmemory": "0.0.18",
14
+ "@ddd-ts/types": "0.0.18"
15
15
  },
16
16
  "devDependencies": {
17
- "@ddd-ts/tests": "0.0.16",
18
- "@ddd-ts/tools": "0.0.16",
19
- "@ddd-ts/traits": "0.0.16",
17
+ "@ddd-ts/tests": "0.0.18",
18
+ "@ddd-ts/tools": "0.0.18",
19
+ "@ddd-ts/traits": "0.0.18",
20
20
  "@types/jest": "^29.5.1",
21
21
  "@types/node": "^20.12.4"
22
22
  }