@shirudo/ddd-kit 3.0.0-rc.14 → 3.0.0-rc.15

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/testing.d.ts CHANGED
@@ -49,7 +49,7 @@ declare function createCommandOutboxContractTests<C extends PublishedCommand>(ha
49
49
  /** One contract test; bind with `(test.skipped ? it.skip : it)(test.name, test.run)`. */
50
50
  type DeadlineStoreContractTest = ContractTest;
51
51
  /** The plain-data payload shape the suite round-trips. */
52
- interface SuitePayload {
52
+ interface DeadlineStoreContractPayload {
53
53
  kind: string;
54
54
  step?: number;
55
55
  }
@@ -59,7 +59,7 @@ interface SuitePayload {
59
59
  */
60
60
  interface DeadlineStoreContractEnvironment {
61
61
  /** The adapter under test. */
62
- store: DeadlineStore<SuitePayload>;
62
+ store: DeadlineStore<DeadlineStoreContractPayload>;
63
63
  /**
64
64
  * Runs `work` (schedule/cancel calls) the way production does:
65
65
  * inside a transaction that COMMITS. For a non-transactional store
@@ -674,7 +674,7 @@ declare function createRepositoryContractTests<TAggregate extends Aggregate<Id<s
674
674
  /** One contract test; bind with `(test.skipped ? it.skip : it)(test.name, test.run)`. */
675
675
  type SnapshotStoreContractTest = ContractTest;
676
676
  /** The plain-data state shape the suite round-trips. */
677
- interface SuiteState {
677
+ interface SnapshotStoreContractState {
678
678
  total: number;
679
679
  items: Array<{
680
680
  sku: string;
@@ -690,7 +690,7 @@ interface SuiteState {
690
690
  */
691
691
  interface SnapshotStoreContractEnvironment {
692
692
  /** The adapter under test. */
693
- store: SnapshotStore<SuiteState>;
693
+ store: SnapshotStore<SnapshotStoreContractState>;
694
694
  /** Release connections, drop schemas, etc. Called in a finally. */
695
695
  teardown?(): Promise<void>;
696
696
  }
@@ -718,5 +718,5 @@ interface SnapshotStoreContractHarness {
718
718
  */
719
719
  declare function createSnapshotStoreContractTests(harness: SnapshotStoreContractHarness): SnapshotStoreContractTest[];
720
720
  //#endregion
721
- export { type CommandOutboxContractEnvironment, type CommandOutboxContractHarness, type CommandOutboxContractTest, type ContractRepository, type CreateReplayableStreamPagesOptions, type DeadlineStoreContractEnvironment, type DeadlineStoreContractHarness, type DeadlineStoreContractTest, type EsContractRepository, type EsRepositoryContractEnvironment, type EsRepositoryContractHarness, type EsRepositoryContractTest, type EventBusContractEnvironment, type EventBusContractHarness, type EventBusContractTest, type EventStoreContractEnvironment, type EventStoreContractHarness, type EventStoreContractTest, type IdempotencyStoreContractEnvironment, type IdempotencyStoreContractHarness, type IdempotencyStoreContractTest, type OutboxContractEnvironment, type OutboxContractHarness, type OutboxContractTest, type ProjectionCheckpointStoreContractEnvironment, type ProjectionCheckpointStoreContractHarness, type ProjectionCheckpointStoreContractTest, type ReplayableStreamPagesContractEnvironment, type ReplayableStreamPagesContractHarness, type ReplayableStreamPagesContractTest, type ReplayableStreamPagesContractWindow, type RepositoryContractEnvironment, type RepositoryContractHarness, type RepositoryContractTest, type SnapshotStoreContractEnvironment, type SnapshotStoreContractHarness, type SnapshotStoreContractTest, createCommandOutboxContractTests, createDeadlineStoreContractTests, createEsRepositoryContractTests, createEventBusContractTests, createEventStoreContractTests, createIdempotencyStoreContractTests, createOutboxContractTests, createProjectionCheckpointStoreContractTests, createReplayableStreamPages, createReplayableStreamPagesContractTests, createRepositoryContractTests, createSnapshotStoreContractTests };
721
+ export { type CommandOutboxContractEnvironment, type CommandOutboxContractHarness, type CommandOutboxContractTest, type ContractRepository, type ContractTest, type CreateReplayableStreamPagesOptions, type DeadlineStoreContractEnvironment, type DeadlineStoreContractHarness, type DeadlineStoreContractPayload, type DeadlineStoreContractTest, type EsContractRepository, type EsRepositoryContractEnvironment, type EsRepositoryContractHarness, type EsRepositoryContractTest, type EventBusContractEnvironment, type EventBusContractHarness, type EventBusContractTest, type EventStoreContractEnvironment, type EventStoreContractHarness, type EventStoreContractTest, type IdempotencyStoreContractEnvironment, type IdempotencyStoreContractHarness, type IdempotencyStoreContractTest, type OutboxContractEnvironment, type OutboxContractHarness, type OutboxContractTest, type ProjectionCheckpointStoreContractEnvironment, type ProjectionCheckpointStoreContractHarness, type ProjectionCheckpointStoreContractTest, type ReplayableStreamPagesContractEnvironment, type ReplayableStreamPagesContractHarness, type ReplayableStreamPagesContractTest, type ReplayableStreamPagesContractWindow, type RepositoryContractEnvironment, type RepositoryContractHarness, type RepositoryContractTest, type SnapshotStoreContractEnvironment, type SnapshotStoreContractHarness, type SnapshotStoreContractState, type SnapshotStoreContractTest, createCommandOutboxContractTests, createDeadlineStoreContractTests, createEsRepositoryContractTests, createEventBusContractTests, createEventStoreContractTests, createIdempotencyStoreContractTests, createOutboxContractTests, createProjectionCheckpointStoreContractTests, createReplayableStreamPages, createReplayableStreamPagesContractTests, createRepositoryContractTests, createSnapshotStoreContractTests };
722
722
  //# sourceMappingURL=testing.d.ts.map