@almadar/integrations 2.21.0 → 2.23.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.
- package/dist/{contracts-CYtxZXrR.d.ts → contracts-CLTh6gjT.d.ts} +9 -0
- package/dist/index.d.ts +13 -2
- package/dist/index.js +31 -1
- package/dist/index.js.map +1 -1
- package/dist/runtime/index.d.ts +12 -1
- package/dist/runtime/index.js +3473 -183
- package/dist/runtime/index.js.map +1 -1
- package/package.json +5 -5
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as IntegrationFactory } from '../factory-DTdVeyAi.js';
|
|
2
2
|
import { e as IntegrationParams } from '../BaseIntegration-MA-b4fh8.js';
|
|
3
|
-
import { j as IntegrationName, h as IntegrationActionName, i as IntegrationContracts } from '../contracts-
|
|
3
|
+
import { j as IntegrationName, h as IntegrationActionName, i as IntegrationContracts } from '../contracts-CLTh6gjT.js';
|
|
4
4
|
import '@almadar/core';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -49,6 +49,17 @@ declare function createCallServiceHandler(factory: IntegrationFactory): CallServ
|
|
|
49
49
|
declare class RuntimeIntegrationManager {
|
|
50
50
|
private factory;
|
|
51
51
|
constructor();
|
|
52
|
+
/**
|
|
53
|
+
* Wrap `factory.execute` so an unknown/unconfigured service echoes its
|
|
54
|
+
* params instead of throwing. This makes the manager safe to install as a
|
|
55
|
+
* default `callService` handler (e.g. the playground sidecar) without every
|
|
56
|
+
* service being configured. REAL execution errors (API failures, bad
|
|
57
|
+
* params, schema violations) still propagate so the circuit's failure
|
|
58
|
+
* events fire — only the two "not set up" errors (`Unknown integration`,
|
|
59
|
+
* `Integration not configured`) are caught. Subsumes the broader wrapper
|
|
60
|
+
* that previously lived inside `configureMockMode`.
|
|
61
|
+
*/
|
|
62
|
+
private installNotConfiguredFallback;
|
|
52
63
|
/**
|
|
53
64
|
* Configure from environment variables.
|
|
54
65
|
* In mock mode (USE_MOCK_DATA=true), all services return realistic mock data.
|