@artstesh/postboy 3.1.5 → 3.3.0
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.
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/messages/add-middleware.executor.d.ts +19 -0
- package/lib/messages/add-middleware.executor.d.ts.map +1 -0
- package/lib/messages/add-middleware.executor.js +24 -0
- package/lib/messages/add-middleware.executor.js.map +1 -0
- package/lib/messages/add-namespace.executor.d.ts +19 -0
- package/lib/messages/add-namespace.executor.d.ts.map +1 -0
- package/lib/messages/add-namespace.executor.js +24 -0
- package/lib/messages/add-namespace.executor.js.map +1 -0
- package/lib/messages/connect-executor.executor.d.ts +25 -0
- package/lib/messages/connect-executor.executor.d.ts.map +1 -0
- package/lib/messages/connect-executor.executor.js +30 -0
- package/lib/messages/connect-executor.executor.js.map +1 -0
- package/lib/messages/connect-handler.executor.d.ts +25 -0
- package/lib/messages/connect-handler.executor.d.ts.map +1 -0
- package/lib/messages/connect-handler.executor.js +30 -0
- package/lib/messages/connect-handler.executor.js.map +1 -0
- package/lib/messages/connect-message.executor.d.ts +28 -0
- package/lib/messages/connect-message.executor.d.ts.map +1 -0
- package/lib/messages/connect-message.executor.js +31 -0
- package/lib/messages/connect-message.executor.js.map +1 -0
- package/lib/messages/connect.message.executor.d.ts +28 -0
- package/lib/messages/connect.message.executor.d.ts.map +1 -0
- package/lib/messages/connect.message.executor.js +31 -0
- package/lib/messages/connect.message.executor.js.map +1 -0
- package/lib/messages/disconnect-message.executor.d.ts +19 -0
- package/lib/messages/disconnect-message.executor.d.ts.map +1 -0
- package/lib/messages/disconnect-message.executor.js +25 -0
- package/lib/messages/disconnect-message.executor.js.map +1 -0
- package/lib/messages/eliminate-namespace.executor.d.ts +16 -0
- package/lib/messages/eliminate-namespace.executor.d.ts.map +1 -0
- package/lib/messages/eliminate-namespace.executor.js +22 -0
- package/lib/messages/eliminate-namespace.executor.js.map +1 -0
- package/lib/messages/index.d.ts +11 -0
- package/lib/messages/index.d.ts.map +1 -0
- package/lib/messages/index.js +24 -0
- package/lib/messages/index.js.map +1 -0
- package/lib/messages/lock-message.executor.d.ts +22 -0
- package/lib/messages/lock-message.executor.d.ts.map +1 -0
- package/lib/messages/lock-message.executor.js +26 -0
- package/lib/messages/lock-message.executor.js.map +1 -0
- package/lib/messages/remove-middleware.executor.d.ts +17 -0
- package/lib/messages/remove-middleware.executor.d.ts.map +1 -0
- package/lib/messages/remove-middleware.executor.js +22 -0
- package/lib/messages/remove-middleware.executor.js.map +1 -0
- package/lib/messages/unlock-message.executor.d.ts +21 -0
- package/lib/messages/unlock-message.executor.d.ts.map +1 -0
- package/lib/messages/unlock-message.executor.js +25 -0
- package/lib/messages/unlock-message.executor.js.map +1 -0
- package/lib/models/postboy-message-metadata.d.ts +26 -0
- package/lib/models/postboy-message-metadata.d.ts.map +1 -0
- package/lib/models/postboy-message-metadata.js +3 -0
- package/lib/models/postboy-message-metadata.js.map +1 -0
- package/lib/models/postboy-message.context.d.ts +9 -0
- package/lib/models/postboy-message.context.d.ts.map +1 -0
- package/lib/models/postboy-message.context.js +3 -0
- package/lib/models/postboy-message.context.js.map +1 -0
- package/lib/models/postboy-subscription.d.ts +1 -1
- package/lib/models/postboy-subscription.d.ts.map +1 -1
- package/lib/models/postboy-subscription.js +1 -1
- package/lib/models/postboy-subscription.js.map +1 -1
- package/lib/models/postboy.message.d.ts +3 -0
- package/lib/models/postboy.message.d.ts.map +1 -1
- package/lib/models/postboy.message.js +7 -0
- package/lib/models/postboy.message.js.map +1 -1
- package/lib/models/postboy.settings.d.ts +13 -0
- package/lib/models/postboy.settings.d.ts.map +1 -0
- package/lib/models/postboy.settings.js +20 -0
- package/lib/models/postboy.settings.js.map +1 -0
- package/lib/postboy-abstract.registrator.d.ts.map +1 -1
- package/lib/postboy-abstract.registrator.js +11 -5
- package/lib/postboy-abstract.registrator.js.map +1 -1
- package/lib/postboy.service.d.ts +20 -1
- package/lib/postboy.service.d.ts.map +1 -1
- package/lib/postboy.service.js +55 -3
- package/lib/postboy.service.js.map +1 -1
- package/lib/services/postboy-context.service.d.ts +13 -0
- package/lib/services/postboy-context.service.d.ts.map +1 -0
- package/lib/services/postboy-context.service.js +50 -0
- package/lib/services/postboy-context.service.js.map +1 -0
- package/lib/services/postboy-dependency.resolver.d.ts +1 -3
- package/lib/services/postboy-dependency.resolver.d.ts.map +1 -1
- package/lib/services/postboy-dependency.resolver.js +1 -2
- package/lib/services/postboy-dependency.resolver.js.map +1 -1
- package/lib/services/postboy-namespace.store.d.ts +5 -6
- package/lib/services/postboy-namespace.store.d.ts.map +1 -1
- package/lib/services/postboy-namespace.store.js +7 -7
- package/lib/services/postboy-namespace.store.js.map +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PostboyMiddleware } from '../models/postboy-middleware';
|
|
2
|
+
import { PostboyExecutor } from '../models/postboy-executor';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a class responsible for removing {@link PostboyMiddleware} in execution flow.
|
|
5
|
+
* This class extends PostboyExecutor and operates with a void return type.
|
|
6
|
+
*/
|
|
7
|
+
export declare class RemoveMiddleware extends PostboyExecutor<void> {
|
|
8
|
+
middleware: PostboyMiddleware;
|
|
9
|
+
static readonly ID = "c25c708c-53c9-498d-a28b-936fbaf68b91";
|
|
10
|
+
/**
|
|
11
|
+
* Constructs an instance of the class with the specified middleware.
|
|
12
|
+
*
|
|
13
|
+
* @param {PostboyMiddleware} middleware - The {@link PostboyMiddleware} instance to be removed.
|
|
14
|
+
*/
|
|
15
|
+
constructor(middleware: PostboyMiddleware);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=remove-middleware.executor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-middleware.executor.d.ts","sourceRoot":"","sources":["../../src/messages/remove-middleware.executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,eAAe,CAAC,IAAI,CAAC;IAQtC,UAAU,EAAE,iBAAiB;IAPhD,MAAM,CAAC,QAAQ,CAAC,EAAE,0CAA0C;IAE5D;;;;OAIG;gBACgB,UAAU,EAAE,iBAAiB;CAGjD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemoveMiddleware = void 0;
|
|
4
|
+
const postboy_executor_1 = require("../models/postboy-executor");
|
|
5
|
+
/**
|
|
6
|
+
* Represents a class responsible for removing {@link PostboyMiddleware} in execution flow.
|
|
7
|
+
* This class extends PostboyExecutor and operates with a void return type.
|
|
8
|
+
*/
|
|
9
|
+
class RemoveMiddleware extends postboy_executor_1.PostboyExecutor {
|
|
10
|
+
/**
|
|
11
|
+
* Constructs an instance of the class with the specified middleware.
|
|
12
|
+
*
|
|
13
|
+
* @param {PostboyMiddleware} middleware - The {@link PostboyMiddleware} instance to be removed.
|
|
14
|
+
*/
|
|
15
|
+
constructor(middleware) {
|
|
16
|
+
super();
|
|
17
|
+
this.middleware = middleware;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.RemoveMiddleware = RemoveMiddleware;
|
|
21
|
+
RemoveMiddleware.ID = 'c25c708c-53c9-498d-a28b-936fbaf68b91';
|
|
22
|
+
//# sourceMappingURL=remove-middleware.executor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-middleware.executor.js","sourceRoot":"","sources":["../../src/messages/remove-middleware.executor.ts"],"names":[],"mappings":";;;AACA,iEAA6D;AAE7D;;;GAGG;AACH,MAAa,gBAAiB,SAAQ,kCAAqB;IAGzD;;;;OAIG;IACH,YAAmB,UAA6B;QAC9C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAmB;IAEhD,CAAC;;AAVH,4CAWC;AAViB,mBAAE,GAAG,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnlockMessage = void 0;
|
|
4
|
+
const postboy_executor_1 = require("../models/postboy-executor");
|
|
5
|
+
/**
|
|
6
|
+
* A specialized executor that handles the unlocking process for messages of a specified type.
|
|
7
|
+
* Unlocks a previously locked message, making it available for processing again.
|
|
8
|
+
*
|
|
9
|
+
* @template T - The type parameter extending {@link PostboyGenericMessage}, representing the message type handled by the executor.
|
|
10
|
+
* @extends {PostboyExecutor<void>}
|
|
11
|
+
*/
|
|
12
|
+
class UnlockMessage extends postboy_executor_1.PostboyExecutor {
|
|
13
|
+
/**
|
|
14
|
+
* Creates an instance of the class with the specified message type.
|
|
15
|
+
*
|
|
16
|
+
* @param {MessageType<T>} type - The message type for this instance.
|
|
17
|
+
*/
|
|
18
|
+
constructor(type) {
|
|
19
|
+
super();
|
|
20
|
+
this.type = type;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.UnlockMessage = UnlockMessage;
|
|
24
|
+
UnlockMessage.ID = 'd71d25e3-90ac-4009-b972-9e6c6b05611e';
|
|
25
|
+
//# sourceMappingURL=unlock-message.executor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unlock-message.executor.js","sourceRoot":"","sources":["../../src/messages/unlock-message.executor.ts"],"names":[],"mappings":";;;AACA,iEAA6D;AAG7D;;;;;;GAMG;AACH,MAAa,aAA+C,SAAQ,kCAAqB;IAGvF;;;;OAIG;IACH,YAAmB,IAAoB;QACrC,KAAK,EAAE,CAAC;QADS,SAAI,GAAJ,IAAI,CAAgB;IAEvC,CAAC;;AAVH,sCAWC;AAViB,gBAAE,GAAG,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postboy-message-metadata.js","sourceRoot":"","sources":["../../src/models/postboy-message-metadata.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postboy-message.context.js","sourceRoot":"","sources":["../../src/models/postboy-message.context.ts"],"names":[],"mappings":""}
|
|
@@ -15,7 +15,7 @@ export declare class PostboySubscription<T> {
|
|
|
15
15
|
* @param {Subject<T>} subscription - The source Subject that will be transformed.
|
|
16
16
|
* @param {(s: Subject<T>) => Observable<T>} pipe - A function that applies a transformation to the subscription.
|
|
17
17
|
*/
|
|
18
|
-
constructor(subscription: Subject<T>, pipe
|
|
18
|
+
constructor(subscription: Subject<T>, pipe?: (s: Subject<T>) => Observable<T>);
|
|
19
19
|
/**
|
|
20
20
|
* Returns an observable subscription.
|
|
21
21
|
*
|
|
@@ -1 +1 @@
|
|
|
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,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC;
|
|
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"}
|
|
@@ -17,7 +17,7 @@ class PostboySubscription {
|
|
|
17
17
|
*/
|
|
18
18
|
constructor(subscription, pipe) {
|
|
19
19
|
this.subscription = subscription;
|
|
20
|
-
this._subscription = pipe(subscription);
|
|
20
|
+
this._subscription = !!pipe ? pipe(subscription) : subscription.asObservable();
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Returns an observable subscription.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postboy-subscription.js","sourceRoot":"","sources":["../../src/models/postboy-subscription.ts"],"names":[],"mappings":";;;AAEA;;;;;;GAMG;AACH,MAAa,mBAAmB;IAG9B;;;;;OAKG;IACH,YACU,YAAwB,EAChC,
|
|
1
|
+
{"version":3,"file":"postboy-subscription.js","sourceRoot":"","sources":["../../src/models/postboy-subscription.ts"],"names":[],"mappings":";;;AAEA;;;;;;GAMG;AACH,MAAa,mBAAmB;IAG9B;;;;;OAKG;IACH,YACU,YAAwB,EAChC,IAAuC;QAD/B,iBAAY,GAAZ,YAAY,CAAY;QAGhC,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;IACjF,CAAC;IAED;;;;OAIG;IACI,GAAG;QACR,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAED;;;;;OAKG;IACI,IAAI,CAAC,IAAO;QACjB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED;;;;OAIG;IACI,MAAM;QACX,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;IAC/B,CAAC;CACF;AA3CD,kDA2CC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { PostboyMessageMetadata } from './postboy-message-metadata';
|
|
1
2
|
export declare abstract class PostboyMessage {
|
|
3
|
+
metadata: PostboyMessageMetadata;
|
|
2
4
|
get id(): string;
|
|
5
|
+
setMetadata(metadata: Partial<PostboyMessageMetadata>): this;
|
|
3
6
|
}
|
|
4
7
|
//# sourceMappingURL=postboy.message.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postboy.message.d.ts","sourceRoot":"","sources":["../../src/models/postboy.message.ts"],"names":[],"mappings":"AAAA,8BAAsB,cAAc;
|
|
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"}
|
|
@@ -2,9 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PostboyMessage = void 0;
|
|
4
4
|
class PostboyMessage {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.metadata = {};
|
|
7
|
+
}
|
|
5
8
|
get id() {
|
|
6
9
|
return this.constructor.ID;
|
|
7
10
|
}
|
|
11
|
+
setMetadata(metadata) {
|
|
12
|
+
this.metadata = { ...this.metadata, ...metadata };
|
|
13
|
+
return this;
|
|
14
|
+
}
|
|
8
15
|
}
|
|
9
16
|
exports.PostboyMessage = PostboyMessage;
|
|
10
17
|
//# sourceMappingURL=postboy.message.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postboy.message.js","sourceRoot":"","sources":["../../src/models/postboy.message.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"postboy.message.js","sourceRoot":"","sources":["../../src/models/postboy.message.ts"],"names":[],"mappings":";;;AAEA,MAAsB,cAAc;IAApC;QACS,aAAQ,GAA2B,EAAE,CAAC;IAS/C,CAAC;IARC,IAAW,EAAE;QACX,OAAQ,IAAI,CAAC,WAAmB,CAAC,EAAE,CAAC;IACtC,CAAC;IAED,WAAW,CAAC,QAAyC;QACnD,IAAI,CAAC,QAAQ,GAAG,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;QAClD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAVD,wCAUC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PostboySettings = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Represents configurable settings for the Postboy system.
|
|
6
|
+
*/
|
|
7
|
+
class PostboySettings {
|
|
8
|
+
/**
|
|
9
|
+
* Constructs an instance of the class with optional settings.
|
|
10
|
+
*
|
|
11
|
+
* @param {Partial<PostboySettings>} [settings] - Optional settings to configure the instance. Can include partial metadata or other configurations.
|
|
12
|
+
*/
|
|
13
|
+
constructor(settings) {
|
|
14
|
+
var _a;
|
|
15
|
+
this.metadata = false;
|
|
16
|
+
this.metadata = (_a = settings === null || settings === void 0 ? void 0 : settings.metadata) !== null && _a !== void 0 ? _a : this.metadata;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.PostboySettings = PostboySettings;
|
|
20
|
+
//# sourceMappingURL=postboy.settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postboy.settings.js","sourceRoot":"","sources":["../../src/models/postboy.settings.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,eAAe;IAG1B;;;;OAIG;IACH,YAAY,QAAmC;;QAPxC,aAAQ,GAAY,KAAK,CAAC;QAQ/B,IAAI,CAAC,QAAQ,GAAG,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,QAAQ,mCAAI,IAAI,CAAC,QAAQ,CAAC;IACtD,CAAC;CACF;AAXD,0CAWC"}
|
|
@@ -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,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;
|
|
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,C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BAA0B;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"}
|
|
@@ -4,6 +4,10 @@ exports.PostboyAbstractRegistrator = void 0;
|
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const postboy_generic_message_1 = require("./models/postboy-generic-message");
|
|
6
6
|
const id_generator_1 = require("./utils/id.generator");
|
|
7
|
+
const connect_message_executor_1 = require("./messages/connect-message.executor");
|
|
8
|
+
const disconnect_message_executor_1 = require("./messages/disconnect-message.executor");
|
|
9
|
+
const connect_executor_executor_1 = require("./messages/connect-executor.executor");
|
|
10
|
+
const connect_handler_executor_1 = require("./messages/connect-handler.executor");
|
|
7
11
|
class PostboyAbstractRegistrator {
|
|
8
12
|
get namespace() {
|
|
9
13
|
return this._namespace;
|
|
@@ -36,7 +40,7 @@ class PostboyAbstractRegistrator {
|
|
|
36
40
|
down() {
|
|
37
41
|
this.services.forEach((s) => !!s.down && s.down());
|
|
38
42
|
this.services = [];
|
|
39
|
-
this.ids.forEach((id) => this.postboy.
|
|
43
|
+
this.ids.forEach((id) => this.postboy.exec(new disconnect_message_executor_1.DisconnectMessage(id)));
|
|
40
44
|
}
|
|
41
45
|
/**
|
|
42
46
|
* Records a type and its corresponding Subject<T> into the Postboy system and updates the internal identifiers.
|
|
@@ -47,7 +51,7 @@ class PostboyAbstractRegistrator {
|
|
|
47
51
|
*/
|
|
48
52
|
record(type, sub) {
|
|
49
53
|
this.ids.push((0, postboy_generic_message_1.checkId)(type));
|
|
50
|
-
this.postboy.
|
|
54
|
+
this.postboy.exec(new connect_message_executor_1.ConnectMessage(type, sub));
|
|
51
55
|
return this;
|
|
52
56
|
}
|
|
53
57
|
/**
|
|
@@ -60,7 +64,7 @@ class PostboyAbstractRegistrator {
|
|
|
60
64
|
*/
|
|
61
65
|
recordWithPipe(type, sub, pipe) {
|
|
62
66
|
this.ids.push((0, postboy_generic_message_1.checkId)(type));
|
|
63
|
-
this.postboy.
|
|
67
|
+
this.postboy.exec(new connect_message_executor_1.ConnectMessage(type, sub, pipe));
|
|
64
68
|
return this;
|
|
65
69
|
}
|
|
66
70
|
/**
|
|
@@ -71,7 +75,8 @@ class PostboyAbstractRegistrator {
|
|
|
71
75
|
* @return void
|
|
72
76
|
*/
|
|
73
77
|
recordExecutor(type, exec) {
|
|
74
|
-
this.
|
|
78
|
+
this.ids.push((0, postboy_generic_message_1.checkId)(type));
|
|
79
|
+
this.postboy.exec(new connect_executor_executor_1.ConnectExecutor(type, exec));
|
|
75
80
|
return this;
|
|
76
81
|
}
|
|
77
82
|
/**
|
|
@@ -82,7 +87,8 @@ class PostboyAbstractRegistrator {
|
|
|
82
87
|
* @return void
|
|
83
88
|
*/
|
|
84
89
|
recordHandler(executor, handler) {
|
|
85
|
-
this.
|
|
90
|
+
this.ids.push((0, postboy_generic_message_1.checkId)(executor));
|
|
91
|
+
this.postboy.exec(new connect_handler_executor_1.ConnectHandler(executor, handler));
|
|
86
92
|
return this;
|
|
87
93
|
}
|
|
88
94
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postboy-abstract.registrator.js","sourceRoot":"","sources":["../src/postboy-abstract.registrator.ts"],"names":[],"mappings":";;;AACA,+BAAiF;AAGjF,8EAAkF;AAElF,uDAAmD;
|
|
1
|
+
{"version":3,"file":"postboy-abstract.registrator.js","sourceRoot":"","sources":["../src/postboy-abstract.registrator.ts"],"names":[],"mappings":";;;AACA,+BAAiF;AAGjF,8EAAkF;AAElF,uDAAmD;AACnD,kFAAqE;AACrE,wFAA2E;AAC3E,oFAAuE;AACvE,kFAAqE;AAIrE,MAAsB,0BAA0B;IAC9C,IAAI,SAAS;QACX,O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CAAkC,IAAoB;QACxE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,cAAO,EAAK,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAzJD,gEAyJC"}
|
package/lib/postboy.service.d.ts
CHANGED
|
@@ -10,12 +10,14 @@ export declare class PostboyService {
|
|
|
10
10
|
protected locked: Set<string>;
|
|
11
11
|
private middleware;
|
|
12
12
|
private store;
|
|
13
|
-
private namespaceStore
|
|
13
|
+
private namespaceStore;
|
|
14
14
|
private dependencyResolver;
|
|
15
15
|
constructor(resolver?: PostboyDependencyResolver);
|
|
16
|
+
private registerInfrastructureMessages;
|
|
16
17
|
/**
|
|
17
18
|
* Locks a specific message type to prevent further modifications or actions.
|
|
18
19
|
*
|
|
20
|
+
* @deprecated The method should be replaced with firing {@link LockMessage} message.
|
|
19
21
|
* @param {MessageType<T>} type - The message type to be locked. It must extend from the `PostboyGenericMessage`.
|
|
20
22
|
* @return {void} This method does not return a value.
|
|
21
23
|
*/
|
|
@@ -23,6 +25,7 @@ export declare class PostboyService {
|
|
|
23
25
|
/**
|
|
24
26
|
* Unlocks a previously locked message type by removing its ID from the locked set.
|
|
25
27
|
*
|
|
28
|
+
* @deprecated The method should be replaced with firing {@link UnlockMessage} message.
|
|
26
29
|
* @param {MessageType<T>} type - The message type to unlock, which is a generic type extending PostboyGenericMessage.
|
|
27
30
|
* @return {void} This method does not return any value.
|
|
28
31
|
*/
|
|
@@ -30,6 +33,7 @@ export declare class PostboyService {
|
|
|
30
33
|
/**
|
|
31
34
|
* Adds a middleware to the middleware stack.
|
|
32
35
|
*
|
|
36
|
+
* @deprecated The method should be replaced with firing {@link AddMiddleware} message.
|
|
33
37
|
* @param {PostboyMiddleware} middleware - The middleware instance to be added.
|
|
34
38
|
* @return {void}
|
|
35
39
|
*/
|
|
@@ -37,6 +41,7 @@ export declare class PostboyService {
|
|
|
37
41
|
/**
|
|
38
42
|
* Removes a middleware from the current middleware stack.
|
|
39
43
|
*
|
|
44
|
+
* @deprecated The method should be replaced with firing {@link RemoveMiddleware} message.
|
|
40
45
|
* @param {PostboyMiddleware} middleware - The middleware instance to be removed.
|
|
41
46
|
* @return {void} No return value.
|
|
42
47
|
*/
|
|
@@ -44,6 +49,7 @@ export declare class PostboyService {
|
|
|
44
49
|
/**
|
|
45
50
|
* Unregisters a message identified by the given ID from the store.
|
|
46
51
|
*
|
|
52
|
+
* @deprecated The method should be replaced with firing {@link DisconnectMessage} message.
|
|
47
53
|
* @param {string} id - The unique identifier of the item to unregister.
|
|
48
54
|
* @return {void} No value is returned.
|
|
49
55
|
*/
|
|
@@ -80,9 +86,17 @@ export declare class PostboyService {
|
|
|
80
86
|
* @return An Observable of the specified generic message type.
|
|
81
87
|
*/
|
|
82
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>;
|
|
83
96
|
/**
|
|
84
97
|
* Registers a given message type and its associated subject subscription with the system.
|
|
85
98
|
*
|
|
99
|
+
* @deprecated The method should be replaced with firing {@link ConnectMessage} message.
|
|
86
100
|
* @param type The constructor function of the message type that extends the PostboyGenericMessage.
|
|
87
101
|
* @param sub The Subject instance for the provided message type, used for managing subscriptions.
|
|
88
102
|
* @return {void} No return value.
|
|
@@ -91,6 +105,7 @@ export declare class PostboyService {
|
|
|
91
105
|
/**
|
|
92
106
|
* Registers a generic message type with a Subject and a transformation pipe.
|
|
93
107
|
*
|
|
108
|
+
* @deprecated The method should be replaced with firing {@link ConnectMessage} message.
|
|
94
109
|
* @param {MessageType<T>} type - The constructor of the message type being registered.
|
|
95
110
|
* @param {Subject<T>} sub - The Subject instance used to handle incoming messages of the specified type.
|
|
96
111
|
* @param {(s: Subject<T>) => Observable<T>} pipe - A function that applies a transformation or processing logic to the Subject and returns an Observable.
|
|
@@ -100,6 +115,7 @@ export declare class PostboyService {
|
|
|
100
115
|
/**
|
|
101
116
|
* Registers an executor for a specified message type.
|
|
102
117
|
*
|
|
118
|
+
* @deprecated The method should be replaced with firing {@link ConnectExecutor} message.
|
|
103
119
|
* @param {MessageType<E>} type - The message type for which the executor is being registered.
|
|
104
120
|
* @param {(e: E) => T} exec - The executor function that will handle messages of the specified type.
|
|
105
121
|
* @return {void} This method does not return any value.
|
|
@@ -108,6 +124,7 @@ export declare class PostboyService {
|
|
|
108
124
|
/**
|
|
109
125
|
* Registers a handler for a specific executor type.
|
|
110
126
|
*
|
|
127
|
+
* @deprecated The method should be replaced with firing {@link ConnectHandler} message.
|
|
111
128
|
* @param executor The constructor of the executor class that extends `PostboyExecutor<R>`.
|
|
112
129
|
* @param handler An instance of `PostboyExecutionHandler<R, E>` that defines the logic for handling the executor.
|
|
113
130
|
* @return void
|
|
@@ -116,6 +133,7 @@ export declare class PostboyService {
|
|
|
116
133
|
/**
|
|
117
134
|
* Adds a namespace to the namespace store.
|
|
118
135
|
*
|
|
136
|
+
* @deprecated The method should be replaced with firing {@link AddNamespace} message.
|
|
119
137
|
* @param {string} space - The name of the namespace to be added.
|
|
120
138
|
* @return {PostboyAbstractRegistrator} The instance of the namespace after adding the specified namespace.
|
|
121
139
|
*/
|
|
@@ -123,6 +141,7 @@ export declare class PostboyService {
|
|
|
123
141
|
/**
|
|
124
142
|
* Removes the specified namespace from the namespace store.
|
|
125
143
|
*
|
|
144
|
+
* @deprecated The method should be replaced with firing {@link EliminateNamespace} message.
|
|
126
145
|
* @param {string} space - The name of the namespace to be removed.
|
|
127
146
|
* @return {void} This method does not return a value.
|
|
128
147
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postboy.service.d.ts","sourceRoot":"","sources":["../src/postboy.service.ts"],"names":[],"m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