@privateaim/server-kit 0.8.21 → 0.8.22
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/CHANGELOG.md +29 -0
- package/dist/core/component/caller/compound/index.d.ts +2 -0
- package/dist/core/component/caller/compound/index.d.ts.map +1 -0
- package/dist/core/component/caller/compound/module.d.ts +9 -0
- package/dist/core/component/caller/compound/module.d.ts.map +1 -0
- package/dist/core/component/caller/direct/index.d.ts +3 -0
- package/dist/core/component/caller/direct/index.d.ts.map +1 -0
- package/dist/core/component/caller/direct/module.d.ts +23 -0
- package/dist/core/component/caller/direct/module.d.ts.map +1 -0
- package/dist/core/component/caller/direct/types.d.ts +5 -0
- package/dist/core/component/caller/direct/types.d.ts.map +1 -0
- package/dist/core/component/caller/index.d.ts +6 -0
- package/dist/core/component/caller/index.d.ts.map +1 -0
- package/dist/core/component/caller/queue-dispatch/index.d.ts +2 -0
- package/dist/core/component/caller/queue-dispatch/index.d.ts.map +1 -0
- package/dist/core/component/caller/queue-dispatch/module.d.ts +9 -0
- package/dist/core/component/caller/queue-dispatch/module.d.ts.map +1 -0
- package/dist/core/component/caller/queue-dispatch/types.d.ts +6 -0
- package/dist/core/component/caller/queue-dispatch/types.d.ts.map +1 -0
- package/dist/core/component/caller/queue-worker/index.d.ts +2 -0
- package/dist/core/component/caller/queue-worker/index.d.ts.map +1 -0
- package/dist/core/component/caller/queue-worker/module.d.ts +17 -0
- package/dist/core/component/caller/queue-worker/module.d.ts.map +1 -0
- package/dist/core/component/caller/queue-worker/types.d.ts +6 -0
- package/dist/core/component/caller/queue-worker/types.d.ts.map +1 -0
- package/dist/core/component/caller/types.d.ts +13 -0
- package/dist/core/component/caller/types.d.ts.map +1 -0
- package/dist/core/component/error.d.ts +1 -1
- package/dist/core/component/error.d.ts.map +1 -1
- package/dist/core/component/handler/index.d.ts +1 -1
- package/dist/core/component/handler/index.d.ts.map +1 -1
- package/dist/core/component/handler/types.d.ts +8 -7
- package/dist/core/component/handler/types.d.ts.map +1 -1
- package/dist/core/component/index.d.ts +2 -0
- package/dist/core/component/index.d.ts.map +1 -1
- package/dist/core/component/module.d.ts +23 -0
- package/dist/core/component/module.d.ts.map +1 -0
- package/dist/core/component/type.d.ts +26 -9
- package/dist/core/component/type.d.ts.map +1 -1
- package/dist/core/index.d.ts +0 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/queue-router/types.d.ts +2 -1
- package/dist/core/queue-router/types.d.ts.map +1 -1
- package/dist/index.mjs +390 -290
- package/dist/index.mjs.map +1 -1
- package/dist/services/cache/adapters/memory.d.ts +3 -3
- package/dist/services/cache/adapters/memory.d.ts.map +1 -1
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/redis/module.d.ts +4 -2
- package/dist/services/redis/module.d.ts.map +1 -1
- package/dist/services/task-manager/helpers.d.ts +3 -0
- package/dist/services/task-manager/helpers.d.ts.map +1 -0
- package/dist/services/task-manager/index.d.ts +3 -0
- package/dist/services/task-manager/index.d.ts.map +1 -0
- package/dist/services/task-manager/module.d.ts +33 -0
- package/dist/services/task-manager/module.d.ts.map +1 -0
- package/dist/services/task-manager/types.d.ts +16 -0
- package/dist/services/task-manager/types.d.ts.map +1 -0
- package/package.json +16 -15
- package/src/core/{queue → component/caller/compound}/index.ts +2 -3
- package/src/core/component/caller/compound/module.ts +42 -0
- package/src/core/component/caller/direct/index.ts +9 -0
- package/src/core/component/caller/direct/module.ts +84 -0
- package/src/core/component/caller/direct/types.ts +13 -0
- package/src/core/component/caller/index.ts +13 -0
- package/src/core/component/caller/queue-dispatch/index.ts +8 -0
- package/src/core/component/caller/queue-dispatch/module.ts +49 -0
- package/src/core/component/caller/queue-dispatch/types.ts +13 -0
- package/src/core/component/caller/queue-worker/index.ts +8 -0
- package/src/core/component/caller/queue-worker/module.ts +91 -0
- package/src/core/component/caller/queue-worker/types.ts +13 -0
- package/src/core/component/caller/types.ts +33 -0
- package/src/core/component/error.ts +1 -1
- package/src/core/component/handler/index.ts +1 -1
- package/src/core/component/handler/types.ts +12 -10
- package/src/core/component/index.ts +2 -0
- package/src/core/component/module.ts +158 -0
- package/src/core/component/type.ts +45 -19
- package/src/core/index.ts +0 -1
- package/src/core/queue-router/types.ts +4 -2
- package/src/services/cache/adapters/memory.ts +7 -4
- package/src/services/index.ts +1 -0
- package/src/services/redis/module.ts +4 -1
- package/src/services/task-manager/helpers.ts +15 -0
- package/src/services/task-manager/index.ts +9 -0
- package/src/services/task-manager/module.ts +131 -0
- package/src/services/task-manager/types.ts +32 -0
- package/test/unit/logger.spec.ts +1 -0
- package/test/unit/memory-cache.spec.ts +1 -0
- package/test/vitest.config.ts +17 -0
- package/dist/core/component/handler/module.d.ts +0 -13
- package/dist/core/component/handler/module.d.ts.map +0 -1
- package/dist/core/queue/index.d.ts +0 -3
- package/dist/core/queue/index.d.ts.map +0 -1
- package/dist/core/queue/type.d.ts +0 -12
- package/dist/core/queue/type.d.ts.map +0 -1
- package/dist/core/queue/utils.d.ts +0 -3
- package/dist/core/queue/utils.d.ts.map +0 -1
- package/dist/index.cjs +0 -970
- package/dist/index.cjs.map +0 -1
- package/src/core/component/handler/module.ts +0 -74
- package/src/core/queue/type.ts +0 -23
- package/src/core/queue/utils.ts +0 -17
- package/test/jest.config.js +0 -33
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.8.22](https://github.com/PrivateAIM/hub/compare/v0.8.21...v0.8.22) (2026-01-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* analysis-distributor ([#1285](https://github.com/PrivateAIM/hub/issues/1285)) ([5da60be](https://github.com/PrivateAIM/hub/commit/5da60be91c4ae27ea16369b5d7e3d09782118826))
|
|
9
|
+
* bucket-file aggregation with analysis-bucket-file management ([#1324](https://github.com/PrivateAIM/hub/issues/1324)) ([00d5aa8](https://github.com/PrivateAIM/hub/commit/00d5aa8bc16a66d7a761ef60b2b4ec27983e5c9a))
|
|
10
|
+
* component caller(s) implementation ([#1295](https://github.com/PrivateAIM/hub/issues/1295)) ([3b21fe1](https://github.com/PrivateAIM/hub/commit/3b21fe1b2cf3d47332722578cff67359442d84eb))
|
|
11
|
+
* master-image component(s) ([#1300](https://github.com/PrivateAIM/hub/issues/1300)) ([94cd580](https://github.com/PrivateAIM/hub/commit/94cd58057082ba9c48dae52346bfe5a8cabb28d8))
|
|
12
|
+
* migrate to esm & replace jest with vitest ([#1368](https://github.com/PrivateAIM/hub/issues/1368)) ([5a4d9d1](https://github.com/PrivateAIM/hub/commit/5a4d9d1ce118f65740aa49caf948208eac299032))
|
|
13
|
+
* only recompute necessary data in metadata component ([9ded46e](https://github.com/PrivateAIM/hub/commit/9ded46e2c6225c296b6c573c1e86b484a416b00d))
|
|
14
|
+
* storage components + component/handler refactoring ([#1289](https://github.com/PrivateAIM/hub/issues/1289)) ([c22db47](https://github.com/PrivateAIM/hub/commit/c22db471bb2a7e71f33a299926f38fde551efc39))
|
|
15
|
+
* store analysis build hash, size & os ([#1374](https://github.com/PrivateAIM/hub/issues/1374)) ([6110ba6](https://github.com/PrivateAIM/hub/commit/6110ba6c94b3321c1477173c35afdea8b04ad33d))
|
|
16
|
+
* task manager/tracker ([#1293](https://github.com/PrivateAIM/hub/issues/1293)) ([a618c3c](https://github.com/PrivateAIM/hub/commit/a618c3c544e798df9ed169153ab573b593e59445))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **deps:** bump the minorandpatch group across 1 directory with 16 updates ([#1329](https://github.com/PrivateAIM/hub/issues/1329)) ([7b394da](https://github.com/PrivateAIM/hub/commit/7b394da159d8e52cc37fe489832307a234f3ddb0))
|
|
22
|
+
* **deps:** bump the minorandpatch group across 1 directory with 9 updates ([#1331](https://github.com/PrivateAIM/hub/issues/1331)) ([2802bc3](https://github.com/PrivateAIM/hub/commit/2802bc319b84453f8bb351ba1723d9a58bba9830))
|
|
23
|
+
* restrict call response to direct component caller ([004d1ee](https://github.com/PrivateAIM/hub/commit/004d1ee9169dac95fd5e332b7acc0fa5528967e9))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Dependencies
|
|
27
|
+
|
|
28
|
+
* The following workspace dependencies were updated
|
|
29
|
+
* dependencies
|
|
30
|
+
* @privateaim/kit bumped from ^0.8.21 to ^0.8.22
|
|
31
|
+
|
|
3
32
|
## [0.8.21](https://github.com/PrivateAIM/hub/compare/v0.8.20...v0.8.21) (2025-11-04)
|
|
4
33
|
|
|
5
34
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/component/caller/compound/index.ts"],"names":[],"mappings":"AAOA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ObjectLiteral } from '../../../../type';
|
|
2
|
+
import type { ComponentEventMap } from '../../type';
|
|
3
|
+
import type { ComponentCaller, ComponentCallerPayload } from '../types';
|
|
4
|
+
export declare class CompoundComponentCaller<EventMap extends ComponentEventMap = ComponentEventMap, Metadata extends ObjectLiteral = ObjectLiteral> implements ComponentCaller<EventMap, Metadata> {
|
|
5
|
+
protected callers: ComponentCaller<EventMap, Metadata>[];
|
|
6
|
+
constructor(callers: ComponentCaller<EventMap, Metadata>[]);
|
|
7
|
+
call<Key extends keyof ComponentEventMap>(key: Key & string, ...payload: ComponentCallerPayload<ComponentEventMap[Key], Metadata>): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../src/core/component/caller/compound/module.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAExE,qBAAa,uBAAuB,CAChC,QAAQ,SAAS,iBAAiB,GAAG,iBAAiB,EACtD,QAAQ,SAAS,aAAa,GAAG,aAAa,CAChD,YAAW,eAAe,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5C,SAAS,CAAC,OAAO,EAAG,eAAe,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC;gBAE9C,OAAO,EAAE,eAAe,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE;IAIpD,IAAI,CAAC,GAAG,SAAS,MAAM,iBAAiB,EAC1C,GAAG,EAAE,GAAG,GAAG,MAAM,EACjB,GAAG,OAAO,EAAE,sBAAsB,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,GACrE,OAAO,CAAC,IAAI,CAAC;CAiBnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/component/caller/direct/index.ts"],"names":[],"mappings":"AAOA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ComponentCaller, ComponentCallerPayload } from '../types';
|
|
2
|
+
import type { Component, ComponentEventMap, ComponentHandleOptions } from '../../type';
|
|
3
|
+
import type { ComponentDirectCallerResponse } from './types';
|
|
4
|
+
export declare class DirectComponentCaller<EventMap extends ComponentEventMap = ComponentEventMap> implements ComponentCaller<EventMap> {
|
|
5
|
+
protected component: Component<EventMap>;
|
|
6
|
+
constructor(component: Component<EventMap>);
|
|
7
|
+
/**
|
|
8
|
+
* Call a specific handler and collect all unhandled events.
|
|
9
|
+
*
|
|
10
|
+
* @param key
|
|
11
|
+
* @param payload
|
|
12
|
+
*/
|
|
13
|
+
call<Key extends keyof EventMap>(key: Key & string, ...payload: ComponentCallerPayload<EventMap[Key]>): Promise<void>;
|
|
14
|
+
callWith<Key extends keyof EventMap>(key: Key & string, data: ComponentCallerPayload<EventMap[Key]>[0], metadata: ComponentCallerPayload<EventMap[Key]>[1], options: ComponentHandleOptions<EventMap>): Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Call a specific handler and collect all unhandled events.
|
|
17
|
+
*
|
|
18
|
+
* @param key
|
|
19
|
+
* @param payload
|
|
20
|
+
*/
|
|
21
|
+
callAndWait<Key extends keyof EventMap>(key: Key & string, ...payload: ComponentCallerPayload<EventMap[Key]>): Promise<ComponentDirectCallerResponse<EventMap>>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../src/core/component/caller/direct/module.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACvF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAE7D,qBAAa,qBAAqB,CAC9B,QAAQ,SAAS,iBAAiB,GAAG,iBAAiB,CACxD,YAAW,eAAe,CAAC,QAAQ,CAAC;IAClC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;gBAE7B,SAAS,EAAG,SAAS,CAAC,QAAQ,CAAC;IAI3C;;;;;OAKG;IACG,IAAI,CAAC,GAAG,SAAS,MAAM,QAAQ,EACjC,GAAG,EAAE,GAAG,GAAG,MAAM,EACjB,GAAG,OAAO,EAAE,sBAAsB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAClD,OAAO,CAAC,IAAI,CAAC;IAMV,QAAQ,CAAC,GAAG,SAAS,MAAM,QAAQ,EACrC,GAAG,EAAE,GAAG,GAAG,MAAM,EACjB,IAAI,EAAE,sBAAsB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAC9C,QAAQ,EAAE,sBAAsB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAClD,OAAO,EAAE,sBAAsB,CAAC,QAAQ,CAAC;IAgB7C;;;;;OAKG;IACG,WAAW,CAAC,GAAG,SAAS,MAAM,QAAQ,EACxC,GAAG,EAAE,GAAG,GAAG,MAAM,EACjB,GAAG,OAAO,EAAE,sBAAsB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAClD,OAAO,CAAC,6BAA6B,CAAC,QAAQ,CAAC,CAAC;CAkBtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/core/component/caller/direct/types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,MAAM,MAAM,6BAA6B,CACrC,QAAQ,SAAS,iBAAiB,GAAG,iBAAiB,IACtD;KACC,CAAC,IAAI,MAAM,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/component/caller/index.ts"],"names":[],"mappings":"AAOA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/component/caller/queue-dispatch/index.ts"],"names":[],"mappings":"AAOA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentEventMap } from '../../type';
|
|
2
|
+
import type { ComponentCaller, ComponentCallerPayload } from '../types';
|
|
3
|
+
import type { QueueDispatchComponentCallerOptions } from './types';
|
|
4
|
+
export declare class QueueDispatchComponentCaller<EventMap extends ComponentEventMap = ComponentEventMap> implements ComponentCaller<EventMap> {
|
|
5
|
+
protected options: QueueDispatchComponentCallerOptions;
|
|
6
|
+
constructor(options: QueueDispatchComponentCallerOptions);
|
|
7
|
+
call<K extends keyof EventMap>(type: K & string, ...payload: ComponentCallerPayload<EventMap[K]>): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../src/core/component/caller/queue-dispatch/module.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGxE,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,SAAS,CAAC;AAEnE,qBAAa,4BAA4B,CACrC,QAAQ,SAAS,iBAAiB,GAAG,iBAAiB,CACxD,YAAW,eAAe,CAAC,QAAQ,CAAC;IAClC,SAAS,CAAC,OAAO,EAAG,mCAAmC,CAAC;gBAE5C,OAAO,EAAE,mCAAmC;IAIlD,IAAI,CAAC,CAAC,SAAS,MAAM,QAAQ,EAC/B,IAAI,EAAE,CAAC,GAAG,MAAM,EAChB,GAAG,OAAO,EAAE,sBAAsB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAChD,OAAO,CAAC,IAAI,CAAC;CAuBnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/core/component/caller/queue-dispatch/types.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,MAAM,MAAM,mCAAmC,GAAG;IAC9C,KAAK,EAAE,kBAAkB,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/component/caller/queue-worker/index.ts"],"names":[],"mappings":"AAOA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Component, ComponentEventMap } from '../../type';
|
|
2
|
+
import type { ComponentCaller, ComponentCallerPayload } from '../types';
|
|
3
|
+
import type { QueueSelfComponentCallerOptions } from './types';
|
|
4
|
+
export declare class QueueWorkerComponentCaller<EventMap extends ComponentEventMap = ComponentEventMap> implements ComponentCaller<EventMap>, Component<EventMap> {
|
|
5
|
+
protected component: Component<EventMap>;
|
|
6
|
+
protected options: QueueSelfComponentCallerOptions;
|
|
7
|
+
constructor(component: Component<EventMap>, options: QueueSelfComponentCallerOptions);
|
|
8
|
+
start(): Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* Call a specific handler and collect all unhandled events.
|
|
11
|
+
*
|
|
12
|
+
* @param key
|
|
13
|
+
* @param payload
|
|
14
|
+
*/
|
|
15
|
+
call<Key extends keyof EventMap>(key: Key & string, ...payload: ComponentCallerPayload<EventMap[Key]>): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../src/core/component/caller/queue-worker/module.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAA0B,MAAM,YAAY,CAAC;AAEvF,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAG/D,qBAAa,0BAA0B,CACnC,QAAQ,SAAS,iBAAiB,GAAG,iBAAiB,CACxD,YAAW,eAAe,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC;IACvD,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAEzC,SAAS,CAAC,OAAO,EAAE,+BAA+B,CAAC;gBAEvC,SAAS,EAAE,SAAS,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,+BAA+B;IAK9E,KAAK;IAeX;;;;;OAKG;IACG,IAAI,CAAC,GAAG,SAAS,MAAM,QAAQ,EACjC,GAAG,EAAE,GAAG,GAAG,MAAM,EACjB,GAAG,OAAO,EAAE,sBAAsB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAClD,OAAO,CAAC,IAAI,CAAC;CAyCnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/core/component/caller/queue-worker/types.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,MAAM,MAAM,+BAA+B,GAAG;IAC1C,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,YAAY,EAAE,kBAAkB,CAAC;CACpC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ObjectLiteral } from '../../../type';
|
|
2
|
+
import type { ComponentEventMap, ComponentEventMapValue } from '../type';
|
|
3
|
+
export type ComponentCallerPayload<EventMapValue extends ComponentEventMapValue = ComponentEventMapValue, Metadata extends ObjectLiteral = ObjectLiteral> = [data: EventMapValue[0], metadata: EventMapValue[1] & Metadata];
|
|
4
|
+
export type ComponentCallerFnArgsForMap<EventMap extends ComponentEventMap = ComponentEventMap, Metadata extends ObjectLiteral = ObjectLiteral> = {
|
|
5
|
+
[K in keyof EventMap]: [
|
|
6
|
+
key: K,
|
|
7
|
+
...ComponentCallerPayload<EventMap[K], Metadata>
|
|
8
|
+
];
|
|
9
|
+
}[keyof EventMap];
|
|
10
|
+
export interface ComponentCaller<EventMap extends ComponentEventMap = ComponentEventMap, Metadata extends ObjectLiteral = ObjectLiteral> {
|
|
11
|
+
call(...input: ComponentCallerFnArgsForMap<EventMap, Metadata>): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/core/component/caller/types.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEzE,MAAM,MAAM,sBAAsB,CAC9B,aAAa,SAAS,sBAAsB,GAAG,sBAAsB,EACrE,QAAQ,SAAS,aAAa,GAAG,aAAa,IAC9C,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC;AAEpE,MAAM,MAAM,2BAA2B,CACnC,QAAQ,SAAS,iBAAiB,GAAG,iBAAiB,EACtD,QAAQ,SAAS,aAAa,GAAG,aAAa,IAC9C;KACC,CAAC,IAAI,MAAM,QAAQ,GAAG;QACnB,GAAG,EAAE,CAAC;QACN,GAAG,sBAAsB,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC;KACnD;CACJ,CAAC,MAAM,QAAQ,CAAC,CAAC;AAElB,MAAM,WAAW,eAAe,CAC5B,QAAQ,SAAS,iBAAiB,GAAG,iBAAiB,EACtD,QAAQ,SAAS,aAAa,GAAG,aAAa;IAE9C,IAAI,CACA,GAAG,KAAK,EAAE,2BAA2B,CAAC,QAAQ,EAAE,QAAQ,CAAC,GACzD,OAAO,CAAC,IAAI,CAAC,CAAC;CACrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/core/component/error.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAEpD,qBAAa,cAAe,SAAQ,KAAK;
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/core/component/error.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAEpD,qBAAa,cAAe,SAAQ,KAAK;IACrC,SAAgB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;gBAEzB,KAAK,EAAE,qBAAqB;CAK3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/component/handler/index.ts"],"names":[],"mappings":"AAOA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/component/handler/index.ts"],"names":[],"mappings":"AAOA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type ComponentHandlerContext<
|
|
3
|
-
key:
|
|
4
|
-
metadata:
|
|
1
|
+
import type { ComponentEventMap, ComponentHandlerCallFnForMap } from '../type';
|
|
2
|
+
export type ComponentHandlerContext<EventMap extends ComponentEventMap = ComponentEventMap, Key extends keyof EventMap = keyof EventMap> = {
|
|
3
|
+
key: Key & string;
|
|
4
|
+
metadata: EventMap[Key][1];
|
|
5
|
+
handle: ComponentHandlerCallFnForMap<EventMap>;
|
|
5
6
|
};
|
|
6
|
-
export type ComponentHandlerFn<
|
|
7
|
-
export type ComponentHandler<
|
|
7
|
+
export type ComponentHandlerFn<EventMap extends ComponentEventMap = ComponentEventMap, Key extends keyof EventMap = keyof EventMap> = (value: EventMap[Key][0], context: ComponentHandlerContext<EventMap, Key>) => Promise<void> | void;
|
|
8
|
+
export type ComponentHandler<EventMap extends ComponentEventMap = ComponentEventMap, Key extends keyof EventMap = keyof EventMap> = {
|
|
8
9
|
initialize?: () => Promise<void> | void;
|
|
9
|
-
handle: ComponentHandlerFn<
|
|
10
|
+
handle: ComponentHandlerFn<EventMap, Key>;
|
|
10
11
|
};
|
|
11
12
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/core/component/handler/types.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/core/component/handler/types.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAE/E,MAAM,MAAM,uBAAuB,CAC/B,QAAQ,SAAS,iBAAiB,GAAG,iBAAiB,EACtD,GAAG,SAAS,MAAM,QAAQ,GAAG,MAAM,QAAQ,IAC3C;IACA,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC;IAClB,QAAQ,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3B,MAAM,EAAE,4BAA4B,CAAC,QAAQ,CAAC,CAAA;CACjD,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAC1B,QAAQ,SAAS,iBAAiB,GAAG,iBAAiB,EACtD,GAAG,SAAS,MAAM,QAAQ,GAAG,MAAM,QAAQ,IAC3C,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,uBAAuB,CAAC,QAAQ,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAEvG,MAAM,MAAM,gBAAgB,CACxB,QAAQ,SAAS,iBAAiB,GAAG,iBAAiB,EACtD,GAAG,SAAS,MAAM,QAAQ,GAAG,MAAM,QAAQ,IAC3C;IACA,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACxC,MAAM,EAAE,kBAAkB,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAA;CAC5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/component/index.ts"],"names":[],"mappings":"AAOA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/component/index.ts"],"names":[],"mappings":"AAOA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Component, ComponentEventMap, ComponentHandleOptions, ComponentHandlers } from './type';
|
|
2
|
+
import type { ComponentHandler, ComponentHandlerFn } from './handler';
|
|
3
|
+
export declare abstract class BaseComponent<EventMap extends ComponentEventMap = ComponentEventMap> implements Component<EventMap> {
|
|
4
|
+
private initializePromise;
|
|
5
|
+
protected initialized: boolean;
|
|
6
|
+
protected handlers: ComponentHandlers<EventMap>;
|
|
7
|
+
protected constructor();
|
|
8
|
+
mount<Key extends keyof EventMap>(key: Key, fn: ComponentHandler<EventMap, Key> | ComponentHandlerFn<EventMap, Key>): void;
|
|
9
|
+
mount(key: '*', fn: ComponentHandler<EventMap> | ComponentHandlerFn<EventMap>): void;
|
|
10
|
+
unmount<Key extends keyof EventMap>(key: Key): void;
|
|
11
|
+
initialize(): Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* Handle specific component event.
|
|
14
|
+
*
|
|
15
|
+
* @param key
|
|
16
|
+
* @param data
|
|
17
|
+
* @param metadata
|
|
18
|
+
* @param options
|
|
19
|
+
*/
|
|
20
|
+
handle<Key extends keyof EventMap>(key: Key & string, data: EventMap[Key][0], metadata?: EventMap[Key][1], options?: ComponentHandleOptions<EventMap>): Promise<void>;
|
|
21
|
+
abstract start(): Promise<void> | void;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/core/component/module.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACR,SAAS,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,iBAAiB,EAC1E,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACR,gBAAgB,EAA2B,kBAAkB,EAChE,MAAM,WAAW,CAAC;AAEnB,8BAAsB,aAAa,CAC/B,QAAQ,SAAS,iBAAiB,GAAG,iBAAiB,CACxD,YAAW,SAAS,CAAC,QAAQ,CAAC;IAC5B,OAAO,CAAC,iBAAiB,CAA6B;IAEtD,SAAS,CAAC,WAAW,EAAG,OAAO,CAAC;IAEhC,SAAS,CAAC,QAAQ,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAEhD,SAAS;IAMT,KAAK,CAAC,GAAG,SAAS,MAAM,QAAQ,EAC5B,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,gBAAgB,CAAC,QAAQ,EAAE,GAAG,CAAC,GAAG,kBAAkB,CAAC,QAAQ,EAAE,GAAG,CAAC,GACvE,IAAI;IAER,KAAK,CACD,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,gBAAgB,CAAC,QAAQ,CAAC,GAAG,kBAAkB,CAAC,QAAQ,CAAC,GAC7D,IAAI;IASR,OAAO,CAAC,GAAG,SAAS,MAAM,QAAQ,EAAE,GAAG,EAAE,GAAG;IAItC,UAAU,IAAK,OAAO,CAAC,IAAI,CAAC;IAsClC;;;;;;;OAOG;IACG,MAAM,CAAC,GAAG,SAAS,MAAM,QAAQ,EACnC,GAAG,EAAE,GAAG,GAAG,MAAM,EACjB,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EACtB,QAAQ,GAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAM,EAC/B,OAAO,GAAE,sBAAsB,CAAC,QAAQ,CAAM,GAC9C,OAAO,CAAC,IAAI,CAAC;IAuDjB,QAAQ,CAAC,KAAK,IAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;CAC1C"}
|
|
@@ -1,18 +1,35 @@
|
|
|
1
1
|
import type { ObjectLiteral } from '../../type';
|
|
2
|
-
import type {
|
|
3
|
-
export type
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import type { ComponentHandler, ComponentHandlerFn } from './handler';
|
|
3
|
+
export type ComponentData = ObjectLiteral;
|
|
4
|
+
export type ComponentMetadata = {
|
|
5
|
+
correlationId?: string;
|
|
6
|
+
[key: string]: any;
|
|
6
7
|
};
|
|
8
|
+
export type ComponentStartFn = () => Promise<void> | void;
|
|
7
9
|
export type ComponentErrorOptions = {
|
|
8
10
|
code?: string | null;
|
|
9
11
|
message?: string;
|
|
10
12
|
cause?: unknown;
|
|
11
13
|
};
|
|
12
|
-
export type
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
command: C;
|
|
14
|
+
export type ComponentEventMapValue = [ComponentData, ComponentMetadata];
|
|
15
|
+
export type ComponentEventMap = Record<string, ComponentEventMapValue>;
|
|
16
|
+
export type ComponentHandleOptions<EventMap extends ComponentEventMap = ComponentEventMap> = {
|
|
17
|
+
handle?: ComponentHandlerFn<EventMap>;
|
|
17
18
|
};
|
|
19
|
+
export type ComponentHandleFnArgsForMap<EventMap extends ComponentEventMap = ComponentEventMap> = {
|
|
20
|
+
[K in keyof EventMap]: [
|
|
21
|
+
key: K & string,
|
|
22
|
+
data: EventMap[K][0],
|
|
23
|
+
metadata?: EventMap[K][1] | undefined,
|
|
24
|
+
options?: ComponentHandleOptions<EventMap>
|
|
25
|
+
];
|
|
26
|
+
}[keyof EventMap];
|
|
27
|
+
export type ComponentHandlerCallFnForMap<EventMap extends ComponentEventMap = ComponentEventMap> = (...input: ComponentHandleFnArgsForMap<EventMap>) => Promise<void> | void;
|
|
28
|
+
export type ComponentHandlers<EventMap extends ComponentEventMap> = Map<keyof EventMap | '*', {
|
|
29
|
+
[Key in keyof EventMap]?: ComponentHandler<EventMap, Key> | ComponentHandlerFn<EventMap, Key>;
|
|
30
|
+
}[keyof EventMap]>;
|
|
31
|
+
export interface Component<EventMap extends ComponentEventMap = ComponentEventMap> {
|
|
32
|
+
start: ComponentStartFn;
|
|
33
|
+
handle?: ComponentHandlerCallFnForMap<EventMap>;
|
|
34
|
+
}
|
|
18
35
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/core/component/type.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/core/component/type.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEtE,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC;AAC1C,MAAM,MAAM,iBAAiB,GAAG;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACrB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAE1D,MAAM,MAAM,qBAAqB,GAAG;IAChC,IAAI,CAAC,EAAE,MA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,CAAC;AAEF,MAAM,WAAW,SAAS,CACtB,QAAQ,SAAS,iBAAiB,GAAG,iBAAiB;IAEtD,KAAK,EAAE,gBAAgB,CAAC;IACxB,MAAM,CAAC,EAAE,4BAA4B,CAAC,QAAQ,CAAC,CAAA;CAClD"}
|
package/dist/core/index.d.ts
CHANGED
package/dist/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAOA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAOA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
|
|
@@ -19,11 +19,12 @@ export type QueueRouterPayload<T = string, D = Record<string, any>> = {
|
|
|
19
19
|
data: D;
|
|
20
20
|
metadata: QueueRouterPayloadMetadata;
|
|
21
21
|
};
|
|
22
|
+
export type QueueRouterPayloadMetadataInput = Partial<Pick<QueueRouterPayloadMetadata, 'timestamp'>> & Omit<QueueRouterPayloadMetadata, 'timestamp'>;
|
|
22
23
|
export type QueueRouterPayloadInput<KEY = string, VALUE = Record<string, any>> = {
|
|
23
24
|
id?: string;
|
|
24
25
|
type: KEY;
|
|
25
26
|
data?: VALUE;
|
|
26
|
-
metadata:
|
|
27
|
+
metadata: QueueRouterPayloadMetadataInput;
|
|
27
28
|
};
|
|
28
29
|
export type QueueRouterHandler<KEY = string, D = Record<string, any>> = (message: QueueRouterPayload<KEY, D>) => Promise<void> | void;
|
|
29
30
|
export type QueueRouterHandlers<R extends Record<string, Record<string, any>> = Record<string, Record<string, any>>> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/queue-router/types.ts"],"names":[],"mappings":"AAaA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