@artstesh/postboy 3.0.0 → 3.0.2

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/README.md +1 -1
  2. package/lib/index.d.ts +2 -0
  3. package/lib/index.d.ts.map +1 -1
  4. package/lib/index.js +2 -0
  5. package/lib/index.js.map +1 -1
  6. package/lib/locker.store.d.ts +9 -0
  7. package/lib/locker.store.d.ts.map +1 -0
  8. package/lib/locker.store.js +27 -0
  9. package/lib/locker.store.js.map +1 -0
  10. package/lib/mocks/message-history-item-mock.d.ts +10 -0
  11. package/lib/mocks/message-history-item-mock.d.ts.map +1 -0
  12. package/lib/mocks/message-history-item-mock.js +26 -0
  13. package/lib/mocks/message-history-item-mock.js.map +1 -0
  14. package/lib/mocks/message-history-mock.d.ts +9 -0
  15. package/lib/mocks/message-history-mock.d.ts.map +1 -0
  16. package/lib/mocks/message-history-mock.js +23 -0
  17. package/lib/mocks/message-history-mock.js.map +1 -0
  18. package/lib/mocks/postboy-service-mock.d.ts +22 -0
  19. package/lib/mocks/postboy-service-mock.d.ts.map +1 -0
  20. package/lib/mocks/postboy-service-mock.js +51 -0
  21. package/lib/mocks/postboy-service-mock.js.map +1 -0
  22. package/lib/models/message-queue.model.d.ts +43 -43
  23. package/lib/models/message-queue.model.js +65 -65
  24. package/lib/models/message-queue.model.js.map +1 -1
  25. package/lib/models/postboy-callback.message.d.ts.map +1 -1
  26. package/lib/models/postboy-executor.d.ts +1 -1
  27. package/lib/models/postboy-executor.d.ts.map +1 -1
  28. package/lib/models/postboy-executor.js.map +1 -1
  29. package/lib/models/postboy-generic-message.d.ts +1 -1
  30. package/lib/models/postboy-generic-message.d.ts.map +1 -1
  31. package/lib/models/postboy-generic-message.js +2 -2
  32. package/lib/models/postboy-generic-message.js.map +1 -1
  33. package/lib/models/postboy-middleware.d.ts +1 -1
  34. package/lib/models/postboy-middleware.d.ts.map +1 -1
  35. package/lib/models/postboy-subscription.d.ts +6 -3
  36. package/lib/models/postboy-subscription.d.ts.map +1 -1
  37. package/lib/models/postboy-subscription.js +11 -2
  38. package/lib/models/postboy-subscription.js.map +1 -1
  39. package/lib/models/postboy.locker.d.ts +6 -0
  40. package/lib/models/postboy.locker.d.ts.map +1 -0
  41. package/lib/models/postboy.locker.js +3 -0
  42. package/lib/models/postboy.locker.js.map +1 -0
  43. package/lib/postboy-abstract.registrator.d.ts.map +1 -1
  44. package/lib/postboy.service.d.ts +44 -21
  45. package/lib/postboy.service.d.ts.map +1 -1
  46. package/lib/postboy.service.js +57 -49
  47. package/lib/postboy.service.js.map +1 -1
  48. package/lib/services/postboy-dependency.resolver.d.ts +7 -0
  49. package/lib/services/postboy-dependency.resolver.d.ts.map +1 -0
  50. package/lib/services/postboy-dependency.resolver.js +13 -0
  51. package/lib/services/postboy-dependency.resolver.js.map +1 -0
  52. package/lib/services/postboy-message.store.d.ts +16 -0
  53. package/lib/services/postboy-message.store.d.ts.map +1 -0
  54. package/lib/services/postboy-message.store.js +39 -0
  55. package/lib/services/postboy-message.store.js.map +1 -0
  56. package/lib/services/postboy-middleware.service.d.ts +9 -0
  57. package/lib/services/postboy-middleware.service.d.ts.map +1 -0
  58. package/lib/services/postboy-middleware.service.js +20 -0
  59. package/lib/services/postboy-middleware.service.js.map +1 -0
  60. package/lib/tests/integration/models/test-callback-message.d.ts +6 -0
  61. package/lib/tests/integration/models/test-callback-message.d.ts.map +1 -0
  62. package/lib/tests/integration/models/test-callback-message.js +13 -0
  63. package/lib/tests/integration/models/test-callback-message.js.map +1 -0
  64. package/lib/tests/integration/models/test-executor.d.ts +7 -0
  65. package/lib/tests/integration/models/test-executor.d.ts.map +1 -0
  66. package/lib/tests/integration/models/test-executor.js +13 -0
  67. package/lib/tests/integration/models/test-executor.js.map +1 -0
  68. package/lib/tests/integration/models/test-handler.d.ts +8 -0
  69. package/lib/tests/integration/models/test-handler.d.ts.map +1 -0
  70. package/lib/tests/integration/models/test-handler.js +15 -0
  71. package/lib/tests/integration/models/test-handler.js.map +1 -0
  72. package/lib/tests/integration/models/test-message.d.ts +6 -0
  73. package/lib/tests/integration/models/test-message.d.ts.map +1 -0
  74. package/lib/tests/integration/models/test-message.js +13 -0
  75. package/lib/tests/integration/models/test-message.js.map +1 -0
  76. package/lib/tests/integration/models/test-postboy.d.ts +4 -0
  77. package/lib/tests/integration/models/test-postboy.d.ts.map +1 -0
  78. package/lib/tests/integration/models/test-postboy.js +8 -0
  79. package/lib/tests/integration/models/test-postboy.js.map +1 -0
  80. package/lib/tests/integration/models/test-registry.d.ts +8 -0
  81. package/lib/tests/integration/models/test-registry.d.ts.map +1 -0
  82. package/lib/tests/integration/models/test-registry.js +15 -0
  83. package/lib/tests/integration/models/test-registry.js.map +1 -0
  84. package/package.json +1 -1
  85. package/lib/models/queue.d.ts +0 -11
  86. package/lib/models/queue.d.ts.map +0 -1
  87. package/lib/models/queue.js +0 -34
  88. package/lib/models/queue.js.map +0 -1
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=postboy.locker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postboy.locker.js","sourceRoot":"","sources":["../../src/models/postboy.locker.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
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,EAAiB,OAAO,EAAE,MAAM,MAAM,CAAC;AAC3E,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;AAE7E,MAAM,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CAAC,CAAC,GAAG,IAAI;IAM3F;;;;;;;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,IAAI;IAMP;;;;;;OAMG;IACI,cAAc,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,IAAI;IAIhH;;;;;;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,IAAI;IAIP;;;;;;;;;;;;OAYG;IACI,YAAY,GAAI,CAAC,SAAS,qBAAqB,EAAE,MAAM,WAAW,CAAC,CAAC,CAAC,EAAE,mBAAc,UACtC;IAEtD;;;;;;;;;OASG;IACI,cAAc,GAAI,CAAC,SAAS,qBAAqB,EAAE,MAAM,WAAW,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,UACrC;IAErD;;;;;;OAMG;IACI,aAAa,GAAI,CAAC,SAAS,qBAAqB,EAAE,MAAM,WAAW,CAAC,CAAC,CAAC,UAAyC;CACvH"}
@@ -1,20 +1,50 @@
1
1
  import { Observable, Subject } from 'rxjs';
