@forklaunch/implementation-worker-kafka 0.1.4 → 0.1.6
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/__test__/schemaEquality.test.d.ts +1 -1
- package/lib/__test__/schemaEquality.test.js +12 -4
- package/lib/consumers/index.d.ts +1 -1
- package/lib/consumers/kafkaWorker.consumer.d.ts +30 -17
- package/lib/consumers/kafkaWorker.consumer.d.ts.map +1 -1
- package/lib/consumers/kafkaWorker.consumer.js +137 -139
- package/lib/eject/consumers/kafkaWorker.consumer.ts +2 -2
- package/lib/eject/producers/kafkaWorker.producer.ts +2 -2
- package/lib/eject/types/kafkaWorker.types.ts +1 -1
- package/lib/jest.config.d.ts +1 -1
- package/lib/jest.config.js +16 -16
- package/lib/producers/index.d.ts +1 -1
- package/lib/producers/kafkaWorker.producer.d.ts +12 -9
- package/lib/producers/kafkaWorker.producer.d.ts.map +1 -1
- package/lib/producers/kafkaWorker.producer.js +25 -25
- package/lib/schemas/index.d.ts +1 -1
- package/lib/schemas/kafka.schema.d.ts +63 -17
- package/lib/schemas/kafka.schema.js +4 -1
- package/lib/schemas/typebox/kafkaWorker.schema.d.ts +45 -7
- package/lib/schemas/typebox/kafkaWorker.schema.js +6 -6
- package/lib/schemas/zod/kafkaWorker.schema.d.ts +7 -7
- package/lib/schemas/zod/kafkaWorker.schema.js +6 -6
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/kafkaWorker.types.d.ts +8 -8
- package/lib/types/kafkaWorker.types.d.ts.map +1 -1
- package/lib/vitest.config.d.ts +2 -2
- package/lib/vitest.config.js +4 -4
- package/package.json +7 -7
|
@@ -1,9 +1,47 @@
|
|
|
1
1
|
export declare const KafkaWorkerOptionsSchema: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
brokers: import('@sinclair/typebox').TArray<
|
|
3
|
+
import('@sinclair/typebox').TString
|
|
4
|
+
>;
|
|
5
|
+
clientId: import('@sinclair/typebox').TString;
|
|
6
|
+
groupId: import('@sinclair/typebox').TString;
|
|
7
|
+
retries: import('@sinclair/typebox').TTransform<
|
|
8
|
+
import('@sinclair/typebox').TUnion<
|
|
9
|
+
[
|
|
10
|
+
import('@sinclair/typebox').TNumber,
|
|
11
|
+
import('@sinclair/typebox').TString,
|
|
12
|
+
import('@sinclair/typebox').TBoolean,
|
|
13
|
+
import('@sinclair/typebox').TNull,
|
|
14
|
+
import('@sinclair/typebox').TDate,
|
|
15
|
+
import('@sinclair/typebox').TBigInt
|
|
16
|
+
]
|
|
17
|
+
>,
|
|
18
|
+
number
|
|
19
|
+
>;
|
|
20
|
+
interval: import('@sinclair/typebox').TTransform<
|
|
21
|
+
import('@sinclair/typebox').TUnion<
|
|
22
|
+
[
|
|
23
|
+
import('@sinclair/typebox').TNumber,
|
|
24
|
+
import('@sinclair/typebox').TString,
|
|
25
|
+
import('@sinclair/typebox').TBoolean,
|
|
26
|
+
import('@sinclair/typebox').TNull,
|
|
27
|
+
import('@sinclair/typebox').TDate,
|
|
28
|
+
import('@sinclair/typebox').TBigInt
|
|
29
|
+
]
|
|
30
|
+
>,
|
|
31
|
+
number
|
|
32
|
+
>;
|
|
33
|
+
peekCount: import('@sinclair/typebox').TTransform<
|
|
34
|
+
import('@sinclair/typebox').TUnion<
|
|
35
|
+
[
|
|
36
|
+
import('@sinclair/typebox').TNumber,
|
|
37
|
+
import('@sinclair/typebox').TString,
|
|
38
|
+
import('@sinclair/typebox').TBoolean,
|
|
39
|
+
import('@sinclair/typebox').TNull,
|
|
40
|
+
import('@sinclair/typebox').TDate,
|
|
41
|
+
import('@sinclair/typebox').TBigInt
|
|
42
|
+
]
|
|
43
|
+
>,
|
|
44
|
+
number
|
|
45
|
+
>;
|
|
8
46
|
};
|
|
9
|
-
//# sourceMappingURL=kafkaWorker.schema.d.ts.map
|
|
47
|
+
//# sourceMappingURL=kafkaWorker.schema.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { array, number, string } from '@forklaunch/validator/typebox';
|
|
2
2
|
export const KafkaWorkerOptionsSchema = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
brokers: array(string),
|
|
4
|
+
clientId: string,
|
|
5
|
+
groupId: string,
|
|
6
|
+
retries: number,
|
|
7
|
+
interval: number,
|
|
8
|
+
peekCount: number
|
|
9
9
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const KafkaWorkerOptionsSchema: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
brokers: import('zod').ZodArray<import('zod').ZodString, 'many'>;
|
|
3
|
+
clientId: import('zod').ZodString;
|
|
4
|
+
groupId: import('zod').ZodString;
|
|
5
|
+
retries: import('zod').ZodNumber;
|
|
6
|
+
interval: import('zod').ZodNumber;
|
|
7
|
+
peekCount: import('zod').ZodNumber;
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=kafkaWorker.schema.d.ts.map
|
|
9
|
+
//# sourceMappingURL=kafkaWorker.schema.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { array, number, string } from '@forklaunch/validator/zod';
|
|
2
2
|
export const KafkaWorkerOptionsSchema = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
brokers: array(string),
|
|
4
|
+
clientId: string,
|
|
5
|
+
groupId: string,
|
|
6
|
+
retries: number,
|
|
7
|
+
interval: number,
|
|
8
|
+
peekCount: number
|
|
9
9
|
};
|