Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
rename types dir
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikBB committed Apr 23, 2024
1 parent 5afc8b8 commit f5e2d45
Show file tree
Hide file tree
Showing 24 changed files with 51 additions and 51 deletions.
32 changes: 16 additions & 16 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
export * from './lib/aggregate';
export * from './lib/projection';

export * from './@types/Aggregate'
export * from './@types/BaseEvent'
export * from './@types/CloudEventV1'
export * from './@types/Command'
export * from './@types/CommandHandler'
export * from './@types/CommandHandlerEnum'
export * from './@types/EventHandler'
export * from './@types/EventHandlerEnum'
export * from './@types/GlobalProjection'
export * from './@types/LittleEsEvent'
export * from './@types/LittleEsEventMetadata'
export * from './@types/NamedProjection'
export * from './@types/PersistanceHandler'
export * from './@types/PersistedAggregate'
export * from './@types/PublishingHandler'
export * from './@types/Snapshot'
export * from './types/Aggregate'
export * from './types/BaseEvent'
export * from './types/CloudEventV1'
export * from './types/Command'
export * from './types/CommandHandler'
export * from './types/CommandHandlerEnum'
export * from './types/EventHandler'
export * from './types/EventHandlerEnum'
export * from './types/GlobalProjection'
export * from './types/LittleEsEvent'
export * from './types/LittleEsEventMetadata'
export * from './types/NamedProjection'
export * from './types/PersistanceHandler'
export * from './types/PersistedAggregate'
export * from './types/PublishingHandler'
export * from './types/Snapshot'
6 changes: 3 additions & 3 deletions src/lib/aggregate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import anyTest, { TestFn } from 'ava';

import { Aggregate } from '../@types/Aggregate';
import { LittleEsEvent } from '../@types/LittleEsEvent';
import { Snapshot } from '../@types/Snapshot';
import { Aggregate } from '../types/Aggregate';
import { LittleEsEvent } from '../types/LittleEsEvent';
import { Snapshot } from '../types/Snapshot';

import { createAggregate } from './aggregate';
import { aggregateEventHandlers, commandHandlers, mockPersistanceHandler, Product, ProductCommand, ProductEvent } from './testdata.spec';
Expand Down
16 changes: 8 additions & 8 deletions src/lib/aggregate.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Aggregate } from "../@types/Aggregate";
import { BaseEvent } from "../@types/BaseEvent";
import { Command } from "../@types/Command";
import { CommandHandler } from "../@types/CommandHandler";
import { EventHandler } from "../@types/EventHandler";
import { EventStoreResult, LittleEsEvent } from "../@types/LittleEsEvent";
import { PersistanceHandler } from "../@types/PersistanceHandler";
import { PublishingHandler } from "../@types/PublishingHandler";
import { Aggregate } from "../types/Aggregate";
import { BaseEvent } from "../types/BaseEvent";
import { Command } from "../types/Command";
import { CommandHandler } from "../types/CommandHandler";
import { EventHandler } from "../types/EventHandler";
import { EventStoreResult, LittleEsEvent } from "../types/LittleEsEvent";
import { PersistanceHandler } from "../types/PersistanceHandler";
import { PublishingHandler } from "../types/PublishingHandler";

import { hydrateAggregate, ID_SEPARATOR, SafeArray } from "./util";

Expand Down
6 changes: 3 additions & 3 deletions src/lib/globalProjection.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/* eslint-disable functional/prefer-readonly-type */
import anyTest, { TestFn } from 'ava';

import { GlobalProjection } from '../@types/GlobalProjection';
import { LittleEsEvent } from '../@types/LittleEsEvent';
import { Snapshot } from '../@types/Snapshot';
import { GlobalProjection } from '../types/GlobalProjection';
import { LittleEsEvent } from '../types/LittleEsEvent';
import { Snapshot } from '../types/Snapshot';

import { createGlobalProjection } from './projection';
import { mockPersistanceHandler, ProductEvent, ProductPriceChangesGlobalProjection, projectionTestEventData } from './testdata.spec';
Expand Down
6 changes: 3 additions & 3 deletions src/lib/namedProjection.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/* eslint-disable functional/prefer-readonly-type */
import anyTest, { TestFn } from 'ava';

import { LittleEsEvent } from '../@types/LittleEsEvent';
import { NamedProjection } from '../@types/NamedProjection';
import { Snapshot } from '../@types/Snapshot';
import { LittleEsEvent } from '../types/LittleEsEvent';
import { NamedProjection } from '../types/NamedProjection';
import { Snapshot } from '../types/Snapshot';

import { createNamedProjection } from './projection';
import { mockPersistanceHandler, ProductEvent, ProductHistoryProjection, projectionTestEventData } from './testdata.spec';
Expand Down
14 changes: 7 additions & 7 deletions src/lib/projection.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { BaseEvent } from "../@types/BaseEvent";
import { EventHandler } from "../@types/EventHandler";
import { GlobalProjection } from "../@types/GlobalProjection";
import { EventStoreResult } from "../@types/LittleEsEvent";
import { NamedProjection } from "../@types/NamedProjection";
import { PersistanceHandler } from "../@types/PersistanceHandler";
import { PersistedProjection } from "../@types/PersistedAggregate";
import { BaseEvent } from "../types/BaseEvent";
import { EventHandler } from "../types/EventHandler";
import { GlobalProjection } from "../types/GlobalProjection";
import { EventStoreResult } from "../types/LittleEsEvent";
import { NamedProjection } from "../types/NamedProjection";
import { PersistanceHandler } from "../types/PersistanceHandler";
import { PersistedProjection } from "../types/PersistedAggregate";

import { hydrateProjectionFromSnapshot, SafeArray, snapshotProjection } from "./util";

Expand Down
12 changes: 6 additions & 6 deletions src/lib/testdata.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { ExecutionContext } from "ava"

import { BaseEvent } from "../@types/BaseEvent"
import { CommandHandlerEnum } from "../@types/CommandHandlerEnum"
import { EventHandlerEnum } from "../@types/EventHandlerEnum"
import { LittleEsEvent } from "../@types/LittleEsEvent"
import { PersistanceHandler } from "../@types/PersistanceHandler"
import { Snapshot } from "../@types/Snapshot"
import { BaseEvent } from "../types/BaseEvent"
import { CommandHandlerEnum } from "../types/CommandHandlerEnum"
import { EventHandlerEnum } from "../types/EventHandlerEnum"
import { LittleEsEvent } from "../types/LittleEsEvent"
import { PersistanceHandler } from "../types/PersistanceHandler"
import { Snapshot } from "../types/Snapshot"

import { extractEventSequenceId, validateEventId } from "./util"

Expand Down
10 changes: 5 additions & 5 deletions src/lib/util.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { BaseEvent } from "../@types/BaseEvent";
import { EventHandler } from "../@types/EventHandler";
import { EventStoreResult, LittleEsEvent } from "../@types/LittleEsEvent";
import { PersistanceHandler } from "../@types/PersistanceHandler";
import { PersistedProjection } from "../@types/PersistedAggregate";
import { BaseEvent } from "../types/BaseEvent";
import { EventHandler } from "../types/EventHandler";
import { EventStoreResult, LittleEsEvent } from "../types/LittleEsEvent";
import { PersistanceHandler } from "../types/PersistanceHandler";
import { PersistedProjection } from "../types/PersistedAggregate";

export const SafeArray = (arr: readonly unknown[]) => arr?.length;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f5e2d45

Please sign in to comment.