@rkrkdldkd/example-event-sourcing 0.0.1 → 0.0.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/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { AppModule } from './app.module';
2
2
  export { AppService } from './app.service';
3
3
  export { EventSourcingModule } from './event-sourcing.module';
4
+ export { TempEventStore } from './temp.event-store';
package/dist/index.js CHANGED
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EventSourcingModule = exports.AppService = exports.AppModule = void 0;
3
+ exports.TempEventStore = exports.EventSourcingModule = exports.AppService = exports.AppModule = void 0;
4
4
  var app_module_1 = require("./app.module");
5
5
  Object.defineProperty(exports, "AppModule", { enumerable: true, get: function () { return app_module_1.AppModule; } });
6
6
  var app_service_1 = require("./app.service");
7
7
  Object.defineProperty(exports, "AppService", { enumerable: true, get: function () { return app_service_1.AppService; } });
8
8
  var event_sourcing_module_1 = require("./event-sourcing.module");
9
9
  Object.defineProperty(exports, "EventSourcingModule", { enumerable: true, get: function () { return event_sourcing_module_1.EventSourcingModule; } });
10
+ var temp_event_store_1 = require("./temp.event-store");
11
+ Object.defineProperty(exports, "TempEventStore", { enumerable: true, get: function () { return temp_event_store_1.TempEventStore; } });
10
12
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAClB,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAClB,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA;AAC5B,uDAAoD;AAA3C,kHAAA,cAAc,OAAA"}
@@ -0,0 +1,5 @@
1
+ import { EventStore } from '@ocoda/event-sourcing';
2
+ import { PoolConfig } from 'pg';
3
+ export interface PostgresEventStoreConfig extends PoolConfig {
4
+ driver: EventStore;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=postgres-event-store-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postgres-event-store-config.js","sourceRoot":"","sources":["../../src/interface/postgres-event-store-config.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import { EventEnvelope, EventStore, EventStream, IAllEventsFilter, IEvent, IEventCollection, IEventCollectionFilter, IEventFilter, IEventPool } from '@ocoda/event-sourcing';
2
+ export declare class TempEventStore extends EventStore {
3
+ connect(): void | Promise<void>;
4
+ disconnect(): void | Promise<void>;
5
+ ensureCollection(pool?: IEventPool): IEventCollection | Promise<IEventCollection>;
6
+ listCollections(filter?: IEventCollectionFilter): AsyncGenerator<IEventCollection[]>;
7
+ getEvent(eventStream: EventStream, version: number, pool?: IEventPool): IEvent | Promise<IEvent>;
8
+ getEvents(eventStream: EventStream, filter?: IEventFilter): AsyncGenerator<IEvent[]>;
9
+ appendEvents(eventStream: EventStream, version: number, events: IEvent[], pool?: IEventPool): Promise<EventEnvelope[]>;
10
+ getEnvelopes?(eventStream: EventStream, filter?: IEventFilter): AsyncGenerator<EventEnvelope[]>;
11
+ getEnvelope?(eventStream: EventStream, version: number, pool?: IEventPool): EventEnvelope | Promise<EventEnvelope>;
12
+ getAllEnvelopes(filter: IAllEventsFilter): AsyncGenerator<EventEnvelope[]>;
13
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TempEventStore = void 0;
4
+ const event_sourcing_1 = require("@ocoda/event-sourcing");
5
+ class TempEventStore extends event_sourcing_1.EventStore {
6
+ connect() {
7
+ throw new Error('Method not implemented.');
8
+ }
9
+ disconnect() {
10
+ throw new Error('Method not implemented.');
11
+ }
12
+ ensureCollection(pool) {
13
+ throw new Error('Method not implemented.');
14
+ }
15
+ listCollections(filter) {
16
+ throw new Error('Method not implemented.');
17
+ }
18
+ getEvent(eventStream, version, pool) {
19
+ throw new Error('Method not implemented.');
20
+ }
21
+ getEvents(eventStream, filter) {
22
+ throw new Error('Method not implemented.');
23
+ }
24
+ appendEvents(eventStream, version, events, pool) {
25
+ throw new Error('Method not implemented.');
26
+ }
27
+ getEnvelopes(eventStream, filter) {
28
+ throw new Error('Method not implemented.');
29
+ }
30
+ getEnvelope(eventStream, version, pool) {
31
+ throw new Error('Method not implemented.');
32
+ }
33
+ getAllEnvelopes(filter) {
34
+ throw new Error('Method not implemented.');
35
+ }
36
+ }
37
+ exports.TempEventStore = TempEventStore;
38
+ //# sourceMappingURL=temp.event-store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"temp.event-store.js","sourceRoot":"","sources":["../src/temp.event-store.ts"],"names":[],"mappings":";;;AAAA,0DAU+B;AAE/B,MAAa,cAAe,SAAQ,2BAAU;IAC5C,OAAO;QACL,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,UAAU;QACR,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,gBAAgB,CACd,IAAiB;QAEjB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,eAAe,CACb,MAA+B;QAE/B,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,QAAQ,CACN,WAAwB,EACxB,OAAe,EACf,IAAiB;QAEjB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,SAAS,CACP,WAAwB,EACxB,MAAqB;QAErB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,YAAY,CACV,WAAwB,EACxB,OAAe,EACf,MAAgB,EAChB,IAAiB;QAEjB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,YAAY,CACV,WAAwB,EACxB,MAAqB;QAErB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,WAAW,CACT,WAAwB,EACxB,OAAe,EACf,IAAiB;QAEjB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,eAAe,CAAC,MAAwB;QACtC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;CACF;AAtDD,wCAsDC"}