@almadar/integrations 2.24.0 → 2.26.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-MA-b4fh8.d.ts → BaseIntegration-C_5q54DM.d.ts} +64 -3
- package/dist/index.d.ts +377 -22
- package/dist/index.js +2091 -164
- package/dist/index.js.map +1 -1
- package/dist/integrations/github/index.d.ts +1 -1
- package/dist/integrations/github/index.js +11 -0
- package/dist/integrations/github/index.js.map +1 -1
- package/dist/mocks/index.d.ts +1 -2
- package/dist/mocks/index.js +51 -16
- package/dist/mocks/index.js.map +1 -1
- package/dist/runtime/index.d.ts +35 -6
- package/dist/runtime/index.js +1877 -135
- package/dist/runtime/index.js.map +1 -1
- package/dist/{contracts-Dv9PM_Cz.d.ts → store-tehIm2rt.d.ts} +541 -6
- package/package.json +12 -7
- package/dist/factory-DTdVeyAi.d.ts +0 -41
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { I as IntegrationConfig, B as BaseIntegration, e as IntegrationParams, f as IntegrationResult } from './BaseIntegration-MA-b4fh8.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Factory for creating and managing integration instances
|
|
5
|
-
*/
|
|
6
|
-
declare class IntegrationFactory {
|
|
7
|
-
private instances;
|
|
8
|
-
private configs;
|
|
9
|
-
/**
|
|
10
|
-
* Configure an integration (doesn't instantiate yet)
|
|
11
|
-
*/
|
|
12
|
-
configure(name: string, config: Omit<IntegrationConfig, 'name'>): void;
|
|
13
|
-
/**
|
|
14
|
-
* Get or create an integration instance
|
|
15
|
-
*/
|
|
16
|
-
get(name: string): BaseIntegration;
|
|
17
|
-
/**
|
|
18
|
-
* Execute an action on an integration
|
|
19
|
-
*/
|
|
20
|
-
execute(integration: string, action: string, params: IntegrationParams): Promise<IntegrationResult>;
|
|
21
|
-
/**
|
|
22
|
-
* Check if integration is configured
|
|
23
|
-
*/
|
|
24
|
-
isConfigured(name: string): boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Register an integration instance directly (used by mock infrastructure)
|
|
27
|
-
*/
|
|
28
|
-
registerInstance(name: string, instance: BaseIntegration): void;
|
|
29
|
-
/**
|
|
30
|
-
* Clear all instances (useful for testing)
|
|
31
|
-
*/
|
|
32
|
-
clear(): void;
|
|
33
|
-
/**
|
|
34
|
-
* Clear all instances and configs
|
|
35
|
-
*/
|
|
36
|
-
reset(): void;
|
|
37
|
-
}
|
|
38
|
-
declare function getIntegrationFactory(): IntegrationFactory;
|
|
39
|
-
declare function resetIntegrationFactory(): void;
|
|
40
|
-
|
|
41
|
-
export { IntegrationFactory as I, getIntegrationFactory as g, resetIntegrationFactory as r };
|