message-brokers 1.10.0-beta.0 → 1.10.0-beta.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/configs/mb.configs.js +3 -2
- package/lib/types +14 -0
- package/package.json +1 -1
|
@@ -5,7 +5,8 @@ const mbConfigs = {
|
|
|
5
5
|
cachingEnabled: process.env.CACHING_ENABLED || false,
|
|
6
6
|
// Queues that are used in env where multiple instances of same stack share the same rabbitmq.
|
|
7
7
|
// To avoid messages between different instances, we are isolating the queues.
|
|
8
|
-
rabbitmqIsolatedQueues: ["messaging.har.lab-api.queue", "billing.events"],
|
|
9
|
-
|
|
8
|
+
rabbitmqIsolatedQueues: ["messaging.har.lab-api.queue", "billing.events", "llm-reminder.past-data.queue", "messaging.past-data.reminder-message.queue"],
|
|
9
|
+
// Matched by prefix: "past_data." covers past_data.reminder_request and past_data.reminder_message.
|
|
10
|
+
rabbitmqIsolatedRoutingKeys: ["har.lab_api_response", "billing", "past_data."]
|
|
10
11
|
};
|
|
11
12
|
module.exports = mbConfigs;
|
package/lib/types
CHANGED
|
@@ -109,6 +109,20 @@ declare module "message-brokers" {
|
|
|
109
109
|
*/
|
|
110
110
|
publishAmqpMergedLabApiResponse(merged_lab_api_response: object): Promise<PublishResponse>;
|
|
111
111
|
|
|
112
|
+
/**
|
|
113
|
+
* Publishes a past data reminder request into the exchange (routing key past_data.reminder_request).
|
|
114
|
+
* @param reminder_request - The reminder request object to be published.
|
|
115
|
+
* @returns A promise that resolves to a response object.
|
|
116
|
+
*/
|
|
117
|
+
publishPastDataReminderRequest(reminder_request: object): Promise<PublishResponse>;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Publishes a prepared past data reminder message into the exchange (routing key past_data.reminder_message).
|
|
121
|
+
* @param reminder_message - The reminder message object to be published.
|
|
122
|
+
* @returns A promise that resolves to a response object.
|
|
123
|
+
*/
|
|
124
|
+
publishPastDataReminderMessage(reminder_message: object): Promise<PublishResponse>;
|
|
125
|
+
|
|
112
126
|
/**
|
|
113
127
|
* Publishes all pending messages stored in the cache.
|
|
114
128
|
* @returns A promise that resolves to a response object indicating the result of the operation.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "message-brokers",
|
|
3
|
-
"version": "1.10.0-beta.
|
|
3
|
+
"version": "1.10.0-beta.2",
|
|
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",
|