@opra/kafka 1.27.1 → 1.27.4

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.
@@ -1,6 +1,7 @@
1
1
  import '@opra/core';
2
- import { classes } from '@opra/common';
2
+ import { classes, MQOperation } from '@opra/common';
3
3
  import { KAFKA_OPERATION_METADATA, KAFKA_OPERATION_METADATA_RESOLVER, } from '../constants.js';
4
+ import { KafkaAdapter } from '../kafka-adapter.js';
4
5
  /* Implementation **/
5
6
  classes.MQOperationDecoratorFactory.augment((decorator, decoratorChain) => {
6
7
  decorator.Kafka = (config) => {
@@ -1,6 +1,6 @@
1
1
  import { ApiDocument, MQApi, MQController, MQOperation, OpraException, OpraSchema } from '@opra/common';
2
2
  import { type ILogger, PlatformAdapter } from '@opra/core';
3
- import { type Consumer, type ConsumerConfig, type EachMessageHandler, EachMessagePayload, Kafka, type KafkaConfig } from 'kafkajs';
3
+ import { type Consumer, type ConsumerConfig, type EachMessageHandler, type EachMessagePayload, Kafka, type KafkaConfig } from 'kafkajs';
4
4
  import type { StrictOmit } from 'ts-gems';
5
5
  import { KafkaContext } from './kafka-context.js';
6
6
  export interface OperationConfig {
package/kafka-adapter.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MQ_CONTROLLER_METADATA, MQApi, OpraException, } from '@opra/common';
1
+ import { ApiDocument, MQ_CONTROLLER_METADATA, MQApi, MQController, MQOperation, OpraException, OpraSchema, } from '@opra/common';
2
2
  import { kAssetCache, PlatformAdapter } from '@opra/core';
3
3
  import { Kafka, logLevel, } from 'kafkajs';
4
4
  import { vg } from 'valgen';
package/kafka-context.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { MQController, MQOperation } from '@opra/common';
1
2
  import { ExecutionContext } from '@opra/core';
2
3
  /**
3
4
  * KafkaContext class provides the context for handling Kafka messages.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/kafka",
3
- "version": "1.27.1",
3
+ "version": "1.27.4",
4
4
  "description": "Opra Kafka adapter",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -10,8 +10,8 @@
10
10
  "valgen": "^6.0.3"
11
11
  },
12
12
  "peerDependencies": {
13
- "@opra/common": "^1.27.1",
14
- "@opra/core": "^1.27.1",
13
+ "@opra/common": "^1.27.4",
14
+ "@opra/core": "^1.27.4",
15
15
  "kafkajs": ">=2.2.4 <3"
16
16
  },
17
17
  "exports": {