2
2
  import { PostboyGenericMessage } from './models/postboy-generic-message';
3
- import { PostboySubscription } from './models/postboy-subscription';
4
3
  import { PostboyExecutor } from './models/postboy-executor';
5
4
  import { PostboyCallbackMessage } from './models/postboy-callback.message';
6
5
  import { MessageType } from './postboy-abstract.registrator';
7
6
  import { PostboyExecutionHandler } from './models/postboy-execution.handler';
8
- import { PostboyMiddleware } from "./models/postboy-middleware";
7
+ import { PostboyMiddleware } from './models/postboy-middleware';
8
+ import { PostboyDependencyResolver } from './services/postboy-dependency.resolver';
9
9
  export declare class PostboyService {
10
10
  protected locked: Set<string>;
11
- protected applications: Map<string, PostboySubscription<any>>;
12
- protected executors: Map<string, (e: PostboyExecutor<any>) => any>;
13
- protected middlewares: PostboyMiddleware[];
11
+ private middleware;
12
+ private store;
13
+ constructor(resolver?: PostboyDependencyResolver);
14
+ /**
15
+ * Locks a specific message type to prevent further modifications or actions.
16
+ *
17
+ * @param {MessageType<T>} type - The message type to be locked. It must extend from the `PostboyGenericMessage`.
18
+ * @return {void} This method does not return a value.
19
+ */
14
20
  lock<T extends PostboyGenericMessage>(type: MessageType<T>): void;
21
+ /**
22
+ * Unlocks a previously locked message type by removing its ID from the locked set.
23
+ *
24
+ * @param {MessageType<T>} type - The message type to unlock, which is a generic type extending PostboyGenericMessage.
25
+ * @return {void} This method does not return any value.
26
+ */
15
27
  unlock<T extends PostboyGenericMessage>(type: MessageType<T>): void;
28
+ /**
29
+ * Adds a middleware to the middleware stack.
30
+ *
31
+ * @param {PostboyMiddleware} middleware - The middleware instance to be added.
32
+ * @return {void}
33
+ */
16
34
  addMiddleware(middleware: PostboyMiddleware): void;
35
+ /**
36
+ * Removes a middleware from the current middleware stack.
37
+ *
38
+ * @param {PostboyMiddleware} middleware - The middleware instance to be removed.
39
+ * @return {void} No return value.
40
+ */
17
41
  removeMiddleware(middleware: PostboyMiddleware): void;
42
+ /**
43
+ * Unregisters a message identified by the given ID from the store.
44
+ *
45
+ * @param {string} id - The unique identifier of the item to unregister.
46
+ * @return {void} No value is returned.
47
+ */
18
48
  unregister(id: string): void;
19
49
  /**
20
50
  * Fires a registered event and passes the message to its subscribers.
@@ -66,27 +96,20 @@ export declare class PostboyService {
66
96
  */
67
97
  recordWithPipe<T extends PostboyGenericMessage>(type: MessageType<T>, sub: Subject<T>, pipe: (s: Subject<T>) => Observable<T>): void;
68
98
  /**
69
- * Records an executor instance and its corresponding execution function.
99
+ * Registers an executor for a specified message type.
70
100
  *
71
- * @param {new (...args: any[]) => E} type - The constructor type of the executor.
72
- * @param {(e: E) => T} exec - The function to execute with the provided executor instance.
73
- * @return {void} No return value.
101
+ * @param {MessageType<E>} type - The message type for which the executor is being registered.
102
+ * @param {(e: E) => T} exec - The executor function that will handle messages of the specified type.
103
+ * @return {void} This method does not return any value.
74
104
  */
75
- recordExecutor<E extends PostboyExecutor<T>, T>(type: (new (...args: any[]) => E), exec: (e: E) => T): void;
105
+ recordExecutor<E extends PostboyExecutor<T>, T>(type: MessageType<E>, exec: (e: E) => T): void;
76
106
  /**
77
- * Manages the recording of an executor and its corresponding handler into internal storage.
107
+ * Registers a handler for a specific executor type.
78
108
  *
79
- * @param {new (...args: any[]) => E} executor - The constructor for a class extending PostboyExecutor, used to register the executor type.
80
- * @param {PostboyExecutionHandler<R, E>} handler - The handler responsible for processing the specific executor.
81
- * @return {void} No return value.
109
+ * @param executor The constructor of the executor class that extends `PostboyExecutor<R>`.
110
+ * @param handler An instance of `PostboyExecutionHandler<R, E>` that defines the logic for handling the executor.
111
+ * @return void
82
112
  */
83
113
  recordHandler<E extends PostboyExecutor<R>, R>(executor: new (...args: any[]) => E, handler: PostboyExecutionHandler<R, E>): void;
84
- /**
85
- * Executes each middleware in the order they are registered, passing the provided message to each middleware's handle method.
86
- *
87
- * @param {PostboyGenericMessage} msg - The message object to be processed by the middlewares.
88
- * @return {void} This method does not return a value.
89
- */
90
- private executeMiddleware;
91
114
  }
