@onlineapps/infrastructure-tools 1.0.6 → 1.0.8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onlineapps/infrastructure-tools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Infrastructure orchestration utilities for OA Drive infrastructure services (health tracking, queue initialization, service discovery)",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"author": "OnlineApps",
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@onlineapps/mq-client-core": "^1.0.
|
|
21
|
+
"@onlineapps/mq-client-core": "^1.0.29",
|
|
22
22
|
"@onlineapps/service-common": "^1.0.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
package/src/index.js
CHANGED
|
@@ -11,7 +11,11 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
// Re-export infrastructure readiness utilities from service-common (no duplication)
|
|
14
|
-
const { waitForInfrastructureReady, waitForHealthCheckQueueReady } = require('@onlineapps/service-common');
|
|
14
|
+
const { waitForInfrastructureReady, waitForHealthCheckQueueReady, sendMonitoringFailFallbackEmail } = require('@onlineapps/service-common');
|
|
15
|
+
|
|
16
|
+
// Re-export MQ client core utilities
|
|
17
|
+
const BaseClient = require('@onlineapps/mq-client-core');
|
|
18
|
+
const queueConfig = require('@onlineapps/mq-client-core/src/config/queueConfig');
|
|
15
19
|
|
|
16
20
|
const { initInfrastructureQueues } = require('./orchestration/initInfrastructureQueues');
|
|
17
21
|
const {
|
|
@@ -23,10 +27,17 @@ const { createLogger } = require('./utils/logger');
|
|
|
23
27
|
const { sendQueueMismatchAlert } = require('./monitoring/queueMismatchReporter');
|
|
24
28
|
|
|
25
29
|
module.exports = {
|
|
26
|
-
//
|
|
27
|
-
|
|
30
|
+
// MQ Client Core (re-exported for convenience)
|
|
31
|
+
BaseClient,
|
|
32
|
+
MQClient: BaseClient, // Alias for compatibility
|
|
33
|
+
queueConfig,
|
|
34
|
+
|
|
35
|
+
// Service Common utilities (re-exported for convenience)
|
|
28
36
|
waitForInfrastructureReady,
|
|
29
37
|
waitForHealthCheckQueueReady,
|
|
38
|
+
sendMonitoringFailFallbackEmail,
|
|
39
|
+
|
|
40
|
+
// Orchestration utilities
|
|
30
41
|
initInfrastructureQueues,
|
|
31
42
|
|
|
32
43
|
// Health tracking utilities
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
// Import directly from service-common (internal implementation)
|
|
4
|
+
// Infrastructure services use sendQueueMismatchAlert from infrastructure-tools (re-exported)
|
|
3
5
|
const { sendMonitoringFailFallbackEmail } = require('@onlineapps/service-common');
|
|
4
6
|
|
|
5
7
|
const DEFAULT_COOLDOWN_MS = 5 * 60 * 1000; // 5 minutes
|