@forklaunch/implementation-worker-kafka 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/consumers/kafkaWorker.consumer.d.ts +2 -2
- package/lib/consumers/kafkaWorker.consumer.d.ts.map +1 -1
- package/lib/eject/consumers/kafkaWorker.consumer.ts +2 -2
- package/lib/eject/producers/kafkaWorker.producer.ts +2 -3
- package/lib/eject/types/kafkaWorker.types.ts +1 -1
- package/lib/producers/kafkaWorker.producer.d.ts +2 -2
- package/lib/producers/kafkaWorker.producer.d.ts.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/kafkaWorker.types.d.ts +1 -1
- package/lib/types/kafkaWorker.types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
WorkerFailureHandler,
|
|
5
5
|
WorkerProcessFunction
|
|
6
6
|
} from '@forklaunch/interfaces-worker/types';
|
|
7
|
-
import {
|
|
7
|
+
import { WorkerOptions } from '../types/kafkaWorker.types';
|
|
8
8
|
export declare class KafkaWorkerConsumer<
|
|
9
9
|
EventEntity extends WorkerEventEntity,
|
|
10
|
-
Options extends
|
|
10
|
+
Options extends WorkerOptions
|
|
11
11
|
> implements WorkerConsumer<EventEntity>
|
|
12
12
|
{
|
|
13
13
|
protected readonly queueName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kafkaWorker.consumer.d.ts","sourceRoot":"","sources":["../../consumers/kafkaWorker.consumer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC1E,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"kafkaWorker.consumer.d.ts","sourceRoot":"","sources":["../../consumers/kafkaWorker.consumer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC1E,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,qBAAa,mBAAmB,CAC9B,WAAW,SAAS,iBAAiB,EACrC,OAAO,SAAS,aAAa,CAC7B,YAAW,cAAc,CAAC,WAAW,CAAC;IAQpC,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM;IACpC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO;IACnC,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,qBAAqB,CAAC,WAAW,CAAC;IAC5E,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,oBAAoB,CAAC,WAAW,CAAC;IATtE,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,iBAAiB,CAA0B;gBAG9B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,OAAO,EAChB,qBAAqB,EAAE,qBAAqB,CAAC,WAAW,CAAC,EACzD,cAAc,EAAE,oBAAoB,CAAC,WAAW,CAAC;YAaxD,aAAa;IA4DrB,UAAU,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IA4EpC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAKtB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAI7B"}
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
WorkerProcessFunction
|
|
6
6
|
} from '@forklaunch/interfaces-worker/types';
|
|
7
7
|
import { Consumer, Kafka, Producer } from 'kafkajs';
|
|
8
|
-
import {
|
|
8
|
+
import { WorkerOptions } from '../types/kafkaWorker.types';
|
|
9
9
|
|
|
10
10
|
export class KafkaWorkerConsumer<
|
|
11
11
|
EventEntity extends WorkerEventEntity,
|
|
12
|
-
Options extends
|
|
12
|
+
Options extends WorkerOptions
|
|
13
13
|
> implements WorkerConsumer<EventEntity>
|
|
14
14
|
{
|
|
15
15
|
private kafka: Kafka;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { WorkerEventEntity } from '@forklaunch/interfaces-worker/types';
|
|
2
2
|
import { Kafka } from 'kafkajs';
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { WorkerOptions } from '../types/kafkaWorker.types';
|
|
5
4
|
export class KafkaWorkerProducer<
|
|
6
5
|
EventEntity extends WorkerEventEntity,
|
|
7
|
-
Options extends
|
|
6
|
+
Options extends WorkerOptions
|
|
8
7
|
> {
|
|
9
8
|
private producer;
|
|
10
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WorkerEventEntity } from '@forklaunch/interfaces-worker/types';
|
|
2
|
-
import {
|
|
2
|
+
import { WorkerOptions } from '../types/kafkaWorker.types';
|
|
3
3
|
export declare class KafkaWorkerProducer<
|
|
4
4
|
EventEntity extends WorkerEventEntity,
|
|
5
|
-
Options extends
|
|
5
|
+
Options extends WorkerOptions
|
|
6
6
|
> {
|
|
7
7
|
private readonly queueName;
|
|
8
8
|
private readonly options;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kafkaWorker.producer.d.ts","sourceRoot":"","sources":["../../producers/kafkaWorker.producer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"kafkaWorker.producer.d.ts","sourceRoot":"","sources":["../../producers/kafkaWorker.producer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,qBAAa,mBAAmB,CAC9B,WAAW,SAAS,iBAAiB,EACrC,OAAO,SAAS,aAAa;IAK3B,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAJ1B,OAAO,CAAC,QAAQ,CAAC;gBAGE,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,OAAO;IAU7B,UAAU,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAO7C,gBAAgB,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAM7D"}
|