@artstesh/postboy 1.4.5 → 1.4.6

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 (88) hide show
  1. package/lib/index.cjs +825 -1
  2. package/lib/index.cjs.map +1 -1
  3. package/lib/index.d.mts +701 -0
  4. package/lib/index.d.ts +701 -10
  5. package/lib/index.mjs +802 -1
  6. package/lib/index.mjs.map +1 -1
  7. package/package.json +3 -3
  8. package/lib/i-postboy-depending.service.d.ts +0 -5
  9. package/lib/i-postboy-depending.service.d.ts.map +0 -1
  10. package/lib/index.d.ts.map +0 -1
  11. package/lib/messages/add-middleware.executor.d.ts +0 -19
  12. package/lib/messages/add-middleware.executor.d.ts.map +0 -1
  13. package/lib/messages/add-namespace.executor.d.ts +0 -19
  14. package/lib/messages/add-namespace.executor.d.ts.map +0 -1
  15. package/lib/messages/connect-executor.executor.d.ts +0 -25
  16. package/lib/messages/connect-executor.executor.d.ts.map +0 -1
  17. package/lib/messages/connect-handler.executor.d.ts +0 -25
  18. package/lib/messages/connect-handler.executor.d.ts.map +0 -1
  19. package/lib/messages/connect-message.executor.d.ts +0 -28
  20. package/lib/messages/connect-message.executor.d.ts.map +0 -1
  21. package/lib/messages/disconnect-message.executor.d.ts +0 -19
  22. package/lib/messages/disconnect-message.executor.d.ts.map +0 -1
  23. package/lib/messages/eliminate-namespace.executor.d.ts +0 -16
  24. package/lib/messages/eliminate-namespace.executor.d.ts.map +0 -1
  25. package/lib/messages/index.d.ts +0 -11
  26. package/lib/messages/index.d.ts.map +0 -1
  27. package/lib/messages/lock-message.executor.d.ts +0 -22
  28. package/lib/messages/lock-message.executor.d.ts.map +0 -1
  29. package/lib/messages/remove-middleware.executor.d.ts +0 -17
  30. package/lib/messages/remove-middleware.executor.d.ts.map +0 -1
  31. package/lib/messages/unlock-message.executor.d.ts +0 -21
  32. package/lib/messages/unlock-message.executor.d.ts.map +0 -1
  33. package/lib/models/index.d.ts +0 -8
  34. package/lib/models/index.d.ts.map +0 -1
  35. package/lib/models/postboy-callback.message.d.ts +0 -48
  36. package/lib/models/postboy-callback.message.d.ts.map +0 -1
  37. package/lib/models/postboy-execution.handler.d.ts +0 -21
  38. package/lib/models/postboy-execution.handler.d.ts.map +0 -1
  39. package/lib/models/postboy-executor.d.ts +0 -5
  40. package/lib/models/postboy-executor.d.ts.map +0 -1
  41. package/lib/models/postboy-generic-message.d.ts +0 -8
  42. package/lib/models/postboy-generic-message.d.ts.map +0 -1
  43. package/lib/models/postboy-message-metadata.d.ts +0 -26
  44. package/lib/models/postboy-message-metadata.d.ts.map +0 -1
  45. package/lib/models/postboy-message.context.d.ts +0 -9
  46. package/lib/models/postboy-message.context.d.ts.map +0 -1
  47. package/lib/models/postboy-middleware.d.ts +0 -5
  48. package/lib/models/postboy-middleware.d.ts.map +0 -1
  49. package/lib/models/postboy-subscription.d.ts +0 -39
  50. package/lib/models/postboy-subscription.d.ts.map +0 -1
  51. package/lib/models/postboy.message.d.ts +0 -7
  52. package/lib/models/postboy.message.d.ts.map +0 -1
  53. package/lib/models/postboy.settings.d.ts +0 -13
  54. package/lib/models/postboy.settings.d.ts.map +0 -1
  55. package/lib/postboy-abstract.registrator.d.ts +0 -97
  56. package/lib/postboy-abstract.registrator.d.ts.map +0 -1
  57. package/lib/postboy.service.d.ts +0 -157
  58. package/lib/postboy.service.d.ts.map +0 -1
  59. package/lib/services/index.d.ts +0 -4
  60. package/lib/services/index.d.ts.map +0 -1
  61. package/lib/services/namespace-registrator.d.ts +0 -14
  62. package/lib/services/namespace-registrator.d.ts.map +0 -1
  63. package/lib/services/postboy-context.service.d.ts +0 -13
  64. package/lib/services/postboy-context.service.d.ts.map +0 -1
  65. package/lib/services/postboy-dependency.resolver.d.ts +0 -32
  66. package/lib/services/postboy-dependency.resolver.d.ts.map +0 -1
  67. package/lib/services/postboy-message.store.d.ts +0 -20
  68. package/lib/services/postboy-message.store.d.ts.map +0 -1
  69. package/lib/services/postboy-middleware.service.d.ts +0 -37
  70. package/lib/services/postboy-middleware.service.d.ts.map +0 -1
  71. package/lib/services/postboy-namespace.store.d.ts +0 -34
  72. package/lib/services/postboy-namespace.store.d.ts.map +0 -1
  73. package/lib/tests/integration/models/test-callback-message.d.ts +0 -6
  74. package/lib/tests/integration/models/test-callback-message.d.ts.map +0 -1
  75. package/lib/tests/integration/models/test-executor.d.ts +0 -7
  76. package/lib/tests/integration/models/test-executor.d.ts.map +0 -1
  77. package/lib/tests/integration/models/test-handler.d.ts +0 -8
  78. package/lib/tests/integration/models/test-handler.d.ts.map +0 -1
  79. package/lib/tests/integration/models/test-message.d.ts +0 -6
  80. package/lib/tests/integration/models/test-message.d.ts.map +0 -1
  81. package/lib/tests/integration/models/test-middleware.d.ts +0 -7
  82. package/lib/tests/integration/models/test-middleware.d.ts.map +0 -1
  83. package/lib/tests/integration/models/test-postboy.d.ts +0 -4
  84. package/lib/tests/integration/models/test-postboy.d.ts.map +0 -1
  85. package/lib/tests/integration/models/test-registry.d.ts +0 -8
  86. package/lib/tests/integration/models/test-registry.d.ts.map +0 -1
  87. package/lib/utils/id.generator.d.ts +0 -5
  88. package/lib/utils/id.generator.d.ts.map +0 -1
