message-brokers 1.6.0 → 1.7.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.
@@ -16,6 +16,10 @@ const mqConfigs = [{
16
16
  queueName: "raw-queue-processor",
17
17
  routingKeyList: ["raw_queue"],
18
18
  priorityQueue: false
19
+ }, {
20
+ queueName: "v2.lab-data.queue",
21
+ routingKeyList: ["lab_api_response.amqp"],
22
+ priorityQueue: false
19
23
  }
20
24
  // Example for priority queue.
21
25
  // {
@@ -124,6 +124,16 @@ class MessageBrokers {
124
124
  const response = await AmqpController.publishMessage(hv_exchange, "notification_messages_logs", notification_messages_logs);
125
125
  return response;
126
126
  }
127
+
128
+ /**
129
+ * This function is used publish amqp_lab_api_response into the exchange.
130
+ * @param {Object} amqp_lab_api_response
131
+ * @returns
132
+ */
133
+ async publishAmqpLabApiResponse(amqp_lab_api_response) {
134
+ const response = await AmqpController.publishMessage(hv_exchange, "lab_api_response.amqp", amqp_lab_api_response);
135
+ return response;
136
+ }
127
137
  async publishPendingMessageInCache() {
128
138
  return await AmqpController.publishPendingMessageInCache();
129
139
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "message-brokers",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "This package contains functions to publish the messages into the message brokers like rabbitmq.",
5
5
  "main": "lib/message-brokers.js",
6
6
  "types": "lib/types/message-brokers.d.ts",