@almadar/integrations 2.36.0 → 2.38.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/{BaseIntegration-BYlbMFlf.d.ts → BaseIntegration-CWdas-N_.d.ts} +7 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +61 -369
- package/dist/index.js.map +1 -1
- package/dist/integrations/github/index.d.ts +1 -1
- package/dist/integrations/github/index.js +31 -37
- package/dist/integrations/github/index.js.map +1 -1
- package/dist/mocks/index.d.ts +1 -1
- package/dist/mocks/index.js +162 -27
- package/dist/mocks/index.js.map +1 -1
- package/dist/runtime/index.d.ts +8 -16
- package/dist/runtime/index.js +86 -402
- package/dist/runtime/index.js.map +1 -1
- package/dist/{store-OiFX0Tkn.d.ts → store-RNvxZO-q.d.ts} +1 -1
- package/package.json +5 -5
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as IntegrationParams, I as IntegrationCallContext, d as IntegrationFactory } from '../BaseIntegration-
|
|
2
|
-
import { o as IntegrationName, m as IntegrationActionName, n as IntegrationContracts, e as CredentialStore } from '../store-
|
|
1
|
+
import { g as IntegrationParams, I as IntegrationCallContext, d as IntegrationFactory } from '../BaseIntegration-CWdas-N_.js';
|
|
2
|
+
import { o as IntegrationName, m as IntegrationActionName, n as IntegrationContracts, e as CredentialStore } from '../store-RNvxZO-q.js';
|
|
3
3
|
import '@almadar/core';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -72,20 +72,6 @@ declare class RuntimeIntegrationManager {
|
|
|
72
72
|
* the merged env.
|
|
73
73
|
*/
|
|
74
74
|
private refreshFromStore;
|
|
75
|
-
/**
|
|
76
|
-
* Wrap `factory.execute` so an unknown/unconfigured service echoes its
|
|
77
|
-
* params instead of throwing. This makes the manager safe to install as a
|
|
78
|
-
* default `callService` handler (e.g. the playground sidecar) without every
|
|
79
|
-
* service being configured. REAL execution errors (API failures, bad
|
|
80
|
-
* params, schema violations) still propagate so the circuit's failure
|
|
81
|
-
* events fire — only the two "not set up" errors (`Unknown integration`,
|
|
82
|
-
* `Integration not configured`) are caught. Subsumes the broader wrapper
|
|
83
|
-
* that previously lived inside `configureMockMode`.
|
|
84
|
-
*
|
|
85
|
-
* In production the fallback is OFF: a missing key must surface as the
|
|
86
|
-
* circuit's failure event and a degraded health check, never a fake success.
|
|
87
|
-
*/
|
|
88
|
-
private installNotConfiguredFallback;
|
|
89
75
|
/**
|
|
90
76
|
* Configure from environment variables.
|
|
91
77
|
* In mock mode (USE_MOCK_DATA=true), all services return realistic mock data.
|
|
@@ -94,6 +80,12 @@ declare class RuntimeIntegrationManager {
|
|
|
94
80
|
* per-tenant resolution); defaults to `process.env`.
|
|
95
81
|
*/
|
|
96
82
|
configureFromEnv(envOverride?: Record<string, string | undefined>): void;
|
|
83
|
+
/**
|
|
84
|
+
* Every registered service the blocks above did not configure, configured
|
|
85
|
+
* from its declared credentials (`serviceCredentials`) once all its required
|
|
86
|
+
* ones are present: keyless services always, keyed ones only with their keys.
|
|
87
|
+
*/
|
|
88
|
+
private configureFromDeclaredCredentials;
|
|
97
89
|
/**
|
|
98
90
|
* Configure mock mode: register MockIntegration for all known services
|
|
99
91
|
* with auto-generated responses from the services registry.
|