atomservices 0.10.0-alpha.9 → 0.12.0-alpha.1

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.
Files changed (214) hide show
  1. package/dist/index.d.mts +33 -0
  2. package/dist/index.d.ts +33 -0
  3. package/dist/index.js +19 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/index.mjs +1 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +22 -34
  8. package/LICENSE +0 -21
  9. package/README.md +0 -1
  10. package/RELEASES.md +0 -1
  11. package/lib/Commands/DispatchResult.js +0 -38
  12. package/lib/Commands/DispatchResult.js.map +0 -1
  13. package/lib/Commands/ICommandDispatcher.js +0 -3
  14. package/lib/Commands/ICommandDispatcher.js.map +0 -1
  15. package/lib/Commands/ICommandDispatchers.js +0 -3
  16. package/lib/Commands/ICommandDispatchers.js.map +0 -1
  17. package/lib/Commands/ICommandHandlers.js +0 -3
  18. package/lib/Commands/ICommandHandlers.js.map +0 -1
  19. package/lib/Commands/combineCommandDispatchers.js +0 -28
  20. package/lib/Commands/combineCommandDispatchers.js.map +0 -1
  21. package/lib/Commands/composeCommandHandlers.js +0 -31
  22. package/lib/Commands/composeCommandHandlers.js.map +0 -1
  23. package/lib/Commands/index.js +0 -9
  24. package/lib/Commands/index.js.map +0 -1
  25. package/lib/Containers/Enhancement.js +0 -3
  26. package/lib/Containers/Enhancement.js.map +0 -1
  27. package/lib/Containers/IManagedServiceContainerResult.js +0 -4
  28. package/lib/Containers/IManagedServiceContainerResult.js.map +0 -1
  29. package/lib/Containers/createContainer.js +0 -75
  30. package/lib/Containers/createContainer.js.map +0 -1
  31. package/lib/Containers/createContainerCompose.js +0 -11
  32. package/lib/Containers/createContainerCompose.js.map +0 -1
  33. package/lib/Containers/index.js +0 -7
  34. package/lib/Containers/index.js.map +0 -1
  35. package/lib/Context/Factories/ServiceConfigurateFactory.js +0 -25
  36. package/lib/Context/Factories/ServiceConfigurateFactory.js.map +0 -1
  37. package/lib/Context/Factories/ServiceIdentifierFactory.js +0 -16
  38. package/lib/Context/Factories/ServiceIdentifierFactory.js.map +0 -1
  39. package/lib/Context/Factories/index.js +0 -11
  40. package/lib/Context/Factories/index.js.map +0 -1
  41. package/lib/Context/index.js +0 -5
  42. package/lib/Context/index.js.map +0 -1
  43. package/lib/Events/IEventHandlers.js +0 -3
  44. package/lib/Events/IEventHandlers.js.map +0 -1
  45. package/lib/Events/composeEventHandlers.js +0 -31
  46. package/lib/Events/composeEventHandlers.js.map +0 -1
  47. package/lib/Events/index.js +0 -5
  48. package/lib/Events/index.js.map +0 -1
  49. package/lib/Exceptions/Constants.js +0 -28
  50. package/lib/Exceptions/Constants.js.map +0 -1
  51. package/lib/Exceptions/Core.js +0 -41
  52. package/lib/Exceptions/Core.js.map +0 -1
  53. package/lib/Exceptions/ExtendException.js +0 -15
  54. package/lib/Exceptions/ExtendException.js.map +0 -1
  55. package/lib/Exceptions/IExtendException.js +0 -3
  56. package/lib/Exceptions/IExtendException.js.map +0 -1
  57. package/lib/Exceptions/createException.js +0 -7
  58. package/lib/Exceptions/createException.js.map +0 -1
  59. package/lib/GlobalScope.js +0 -5
  60. package/lib/GlobalScope.js.map +0 -1
  61. package/lib/Identifiers/UUIDIdentifier.js +0 -10
  62. package/lib/Identifiers/UUIDIdentifier.js.map +0 -1
  63. package/lib/Identifiers/index.js +0 -5
  64. package/lib/Identifiers/index.js.map +0 -1
  65. package/lib/Notifiers/NotifyLog.js +0 -30
  66. package/lib/Notifiers/NotifyLog.js.map +0 -1
  67. package/lib/Notifiers/NotifyObject.js +0 -35
  68. package/lib/Notifiers/NotifyObject.js.map +0 -1
  69. package/lib/Notifiers/composeNotifiers.js +0 -36
  70. package/lib/Notifiers/composeNotifiers.js.map +0 -1
  71. package/lib/Notifiers/data/ContainersNotifyData.js +0 -10
  72. package/lib/Notifiers/data/ContainersNotifyData.js.map +0 -1
  73. package/lib/Notifiers/data/ServicesNotifyData.js +0 -18
  74. package/lib/Notifiers/data/ServicesNotifyData.js.map +0 -1
  75. package/lib/Notifiers/data/common/ContainersData.js +0 -9
  76. package/lib/Notifiers/data/common/ContainersData.js.map +0 -1
  77. package/lib/Notifiers/data/common/IConstantData.js +0 -3
  78. package/lib/Notifiers/data/common/IConstantData.js.map +0 -1
  79. package/lib/Notifiers/data/common/ServicesData.js +0 -17
  80. package/lib/Notifiers/data/common/ServicesData.js.map +0 -1
  81. package/lib/Notifiers/data/common/composeNotifyData.js +0 -15
  82. package/lib/Notifiers/data/common/composeNotifyData.js.map +0 -1
  83. package/lib/Notifiers/data/common/index.js +0 -9
  84. package/lib/Notifiers/data/common/index.js.map +0 -1
  85. package/lib/Notifiers/data/index.js +0 -7
  86. package/lib/Notifiers/data/index.js.map +0 -1
  87. package/lib/Notifiers/index.js +0 -13
  88. package/lib/Notifiers/index.js.map +0 -1
  89. package/lib/Reactions/IReactions.js +0 -3
  90. package/lib/Reactions/IReactions.js.map +0 -1
  91. package/lib/Reactions/composeReactions.js +0 -41
  92. package/lib/Reactions/composeReactions.js.map +0 -1
  93. package/lib/Reactions/index.js +0 -5
  94. package/lib/Reactions/index.js.map +0 -1
  95. package/lib/SFComponents/createSFComponents.js +0 -147
  96. package/lib/SFComponents/createSFComponents.js.map +0 -1
  97. package/lib/SFComponents/index.js +0 -5
  98. package/lib/SFComponents/index.js.map +0 -1
  99. package/lib/Services/core/MetadataRefiner.js +0 -31
  100. package/lib/Services/core/MetadataRefiner.js.map +0 -1
  101. package/lib/Services/core/composeEventProcess.js +0 -31
  102. package/lib/Services/core/composeEventProcess.js.map +0 -1
  103. package/lib/Services/core/composeEventReactions.js +0 -56
  104. package/lib/Services/core/composeEventReactions.js.map +0 -1
  105. package/lib/Services/core/composeEventResulting.js +0 -5
  106. package/lib/Services/core/composeEventResulting.js.map +0 -1
  107. package/lib/Services/core/composeServiceContext.js +0 -126
  108. package/lib/Services/core/composeServiceContext.js.map +0 -1
  109. package/lib/Services/core/connectStream/connectStream.js +0 -26
  110. package/lib/Services/core/connectStream/connectStream.js.map +0 -1
  111. package/lib/Services/core/connectStream/index.js +0 -5
  112. package/lib/Services/core/connectStream/index.js.map +0 -1
  113. package/lib/Services/core/connectStream/mapHandlersEvents.js +0 -9
  114. package/lib/Services/core/connectStream/mapHandlersEvents.js.map +0 -1
  115. package/lib/Services/core/connectStream/mapReactionsEvents.js +0 -5
  116. package/lib/Services/core/connectStream/mapReactionsEvents.js.map +0 -1
  117. package/lib/Services/core/createCommandDispatcher.js +0 -56
  118. package/lib/Services/core/createCommandDispatcher.js.map +0 -1
  119. package/lib/Services/core/index.js +0 -13
  120. package/lib/Services/core/index.js.map +0 -1
  121. package/lib/Services/core/operateEventProcess.js +0 -39
  122. package/lib/Services/core/operateEventProcess.js.map +0 -1
  123. package/lib/Services/createService.js +0 -111
  124. package/lib/Services/createService.js.map +0 -1
  125. package/lib/Services/index.js +0 -5
  126. package/lib/Services/index.js.map +0 -1
  127. package/lib/States/IStateHandlers.js +0 -3
  128. package/lib/States/IStateHandlers.js.map +0 -1
  129. package/lib/States/composeStateApplier.js +0 -14
  130. package/lib/States/composeStateApplier.js.map +0 -1
  131. package/lib/States/composeStateHandlers.js +0 -27
  132. package/lib/States/composeStateHandlers.js.map +0 -1
  133. package/lib/States/index.js +0 -7
  134. package/lib/States/index.js.map +0 -1
  135. package/lib/Streams/LocalDirectStream.js +0 -16
  136. package/lib/Streams/LocalDirectStream.js.map +0 -1
  137. package/lib/Streams/LocalEventStream.js +0 -47
  138. package/lib/Streams/LocalEventStream.js.map +0 -1
  139. package/lib/Streams/LocalInMemoryEventStream.js +0 -13
  140. package/lib/Streams/LocalInMemoryEventStream.js.map +0 -1
  141. package/lib/Streams/endpoints.js +0 -9
  142. package/lib/Streams/endpoints.js.map +0 -1
  143. package/lib/Streams/index.js +0 -7
  144. package/lib/Streams/index.js.map +0 -1
  145. package/lib/index.js +0 -18
  146. package/lib/index.js.map +0 -1
  147. package/typings/Commands/DispatchResult.d.ts +0 -16
  148. package/typings/Commands/ICommandDispatcher.d.ts +0 -6
  149. package/typings/Commands/ICommandDispatchers.d.ts +0 -4
  150. package/typings/Commands/ICommandHandlers.d.ts +0 -6
  151. package/typings/Commands/combineCommandDispatchers.d.ts +0 -3
  152. package/typings/Commands/composeCommandHandlers.d.ts +0 -3
  153. package/typings/Commands/index.d.ts +0 -6
  154. package/typings/Containers/Enhancement.d.ts +0 -3
  155. package/typings/Containers/IManagedServiceContainerResult.d.ts +0 -5
  156. package/typings/Containers/createContainer.d.ts +0 -4
  157. package/typings/Containers/createContainerCompose.d.ts +0 -5
  158. package/typings/Containers/index.d.ts +0 -3
  159. package/typings/Context/Factories/ServiceConfigurateFactory.d.ts +0 -4
  160. package/typings/Context/Factories/ServiceIdentifierFactory.d.ts +0 -4
  161. package/typings/Context/Factories/index.d.ts +0 -8
  162. package/typings/Context/index.d.ts +0 -1
  163. package/typings/Events/IEventHandlers.d.ts +0 -6
  164. package/typings/Events/composeEventHandlers.d.ts +0 -3
  165. package/typings/Events/index.d.ts +0 -2
  166. package/typings/Exceptions/Constants.d.ts +0 -58
  167. package/typings/Exceptions/Core.d.ts +0 -12
  168. package/typings/Exceptions/ExtendException.d.ts +0 -6
  169. package/typings/Exceptions/IExtendException.d.ts +0 -7
  170. package/typings/Exceptions/createException.d.ts +0 -5
  171. package/typings/GlobalScope.d.ts +0 -1
  172. package/typings/Identifiers/UUIDIdentifier.d.ts +0 -2
  173. package/typings/Identifiers/index.d.ts +0 -1
  174. package/typings/Notifiers/NotifyLog.d.ts +0 -14
  175. package/typings/Notifiers/NotifyObject.d.ts +0 -17
  176. package/typings/Notifiers/composeNotifiers.d.ts +0 -2
  177. package/typings/Notifiers/data/ContainersNotifyData.d.ts +0 -12
  178. package/typings/Notifiers/data/ServicesNotifyData.d.ts +0 -52
  179. package/typings/Notifiers/data/common/ContainersData.d.ts +0 -5
  180. package/typings/Notifiers/data/common/IConstantData.d.ts +0 -6
  181. package/typings/Notifiers/data/common/ServicesData.d.ts +0 -13
  182. package/typings/Notifiers/data/common/composeNotifyData.d.ts +0 -9
  183. package/typings/Notifiers/data/common/index.d.ts +0 -4
  184. package/typings/Notifiers/data/index.d.ts +0 -2
  185. package/typings/Notifiers/index.d.ts +0 -5
  186. package/typings/Reactions/IReactions.d.ts +0 -6
  187. package/typings/Reactions/composeReactions.d.ts +0 -3
  188. package/typings/Reactions/index.d.ts +0 -2
  189. package/typings/SFComponents/createSFComponents.d.ts +0 -22
  190. package/typings/SFComponents/index.d.ts +0 -1
  191. package/typings/Services/core/MetadataRefiner.d.ts +0 -13
  192. package/typings/Services/core/composeEventProcess.d.ts +0 -2
  193. package/typings/Services/core/composeEventReactions.d.ts +0 -2
  194. package/typings/Services/core/composeEventResulting.d.ts +0 -2
  195. package/typings/Services/core/composeServiceContext.d.ts +0 -5
  196. package/typings/Services/core/connectStream/connectStream.d.ts +0 -2
  197. package/typings/Services/core/connectStream/index.d.ts +0 -1
  198. package/typings/Services/core/connectStream/mapHandlersEvents.d.ts +0 -5
  199. package/typings/Services/core/connectStream/mapReactionsEvents.d.ts +0 -6
  200. package/typings/Services/core/createCommandDispatcher.d.ts +0 -3
  201. package/typings/Services/core/index.d.ts +0 -5
  202. package/typings/Services/core/operateEventProcess.d.ts +0 -5
  203. package/typings/Services/createService.d.ts +0 -2
  204. package/typings/Services/index.d.ts +0 -1
  205. package/typings/States/IStateHandlers.d.ts +0 -5
  206. package/typings/States/composeStateApplier.d.ts +0 -5
  207. package/typings/States/composeStateHandlers.d.ts +0 -3
  208. package/typings/States/index.d.ts +0 -3
  209. package/typings/Streams/LocalDirectStream.d.ts +0 -2
  210. package/typings/Streams/LocalEventStream.d.ts +0 -2
  211. package/typings/Streams/LocalInMemoryEventStream.d.ts +0 -2
  212. package/typings/Streams/endpoints.d.ts +0 -13
  213. package/typings/Streams/index.d.ts +0 -2
  214. package/typings/index.d.ts +0 -11