@@ -1,21 +0,0 @@
1
- import { PostboyGenericMessage } from '../models/postboy-generic-message';
2
- import { PostboyExecutor } from '../models/postboy-executor';
3
- import { MessageType } from '../postboy-abstract.registrator';
4
- /**
5
- * A specialized executor that handles the unlocking process for messages of a specified type.
6
- * Unlocks a previously locked message, making it available for processing again.
7
- *
8
- * @template T - The type parameter extending {@link PostboyGenericMessage}, representing the message type handled by the executor.
9
- * @extends {PostboyExecutor<void>}
10
- */
11
- export declare class UnlockMessage<T extends PostboyGenericMessage> extends PostboyExecutor<void> {
12
- type: MessageType<T>;
13
- static readonly ID = "d71d25e3-90ac-4009-b972-9e6c6b05611e";
14
- /**
15
- * Creates an instance of the class with the specified message type.
16
- *
17
- * @param {MessageType<T>} type - The message type for this instance.
18
- */
19
- constructor(type: MessageType<T>);
20
- }
21
- //# sourceMappingURL=unlock-message.executor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unlock-message.executor.d.ts","sourceRoot":"","sources":["../../src/messages/unlock-message.executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D;;;;;;GAMG;AACH,qBAAa,aAAa,CAAC,CAAC,SAAS,qBAAqB,CAAE,SAAQ,eAAe,CAAC,IAAI,CAAC;IAQpE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC;IAPvC,MAAM,CAAC,QAAQ,CAAC,EAAE,0CAA0C;IAE5D;;;;OAIG;gBACgB,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC;CAGxC"}
@@ -1,8 +0,0 @@
1
- export { PostboyMessage } from './postboy.message';
2
- export { PostboyCallbackMessage } from './postboy-callback.message';
3
- export { PostboyExecutionHandler } from './postboy-execution.handler';
4
- export { PostboyExecutor } from './postboy-executor';
5
- export { PostboyGenericMessage, checkId } from './postboy-generic-message';
6
- export { PostboyMiddleware } from './postboy-middleware';
7
- export { PostboySubscription } from './postboy-subscription';
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1,48 +0,0 @@
1
- import { Observable, Subject } from 'rxjs';
2
- import { PostboyGenericMessage } from './postboy-generic-message';
3
- /**
4
- * An abstract class extending PostboyGenericMessage that provides mechanisms for managing
5
- * asynchronous data communication using RxJS observables. It is designed to work with
6
- * callback-based operations that emit a result of type T.
7
- *
8
- * @template T - The type of the data emitted by the observables in this class.
9
- *
10
- * @extends PostboyGenericMessage
11
- *
12
- * @property {Observable<T>} result - An observable that emits the result of the operation
13
- * and completes once the operation is finished.
14
- *
15
- * @method next - Emits the next value for the result observable.
16
- * @param {T} value - The value to be emitted by the result observable.
17
- *
18
- * @method finish - Emits the final value for the result observable and completes it.
19
- * @param {T} value - The final value for the observable emission.
20
- */
21
- export declare abstract class PostboyCallbackMessage<T> extends PostboyGenericMessage {
22
- protected result$: Subject<T>;
23
- result: Observable<T>;
24
- /**
25
- * Emits the provided value.
26
- *
27
- * @template T - The type of the value to emit.
28
- * @param {T} value - The value to emit through the `result$` observable.
29
- * @returns {void}
30
- */
31
- next: (value: T) => void;
32
- /**
33
- * Marks the operation as complete by emitting the provided value and then completing the result stream.
34
- *
35
- * @param {T} value - The value to emit prior to completing the result stream.
36
- * @return {void} This method does not return a value.
37
- */
38
- finish(value: T): void;
39
- /**
40
- * Completes the current observable result stream.
41
- * This method marks the result observable as complete, ensuring no further values
42
- * or events will be emitted from it.
43
- *
44
- * @return {void} No value is returned from this method.
45
- */
46
- complete(): void;
47
- }
48
- //# sourceMappingURL=postboy-callback.message.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"postboy-callback.message.d.ts","sourceRoot":"","sources":["../../src/models/postboy-callback.message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE;;;;;;;;;;;;;;;;;GAiBG;AACH,8BAAsB,sBAAsB,CAAC,CAAC,CAAE,SAAQ,qBAAqB;IAC3E,SAAS,CAAC,OAAO,aAAoB;IAC9B,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAA+B;IAE3D;;;;;;OAMG;IACI,IAAI,UAAW,CAAC,KAAG,IAAI,CAA6B;IAE3D;;;;;OAKG;IACI,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI;IAK7B;;;;;;OAMG;IACI,QAAQ,IAAI,IAAI;CAGxB"}
@@ -1,21 +0,0 @@
1
- import { PostboyExecutor } from './postboy-executor';
2
- /**
3
- * Abstract class representing a handler for executing a Postboy task.
4
- *
5
- * This class is intended to manage the execution flow of a PostboyExecutor instance.
6
- * Subclasses must implement the `handle` method, which executes a given PostboyExecutor
7
- * and returns a result of type R.
8
- *
9
- * @template R The type of the result returned by the `handle` method.
10
- * @template E The type of the executor extending the PostboyExecutor.
11
- */
12
- export declare abstract class PostboyExecutionHandler<R, E extends PostboyExecutor<R>> {
13
- /**
14
- * Abstract method to handle the specified executor and return a result.
15
- *
16
- * @param {E} executor - The executor that will be processed by the method.
17
- * @return {R} The result obtained after handling the executor.
18
- */
19
- abstract handle(executor: E): R;
20
- }
21
- //# sourceMappingURL=postboy-execution.handler.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"postboy-execution.handler.d.ts","sourceRoot":"","sources":["../../src/models/postboy-execution.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;;;;;;GASG;AACH,8BAAsB,uBAAuB,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,CAAC,CAAC;IAC3E;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC;CAChC"}
@@ -1,5 +0,0 @@
1
- import { PostboyMessage } from './postboy.message';
2
- export declare abstract class PostboyExecutor<T> extends PostboyMessage {
3
- protected readonly _postboyResultType?: T;
4
- }
5
- //# sourceMappingURL=postboy-executor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"postboy-executor.d.ts","sourceRoot":"","sources":["../../src/models/postboy-executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,8BAAsB,eAAe,CAAC,CAAC,CAAE,SAAQ,cAAc;IAC7D,mBAA2B,kBAAkB,CAAC,EAAE,CAAC,CAAC;CACnD"}
@@ -1,8 +0,0 @@
1
- import { PostboyMessage } from './postboy.message';
2
- /**
3
- * An inheritor should have a static ID field
4
- */
5
- export declare abstract class PostboyGenericMessage extends PostboyMessage {
6
- }
7
- export declare function checkId(message: new (...args: any[]) => any): string;
8
- //# sourceMappingURL=postboy-generic-message.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"postboy-generic-message.d.ts","sourceRoot":"","sources":["../../src/models/postboy-generic-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;GAEG;AACH,8BAAsB,qBAAsB,SAAQ,cAAc;CAAG;AACrE,wBAAgB,OAAO,CAAC,OAAO,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GAAG,MAAM,CAGpE"}
@@ -1,26 +0,0 @@
1
- /**
2
- * Represents metadata associated with a Postboy message.
3
- *
4
- * This interface can be used to store optional metadata that provides
5
- * additional context or tracking information for a message. It supports
6
- * flexible extension by allowing additional properties through an index signature.
7
- *
8
- * Properties:
9
- * - `correlationId` (optional): A unique identifier used to correlate
10
- * related messages or operations across systems.
11
- * - `causationId` (optional): The identifier of the preceding message
12
- * or event that caused the current message to be produced.
13
- * - `source` (optional): The origin or source of the message, such as
14
- * a particular service or system.
15
- * - `tags` (optional): An array of tags or labels that can be attached
16
- * to the message for categorization, filtering, or logging purposes.
17
- * - `[key: string]` (optional): Additional custom properties can be
18
- * added to capture specific metadata not covered by the predefined fields.
19
- */
20
- export interface PostboyMessageMetadata {
21
- correlationId?: string;
22
- causationId?: string;
23
- tags?: Set<string>;
24
- [key: string]: any;
25
- }
26
- //# sourceMappingURL=postboy-message-metadata.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"postboy-message-metadata.d.ts","sourceRoot":"","sources":["../../src/models/postboy-message-metadata.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,sBAAsB;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
@@ -1,9 +0,0 @@
1
- export interface PostboyMessageContext {
2
- correlationId: string;
3
- currentMessageId: string;
4
- parentMessageId?: string;
5
- depth: number;
6
- startedAt: Date;
7
- tags?: Set<string>;
8
- }
9
- //# sourceMappingURL=postboy-message.context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"postboy-message.context.d.ts","sourceRoot":"","sources":["../../src/models/postboy-message.context.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;IAChB,IAAI,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACpB"}
@@ -1,5 +0,0 @@
1
- import { PostboyMessage } from './postboy.message';
2
- export interface PostboyMiddleware {
3
- handle(message: PostboyMessage): void;
4
- }
5
- //# sourceMappingURL=postboy-middleware.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"postboy-middleware.d.ts","sourceRoot":"","sources":["../../src/models/postboy-middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;CACvC"}
@@ -1,39 +0,0 @@
1
- import { Observable, Subject } from 'rxjs';
2
- /**
3
- * A class that manages a reactive subscription using a provided Subject and transformation pipe.
4
- * Offers methods to interact with the subscription, such as emitting data, completing the subscription,
5
- * and accessing the transformed observable.
6
- *
7
- * @template T The type of data managed by the subscription.
8
- */
9
- export declare class PostboySubscription<T> {
10
- private subscription;
11
- private readonly _subscription;
12
- /**
13
- * Constructs an instance of the class with a given subscription and a transformation pipe.
14
- *
15
- * @param {Subject<T>} subscription - The source Subject that will be transformed.
16
- * @param {(s: Subject<T>) => Observable<T>} pipe - A function that applies a transformation to the subscription.
17
- */
18
- constructor(subscription: Subject<T>, pipe?: (s: Subject<T>) => Observable<T>);
19
- /**
20
- * Returns an observable subscription.
21
- *
22
- * @return {Observable<T>} An observable instance of type T.
23
- */
24
- sub(): Observable<T>;
25
- /**
26
- * Triggers an event by emitting the provided data to all subscribers.
27
- *
28
- * @param {T} data - The data to emit to the subscribers.
29
- * @return {void} - Does not return any value.
30
- */
31
- fire(data: T): void;
32
- /**
33
- * Completes the subscription, signaling that no further values will be sent.
34
- * This is typically used to finalize or clean up resources.
35
- * @return {void} This method does not return any value.
36
- */
37
- finish(): void;
38
- }
39
- //# sourceMappingURL=postboy-subscription.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"postboy-subscription.d.ts","sourceRoot":"","sources":["../../src/models/postboy-subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE3C;;;;;;GAMG;AACH,qBAAa,mBAAmB,CAAC,CAAC;IAU9B,OAAO,CAAC,YAAY;IATtB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;IAE9C;;;;;OAKG;gBAEO,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,EAChC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC;IAKzC;;;;OAIG;IACI,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC;IAI3B;;;;;OAKG;IACI,IAAI,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI;IAI1B;;;;OAIG;IACI,MAAM,IAAI,IAAI;CAGtB"}
@@ -1,7 +0,0 @@
1
- import { PostboyMessageMetadata } from './postboy-message-metadata';
2
- export declare abstract class PostboyMessage {
3
- metadata: PostboyMessageMetadata;
4
- get id(): string;
5
- setMetadata(metadata: Partial<PostboyMessageMetadata>): this;
6
- }
7
- //# sourceMappingURL=postboy.message.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"postboy.message.d.ts","sourceRoot":"","sources":["../../src/models/postboy.message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,8BAAsB,cAAc;IAC3B,QAAQ,EAAE,sBAAsB,CAAM;IAC7C,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,sBAAsB,CAAC,GAAG,IAAI;CAI7D"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Represents configurable settings for the Postboy system.
3
- */
4
- export declare class PostboySettings {
5
- metadata: boolean;
6
- /**
7
- * Constructs an instance of the class with optional settings.
8
- *
9
- * @param {Partial<PostboySettings>} [settings] - Optional settings to configure the instance. Can include partial metadata or other configurations.
10
- */
11
- constructor(settings?: Partial<PostboySettings>);
12
- }
13
- //# sourceMappingURL=postboy.settings.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"postboy.settings.d.ts","sourceRoot":"","sources":["../../src/models/postboy.settings.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,eAAe;IACnB,QAAQ,EAAE,OAAO,CAAS;IAEjC;;;;OAIG;gBACS,QAAQ,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC;CAGhD"}
@@ -1,97 +0,0 @@
1
- import { PostboyService } from './postboy.service';
2
- import { Observable, Subject } from 'rxjs';
3
- import { IPostboyDependingService } from './i-postboy-depending.service';
4
- import { PostboyExecutor } from './models/postboy-executor';
5
- import { PostboyGenericMessage } from './models/postboy-generic-message';
6
- import { PostboyExecutionHandler } from './models/postboy-execution.handler';
7
- export type MessageType<T extends PostboyGenericMessage> = new (...args: any[]) => T;
8
- export declare abstract class PostboyAbstractRegistrator {
9
- protected postboy: PostboyService;
10
- get namespace(): string;
11
- private ids;
12
- private services;
13
- private readonly _namespace;
14
- constructor(postboy: PostboyService, namespace?: string | null);
15
- /**
16
- * Registers a list of services to be used by the application.
17
- *
18
- * @param {IPostboyDependingService[]} services - An array of services to register.
19
- * @return {void} This method does not return a value.
20
- */
21
- registerServices(services: IPostboyDependingService[]): void;
22
- /**
23
- * Initiates the 'up' process for the current instance and all associated services.
24
- *
25
- * @return {void} Does not return a value.
26
- */
27
- up(): void;
28
- protected abstract _up(): void;
29
- down(): void;
30
- /**
31
- * Records a type and its corresponding Subject<T> into the Postboy system and updates the internal identifiers.
32
- *
33
- * @param {MessageType<T>} type - A constructor for the generic message type T.
34
- * @param {Subject<T>} sub - The subject associated with the generic message type.
35
- * @return {this} Returns the current instance for method chaining.
36
- */
37
- record<T extends PostboyGenericMessage>(type: MessageType<T>, sub: Subject<T>): PostboyAbstractRegistrator;
38
- /**
39
- * Records a message type with a specific subject and applies a transformation pipe to the subject.
40
- *
41
- * @param {MessageType<T>} type - The constructor of the message type to record, which extends PostboyGenericMessage.
42
- * @param {Subject<T>} sub - The Subject instance to associate with the message type.
43
- * @param {(s: Subject<T>) => Observable<T>} pipe - A function that takes the subject as input and returns an Observable with transformations applied.
44
- * @return {this} The current instance of the class for chaining.
45
- */
46
- recordWithPipe<T extends PostboyGenericMessage>(type: MessageType<T>, sub: Subject<T>, pipe: (s: Subject<T>) => Observable<T>): PostboyAbstractRegistrator;
47
- /**
48
- * Records an executor associated with a specific type and execution logic.
49
- *
50
- * @param type The class constructor of the executor type to be recorded, which extends PostboyExecutor.
51
- * @param exec A callback function that executes the logic using an instance of the specified executor type.
52
- * @return void
53
- */
54
- recordExecutor<E extends PostboyExecutor<T>, T>(type: new (...args: any[]) => E, exec: (e: E) => T): PostboyAbstractRegistrator;
55
- /**
56
- * Records a handler for a specific executor type.
57
- *
58
- * @param executor The constructor of the executor type, which extends `PostboyExecutor`.
59
- * @param handler The execution handler associated with the given executor type.
60
- * @return void
61
- */
62
- recordHandler<E extends PostboyExecutor<R>, R>(executor: new (...args: any[]) => E, handler: PostboyExecutionHandler<R, E>): PostboyAbstractRegistrator;
63
- /**
64
- * A utility function that facilitates the recording and replaying of messages
65
- * using a ReplaySubject. This function is designed to handle messages of a
66
- * specific type and allows specifying a buffer size to determine how many
67
- * of the most recent messages should be replayed.
68
- *
69
- * @template T Extends the PostboyGenericMessage type, representing the type of message
70
- * to be recorded and replayed.
71
- * @param {MessageType<T>} type The constructor of the message type to be recorded and replayed.
72
- * @param {number} [bufferSize=1] The number of recent messages to retain in the ReplaySubject's buffer.
73
- * Defaults to 1 if not specified.
74
- * @returns The result of invoking the `record` method with the given message type and configured ReplaySubject.
75
- */
76
- recordReplay<T extends PostboyGenericMessage>(type: MessageType<T>, bufferSize?: number): PostboyAbstractRegistrator;
77
- /**
78
- * Represents a method that records a specific behavior associated with a message type.
79
- * It creates a `BehaviorSubject` initialized with the provided initial message
80
- * and associates it with the given message type using the `record` method.
81
- *
82
- * @template T - A type parameter extending `PostboyGenericMessage` that defines the message structure.
83
- * @param {MessageType<T>} type - The constructor function of the message type to be recorded.
84
- * @param {T} initial - The initial value of the message that will be set in the `BehaviorSubject`.
85
- * @returns {void} - This function does not return a value; instead, it modifies the internal state.
86
- */
87
- recordBehavior<T extends PostboyGenericMessage>(type: MessageType<T>, initial: T): PostboyAbstractRegistrator;
88
- /**
89
- * A function that creates and returns a new generic message recorder for a specific message type.
90
- *
91
- * @template T - A type parameter extending from `PostboyGenericMessage`.
92
- * @param {MessageType<T>} type - The constructor for the message type being recorded.
93
- * @returns {Subject<T>} A new instance of `Subject<T>` bound to the specified message type.
94
- */
95
- recordSubject<T extends PostboyGenericMessage>(type: MessageType<T>): this;
96
- }
97
- //# sourceMappingURL=postboy-abstract.registrator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"postboy-abstract.registrator.d.ts","sourceRoot":"","sources":["../src/postboy-abstract.registrator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAmB,UAAU,EAAuB,OAAO,EAAE,MAAM,MAAM,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAW,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAO7E,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,qBAAqB,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAErF,8BAAsB,0BAA0B;IAS5C,SAAS,CAAC,OAAO,EAAE,cAAc;IARnC,IAAI,SAAS,IAAI,MAAM,CAEtB;IACD,OAAO,CAAC,GAAG,CAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAkC;IAClD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;gBAGxB,OAAO,EAAE,cAAc,EACjC,SAAS,GAAE,MAAM,GAAG,IAAW;IAKjC;;;;;OAKG;IACI,gBAAgB,CAAC,QAAQ,EAAE,wBAAwB,EAAE,GAAG,IAAI;IAInE;;;;OAIG;IACI,EAAE,IAAI,IAAI;IAKjB,SAAS,CAAC,QAAQ,CAAC,GAAG,IAAI,IAAI;IAEvB,IAAI,IAAI,IAAI;IAMnB;;;;;;OAMG;IACI,MAAM,CAAC,CAAC,SAAS,qBAAqB,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,0BAA0B;IAMjH;;;;;;;OAOG;IACI,cAAc,CAAC,CAAC,SAAS,qBAAqB,EACnD,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EACpB,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,EACf,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,GACrC,0BAA0B;IAM7B;;;;;;OAMG;IACI,cAAc,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,EACnD,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC/B,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAChB,0BAA0B;IAM7B;;;;;;OAMG;IACI,aAAa,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,EAClD,QAAQ,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EACnC,OAAO,EAAE,uBAAuB,CAAC,CAAC,EAAE,CAAC,CAAC,GACrC,0BAA0B;IAM7B;;;;;;;;;;;;OAYG;IACI,YAAY,CAAC,CAAC,SAAS,qBAAqB,EACjD,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EACpB,UAAU,SAAI,GACb,0BAA0B;IAK7B;;;;;;;;;OASG;IACI,cAAc,CAAC,CAAC,SAAS,qBAAqB,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,0BAA0B;IAKpH;;;;;;OAMG;IACI,aAAa,CAAC,CAAC,SAAS,qBAAqB,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC;CAI3E"}
@@ -1,157 +0,0 @@
1
- import { Observable, Subject } from 'rxjs';
2
- import { PostboyGenericMessage } from './models/postboy-generic-message';
3
- import { PostboyExecutor } from './models/postboy-executor';
4
- import { PostboyCallbackMessage } from './models/postboy-callback.message';
5
- import { MessageType, PostboyAbstractRegistrator } from './postboy-abstract.registrator';
6
- import { PostboyExecutionHandler } from './models/postboy-execution.handler';
7
- import { PostboyMiddleware } from './models/postboy-middleware';
8
- import { PostboyDependencyResolver } from './services/postboy-dependency.resolver';
9
- export declare class PostboyService {
10
- protected locked: Set<string>;
11
- private middleware;
12
- private store;
13
- private namespaceStore;
14
- private dependencyResolver;
15
- constructor(resolver?: PostboyDependencyResolver);
16
- private registerInfrastructureMessages;
17
- /**
18
- * Locks a specific message type to prevent further modifications or actions.
19
- *
20
- * @deprecated The method should be replaced with firing {@link LockMessage} message.
21
- * @param {MessageType<T>} type - The message type to be locked. It must extend from the `PostboyGenericMessage`.
22
- * @return {void} This method does not return a value.
23
- */
24
- lock<T extends PostboyGenericMessage>(type: MessageType<T>): void;
25
- /**
26
- * Unlocks a previously locked message type by removing its ID from the locked set.
27
- *
28
- * @deprecated The method should be replaced with firing {@link UnlockMessage} message.
29
- * @param {MessageType<T>} type - The message type to unlock, which is a generic type extending PostboyGenericMessage.
30
- * @return {void} This method does not return any value.
31
- */
32
- unlock<T extends PostboyGenericMessage>(type: MessageType<T>): void;
33
- /**
34
- * Adds a middleware to the middleware stack.
35
- *
36
- * @deprecated The method should be replaced with firing {@link AddMiddleware} message.
37
- * @param {PostboyMiddleware} middleware - The middleware instance to be added.
38
- * @return {void}
39
- */
40
- addMiddleware(middleware: PostboyMiddleware): void;
41
- /**
42
- * Removes a middleware from the current middleware stack.
43
- *
44
- * @deprecated The method should be replaced with firing {@link RemoveMiddleware} message.
45
- * @param {PostboyMiddleware} middleware - The middleware instance to be removed.
46
- * @return {void} No return value.
47
- */
48
- removeMiddleware(middleware: PostboyMiddleware): void;
49
- /**
50
- * Unregisters a message identified by the given ID from the store.
51
- *
52
- * @deprecated The method should be replaced with firing {@link DisconnectMessage} message.
53
- * @param {string} id - The unique identifier of the item to unregister.
54
- * @return {void} No value is returned.
55
- */
56
- unregister(id: string): void;
57
- /**
58
- * Fires a registered event and passes the message to its subscribers.
59
- *
60
- * @param {PostboyGenericMessage} message - The message object containing the event data.
61
- * @return {void} This method does not return a value.
62
- * @throws {Error} Throws an error if no registered event is found for the provided message ID.
63
- */
64
- fire(message: PostboyGenericMessage): void;
65
- /**
66
- * Triggers a callback function associated with a given message.
67
- *
68
- * @param {PostboyCallbackMessage<T>} message - The message object used to trigger the callback.
69
- * It contains details about the event and result subscription.
70
- * @param {(e: T) => void} [action] - Optional callback function to execute when the result of the message is emitted.
71
- * @return {void} This method does not return any value.
72
- */
73
- fireCallback<T>(message: PostboyCallbackMessage<T>, action?: (e: T) => void): Observable<T>;
74
- /**
75
- * Executes the provided executor function and returns its result.
76
- *
77
- * @param {PostboyExecutor<T>} executor The executor to be executed, which includes its identifier and logic.
78
- * @return {T} The resulting output from the executed executor function.
79
- * @throws {Error} If the specified executor is not registered.
80
- */
81
- exec<T>(executor: PostboyExecutor<T>): T;
82
- /**
83
- * Subscribes to a specific message type and returns an observable of that type.
84
- *
85
- * @param type The constructor function of the type that extends PostboyGenericMessage.
86
- * @return An Observable of the specified generic message type.
87
- */
88
- sub<T extends PostboyGenericMessage>(type: MessageType<T>): Observable<T>;
89
- /**
90
- * Subscribes to a specific message type and automatically unsubscribes after receiving the first message.
91
- *
92
- * @param type The type of message to subscribe to.
93
- * @return An observable that emits the first message of the specified type and then completes.
94
- */
95
- once<T extends PostboyGenericMessage>(type: MessageType<T>): Observable<T>;
96
- /**
97
- * Registers a given message type and its associated subject subscription with the system.
98
- *
99
- * @deprecated The method should be replaced with firing {@link ConnectMessage} message.
100
- * @param type The constructor function of the message type that extends the PostboyGenericMessage.
101
- * @param sub The Subject instance for the provided message type, used for managing subscriptions.
102
- * @return {void} No return value.
103
- */
104
- record<T extends PostboyGenericMessage>(type: MessageType<T>, sub: Subject<T>): void;
105
- /**
106
- * Registers a generic message type with a Subject and a transformation pipe.
107
- *
108
- * @deprecated The method should be replaced with firing {@link ConnectMessage} message.
109
- * @param {MessageType<T>} type - The constructor of the message type being registered.
110
- * @param {Subject<T>} sub - The Subject instance used to handle incoming messages of the specified type.
111
- * @param {(s: Subject<T>) => Observable<T>} pipe - A function that applies a transformation or processing logic to the Subject and returns an Observable.
112
- * @return {void} No return value.
113
- */
114
- recordWithPipe<T extends PostboyGenericMessage>(type: MessageType<T>, sub: Subject<T>, pipe: (s: Subject<T>) => Observable<T>): void;
115
- /**
116
- * Registers an executor for a specified message type.
117
- *
118
- * @deprecated The method should be replaced with firing {@link ConnectExecutor} message.
119
- * @param {MessageType<E>} type - The message type for which the executor is being registered.
120
- * @param {(e: E) => T} exec - The executor function that will handle messages of the specified type.
121
- * @return {void} This method does not return any value.
122
- */
123
- recordExecutor<E extends PostboyExecutor<T>, T>(type: MessageType<E>, exec: (e: E) => T): void;
124
- /**
125
- * Registers a handler for a specific executor type.
126
- *
127
- * @deprecated The method should be replaced with firing {@link ConnectHandler} message.
128
- * @param executor The constructor of the executor class that extends `PostboyExecutor<R>`.
129
- * @param handler An instance of `PostboyExecutionHandler<R, E>` that defines the logic for handling the executor.
130
- * @return void
131
- */
132
- recordHandler<E extends PostboyExecutor<R>, R>(executor: new (...args: any[]) => E, handler: PostboyExecutionHandler<R, E>): void;
133
- /**
134
- * Adds a namespace to the namespace store.
135
- *
136
- * @deprecated The method should be replaced with firing {@link AddNamespace} message.
137
- * @param {string} space - The name of the namespace to be added.
138
- * @return {PostboyAbstractRegistrator} The instance of the namespace after adding the specified namespace.
139
- */
140
- addNamespace(space: string): PostboyAbstractRegistrator;
141
- /**
142
- * Removes the specified namespace from the namespace store.
143
- *
144
- * @deprecated The method should be replaced with firing {@link EliminateNamespace} message.
145
- * @param {string} space - The name of the namespace to be removed.
146
- * @return {void} This method does not return a value.
147
- */
148
- eliminateNamespace(space: string): void;
149
- /**
150
- * Disposes of resources and cleans up any internal components or stores associated with the instance.
151
- * This method ensures that all resources are properly released to avoid memory leaks.
152
- *
153
- * @return {void} This method does not return a value.
154
- */
155
- dispose(): void;
156
- }
157
- //# sourceMappingURL=postboy.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"postboy.service.d.ts","sourceRoot":"","sources":["../src/postboy.service.ts"],"names":[],"mappings":"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"}
@@ -1,4 +0,0 @@
1
- export { PostboyMessageStore } from './postboy-message.store';
2
- export { PostboyNamespaceStore } from './postboy-namespace.store';
3
- export { PostboyMiddlewareService } from './postboy-middleware.service';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -1,14 +0,0 @@
1
- import { PostboyAbstractRegistrator } from '../postboy-abstract.registrator';
2
- import { PostboyService } from '../postboy.service';
3
- /**
4
- * NamespaceRegistrator is a specialized class that extends PostboyAbstractRegistrator.
5
- *
6
- * @class NamespaceRegistrator
7
- * @extends PostboyAbstractRegistrator
8
- * @param {PostboyService} postboy - An instance of the PostboyService, used for managing registrations.
9
- */
10
- export declare class NamespaceRegistrator extends PostboyAbstractRegistrator {
11
- constructor(postboy: PostboyService);
12
- protected _up(): void;
13
- }
14
- //# sourceMappingURL=namespace-registrator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"namespace-registrator.d.ts","sourceRoot":"","sources":["../../src/services/namespace-registrator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;;;GAMG;AACH,qBAAa,oBAAqB,SAAQ,0BAA0B;gBACtD,OAAO,EAAE,cAAc;IAInC,SAAS,CAAC,GAAG,IAAI,IAAI;CAGtB"}
@@ -1,13 +0,0 @@
1
- import { PostboyMessageContext } from '../models/postboy-message.context';
2
- import { PostboyMessage } from '../models/postboy.message';
3
- export declare class PostboyContextService {
4
- active: boolean;
5
- private readonly storage;
6
- constructor(active?: boolean);
7
- private get current();
8
- run<T>(context: PostboyMessageContext, action: () => T): T;
9
- private createRoot;
10
- createChild(message: PostboyMessage): PostboyMessageContext;
11
- dispose(): void;
12
- }
13
- //# sourceMappingURL=postboy-context.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"postboy-context.service.d.ts","sourceRoot":"","sources":["../../src/services/postboy-context.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,qBAAqB;IAGb,MAAM,EAAE,OAAO;IAFlC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAkD;gBAEvD,MAAM,GAAE,OAAc;IAEzC,OAAO,KAAK,OAAO,GAElB;IAEM,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC;IAIjE,OAAO,CAAC,UAAU;IAUX,WAAW,CAAC,OAAO,EAAE,cAAc,GAAG,qBAAqB;IAmB3D,OAAO,IAAI,IAAI;CAGvB"}
@@ -1,32 +0,0 @@
1
- import { PostboyMiddlewareService } from './postboy-middleware.service';
2
- import { PostboyMessageStore } from './postboy-message.store';
3
- import { PostboyNamespaceStore } from './postboy-namespace.store';
4
- export declare class PostboyDependencyResolver {
5
- /**
6
- * Retrieves an instance of the PostboyMiddlewareService.
7
- *
8
- * This function initializes and returns a new instance of the
9
- * PostboyMiddlewareService, which can be used to configure and manage
10
- * middleware for a specific module or application.
11
- *
12
- * @returns {PostboyMiddlewareService} A new instance of PostboyMiddlewareService.
13
- */
14
- getMiddlewareService: () => PostboyMiddlewareService;
15
- /**
16
- * A function that instantiates and returns a new instance of PostboyMessageStore.
17
- *
18
- * This function serves as a factory method for creating instances
19
- * of the PostboyMessageStore class.
20
- *
21
- * @returns {PostboyMessageStore} A new instance of the PostboyMessageStore class.
22
- */
23
- getMessageStore: () => PostboyMessageStore;
24
- /**
25
- * Creates and initializes a new instance of PostboyNamespaceStore using the provided PostboyService instance.
26
- *
27
- * @function getNamespaceStore
28
- * @returns {PostboyNamespaceStore} A new instance of PostboyNamespaceStore associated with the given PostboyService.
29
- */
30
- getNamespaceStore: () => PostboyNamespaceStore;
31
- }
32
- //# sourceMappingURL=postboy-dependency.resolver.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"postboy-dependency.resolver.d.ts","sourceRoot":"","sources":["../../src/services/postboy-dependency.resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,qBAAa,yBAAyB;IACpC;;;;;;;;OAQG;IACH,oBAAoB,iCAAwC;IAC5D;;;;;;;OAOG;IACH,eAAe,4BAAmC;IAClD;;;;;OAKG;IACH,iBAAiB,8BAAqC;CACvD"}