Skip to content

Commit a37714d

Browse files
committed
feat(command-flow): merge /utilities entries into the main entries
1 parent 05ea8b3 commit a37714d

12 files changed

Lines changed: 64 additions & 30 deletions

File tree

packages/command-flow/process-flow/utilities/src/factory.ts renamed to packages/command-flow/process-flow/src/factory.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { COMMAND_EVENT_META, COMMAND_META } from '@angularity/command-flow';
2-
import { Process, ProcessEvent } from '@angularity/command-flow/process-flow';
3-
import {
1+
import { COMMAND_EVENT_META, COMMAND_META,
42
createDualUseFactory,
53
DualUseFactory,
6-
Extend,
7-
} from '@angularity/command-flow/utilities';
4+
Extend } from '@angularity/command-flow';
85
import { TypeContainer } from '@angularity/core';
96

7+
import { Process } from './core';
8+
import { ProcessEvent } from './events';
9+
1010
export interface DualUseProcessType<Payload extends object | void, Result>
1111
extends DualUseFactory<
1212
(payload: Payload) => Extend<Process<Result>, Payload>

packages/command-flow/process-flow/utilities/src/miscellaneous.ts renamed to packages/command-flow/process-flow/src/miscellaneous.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
import { Type } from '@angular/core';
2-
import { COMMAND_EVENT_META as META } from '@angularity/command-flow';
3-
import {
4-
Process,
5-
ProcessCompleted,
6-
ProcessFailed,
7-
ProcessStarted,
8-
} from '@angularity/command-flow/process-flow';
9-
import { createPseudoType } from '@angularity/command-flow/utilities';
2+
import { COMMAND_EVENT_META as META, createPseudoType } from '@angularity/command-flow';
3+
4+
import { Process } from './core';
5+
import { ProcessCompleted, ProcessFailed,ProcessStarted } from './events';
106

117
export function createPseudoProcessEventTypes<P extends Process<any>>(
128
type: Type<P>,
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
export * from './core';
22
export * from './events';
33
export * from './facade';
4+
export * from './factory';
45
export * from './handler';
6+
export * from './miscellaneous';
57
export * from './shared';
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
export * from './factory';
2-
export * from './miscellaneous';
1+
/**
2+
* @deprecated Use exports from `@angularity/command-flow/process-flow` instead
3+
*/
4+
5+
export {
6+
createProcessEventType,
7+
createProcessType,
8+
createPseudoProcessEventTypes,
9+
DualUseProcessEventType,
10+
DualUseProcessType,
11+
} from '@angularity/command-flow/process-flow';

packages/command-flow/query-flow/utilities/src/factory.ts renamed to packages/command-flow/query-flow/src/factory.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { COMMAND_EVENT_META, COMMAND_META } from '@angularity/command-flow';
2-
import { Query, QueryEvent } from '@angularity/command-flow/query-flow';
3-
import {
1+
import { COMMAND_EVENT_META, COMMAND_META,
42
createDualUseFactory,
53
DualUseFactory,
6-
Extend,
7-
} from '@angularity/command-flow/utilities';
4+
Extend } from '@angularity/command-flow';
85
import { TypeContainer } from '@angularity/core';
96

7+
import { Query } from './core';
8+
import { QueryEvent } from './events';
9+
1010
export interface DualUseQueryType<Payload extends object | void, Result>
1111
extends DualUseFactory<
1212
(payload: Payload) => Extend<Query<Result>, Payload>

packages/command-flow/query-flow/utilities/src/miscellaneous.ts renamed to packages/command-flow/query-flow/src/miscellaneous.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { Type } from '@angular/core';
2-
import { COMMAND_EVENT_META as META } from '@angularity/command-flow';
2+
import { COMMAND_EVENT_META as META, createPseudoType } from '@angularity/command-flow';
3+
4+
import { Query } from './core';
35
import {
4-
Query,
56
QueryActivated,
67
QueryErrored,
78
QueryInactivated,
89
QueryResolved,
9-
} from '@angularity/command-flow/query-flow';
10-
import { createPseudoType } from '@angularity/command-flow/utilities';
10+
} from './events';
1111

1212
export function createPseudoQueryEventTypes<Q extends Query<any>>(
1313
type: Type<Q>,

packages/command-flow/query-flow/src/public-api.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ export * from './commands';
22
export * from './core';
33
export * from './events';
44
export * from './facade';
5+
export * from './factory';
56
export * from './handler';
7+
export * from './miscellaneous';
68
export * from './shared';
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
export * from './factory';
2-
export * from './miscellaneous';
1+
/**
2+
* @deprecated Use exports from `@angularity/command-flow/query-flow` instead
3+
*/
4+
5+
export {
6+
createPseudoQueryEventTypes,
7+
createQueryEventType,
8+
createQueryType,
9+
DualUseQueryEventType,
10+
DualUseQueryType,
11+
} from '@angularity/command-flow/query-flow';

packages/command-flow/utilities/src/factories.ts renamed to packages/command-flow/src/factories.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
import { TypeContainer } from '@angularity/core';
2+
13
import {
24
Command,
35
COMMAND_EVENT_META,
46
COMMAND_META,
57
CommandEvent,
6-
} from '@angularity/command-flow';
7-
import { TypeContainer } from '@angularity/core';
8+
} from './core';
89

910
/**
1011
* Type function that extends an object with properties from another object or `void`.
File renamed without changes.

0 commit comments

Comments
 (0)