92
115
  //# sourceMappingURL=postboy.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postboy.service.d.ts","sourceRoot":"","sources":["../src/postboy.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,OAAO,EAAC,MAAM,MAAM,CAAC;AACzC,O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;IAK/C;;;;;OAKG;IACI,GAAG,CAAC,CAAC,SAAS,qBAAqB,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;IAIhF;;;;;;OAMG;IACI,MAAM,CAAC,CAAC,SAAS,qBAAqB,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI;IAI3F;;;;;;;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,IAAI;IAIP;;;;;;OAMG;IACI,cAAc,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,IAAI;IAIrG;;;;;;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,IAAI;CAGR"}
@@ -3,29 +3,58 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PostboyService = void 0;
4
4
  const postboy_generic_message_1 = require("./models/postboy-generic-message");
5
5
  const postboy_subscription_1 = require("./models/postboy-subscription");
6
+ const postboy_dependency_resolver_1 = require("./services/postboy-dependency.resolver");
6
7
  class PostboyService {
7
- constructor() {
8
+ constructor(resolver) {
8
9
  this.locked = new Set();
9
- this.applications = new Map();
10
- this.executors = new Map();
11
- this.middlewares = [];
10
+ const rsv = resolver || new postboy_dependency_resolver_1.PostboyDependencyResolver();
11
+ this.middleware = rsv.getMiddlewareService();
12
+ this.store = rsv.getMessageStore();
12
13
  }
14
+ /**
15
+ * Locks a specific message type to prevent further modifications or actions.
16
+ *
17
+ * @param {MessageType<T>} type - The message type to be locked. It must extend from the `PostboyGenericMessage`.
18
+ * @return {void} This method does not return a value.
19
+ */
13
20
  lock(type) {
14
21
  this.locked.add((0, postboy_generic_message_1.checkId)(type));
15
22
  }
23
+ /**
24
+ * Unlocks a previously locked message type by removing its ID from the locked set.
25
+ *
26
+ * @param {MessageType<T>} type - The message type to unlock, which is a generic type extending PostboyGenericMessage.
27
+ * @return {void} This method does not return any value.
28
+ */
16
29
  unlock(type) {
17
30
  this.locked.delete((0, postboy_generic_message_1.checkId)(type));
18
31
  }
32
+ /**
33
+ * Adds a middleware to the middleware stack.
34
+ *
35
+ * @param {PostboyMiddleware} middleware - The middleware instance to be added.
36
+ * @return {void}
37
+ */
19
38
  addMiddleware(middleware) {
20
- this.middlewares.push(middleware);
39
+ return this.middleware.addMiddleware(middleware);
21
40
  }
41
+ /**
42
+ * Removes a middleware from the current middleware stack.
43
+ *
44
+ * @param {PostboyMiddleware} middleware - The middleware instance to be removed.
45
+ * @return {void} No return value.
46
+ */
22
47
  removeMiddleware(middleware) {
23
- this.middlewares = this.middlewares.filter((m) => m !== middleware);
48
+ return this.middleware.removeMiddleware(middleware);
24
49
  }
50
+ /**
51
+ * Unregisters a message identified by the given ID from the store.
52
+ *
53
+ * @param {string} id - The unique identifier of the item to unregister.
54
+ * @return {void} No value is returned.
55
+ */
25
56
  unregister(id) {
26
- var _a, _b;
27
- (_b = (_a = this.applications.get(id)) === null || _a === void 0 ? void 0 : _a.sub) === null || _b === void 0 ? void 0 : _b.complete();
28
- this.applications.delete(id);
57
+ return this.store.unregister(id);
29
58
  }
30
59
  /**
31
60
  * Fires a registered event and passes the message to its subscribers.
@@ -35,12 +64,9 @@ class PostboyService {
35
64
  * @throws {Error} Throws an error if no registered event is found for the provided message ID.
36
65
  */
37
66
  fire(message) {
38
- var _a, _b;
39
- this.executeMiddleware(message);
40
- if (!((_a = this.applications.get(message.id)) === null || _a === void 0 ? void 0 : _a.sub))
41
- throw new Error(`There is no registered event ${message.constructor.name}`);
67
+ this.middleware.manage(message);
42
68
  if (!this.locked.has(message.id))
43
- (_b = this.applications.get(message.id)) === null || _b === void 0 ? void 0 : _b.sub.next(message);
69
+ this.store.getMessage(message.id, message.constructor.name).fire(message);
44
70
  }
45
71
  /**
46
72
  * Triggers a callback function associated with a given message.
@@ -51,13 +77,10 @@ class PostboyService {
51
77
  * @return {void} This method does not return any value.
52
78
  */
53
79
  fireCallback(message, action) {
54
- var _a;
55
- this.executeMiddleware(message);
56
- if (!((_a = this.applications.get(message.id)) === null || _a === void 0 ? void 0 : _a.sub))
57
- throw new Error(`There is no registered event ${message.constructor.name}`);
80
+ this.middleware.manage(message);
58
81
  message.result.subscribe(action);
59
82
  if (!this.locked.has(message.id))
60
- setTimeout(() => { var _a; return (_a = this.applications.get(message.id)) === null || _a === void 0 ? void 0 : _a.sub.next(message); }, 0);
83
+ setTimeout(() => this.store.getMessage(message.id, message.constructor.name).fire(message));
61
84
  return message.result;
62
85
  }
63
86
  /**
@@ -68,10 +91,8 @@ class PostboyService {
68
91
  * @throws {Error} If the specified executor is not registered.
69
92
  */
70
93
  exec(executor) {
71
- this.executeMiddleware(executor);
72
- if (!this.executors.has(executor.id))
73
- throw new Error(`There is no registered executor with id ${executor.id}`);
74
- return this.executors.get(executor.id)(executor);
94
+ this.middleware.manage(executor);
95
+ return this.store.getExecutor(executor.id)(executor);
75
96
  }
76
97
  /**
77
98
  * Subscribes to a specific message type and returns an observable of that type.
@@ -80,10 +101,7 @@ class PostboyService {
80
101
  * @return An Observable of the specified generic message type.
81
102
  */
82
103
  sub(type) {
83
- const application = this.applications.get((0, postboy_generic_message_1.checkId)(type));
84
- if (!application)
85
- throw new Error(`There is no registered event ${type.name}`);
86
- return application.pipe(application.sub);
104
+ return this.store.getMessage((0, postboy_generic_message_1.checkId)(type), type.name).sub();
87
105
  }
88
106
  /**
89
107
  * Registers a given message type and its associated subject subscription with the system.
@@ -93,7 +111,7 @@ class PostboyService {
93
111
  * @return {void} No return value.
94
112
  */
95
113
  record(type, sub) {
96
- this.applications.set((0, postboy_generic_message_1.checkId)(type), new postboy_subscription_1.PostboySubscription(sub, (s) => s.asObservable()));
114
+ this.store.registerMessage((0, postboy_generic_message_1.checkId)(type), new postboy_subscription_1.PostboySubscription(sub, (s) => s.asObservable()));
97
115
  }
98
116
  /**
99
117
  * Registers a generic message type with a Subject and a transformation pipe.
@@ -104,37 +122,27 @@ class PostboyService {
104
122
  * @return {void} No return value.
105
123
  */
106
124
  recordWithPipe(type, sub, pipe) {
107
- this.applications.set((0, postboy_generic_message_1.checkId)(type), new postboy_subscription_1.PostboySubscription(sub, pipe));
125
+ this.store.registerMessage((0, postboy_generic_message_1.checkId)(type), new postboy_subscription_1.PostboySubscription(sub, pipe));
108
126
  }
109
127
  /**
110
- * Records an executor instance and its corresponding execution function.
128
+ * Registers an executor for a specified message type.
111
129
  *
112
- * @param {new (...args: any[]) => E} type - The constructor type of the executor.
113
- * @param {(e: E) => T} exec - The function to execute with the provided executor instance.
114
- * @return {void} No return value.
130
+ * @param {MessageType<E>} type - The message type for which the executor is being registered.
131
+ * @param {(e: E) => T} exec - The executor function that will handle messages of the specified type.
132
+ * @return {void} This method does not return any value.
115
133
  */
116
134
  recordExecutor(type, exec) {
117
- this.executors.set((0, postboy_generic_message_1.checkId)(type), exec);
135
+ this.store.registerExecutor((0, postboy_generic_message_1.checkId)(type), exec);
118
136
  }
119
137
  /**
120
- * Manages the recording of an executor and its corresponding handler into internal storage.
138
+ * Registers a handler for a specific executor type.
121
139
  *
122
- * @param {new (...args: any[]) => E} executor - The constructor for a class extending PostboyExecutor, used to register the executor type.
123
- * @param {PostboyExecutionHandler<R, E>} handler - The handler responsible for processing the specific executor.
124
- * @return {void} No return value.
140
+ * @param executor The constructor of the executor class that extends `PostboyExecutor<R>`.
141
+ * @param handler An instance of `PostboyExecutionHandler<R, E>` that defines the logic for handling the executor.
142
+ * @return void
125
143
  */
126
144
  recordHandler(executor, handler) {
127
- this.executors.set((0, postboy_generic_message_1.checkId)(executor), (e) => handler.handle(e));
128
- }
129
- /**
130
- * Executes each middleware in the order they are registered, passing the provided message to each middleware's handle method.
131
- *
132
- * @param {PostboyGenericMessage} msg - The message object to be processed by the middlewares.
133
- * @return {void} This method does not return a value.
134
- */
135
- executeMiddleware(msg) {
136
- for (let i = 0; i < this.middlewares.length; i++)
137
- this.middlewares[i].handle(msg);
145
+ this.store.registerExecutor((0, postboy_generic_message_1.checkId)(executor), (e) => handler.handle(e));
138
146
  }
139
147
  }
140
148
  exports.PostboyService = PostboyService;
@@ -1 +1 @@
1
- {"version":3,"file":"postboy.service.js","sourceRoot":"","sources":["../src/postboy.service.ts"],"names":[],"mappings":";;;AACA,8EAAgF;AAChF,wEAAkE;AAQlE,MAAa,cAAc;IAA3B;QACY,WAAM,GAAG,IAAI,GAAG,EAAU,CAAC;QAC3B,iBAAY,GAAG,IAAI,GAAG,EAAoC,CAAC;QAC3D,cAAS,GAAG,IAAI,GAAG,EAA4C,CAAC;QAChE,gBAAW,GAAwB,EAAE,CAAC;IA4IlD,CAAC;IA1IQ,IAAI,CAAkC,IAAoB;QAC/D,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAA,iCAAO,EAAC,IAAI,CAAC,CAAC,CAAC;IACjC,CAAC;IAEM,MAAM,CAAkC,IAAoB;QACjE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAA,iCAAO,EAAC,IAAI,CAAC,CAAC,CAAC;IACpC,CAAC;IAEM,aAAa,CAAC,UAA6B;QAChD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IAEM,gBAAgB,CAAC,UAA6B;QACnD,IAAI,C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C,EAAE,IAAoC,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;OAMG;IACI,aAAa,CAClB,QAAmC,EACnC,OAAsC;QAEtC,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,IAAA,iCAAO,EAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAM,CAAC,CAAC,CAAC;IAChF,CAAC;CACF;AAlKD,wCAkKC"}
@@ -0,0 +1,7 @@
1
+ import { PostboyMiddlewareService } from './postboy-middleware.service';
2
+ import { PostboyMessageStore } from './postboy-message.store';
3
+ export declare class PostboyDependencyResolver {
4
+ getMiddlewareService: () => PostboyMiddlewareService;
5
+ getMessageStore: () => PostboyMessageStore;
6
+ }
7
+ //# sourceMappingURL=postboy-dependency.resolver.d.ts.map
@@ -0,0 +1 @@
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;AAE9D,qBAAa,yBAAyB;IACpC,oBAAoB,iCAAwC;IAC5D,eAAe,4BAAmC;CACnD"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PostboyDependencyResolver = void 0;
4
+ const postboy_middleware_service_1 = require("./postboy-middleware.service");
5
+ const postboy_message_store_1 = require("./postboy-message.store");
6
+ class PostboyDependencyResolver {
7
+ constructor() {
8
+ this.getMiddlewareService = () => new postboy_middleware_service_1.PostboyMiddlewareService();
9
+ this.getMessageStore = () => new postboy_message_store_1.PostboyMessageStore();
10
+ }
11
+ }
12
+ exports.PostboyDependencyResolver = PostboyDependencyResolver;
13
+ //# sourceMappingURL=postboy-dependency.resolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postboy-dependency.resolver.js","sourceRoot":"","sources":["../../src/services/postboy-dependency.resolver.ts"],"names":[],"mappings":";;;AAAA,6EAAwE;AACxE,mEAA8D;AAE9D,MAAa,yBAAyB;IAAtC;QACE,yBAAoB,GAAG,GAAG,EAAE,CAAC,IAAI,qDAAwB,EAAE,CAAC;QAC5D,oBAAe,GAAG,GAAG,EAAE,CAAC,IAAI,2CAAmB,EAAE,CAAC;IACpD,CAAC;CAAA;AAHD,8DAGC"}
@@ -0,0 +1,16 @@
1
+ import { PostboySubscription } from '../models/postboy-subscription';
2
+ import { PostboyExecutor } from '../models/postboy-executor';
3
+ /**
4
+ * The PostboyMessageStore is a utility class for managing message subscriptions and executors.
5
+ * It provides functionality to register, retrieve, and unregister subscription-based messages and executors.
6
+ */
7
+ export declare class PostboyMessageStore {
8
+ protected applications: Map<string, PostboySubscription<any>>;
9
+ protected executors: Map<string, (e: PostboyExecutor<any>) => any>;
10
+ registerMessage(id: string, sub: PostboySubscription<any>): void;
11
+ registerExecutor(id: string, executor: (e: PostboyExecutor<any>) => any): void;
12
+ getMessage(id: string, name: string): PostboySubscription<any>;
13
+ getExecutor<T>(id: string): (e: PostboyExecutor<T>) => T;
14
+ unregister(id: string): void;
15
+ }
16
+ //# sourceMappingURL=postboy-message.store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postboy-message.store.d.ts","sourceRoot":"","sources":["../../src/services/postboy-message.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D;;;GAGG;AACH,qBAAa,mBAAmB;IAC9B,SAAS,CAAC,YAAY,wCAA+C;IACrE,SAAS,CAAC,SAAS,kBAAuB,eAAe,CAAC,GAAG,CAAC,KAAK,GAAG,EAAI;IAEnE,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,mBAAmB,CAAC,GAAG,CAAC,GAAG,IAAI;IAIhE,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,eAAe,CAAC,GAAG,CAAC,KAAK,GAAG,GAAG,IAAI;IAI9E,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,mBAAmB,CAAC,GAAG,CAAC;IAM9D,WAAW,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC;IAMxD,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;CAKpC"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PostboyMessageStore = void 0;
4
+ /**
5
+ * The PostboyMessageStore is a utility class for managing message subscriptions and executors.
6
+ * It provides functionality to register, retrieve, and unregister subscription-based messages and executors.
7
+ */
8
+ class PostboyMessageStore {
9
+ constructor() {
10
+ this.applications = new Map();
11
+ this.executors = new Map();
12
+ }
13
+ registerMessage(id, sub) {
14
+ this.applications.set(id, sub);
15
+ }
16
+ registerExecutor(id, executor) {
17
+ this.executors.set(id, executor);
18
+ }
19
+ getMessage(id, name) {
20
+ const msg = this.applications.get(id);
21
+ if (!msg)
22
+ throw new Error(`There is no registered event ${name}`);
23
+ return msg;
24
+ }
25
+ getExecutor(id) {
26
+ const executorFunction = this.executors.get(id);
27
+ if (!executorFunction)
28
+ throw new Error(`There is no registered executor with id ${id}`);
29
+ return executorFunction;
30
+ }
31
+ unregister(id) {
32
+ var _a;
33
+ (_a = this.applications.get(id)) === null || _a === void 0 ? void 0 : _a.finish();
34
+ this.applications.delete(id);
35
+ this.executors.delete(id);
36
+ }
37
+ }
38
+ exports.PostboyMessageStore = PostboyMessageStore;
39
+ //# sourceMappingURL=postboy-message.store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postboy-message.store.js","sourceRoot":"","sources":["../../src/services/postboy-message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'../models/postboy.message';
3
+ export declare class PostboyMiddlewareService {
4
+ protected middlewares: PostboyMiddleware[];
5
+ addMiddleware(middleware: PostboyMiddleware): void;
6
+ removeMiddleware(middleware: PostboyMiddleware): void;
7
+ manage(msg: PostboyMessage): void;
8
+ }
9
+ //# sourceMappingURL=postboy-middleware.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postboy-middleware.service.d.ts","sourceRoot":"","sources":["../../src/services/postboy-middleware.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,wBAAwB;IACnC,SAAS,CAAC,WAAW,EAAE,iBAAiB,EAAE,CAAM;IAEzC,aAAa,CAAC,UAAU,EAAE,iBAAiB,GAAG,IAAI;IAIlD,gBAAgB,CAAC,UAAU,EAAE,iBAAiB,GAAG,IAAI;IAIrD,MAAM,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI;CAGzC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PostboyMiddlewareService = void 0;
4
+ class PostboyMiddlewareService {
5
+ constructor() {
6
+ this.middlewares = [];
7
+ }
8
+ addMiddleware(middleware) {
9
+ this.middlewares.push(middleware);
10
+ }
11
+ removeMiddleware(middleware) {
12
+ this.middlewares = this.middlewares.filter((m) => m !== middleware);
13
+ }
14
+ manage(msg) {
15
+ for (const item of this.middlewares)
16
+ item.handle(msg);
17
+ }
18
+ }
19
+ exports.PostboyMiddlewareService = PostboyMiddlewareService;
20
+ //# sourceMappingURL=postboy-middleware.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postboy-middleware.service.js","sourceRoot":"","sources":["../../src/services/postboy-middleware.service.ts"],"names":[],"mappings":";;;AAGA,MAAa,wBAAwB;IAArC;QACY,gBAAW,GAAwB,EAAE,CAAC;IAalD,CAAC;IAXQ,aAAa,CAAC,UAA6B;QAChD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IAEM,gBAAgB,CAAC,UAA6B;QACnD,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC;IACtE,CAAC;IAEM,MAAM,CAAC,GAAmB;QAC/B,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,WAAW;YAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACxD,CAAC;CACF;AAdD,4DAcC"}
@@ -0,0 +1,6 @@
1
+ import { PostboyCallbackMessage } from '../../../models/postboy-callback.message';
2
+ export declare class TestCallbackMessage extends PostboyCallbackMessage<string> {
3
+ static ID: string;
4
+ type: typeof TestCallbackMessage;
5
+ }
6
+ //# sourceMappingURL=test-callback-message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-callback-message.d.ts","sourceRoot":"","sources":["../../../../src/tests/integration/models/test-callback-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAElF,qBAAa,mBAAoB,SAAQ,sBAAsB,CAAC,MAAM,CAAC;IACrE,MAAM,CAAC,EAAE,SAA2B;IACpC,IAAI,6BAAuB;CAC5B"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TestCallbackMessage = void 0;
4
+ const postboy_callback_message_1 = require("../../../models/postboy-callback.message");
5
+ class TestCallbackMessage extends postboy_callback_message_1.PostboyCallbackMessage {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.type = TestCallbackMessage;
9
+ }
10
+ }
11
+ exports.TestCallbackMessage = TestCallbackMessage;
12
+ TestCallbackMessage.ID = 'test-callback-message';
13
+ //# sourceMappingURL=test-callback-message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-callback-message.js","sourceRoot":"","sources":["../../../../src/tests/integration/models/test-callback-message.ts"],"names":[],"mappings":";;;AAAA,uFAAkF;AAElF,MAAa,mBAAoB,SAAQ,iDAA8B;IAAvE;;QAEE,SAAI,GAAG,mBAAmB,CAAC;IAC7B,CAAC;;AAHD,kDAGC;AAFQ,sBAAE,GAAG,uBAAuB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { PostboyGenericMessage } from '../../../models/postboy-generic-message';
2
+ export declare class TestExecutor extends PostboyGenericMessage {
3
+ value: string;
4
+ static readonly ID = "TestExecutor";
5
+ constructor(value: string);
6
+ }
7
+ //# sourceMappingURL=test-executor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-executor.d.ts","sourceRoot":"","sources":["../../../../src/tests/integration/models/test-executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAEhF,qBAAa,YAAa,SAAQ,qBAAqB;IAGlC,KAAK,EAAE,MAAM;IAFhC,MAAM,CAAC,QAAQ,CAAC,EAAE,kBAAkB;gBAEjB,KAAK,EAAE,MAAM;CAGjC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TestExecutor = void 0;
4
+ const postboy_generic_message_1 = require("../../../models/postboy-generic-message");
5
+ class TestExecutor extends postboy_generic_message_1.PostboyGenericMessage {
6
+ constructor(value) {
7
+ super();
8
+ this.value = value;
9
+ }
10
+ }
11
+ exports.TestExecutor = TestExecutor;
12
+ TestExecutor.ID = 'TestExecutor';
13
+ //# sourceMappingURL=test-executor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-executor.js","sourceRoot":"","sources":["../../../../src/tests/integration/models/test-executor.ts"],"names":[],"mappings":";;;AAAA,qFAAgF;AAEhF,MAAa,YAAa,SAAQ,+CAAqB;IAGrD,YAAmB,KAAa;QAC9B,KAAK,EAAE,CAAC;QADS,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;;AALH,oCAMC;AALiB,eAAE,GAAG,cAAc,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { PostboyExecutionHandler } from '../../../models/postboy-execution.handler';
2
+ import { TestExecutor } from './test-executor';
3
+ export declare class TestHandler extends PostboyExecutionHandler<string, TestExecutor> {
4
+ toReturn: string;
5
+ constructor(toReturn: string);
6
+ handle(executor: TestExecutor): string;
7
+ }
8
+ //# sourceMappingURL=test-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-handler.d.ts","sourceRoot":"","sources":["../../../../src/tests/integration/models/test-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,qBAAa,WAAY,SAAQ,uBAAuB,CAAC,MAAM,EAAE,YAAY,CAAC;IACzD,QAAQ,EAAE,MAAM;gBAAhB,QAAQ,EAAE,MAAM;IAInC,MAAM,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM;CAGvC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TestHandler = void 0;
4
+ const postboy_execution_handler_1 = require("../../../models/postboy-execution.handler");
5
+ class TestHandler extends postboy_execution_handler_1.PostboyExecutionHandler {
6
+ constructor(toReturn) {
7
+ super();
8
+ this.toReturn = toReturn;
9
+ }
10
+ handle(executor) {
11
+ return this.toReturn;
12
+ }
13
+ }
14
+ exports.TestHandler = TestHandler;
15
+ //# sourceMappingURL=test-handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-handler.js","sourceRoot":"","sources":["../../../../src/tests/integration/models/test-handler.ts"],"names":[],"mappings":";;;AAAA,yFAAoF;AAGpF,MAAa,WAAY,SAAQ,mDAA6C;IAC5E,YAAmB,QAAgB;QACjC,KAAK,EAAE,CAAC;QADS,aAAQ,GAAR,QAAQ,CAAQ;IAEnC,CAAC;IAED,MAAM,CAAC,QAAsB;QAC3B,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF;AARD,kCAQC"}
@@ -0,0 +1,6 @@
1
+ import { PostboyGenericMessage } from '../../../models/postboy-generic-message';
2
+ export declare class TestMessage extends PostboyGenericMessage {
3
+ static ID: string;
4
+ type: typeof TestMessage;
5
+ }
6
+ //# sourceMappingURL=test-message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-message.d.ts","sourceRoot":"","sources":["../../../../src/tests/integration/models/test-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAEhF,qBAAa,WAAY,SAAQ,qBAAqB;IACpD,MAAM,CAAC,EAAE,SAAkB;IAC3B,IAAI,qBAAe;CACpB"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TestMessage = void 0;
4
+ const postboy_generic_message_1 = require("../../../models/postboy-generic-message");
5
+ class TestMessage extends postboy_generic_message_1.PostboyGenericMessage {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.type = TestMessage;
9
+ }
10
+ }
11
+ exports.TestMessage = TestMessage;
12
+ TestMessage.ID = 'test-message';
13
+ //# sourceMappingURL=test-message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-message.js","sourceRoot":"","sources":["../../../../src/tests/integration/models/test-message.ts"],"names":[],"mappings":";;;AAAA,qFAAgF;AAEhF,MAAa,WAAY,SAAQ,+CAAqB;IAAtD;;QAEE,SAAI,GAAG,WAAW,CAAC;IACrB,CAAC;;AAHD,kCAGC;AAFQ,cAAE,GAAG,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { PostboyService } from '../../../postboy.service';
2
+ export declare class TestPostboy extends PostboyService {
3
+ }
4
+ //# sourceMappingURL=test-postboy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-postboy.d.ts","sourceRoot":"","sources":["../../../../src/tests/integration/models/test-postboy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,qBAAa,WAAY,SAAQ,cAAc;CAAG"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TestPostboy = void 0;
4
+ const postboy_service_1 = require("../../../postboy.service");
5
+ class TestPostboy extends postboy_service_1.PostboyService {
6
+ }
7
+ exports.TestPostboy = TestPostboy;
8
+ //# sourceMappingURL=test-postboy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-postboy.js","sourceRoot":"","sources":["../../../../src/tests/integration/models/test-postboy.ts"],"names":[],"mappings":";;;AAAA,8DAA0D;AAE1D,MAAa,WAAY,SAAQ,gCAAc;CAAG;AAAlD,kCAAkD"}