@artstesh/postboy 3.3.0 → 3.4.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.cjs +2 -0
- package/lib/index.cjs.map +1 -0
- package/lib/index.d.mts +701 -0
- package/lib/index.d.ts +701 -13
- package/lib/index.mjs +2 -0
- package/lib/index.mjs.map +1 -0
- package/package.json +52 -19
- package/lib/i-postboy-depending.service.d.ts +0 -5
- package/lib/i-postboy-depending.service.d.ts.map +0 -1
- package/lib/i-postboy-depending.service.js +0 -3
- package/lib/i-postboy-depending.service.js.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -32
- package/lib/index.js.map +0 -1
- package/lib/locker.store.d.ts +0 -9
- package/lib/locker.store.d.ts.map +0 -1
- package/lib/locker.store.js +0 -27
- package/lib/locker.store.js.map +0 -1
- package/lib/messages/add-middleware.executor.d.ts +0 -19
- package/lib/messages/add-middleware.executor.d.ts.map +0 -1
- package/lib/messages/add-middleware.executor.js +0 -24
- package/lib/messages/add-middleware.executor.js.map +0 -1
- package/lib/messages/add-namespace.executor.d.ts +0 -19
- package/lib/messages/add-namespace.executor.d.ts.map +0 -1
- package/lib/messages/add-namespace.executor.js +0 -24
- package/lib/messages/add-namespace.executor.js.map +0 -1
- package/lib/messages/connect-executor.executor.d.ts +0 -25
- package/lib/messages/connect-executor.executor.d.ts.map +0 -1
- package/lib/messages/connect-executor.executor.js +0 -30
- package/lib/messages/connect-executor.executor.js.map +0 -1
- package/lib/messages/connect-handler.executor.d.ts +0 -25
- package/lib/messages/connect-handler.executor.d.ts.map +0 -1
- package/lib/messages/connect-handler.executor.js +0 -30
- package/lib/messages/connect-handler.executor.js.map +0 -1
- package/lib/messages/connect-message.executor.d.ts +0 -28
- package/lib/messages/connect-message.executor.d.ts.map +0 -1
- package/lib/messages/connect-message.executor.js +0 -31
- package/lib/messages/connect-message.executor.js.map +0 -1
- package/lib/messages/connect.message.executor.d.ts +0 -28
- package/lib/messages/connect.message.executor.d.ts.map +0 -1
- package/lib/messages/connect.message.executor.js +0 -31
- package/lib/messages/connect.message.executor.js.map +0 -1
- package/lib/messages/disconnect-message.executor.d.ts +0 -19
- package/lib/messages/disconnect-message.executor.d.ts.map +0 -1
- package/lib/messages/disconnect-message.executor.js +0 -25
- package/lib/messages/disconnect-message.executor.js.map +0 -1
- package/lib/messages/eliminate-namespace.executor.d.ts +0 -16
- package/lib/messages/eliminate-namespace.executor.d.ts.map +0 -1
- package/lib/messages/eliminate-namespace.executor.js +0 -22
- package/lib/messages/eliminate-namespace.executor.js.map +0 -1
- package/lib/messages/index.d.ts +0 -11
- package/lib/messages/index.d.ts.map +0 -1
- package/lib/messages/index.js +0 -24
- package/lib/messages/index.js.map +0 -1
- package/lib/messages/lock-message.executor.d.ts +0 -22
- package/lib/messages/lock-message.executor.d.ts.map +0 -1
- package/lib/messages/lock-message.executor.js +0 -26
- package/lib/messages/lock-message.executor.js.map +0 -1
- package/lib/messages/remove-middleware.executor.d.ts +0 -17
- package/lib/messages/remove-middleware.executor.d.ts.map +0 -1
- package/lib/messages/remove-middleware.executor.js +0 -22
- package/lib/messages/remove-middleware.executor.js.map +0 -1
- package/lib/messages/unlock-message.executor.d.ts +0 -21
- package/lib/messages/unlock-message.executor.d.ts.map +0 -1
- package/lib/messages/unlock-message.executor.js +0 -25
- package/lib/messages/unlock-message.executor.js.map +0 -1
- package/lib/mocks/message-history-item-mock.d.ts +0 -10
- package/lib/mocks/message-history-item-mock.d.ts.map +0 -1
- package/lib/mocks/message-history-item-mock.js +0 -26
- package/lib/mocks/message-history-item-mock.js.map +0 -1
- package/lib/mocks/message-history-mock.d.ts +0 -9
- package/lib/mocks/message-history-mock.d.ts.map +0 -1
- package/lib/mocks/message-history-mock.js +0 -23
- package/lib/mocks/message-history-mock.js.map +0 -1
- package/lib/mocks/postboy-service-mock.d.ts +0 -22
- package/lib/mocks/postboy-service-mock.d.ts.map +0 -1
- package/lib/mocks/postboy-service-mock.js +0 -51
- package/lib/mocks/postboy-service-mock.js.map +0 -1
- package/lib/models/message-queue.model.d.ts +0 -44
- package/lib/models/message-queue.model.d.ts.map +0 -1
- package/lib/models/message-queue.model.js +0 -66
- package/lib/models/postboy-callback.message.d.ts +0 -48
- package/lib/models/postboy-callback.message.d.ts.map +0 -1
- package/lib/models/postboy-callback.message.js +0 -60
- package/lib/models/postboy-callback.message.js.map +0 -1
- package/lib/models/postboy-execution.handler.d.ts +0 -21
- package/lib/models/postboy-execution.handler.d.ts.map +0 -1
- package/lib/models/postboy-execution.handler.js +0 -17
- package/lib/models/postboy-execution.handler.js.map +0 -1
- package/lib/models/postboy-executor.d.ts +0 -5
- package/lib/models/postboy-executor.d.ts.map +0 -1
- package/lib/models/postboy-executor.js +0 -8
- package/lib/models/postboy-executor.js.map +0 -1
- package/lib/models/postboy-generic-message.d.ts +0 -8
- package/lib/models/postboy-generic-message.d.ts.map +0 -1
- package/lib/models/postboy-generic-message.js +0 -17
- package/lib/models/postboy-generic-message.js.map +0 -1
- package/lib/models/postboy-message-metadata.d.ts +0 -26
- package/lib/models/postboy-message-metadata.d.ts.map +0 -1
- package/lib/models/postboy-message-metadata.js +0 -3
- package/lib/models/postboy-message-metadata.js.map +0 -1
- package/lib/models/postboy-message.context.d.ts +0 -9
- package/lib/models/postboy-message.context.d.ts.map +0 -1
- package/lib/models/postboy-message.context.js +0 -3
- package/lib/models/postboy-message.context.js.map +0 -1
- package/lib/models/postboy-middleware.d.ts +0 -5
- package/lib/models/postboy-middleware.d.ts.map +0 -1
- package/lib/models/postboy-middleware.js +0 -3
- package/lib/models/postboy-middleware.js.map +0 -1
- package/lib/models/postboy-subscription.d.ts +0 -39
- package/lib/models/postboy-subscription.d.ts.map +0 -1
- package/lib/models/postboy-subscription.js +0 -49
- package/lib/models/postboy-subscription.js.map +0 -1
- package/lib/models/postboy.locker.d.ts +0 -6
- package/lib/models/postboy.locker.d.ts.map +0 -1
- package/lib/models/postboy.locker.js +0 -3
- package/lib/models/postboy.locker.js.map +0 -1
- package/lib/models/postboy.message.d.ts +0 -7
- package/lib/models/postboy.message.d.ts.map +0 -1
- package/lib/models/postboy.message.js +0 -17
- package/lib/models/postboy.message.js.map +0 -1
- package/lib/models/postboy.settings.d.ts +0 -13
- package/lib/models/postboy.settings.d.ts.map +0 -1
- package/lib/models/postboy.settings.js +0 -20
- package/lib/models/postboy.settings.js.map +0 -1
- package/lib/postboy-abstract.registrator.d.ts +0 -97
- package/lib/postboy-abstract.registrator.d.ts.map +0 -1
- package/lib/postboy-abstract.registrator.js +0 -138
- package/lib/postboy-abstract.registrator.js.map +0 -1
- package/lib/postboy.service.d.ts +0 -157
- package/lib/postboy.service.d.ts.map +0 -1
- package/lib/postboy.service.js +0 -235
- package/lib/postboy.service.js.map +0 -1
- package/lib/services/namespace-registrator.d.ts +0 -14
- package/lib/services/namespace-registrator.d.ts.map +0 -1
- package/lib/services/namespace-registrator.js +0 -21
- package/lib/services/namespace-registrator.js.map +0 -1
- package/lib/services/postboy-context.service.d.ts +0 -13
- package/lib/services/postboy-context.service.d.ts.map +0 -1
- package/lib/services/postboy-context.service.js +0 -50
- package/lib/services/postboy-context.service.js.map +0 -1
- package/lib/services/postboy-dependency.resolver.d.ts +0 -32
- package/lib/services/postboy-dependency.resolver.d.ts.map +0 -1
- package/lib/services/postboy-dependency.resolver.js +0 -38
- package/lib/services/postboy-dependency.resolver.js.map +0 -1
- package/lib/services/postboy-message.store.d.ts +0 -20
- package/lib/services/postboy-message.store.d.ts.map +0 -1
- package/lib/services/postboy-message.store.js +0 -61
- package/lib/services/postboy-message.store.js.map +0 -1
- package/lib/services/postboy-middleware.service.d.ts +0 -37
- package/lib/services/postboy-middleware.service.d.ts.map +0 -1
- package/lib/services/postboy-middleware.service.js +0 -50
- package/lib/services/postboy-middleware.service.js.map +0 -1
- package/lib/services/postboy-namespace.store.d.ts +0 -34
- package/lib/services/postboy-namespace.store.d.ts.map +0 -1
- package/lib/services/postboy-namespace.store.js +0 -54
- package/lib/services/postboy-namespace.store.js.map +0 -1
- package/lib/tests/integration/models/test-callback-message.d.ts +0 -6
- package/lib/tests/integration/models/test-callback-message.d.ts.map +0 -1
- package/lib/tests/integration/models/test-callback-message.js +0 -13
- package/lib/tests/integration/models/test-callback-message.js.map +0 -1
- package/lib/tests/integration/models/test-executor.d.ts +0 -7
- package/lib/tests/integration/models/test-executor.d.ts.map +0 -1
- package/lib/tests/integration/models/test-executor.js +0 -13
- package/lib/tests/integration/models/test-executor.js.map +0 -1
- package/lib/tests/integration/models/test-handler.d.ts +0 -8
- package/lib/tests/integration/models/test-handler.d.ts.map +0 -1
- package/lib/tests/integration/models/test-handler.js +0 -15
- package/lib/tests/integration/models/test-handler.js.map +0 -1
- package/lib/tests/integration/models/test-message.d.ts +0 -6
- package/lib/tests/integration/models/test-message.d.ts.map +0 -1
- package/lib/tests/integration/models/test-message.js +0 -13
- package/lib/tests/integration/models/test-message.js.map +0 -1
- package/lib/tests/integration/models/test-postboy.d.ts +0 -4
- package/lib/tests/integration/models/test-postboy.d.ts.map +0 -1
- package/lib/tests/integration/models/test-postboy.js +0 -8
- package/lib/tests/integration/models/test-postboy.js.map +0 -1
- package/lib/tests/integration/models/test-registry.d.ts +0 -8
- package/lib/tests/integration/models/test-registry.d.ts.map +0 -1
- package/lib/tests/integration/models/test-registry.js +0 -15
- package/lib/tests/integration/models/test-registry.js.map +0 -1
- package/lib/utils/id.generator.d.ts +0 -5
- package/lib/utils/id.generator.d.ts.map +0 -1
- package/lib/utils/id.generator.js +0 -18
- package/lib/utils/id.generator.js.map +0 -1
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { PostboyExecutor } from '../models/postboy-executor';
|
|
2
|
-
import { PostboyGenericMessage } from '../models/postboy-generic-message';
|
|
3
|
-
import { MessageType } from '../postboy-abstract.registrator';
|
|
4
|
-
import { Observable, Subject } from 'rxjs';
|
|
5
|
-
/**
|
|
6
|
-
* Represents a message that facilitates connection functionality
|
|
7
|
-
* within the application's messaging system.
|
|
8
|
-
*
|
|
9
|
-
* @template T - A type that extends {@link PostboyGenericMessage}, representing
|
|
10
|
-
* the structure of the message being handled.
|
|
11
|
-
*
|
|
12
|
-
* @extends PostboyExecutor<void>
|
|
13
|
-
*/
|
|
14
|
-
export declare class ConnectMessage<T extends PostboyGenericMessage> extends PostboyExecutor<void> {
|
|
15
|
-
type: MessageType<T>;
|
|
16
|
-
sub: Subject<T>;
|
|
17
|
-
pipe?: ((s: Subject<T>) => Observable<T>) | undefined;
|
|
18
|
-
static readonly ID = "aa03a192-bdc7-402d-9f2f-bf3748229ea2";
|
|
19
|
-
/**
|
|
20
|
-
* Constructs a new instance of the class.
|
|
21
|
-
*
|
|
22
|
-
* @param {MessageType<T>} type - The type of the message.
|
|
23
|
-
* @param {Subject<T>} sub - The subject to be used for message handling.
|
|
24
|
-
* @param {(s: Subject<T>) => Observable<T>} [pipe] - An optional function to transform the subject.
|
|
25
|
-
*/
|
|
26
|
-
constructor(type: MessageType<T>, sub: Subject<T>, pipe?: ((s: Subject<T>) => Observable<T>) | undefined);
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=connect-message.executor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect-message.executor.d.ts","sourceRoot":"","sources":["../../src/messages/connect-message.executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE3C;;;;;;;;GAQG;AACH,qBAAa,cAAc,CAAC,CAAC,SAAS,qBAAqB,CAAE,SAAQ,eAAe,CAAC,IAAI,CAAC;IAW/E,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC;IACpB,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;IACf,IAAI,CAAC,GAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC;IAZhD,MAAM,CAAC,QAAQ,CAAC,EAAE,0CAA0C;IAE5D;;;;;;OAMG;gBAEM,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EACpB,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,EACf,IAAI,CAAC,GAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,aAAA;CAIjD"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConnectMessage = void 0;
|
|
4
|
-
const postboy_executor_1 = require("../models/postboy-executor");
|
|
5
|
-
/**
|
|
6
|
-
* Represents a message that facilitates connection functionality
|
|
7
|
-
* within the application's messaging system.
|
|
8
|
-
*
|
|
9
|
-
* @template T - A type that extends {@link PostboyGenericMessage}, representing
|
|
10
|
-
* the structure of the message being handled.
|
|
11
|
-
*
|
|
12
|
-
* @extends PostboyExecutor<void>
|
|
13
|
-
*/
|
|
14
|
-
class ConnectMessage extends postboy_executor_1.PostboyExecutor {
|
|
15
|
-
/**
|
|
16
|
-
* Constructs a new instance of the class.
|
|
17
|
-
*
|
|
18
|
-
* @param {MessageType<T>} type - The type of the message.
|
|
19
|
-
* @param {Subject<T>} sub - The subject to be used for message handling.
|
|
20
|
-
* @param {(s: Subject<T>) => Observable<T>} [pipe] - An optional function to transform the subject.
|
|
21
|
-
*/
|
|
22
|
-
constructor(type, sub, pipe) {
|
|
23
|
-
super();
|
|
24
|
-
this.type = type;
|
|
25
|
-
this.sub = sub;
|
|
26
|
-
this.pipe = pipe;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.ConnectMessage = ConnectMessage;
|
|
30
|
-
ConnectMessage.ID = 'aa03a192-bdc7-402d-9f2f-bf3748229ea2';
|
|
31
|
-
//# sourceMappingURL=connect-message.executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect-message.executor.js","sourceRoot":"","sources":["../../src/messages/connect-message.executor.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAK7D;;;;;;;;GAQG;AACH,MAAa,cAAgD,SAAQ,kCAAqB;IAGxF;;;;;;OAMG;IACH,YACS,IAAoB,EACpB,GAAe,EACf,IAAuC;QAE9C,KAAK,EAAE,CAAC;QAJD,SAAI,GAAJ,IAAI,CAAgB;QACpB,QAAG,GAAH,GAAG,CAAY;QACf,SAAI,GAAJ,IAAI,CAAmC;IAGhD,CAAC;;AAhBH,wCAiBC;AAhBiB,iBAAE,GAAG,sCAAsC,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { PostboyExecutor } from "../models/postboy-executor";
|
|
2
|
-
import { PostboyGenericMessage } from "../models/postboy-generic-message";
|
|
3
|
-
import { MessageType } from "../postboy-abstract.registrator";
|
|
4
|
-
import { Observable, Subject } from "rxjs";
|
|
5
|
-
/**
|
|
6
|
-
* Represents a message that facilitates connection functionality
|
|
7
|
-
* within the application's messaging system.
|
|
8
|
-
*
|
|
9
|
-
* @template T - A type that extends {@link PostboyGenericMessage}, representing
|
|
10
|
-
* the structure of the message being handled.
|
|
11
|
-
*
|
|
12
|
-
* @extends PostboyExecutor<void>
|
|
13
|
-
*/
|
|
14
|
-
export declare class ConnectMessage<T extends PostboyGenericMessage> extends PostboyExecutor<void> {
|
|
15
|
-
type: MessageType<T>;
|
|
16
|
-
sub: Subject<T>;
|
|
17
|
-
pipe?: ((s: Subject<T>) => Observable<T>) | undefined;
|
|
18
|
-
static readonly ID = "aa03a192-bdc7-402d-9f2f-bf3748229ea2";
|
|
19
|
-
/**
|
|
20
|
-
* Constructs a new instance of the class.
|
|
21
|
-
*
|
|
22
|
-
* @param {MessageType<T>} type - The type of the message.
|
|
23
|
-
* @param {Subject<T>} sub - The subject to be used for message handling.
|
|
24
|
-
* @param {(s: Subject<T>) => Observable<T>} [pipe] - An optional function to transform the subject.
|
|
25
|
-
*/
|
|
26
|
-
constructor(type: MessageType<T>, sub: Subject<T>, pipe?: ((s: Subject<T>) => Observable<T>) | undefined);
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=connect.message.executor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect.message.executor.d.ts","sourceRoot":"","sources":["../../src/messages/connect.message.executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAC,qBAAqB,EAAC,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAC,WAAW,EAAC,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAC,UAAU,EAAE,OAAO,EAAC,MAAM,MAAM,CAAC;AAEzC;;;;;;;;GAQG;AACH,qBAAa,cAAc,CAAC,CAAC,SAAS,qBAAqB,CAAE,SAAQ,eAAe,CAAC,IAAI,CAAC;IAW/E,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC;IACpB,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;IACf,IAAI,CAAC,GAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC;IAZhD,MAAM,CAAC,QAAQ,CAAC,EAAE,0CAA0C;IAE5D;;;;;;OAMG;gBAEM,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EACpB,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,EACf,IAAI,CAAC,GAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,aAAA;CAIjD"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConnectMessage = void 0;
|
|
4
|
-
const postboy_executor_1 = require("../models/postboy-executor");
|
|
5
|
-
/**
|
|
6
|
-
* Represents a message that facilitates connection functionality
|
|
7
|
-
* within the application's messaging system.
|
|
8
|
-
*
|
|
9
|
-
* @template T - A type that extends {@link PostboyGenericMessage}, representing
|
|
10
|
-
* the structure of the message being handled.
|
|
11
|
-
*
|
|
12
|
-
* @extends PostboyExecutor<void>
|
|
13
|
-
*/
|
|
14
|
-
class ConnectMessage extends postboy_executor_1.PostboyExecutor {
|
|
15
|
-
/**
|
|
16
|
-
* Constructs a new instance of the class.
|
|
17
|
-
*
|
|
18
|
-
* @param {MessageType<T>} type - The type of the message.
|
|
19
|
-
* @param {Subject<T>} sub - The subject to be used for message handling.
|
|
20
|
-
* @param {(s: Subject<T>) => Observable<T>} [pipe] - An optional function to transform the subject.
|
|
21
|
-
*/
|
|
22
|
-
constructor(type, sub, pipe) {
|
|
23
|
-
super();
|
|
24
|
-
this.type = type;
|
|
25
|
-
this.sub = sub;
|
|
26
|
-
this.pipe = pipe;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.ConnectMessage = ConnectMessage;
|
|
30
|
-
ConnectMessage.ID = 'aa03a192-bdc7-402d-9f2f-bf3748229ea2';
|
|
31
|
-
//# sourceMappingURL=connect.message.executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect.message.executor.js","sourceRoot":"","sources":["../../src/messages/connect.message.executor.ts"],"names":[],"mappings":";;;AAAA,iEAA2D;AAK3D;;;;;;;;GAQG;AACH,MAAa,cAAgD,SAAQ,kCAAqB;IAGxF;;;;;;OAMG;IACH,YACS,IAAoB,EACpB,GAAe,EACf,IAAuC;QAE9C,KAAK,EAAE,CAAC;QAJD,SAAI,GAAJ,IAAI,CAAgB;QACpB,QAAG,GAAH,GAAG,CAAY;QACf,SAAI,GAAJ,IAAI,CAAmC;IAGhD,CAAC;;AAhBH,wCAiBC;AAhBiB,iBAAE,GAAG,sCAAsC,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { PostboyExecutor } from '../models/postboy-executor';
|
|
2
|
-
/**
|
|
3
|
-
* Represents a message signaling a disconnection event. This class is used
|
|
4
|
-
* within the framework to manage and process disconnection notifications.
|
|
5
|
-
* Extends the {@link PostboyExecutor} base class.
|
|
6
|
-
*
|
|
7
|
-
* @extends {PostboyExecutor<void>}
|
|
8
|
-
*/
|
|
9
|
-
export declare class DisconnectMessage extends PostboyExecutor<void> {
|
|
10
|
-
messageId: string;
|
|
11
|
-
static readonly ID = "94579e43-5bc9-4517-bcda-b595bcda1ae7";
|
|
12
|
-
/**
|
|
13
|
-
* Creates an instance of the class with the specified message identifier.
|
|
14
|
-
*
|
|
15
|
-
* @param {string} messageId - The unique identifier for the message.
|
|
16
|
-
*/
|
|
17
|
-
constructor(messageId: string);
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=disconnect-message.executor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"disconnect-message.executor.d.ts","sourceRoot":"","sources":["../../src/messages/disconnect-message.executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D;;;;;;GAMG;AACH,qBAAa,iBAAkB,SAAQ,eAAe,CAAC,IAAI,CAAC;IAQvC,SAAS,EAAE,MAAM;IAPpC,MAAM,CAAC,QAAQ,CAAC,EAAE,0CAA0C;IAE5D;;;;OAIG;gBACgB,SAAS,EAAE,MAAM;CAGrC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DisconnectMessage = void 0;
|
|
4
|
-
const postboy_executor_1 = require("../models/postboy-executor");
|
|
5
|
-
/**
|
|
6
|
-
* Represents a message signaling a disconnection event. This class is used
|
|
7
|
-
* within the framework to manage and process disconnection notifications.
|
|
8
|
-
* Extends the {@link PostboyExecutor} base class.
|
|
9
|
-
*
|
|
10
|
-
* @extends {PostboyExecutor<void>}
|
|
11
|
-
*/
|
|
12
|
-
class DisconnectMessage extends postboy_executor_1.PostboyExecutor {
|
|
13
|
-
/**
|
|
14
|
-
* Creates an instance of the class with the specified message identifier.
|
|
15
|
-
*
|
|
16
|
-
* @param {string} messageId - The unique identifier for the message.
|
|
17
|
-
*/
|
|
18
|
-
constructor(messageId) {
|
|
19
|
-
super();
|
|
20
|
-
this.messageId = messageId;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.DisconnectMessage = DisconnectMessage;
|
|
24
|
-
DisconnectMessage.ID = '94579e43-5bc9-4517-bcda-b595bcda1ae7';
|
|
25
|
-
//# sourceMappingURL=disconnect-message.executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"disconnect-message.executor.js","sourceRoot":"","sources":["../../src/messages/disconnect-message.executor.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAE7D;;;;;;GAMG;AACH,MAAa,iBAAkB,SAAQ,kCAAqB;IAG1D;;;;OAIG;IACH,YAAmB,SAAiB;QAClC,KAAK,EAAE,CAAC;QADS,cAAS,GAAT,SAAS,CAAQ;IAEpC,CAAC;;AAVH,8CAWC;AAViB,oBAAE,GAAG,sCAAsC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PostboyExecutor } from '../models/postboy-executor';
|
|
2
|
-
/**
|
|
3
|
-
* Represents an executor that eliminates a specific namespace.
|
|
4
|
-
* This class extends the PostboyExecutor with a void return type.
|
|
5
|
-
*/
|
|
6
|
-
export declare class EliminateNamespace extends PostboyExecutor<void> {
|
|
7
|
-
space: string;
|
|
8
|
-
static readonly ID = "03bb03bb-53e0-4b74-9aad-64d5c54a8972";
|
|
9
|
-
/**
|
|
10
|
-
* Creates an instance of the class with the specified space value.
|
|
11
|
-
*
|
|
12
|
-
* @param {string} space - The string value representing the space configuration.
|
|
13
|
-
*/
|
|
14
|
-
constructor(space: string);
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=eliminate-namespace.executor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eliminate-namespace.executor.d.ts","sourceRoot":"","sources":["../../src/messages/eliminate-namespace.executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,eAAe,CAAC,IAAI,CAAC;IAQxC,KAAK,EAAE,MAAM;IAPhC,MAAM,CAAC,QAAQ,CAAC,EAAE,0CAA0C;IAE5D;;;;OAIG;gBACgB,KAAK,EAAE,MAAM;CAGjC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EliminateNamespace = void 0;
|
|
4
|
-
const postboy_executor_1 = require("../models/postboy-executor");
|
|
5
|
-
/**
|
|
6
|
-
* Represents an executor that eliminates a specific namespace.
|
|
7
|
-
* This class extends the PostboyExecutor with a void return type.
|
|
8
|
-
*/
|
|
9
|
-
class EliminateNamespace extends postboy_executor_1.PostboyExecutor {
|
|
10
|
-
/**
|
|
11
|
-
* Creates an instance of the class with the specified space value.
|
|
12
|
-
*
|
|
13
|
-
* @param {string} space - The string value representing the space configuration.
|
|
14
|
-
*/
|
|
15
|
-
constructor(space) {
|
|
16
|
-
super();
|
|
17
|
-
this.space = space;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.EliminateNamespace = EliminateNamespace;
|
|
21
|
-
EliminateNamespace.ID = '03bb03bb-53e0-4b74-9aad-64d5c54a8972';
|
|
22
|
-
//# sourceMappingURL=eliminate-namespace.executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eliminate-namespace.executor.js","sourceRoot":"","sources":["../../src/messages/eliminate-namespace.executor.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAE7D;;;GAGG;AACH,MAAa,kBAAmB,SAAQ,kCAAqB;IAG3D;;;;OAIG;IACH,YAAmB,KAAa;QAC9B,KAAK,EAAE,CAAC;QADS,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;;AAVH,gDAWC;AAViB,qBAAE,GAAG,sCAAsC,CAAC"}
|
package/lib/messages/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { AddMiddleware } from './add-middleware.executor';
|
|
2
|
-
export { RemoveMiddleware } from './remove-middleware.executor';
|
|
3
|
-
export { LockMessage } from './lock-message.executor';
|
|
4
|
-
export { UnlockMessage } from './unlock-message.executor';
|
|
5
|
-
export { AddNamespace } from './add-namespace.executor';
|
|
6
|
-
export { EliminateNamespace } from './eliminate-namespace.executor';
|
|
7
|
-
export { ConnectHandler } from './connect-handler.executor';
|
|
8
|
-
export { ConnectExecutor } from './connect-executor.executor';
|
|
9
|
-
export { DisconnectMessage } from './disconnect-message.executor';
|
|
10
|
-
export { ConnectMessage } from './connect-message.executor';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC"}
|
package/lib/messages/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConnectMessage = exports.DisconnectMessage = exports.ConnectExecutor = exports.ConnectHandler = exports.EliminateNamespace = exports.AddNamespace = exports.UnlockMessage = exports.LockMessage = exports.RemoveMiddleware = exports.AddMiddleware = void 0;
|
|
4
|
-
var add_middleware_executor_1 = require("./add-middleware.executor");
|
|
5
|
-
Object.defineProperty(exports, "AddMiddleware", { enumerable: true, get: function () { return add_middleware_executor_1.AddMiddleware; } });
|
|
6
|
-
var remove_middleware_executor_1 = require("./remove-middleware.executor");
|
|
7
|
-
Object.defineProperty(exports, "RemoveMiddleware", { enumerable: true, get: function () { return remove_middleware_executor_1.RemoveMiddleware; } });
|
|
8
|
-
var lock_message_executor_1 = require("./lock-message.executor");
|
|
9
|
-
Object.defineProperty(exports, "LockMessage", { enumerable: true, get: function () { return lock_message_executor_1.LockMessage; } });
|
|
10
|
-
var unlock_message_executor_1 = require("./unlock-message.executor");
|
|
11
|
-
Object.defineProperty(exports, "UnlockMessage", { enumerable: true, get: function () { return unlock_message_executor_1.UnlockMessage; } });
|
|
12
|
-
var add_namespace_executor_1 = require("./add-namespace.executor");
|
|
13
|
-
Object.defineProperty(exports, "AddNamespace", { enumerable: true, get: function () { return add_namespace_executor_1.AddNamespace; } });
|
|
14
|
-
var eliminate_namespace_executor_1 = require("./eliminate-namespace.executor");
|
|
15
|
-
Object.defineProperty(exports, "EliminateNamespace", { enumerable: true, get: function () { return eliminate_namespace_executor_1.EliminateNamespace; } });
|
|
16
|
-
var connect_handler_executor_1 = require("./connect-handler.executor");
|
|
17
|
-
Object.defineProperty(exports, "ConnectHandler", { enumerable: true, get: function () { return connect_handler_executor_1.ConnectHandler; } });
|
|
18
|
-
var connect_executor_executor_1 = require("./connect-executor.executor");
|
|
19
|
-
Object.defineProperty(exports, "ConnectExecutor", { enumerable: true, get: function () { return connect_executor_executor_1.ConnectExecutor; } });
|
|
20
|
-
var disconnect_message_executor_1 = require("./disconnect-message.executor");
|
|
21
|
-
Object.defineProperty(exports, "DisconnectMessage", { enumerable: true, get: function () { return disconnect_message_executor_1.DisconnectMessage; } });
|
|
22
|
-
var connect_message_executor_1 = require("./connect-message.executor");
|
|
23
|
-
Object.defineProperty(exports, "ConnectMessage", { enumerable: true, get: function () { return connect_message_executor_1.ConnectMessage; } });
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":";;;AAAA,qEAA0D;AAAjD,wHAAA,aAAa,OAAA;AACtB,2EAAgE;AAAvD,8HAAA,gBAAgB,OAAA;AACzB,iEAAsD;AAA7C,oHAAA,WAAW,OAAA;AACpB,qEAA0D;AAAjD,wHAAA,aAAa,OAAA;AACtB,mEAAwD;AAA/C,sHAAA,YAAY,OAAA;AACrB,+EAAoE;AAA3D,kIAAA,kBAAkB,OAAA;AAC3B,uEAA4D;AAAnD,0HAAA,cAAc,OAAA;AACvB,yEAA8D;AAArD,4HAAA,eAAe,OAAA;AACxB,6EAAkE;AAAzD,gIAAA,iBAAiB,OAAA;AAC1B,uEAA4D;AAAnD,0HAAA,cAAc,OAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PostboyGenericMessage } from '../models/postboy-generic-message';
|
|
2
|
-
import { MessageType } from '../postboy-abstract.registrator';
|
|
3
|
-
import { PostboyExecutor } from '../models/postboy-executor';
|
|
4
|
-
/**
|
|
5
|
-
* Locks a specific message type to prevent firing of them.
|
|
6
|
-
*
|
|
7
|
-
* This class is used to handle operations associated with locking mechanisms
|
|
8
|
-
* for a specified message type.
|
|
9
|
-
*
|
|
10
|
-
* @template T - A type that extends {@link PostboyGenericMessage}.
|
|
11
|
-
*/
|
|
12
|
-
export declare class LockMessage<T extends PostboyGenericMessage> extends PostboyExecutor<void> {
|
|
13
|
-
type: MessageType<T>;
|
|
14
|
-
static readonly ID = "477df3e2-1f99-4476-9a3b-afd1fa426436";
|
|
15
|
-
/**
|
|
16
|
-
* Constructs an instance of the class with the specified message type.
|
|
17
|
-
*
|
|
18
|
-
* @param {MessageType<T>} type - The type of the message to be used for the instance.
|
|
19
|
-
*/
|
|
20
|
-
constructor(type: MessageType<T>);
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=lock-message.executor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lock-message.executor.d.ts","sourceRoot":"","sources":["../../src/messages/lock-message.executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D;;;;;;;GAOG;AACH,qBAAa,WAAW,CAAC,CAAC,SAAS,qBAAqB,CAAE,SAAQ,eAAe,CAAC,IAAI,CAAC;IAQlE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC;IAPvC,MAAM,CAAC,QAAQ,CAAC,EAAE,0CAA0C;IAE5D;;;;OAIG;gBACgB,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC;CAGxC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LockMessage = void 0;
|
|
4
|
-
const postboy_executor_1 = require("../models/postboy-executor");
|
|
5
|
-
/**
|
|
6
|
-
* Locks a specific message type to prevent firing of them.
|
|
7
|
-
*
|
|
8
|
-
* This class is used to handle operations associated with locking mechanisms
|
|
9
|
-
* for a specified message type.
|
|
10
|
-
*
|
|
11
|
-
* @template T - A type that extends {@link PostboyGenericMessage}.
|
|
12
|
-
*/
|
|
13
|
-
class LockMessage extends postboy_executor_1.PostboyExecutor {
|
|
14
|
-
/**
|
|
15
|
-
* Constructs an instance of the class with the specified message type.
|
|
16
|
-
*
|
|
17
|
-
* @param {MessageType<T>} type - The type of the message to be used for the instance.
|
|
18
|
-
*/
|
|
19
|
-
constructor(type) {
|
|
20
|
-
super();
|
|
21
|
-
this.type = type;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.LockMessage = LockMessage;
|
|
25
|
-
LockMessage.ID = '477df3e2-1f99-4476-9a3b-afd1fa426436';
|
|
26
|
-
//# sourceMappingURL=lock-message.executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lock-message.executor.js","sourceRoot":"","sources":["../../src/messages/lock-message.executor.ts"],"names":[],"mappings":";;;AAEA,iEAA6D;AAE7D;;;;;;;GAOG;AACH,MAAa,WAA6C,SAAQ,kCAAqB;IAGrF;;;;OAIG;IACH,YAAmB,IAAoB;QACrC,KAAK,EAAE,CAAC;QADS,SAAI,GAAJ,IAAI,CAAgB;IAEvC,CAAC;;AAVH,kCAWC;AAViB,cAAE,GAAG,sCAAsC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -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,25 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PostboyGenericMessage } from '../models/postboy-generic-message';
|
|
2
|
-
export declare class MessageHistoryItemMock<T extends PostboyGenericMessage> {
|
|
3
|
-
private list;
|
|
4
|
-
add(message: T): this;
|
|
5
|
-
clear(): void;
|
|
6
|
-
get length(): number;
|
|
7
|
-
get last(): T;
|
|
8
|
-
get all(): T[];
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=message-history-item-mock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message-history-item-mock.d.ts","sourceRoot":"","sources":["../../src/mocks/message-history-item-mock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE1E,qBAAa,sBAAsB,CAAC,CAAC,SAAS,qBAAqB;IACjE,OAAO,CAAC,IAAI,CAAW;IAEvB,GAAG,CAAC,OAAO,EAAE,CAAC;IAKd,KAAK;IAIL,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,IAAI,IAAI,CAAC,CAEZ;IAED,IAAI,GAAG,IAAI,CAAC,EAAE,CAEb;CACF"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageHistoryItemMock = void 0;
|
|
4
|
-
class MessageHistoryItemMock {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.list = [];
|
|
7
|
-
}
|
|
8
|
-
add(message) {
|
|
9
|
-
this.list.push(message);
|
|
10
|
-
return this;
|
|
11
|
-
}
|
|
12
|
-
clear() {
|
|
13
|
-
this.list = [];
|
|
14
|
-
}
|
|
15
|
-
get length() {
|
|
16
|
-
return this.list.length;
|
|
17
|
-
}
|
|
18
|
-
get last() {
|
|
19
|
-
return this.list[this.list.length - 1];
|
|
20
|
-
}
|
|
21
|
-
get all() {
|
|
22
|
-
return [...this.list];
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.MessageHistoryItemMock = MessageHistoryItemMock;
|
|
26
|
-
//# sourceMappingURL=message-history-item-mock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message-history-item-mock.js","sourceRoot":"","sources":["../../src/mocks/message-history-item-mock.ts"],"names":[],"mappings":";;;AAEA,MAAa,sBAAsB;IAAnC;QACU,SAAI,GAAQ,EAAE,CAAC;IAsBzB,CAAC;IApBC,GAAG,CAAC,OAAU;QACZ,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK;QACH,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;IACjB,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;IAC1B,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACzC,CAAC;IAED,IAAI,GAAG;QACL,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;CACF;AAvBD,wDAuBC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PostboyGenericMessage } from '../models/postboy-generic-message';
|
|
2
|
-
import { MessageHistoryItemMock } from './message-history-item-mock';
|
|
3
|
-
export declare class MessageHistoryMock {
|
|
4
|
-
private _items;
|
|
5
|
-
get<T extends PostboyGenericMessage>(id: string): MessageHistoryItemMock<T>;
|
|
6
|
-
add(message: PostboyGenericMessage): void;
|
|
7
|
-
reset(): void;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=message-history-mock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message-history-mock.d.ts","sourceRoot":"","sources":["../../src/mocks/message-history-mock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,MAAM,CAAkD;IAEhE,GAAG,CAAC,CAAC,SAAS,qBAAqB,EAAE,EAAE,EAAE,MAAM,GAAG,sBAAsB,CAAC,CAAC,CAAC;IAI3E,GAAG,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI;IAKzC,KAAK,IAAI,IAAI;CAGd"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageHistoryMock = void 0;
|
|
4
|
-
const message_history_item_mock_1 = require("./message-history-item-mock");
|
|
5
|
-
class MessageHistoryMock {
|
|
6
|
-
constructor() {
|
|
7
|
-
this._items = new Map();
|
|
8
|
-
}
|
|
9
|
-
get(id) {
|
|
10
|
-
var _a;
|
|
11
|
-
return (_a = this._items.get(id)) !== null && _a !== void 0 ? _a : new message_history_item_mock_1.MessageHistoryItemMock();
|
|
12
|
-
}
|
|
13
|
-
add(message) {
|
|
14
|
-
var _a;
|
|
15
|
-
if (!((_a = this._items.get(message.id)) === null || _a === void 0 ? void 0 : _a.add(message)))
|
|
16
|
-
this._items.set(message.id, new message_history_item_mock_1.MessageHistoryItemMock().add(message));
|
|
17
|
-
}
|
|
18
|
-
reset() {
|
|
19
|
-
this._items.forEach((i) => i.clear());
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.MessageHistoryMock = MessageHistoryMock;
|
|
23
|
-
//# sourceMappingURL=message-history-mock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message-history-mock.js","sourceRoot":"","sources":["../../src/mocks/message-history-mock.ts"],"names":[],"mappings":";;;AACA,2EAAqE;AAErE,MAAa,kBAAkB;IAA/B;QACU,WAAM,GAAG,IAAI,GAAG,EAAuC,CAAC;IAclE,CAAC;IAZC,GAAG,CAAkC,EAAU;;QAC7C,OAAO,MAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,mCAAI,IAAI,kDAAsB,EAAE,CAAC;IAC7D,CAAC;IAED,GAAG,CAAC,OAA8B;;QAChC,IAAI,CAAC,CAAA,MAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,0CAAE,GAAG,CAAC,OAAO,CAAC,CAAA;YAC5C,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,kDAAsB,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3E,CAAC;IAED,KAAK;QACH,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;IACxC,CAAC;CACF;AAfD,gDAeC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PostboyService } from '../postboy.service';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { PostboyExecutor } from '../models/postboy-executor';
|
|
4
|
-
import { PostboyGenericMessage } from '../models/postboy-generic-message';
|
|
5
|
-
import { PostboyCallbackMessage } from '../models/postboy-callback.message';
|
|
6
|
-
import { MessageHistoryItemMock } from './message-history-item-mock';
|
|
7
|
-
import { MessageType } from '../postboy-abstract.registrator';
|
|
8
|
-
export declare class PostboyServiceMock extends PostboyService {
|
|
9
|
-
private subscriptions;
|
|
10
|
-
private _history;
|
|
11
|
-
reset(): void;
|
|
12
|
-
fired(id: string, times?: number): boolean;
|
|
13
|
-
subscribed(id: string, times?: number): boolean;
|
|
14
|
-
private count;
|
|
15
|
-
exec<E extends PostboyExecutor<T>, T>(executor: E): T;
|
|
16
|
-
subscribe<T>(id: string): Observable<T>;
|
|
17
|
-
sub<T extends PostboyGenericMessage>(type: MessageType<T>): Observable<T>;
|
|
18
|
-
fire<T extends PostboyGenericMessage>(message: T): void;
|
|
19
|
-
fireCallback<T>(message: PostboyCallbackMessage<T>, action?: (e: T) => void): Observable<T>;
|
|
20
|
-
history<T extends PostboyGenericMessage>(type: MessageType<T>): MessageHistoryItemMock<T>;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=postboy-service-mock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postboy-service-mock.d.ts","sourceRoot":"","sources":["../../src/mocks/postboy-service-mock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAW,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,qBAAa,kBAAmB,SAAQ,cAAc;IACpD,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,QAAQ,CAA4B;IAE5C,KAAK,IAAI,IAAI;IAKb,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,OAAO;IAI7C,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,OAAO;IAKlD,OAAO,CAAC,KAAK,CAAmF;IAEhG,IAAI,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,CAAC;IAKrD,SAAS,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC;IAKhC,GAAG,CAAC,CAAC,SAAS,qBAAqB,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;IAKhF,IAAI,CAAC,CAAC,SAAS,qBAAqB,EAAE,OAAO,EAAE,CAAC;IAKhD,YAAY,CAAC,CAAC,EAAE,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC;IAK3F,OAAO,CAAC,CAAC,SAAS,qBAAqB,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC;CAG1F"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PostboyServiceMock = void 0;
|
|
4
|
-
const postboy_service_1 = require("../postboy.service");
|
|
5
|
-
const postboy_generic_message_1 = require("../models/postboy-generic-message");
|
|
6
|
-
const message_history_mock_1 = require("./message-history-mock");
|
|
7
|
-
class PostboyServiceMock extends postboy_service_1.PostboyService {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.subscriptions = [];
|
|
11
|
-
this._history = new message_history_mock_1.MessageHistoryMock();
|
|
12
|
-
this.count = (collection, el) => collection.filter((e) => e === el).length;
|
|
13
|
-
}
|
|
14
|
-
reset() {
|
|
15
|
-
this.subscriptions = [];
|
|
16
|
-
this._history.reset();
|
|
17
|
-
}
|
|
18
|
-
fired(id, times = 0) {
|
|
19
|
-
var _a;
|
|
20
|
-
return ((_a = this._history.get(id)) === null || _a === void 0 ? void 0 : _a.length) === times;
|
|
21
|
-
}
|
|
22
|
-
subscribed(id, times = 0) {
|
|
23
|
-
const count = this.count(this.subscriptions, id);
|
|
24
|
-
return !!count && (!times || count === times);
|
|
25
|
-
}
|
|
26
|
-
exec(executor) {
|
|
27
|
-
this._history.add(executor);
|
|
28
|
-
return super.exec(executor);
|
|
29
|
-
}
|
|
30
|
-
subscribe(id) {
|
|
31
|
-
this.subscriptions.push(id);
|
|
32
|
-
return super.subscribe(id);
|
|
33
|
-
}
|
|
34
|
-
sub(type) {
|
|
35
|
-
this.subscriptions.push((0, postboy_generic_message_1.checkId)(type));
|
|
36
|
-
return super.subscribe((0, postboy_generic_message_1.checkId)(type));
|
|
37
|
-
}
|
|
38
|
-
fire(message) {
|
|
39
|
-
this._history.add(message);
|
|
40
|
-
super.fire(message);
|
|
41
|
-
}
|
|
42
|
-
fireCallback(message, action) {
|
|
43
|
-
this._history.add(message);
|
|
44
|
-
return super.fireCallback(message, action);
|
|
45
|
-
}
|
|
46
|
-
history(type) {
|
|
47
|
-
return this._history.get((0, postboy_generic_message_1.checkId)(type));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.PostboyServiceMock = PostboyServiceMock;
|
|
51
|
-
//# sourceMappingURL=postboy-service-mock.js.map
|