@@ -1,17 +0,0 @@
1
- import { INotifyData, INotifyObject } from "atomservicescore";
2
- export declare class NotifyObject implements INotifyObject {
3
- readonly action: string;
4
- readonly level: string;
5
- readonly component: {
6
- type: string;
7
- name: string;
8
- };
9
- readonly fields: {
10
- [field: string]: any;
11
- };
12
- readonly message: string;
13
- readonly obj: {
14
- [key: string]: any;
15
- };
16
- constructor(data: INotifyData, error?: Error);
17
- }
@@ -1,2 +0,0 @@
1
- import { INotifier, INotifiers } from "atomservicescore";
2
- export declare const composeNotifiers: (...notifiers: INotifier[]) => INotifiers;
@@ -1,12 +0,0 @@
1
- export declare const ContainersNotifyData: {
2
- CONTAINER_CONNECTED: (name: string, fields?: {
3
- [field: string]: any;
4
- } | undefined, obj?: {
5
- [key: string]: any;
6
- } | undefined) => import("atomservicescore").INotifyData;
7
- CONTAINER_CREATED: (name: string, fields?: {
8
- [field: string]: any;
9
- } | undefined, obj?: {
10
- [key: string]: any;
11
- } | undefined) => import("atomservicescore").INotifyData;
12
- };
@@ -1,52 +0,0 @@
1
- export declare const ServicesNotifyData: {
2
- SERVICE_COMMAND_DISPATCHING: (name: string, fields?: {
3
- [field: string]: any;
4
- } | undefined, obj?: {
5
- [key: string]: any;
6
- } | undefined) => import("atomservicescore").INotifyData;
7
- SERVICE_COMMAND_ERROR: (name: string, fields?: {
8
- [field: string]: any;
9
- } | undefined, obj?: {
10
- [key: string]: any;
11
- } | undefined) => import("atomservicescore").INotifyData;
12
- SERVICE_COMMAND_INVALID: (name: string, fields?: {
13
- [field: string]: any;
14
- } | undefined, obj?: {
15
- [key: string]: any;
16
- } | undefined) => import("atomservicescore").INotifyData;
17
- SERVICE_COMMAND_UNHANDLED: (name: string, fields?: {
18
- [field: string]: any;
19
- } | undefined, obj?: {
20
- [key: string]: any;
21
- } | undefined) => import("atomservicescore").INotifyData;
22
- SERVICE_CONNECTED: (name: string, fields?: {
23
- [field: string]: any;
24
- } | undefined, obj?: {
25
- [key: string]: any;
26
- } | undefined) => import("atomservicescore").INotifyData;
27
- SERVICE_CREATED: (name: string, fields?: {
28
- [field: string]: any;
29
- } | undefined, obj?: {
30
- [key: string]: any;
31
- } | undefined) => import("atomservicescore").INotifyData;
32
- SERVICE_EVENT_DISPATCHED: (name: string, fields?: {
33
- [field: string]: any;
34
- } | undefined, obj?: {
35
- [key: string]: any;
36
- } | undefined) => import("atomservicescore").INotifyData;
37
- SERVICE_EVENT_HANDLED: (name: string, fields?: {
38
- [field: string]: any;
39
- } | undefined, obj?: {
40
- [key: string]: any;
41
- } | undefined) => import("atomservicescore").INotifyData;
42
- SERVICE_EVENT_REACTED: (name: string, fields?: {
43
- [field: string]: any;
44
- } | undefined, obj?: {
45
- [key: string]: any;
46
- } | undefined) => import("atomservicescore").INotifyData;
47
- SERVICE_EVENT_UNHANDLED_ERROR: (name: string, fields?: {
48
- [field: string]: any;
49
- } | undefined, obj?: {
50
- [key: string]: any;
51
- } | undefined) => import("atomservicescore").INotifyData;
52
- };
@@ -1,5 +0,0 @@
1
- import { IConstantData } from "./IConstantData";
2
- export declare const ContainersData: {
3
- CONTAINER_CONNECTED: IConstantData;
4
- CONTAINER_CREATED: IConstantData;
5
- };
@@ -1,6 +0,0 @@
1
- export interface IConstantData {
2
- action: string;
3
- level: string;
4
- message: string;
5
- type: string;
6
- }
@@ -1,13 +0,0 @@
1
- import { IConstantData } from "./IConstantData";
2
- export declare const ServicesData: {
3
- SERVICE_COMMAND_DISPATCHING: IConstantData;
4
- SERVICE_COMMAND_ERROR: IConstantData;
5
- SERVICE_COMMAND_INVALID: IConstantData;
6
- SERVICE_COMMAND_UNHANDLED: IConstantData;
7
- SERVICE_CONNECTED: IConstantData;
8
- SERVICE_CREATED: IConstantData;
9
- SERVICE_EVENT_DISPATCHED: IConstantData;
10
- SERVICE_EVENT_HANDLED: IConstantData;
11
- SERVICE_EVENT_REACTED: IConstantData;
12
- SERVICE_EVENT_UNHANDLED_ERROR: IConstantData;
13
- };
@@ -1,9 +0,0 @@
1
- import { INotifyData } from "atomservicescore";
2
- import { IConstantData } from "./IConstantData";
3
- declare type ComposingNotifyData = (data: IConstantData) => (name: string, fields?: {
4
- [field: string]: any;
5
- }, obj?: {
6
- [key: string]: any;
7
- }) => INotifyData;
8
- export declare const composeNotifyData: ComposingNotifyData;
9
- export {};
@@ -1,4 +0,0 @@
1
- export { composeNotifyData } from "./composeNotifyData";
2
- export { ContainersData } from "./ContainersData";
3
- export { IConstantData } from "./IConstantData";
4
- export { ServicesData } from "./ServicesData";
@@ -1,2 +0,0 @@
1
- export { ContainersNotifyData } from "./ContainersNotifyData";
2
- export { ServicesNotifyData } from "./ServicesNotifyData";
@@ -1,5 +0,0 @@
1
- export { ContainersNotifyData } from "./data/ContainersNotifyData";
2
- export { ServicesNotifyData } from "./data/ServicesNotifyData";
3
- export { composeNotifiers } from "./composeNotifiers";
4
- export { NotifyLog } from "./NotifyLog";
5
- export { NotifyObject } from "./NotifyObject";
@@ -1,6 +0,0 @@
1
- import { IEvent, IReaction } from "atomservicescore";
2
- export interface IReactions {
3
- type: () => string;
4
- resolve: (event: IEvent, scope: string) => IReaction[];
5
- forEach: (callback: (reaction: IReaction) => void) => number;
6
- }
@@ -1,3 +0,0 @@
1
- import { IReaction } from "atomservicescore";
2
- import { IReactions } from "./IReactions";
3
- export declare const composeReactions: (...reactions: IReaction[]) => (type: string) => IReactions;
@@ -1,2 +0,0 @@
1
- export { composeReactions } from "./composeReactions";
2
- export { IReactions } from "./IReactions";
@@ -1,22 +0,0 @@
1
- /// <reference types="node" />
2
- import { ICommand, IEvent, ISFComponents, IServiceIdentifier, IValidationResultType, EventHandler, EventProcessType, EventStream, EventVersioning } from "atomservicescore";
3
- export declare const createSFComponents: <Event_1 extends IEvent<any, any, any, any> = IEvent<any, any, any, any>, Command extends ICommand<any, any> = ICommand<Event_1["payloads"], Event_1["_createdBy"]>, ProcessResult = any>(structure: {
4
- configs?: {
5
- level?: "Public" | "Scope" | undefined;
6
- processType?: "asynchronous" | "synchronous" | undefined;
7
- versioning?: "none" | "static" | "dynamic" | undefined;
8
- } | undefined;
9
- event: {
10
- name: string;
11
- process?: EventHandler.EventProcessHandle<Event_1, ProcessResult> | undefined;
12
- processEffect?: EventHandler.EventProcessEffectHandle<Event_1, ProcessResult> | undefined;
13
- };
14
- command?: {
15
- name?: string | undefined;
16
- validate?: ((command: Command) => IValidationResultType) | undefined;
17
- transform?: ((command: Command, identifier: IServiceIdentifier<Event_1["aggregateID"], Event_1["_id"]>) => Event_1) | undefined;
18
- } | undefined;
19
- state?: {
20
- apply?: ((event: Event_1) => Promise<void>) | undefined;
21
- } | undefined;
22
- }) => ISFComponents<Event_1, Command, any>;
@@ -1 +0,0 @@
1
- export { createSFComponents } from "./createSFComponents";
@@ -1,13 +0,0 @@
1
- import { EventStream } from "atomservicescore";
2
- export declare const MetadataRefiner: {
3
- consume: (metadata: EventStream.IStreamMetadata) => EventStream.IStreamMetadata & {
4
- __: any;
5
- };
6
- dispatch: (metadata: EventStream.IStreamMetadata) => EventStream.IStreamMetadata & {
7
- __: {
8
- dispatch: {
9
- time: number;
10
- };
11
- };
12
- };
13
- };
@@ -1,2 +0,0 @@
1
- import { EventStream, IServiceDefinition } from "atomservicescore";
2
- export declare const composeEventProcess: (definition: IServiceDefinition) => EventStream.StreamProcessing;
@@ -1,2 +0,0 @@
1
- import { EventStream, IServiceDefinition } from "atomservicescore";
2
- export declare const composeEventReactions: (definition: IServiceDefinition) => EventStream.IReactStreamProcesses;
@@ -1,2 +0,0 @@
1
- import { IEvent, IServiceContext } from "atomservicescore";
2
- export declare const composeEventResulting: (ServiceContext: IServiceContext, event: IEvent) => (result: any) => Promise<void>;
@@ -1,5 +0,0 @@
1
- import { IEvent, IServiceContext, IServiceDefinition } from "atomservicescore";
2
- export declare const isEventVersionDefined: (event: IEvent) => boolean | 0 | undefined;
3
- export declare const composeServiceContext: (definition: IServiceDefinition) => (options?: {
4
- isReplay?: boolean;
5
- }) => IServiceContext;
@@ -1,2 +0,0 @@
1
- import { IServiceDefinition } from "atomservicescore";
2
- export declare const connectStream: (definition: IServiceDefinition) => Promise<void>;
@@ -1 +0,0 @@
1
- export { connectStream } from "./connectStream";
@@ -1,5 +0,0 @@
1
- import { EventStream, IServiceDefinition } from "atomservicescore";
2
- export declare const mapHandlersEvents: (definition: IServiceDefinition) => {
3
- name: string;
4
- level: EventStream.StreamLevel;
5
- }[];
@@ -1,6 +0,0 @@
1
- import { IServiceDefinition } from "atomservicescore";
2
- export declare const mapReactionsEvents: (definition: IServiceDefinition) => {
3
- scope: string;
4
- type: string;
5
- name: string;
6
- }[];
@@ -1,3 +0,0 @@
1
- import { IServiceDefinition } from "atomservicescore";
2
- import { ICommandDispatcher } from "../../Commands/ICommandDispatcher";
3
- export declare const createCommandDispatcher: (definition: IServiceDefinition) => ICommandDispatcher;
@@ -1,5 +0,0 @@
1
- export { connectStream } from "./connectStream";
2
- export { composeEventProcess } from "./composeEventProcess";
3
- export { composeEventReactions } from "./composeEventReactions";
4
- export { composeEventResulting } from "./composeEventResulting";
5
- export { composeServiceContext } from "./composeServiceContext";
@@ -1,5 +0,0 @@
1
- import { EventStream, IEvent, IEventHandler, INotifiers, IServiceContext, IStateApplier } from "atomservicescore";
2
- export declare const operateEventProcess: (EventHandler: IEventHandler, StateApplier: IStateApplier, ServiceContext: IServiceContext, resulting: (result: any) => Promise<void>, Notifiers: INotifiers) => (service: {
3
- scope: string;
4
- type: string;
5
- }, event: IEvent, metadata: EventStream.IStreamMetadata) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import { IManagedService, IService, IServicesContainer } from "atomservicescore";
2
- export declare const createService: (service: IService, container?: IServicesContainer | undefined) => IManagedService;
@@ -1 +0,0 @@
1
- export { createService } from "./createService";
@@ -1,5 +0,0 @@
1
- import { IEvent } from "atomservicescore";
2
- export interface IStateHandlers {
3
- type: () => string;
4
- apply: (events: IEvent) => Promise<void>;
5
- }
@@ -1,5 +0,0 @@
1
- import { IStateApplier } from "atomservicescore";
2
- import { IStateHandlers } from "./IStateHandlers";
3
- export declare const composeStateApplier: (props: {
4
- StateHandlers: IStateHandlers;
5
- }) => IStateApplier<import("atomservicescore").IEvent<any, any, any, any>>;
@@ -1,3 +0,0 @@
1
- import { IStateHandler } from "atomservicescore";
2
- import { IStateHandlers } from "./IStateHandlers";
3
- export declare const composeStateHandlers: (...stateHandlers: IStateHandler[]) => (type: string) => IStateHandlers;
@@ -1,3 +0,0 @@
1
- export { composeStateApplier } from "./composeStateApplier";
2
- export { composeStateHandlers } from "./composeStateHandlers";
3
- export { IStateHandlers } from "./IStateHandlers";
@@ -1,2 +0,0 @@
1
- import { EventStream } from "atomservicescore";
2
- export declare const LocalDirectStream: EventStream.IEventDirecting;
@@ -1,2 +0,0 @@
1
- import { EventStream } from "atomservicescore";
2
- export declare const LocalEventStream: EventStream.IEventPublishing & EventStream.IEventSubscribing;
@@ -1,2 +0,0 @@
1
- import { IEventStream } from "atomservicescore";
2
- export declare const LocalInMemoryEventStream: IEventStream;
@@ -1,13 +0,0 @@
1
- import { EventStream } from "atomservicescore";
2
- export declare const endpoints: {
3
- toExchange: (on: {
4
- type: string;
5
- scope: string;
6
- level: EventStream.StreamLevel;
7
- }) => string;
8
- toQueue: (to: {
9
- type: string;
10
- scope: string;
11
- channel: EventStream.EventChannel;
12
- }) => string;
13
- };
@@ -1,2 +0,0 @@
1
- export { LocalDirectStream } from "./LocalDirectStream";
2
- export { LocalInMemoryEventStream } from "./LocalInMemoryEventStream";
@@ -1,11 +0,0 @@
1
- export * as Commands from "./Commands";
2
- export * as Containers from "./Containers";
3
- export * as Context from "./Context";
4
- export * as Events from "./Events";
5
- export * as Identifiers from "./Identifiers";
6
- export * as Reactions from "./Reactions";
7
- export * as SFComponents from "./SFComponents";
8
- export * as Services from "./Services";
9
- export * as States from "./States";
10
- export { GlobalScope } from "./GlobalScope";
11
- export { DispatchFunc, DispatchResult, EventStream, IAtomCommand, IAtomEvent, IAtomState, ICommand, ICommandHandler, IEvent, IEventHandler, IReaction, IEventStores, IEventStream, IIdentifier, IManagedService, IManagedServiceContainer, INotifier, INotifyLog, INotifyObject, ISFComponents, IService, IServicesContainer, IServiceConfigs, IServiceConfigurate, IServiceContext, IServiceDefinition, IServiceIdentifier, IServiceStreamDefinition, IState, IStateApplier, IStateHandler, IValidationResultType, } from "atomservicescore";