@almadar/integrations 2.0.2 → 2.0.4
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/{factory-Bi5eLpB0.d.ts → BaseIntegration-DNSuiUnG.d.ts} +1 -35
- package/dist/factory-B1QtCI_c.d.ts +37 -0
- package/dist/index.d.ts +833 -59
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/integrations/github/index.d.ts +326 -0
- package/dist/integrations/github/index.js +757 -0
- package/dist/integrations/github/index.js.map +1 -0
- package/dist/mocks/index.d.ts +2 -1
- package/dist/mocks/index.js +26 -6
- package/dist/mocks/index.js.map +1 -1
- package/dist/runtime/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -124,38 +124,4 @@ declare abstract class BaseIntegration {
|
|
|
124
124
|
protected executeWithRetry<T>(fn: () => Promise<T>): Promise<T>;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
|
|
128
|
-
* Factory for creating and managing integration instances
|
|
129
|
-
*/
|
|
130
|
-
declare class IntegrationFactory {
|
|
131
|
-
private instances;
|
|
132
|
-
private configs;
|
|
133
|
-
/**
|
|
134
|
-
* Configure an integration (doesn't instantiate yet)
|
|
135
|
-
*/
|
|
136
|
-
configure(name: string, config: Omit<IntegrationConfig, 'name'>): void;
|
|
137
|
-
/**
|
|
138
|
-
* Get or create an integration instance
|
|
139
|
-
*/
|
|
140
|
-
get(name: string): BaseIntegration;
|
|
141
|
-
/**
|
|
142
|
-
* Execute an action on an integration
|
|
143
|
-
*/
|
|
144
|
-
execute(integration: string, action: string, params: Record<string, unknown>): Promise<IntegrationResult>;
|
|
145
|
-
/**
|
|
146
|
-
* Check if integration is configured
|
|
147
|
-
*/
|
|
148
|
-
isConfigured(name: string): boolean;
|
|
149
|
-
/**
|
|
150
|
-
* Clear all instances (useful for testing)
|
|
151
|
-
*/
|
|
152
|
-
clear(): void;
|
|
153
|
-
/**
|
|
154
|
-
* Clear all instances and configs
|
|
155
|
-
*/
|
|
156
|
-
reset(): void;
|
|
157
|
-
}
|
|
158
|
-
declare function getIntegrationFactory(): IntegrationFactory;
|
|
159
|
-
declare function resetIntegrationFactory(): void;
|
|
160
|
-
|
|
161
|
-
export { BaseIntegration as B, type IntegrationLogger as I, type ValidationError as V, type IntegrationErrorCode as a, type IntegrationConfig as b, type IntegrationResult as c, IntegrationError as d, IntegrationFactory as e, type ValidationResult as f, getIntegrationFactory as g, resetIntegrationFactory as r, validateParams as v };
|
|
127
|
+
export { BaseIntegration as B, type IntegrationLogger as I, type ValidationError as V, type IntegrationErrorCode as a, type IntegrationConfig as b, type IntegrationResult as c, IntegrationError as d, type ValidationResult as e, validateParams as v };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { b as IntegrationConfig, B as BaseIntegration, c as IntegrationResult } from './BaseIntegration-DNSuiUnG.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: Record<string, unknown>): Promise<IntegrationResult>;
|
|
21
|
+
/**
|
|
22
|
+
* Check if integration is configured
|
|
23
|
+
*/
|
|
24
|
+
isConfigured(name: string): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Clear all instances (useful for testing)
|
|
27
|
+
*/
|
|
28
|
+
clear(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Clear all instances and configs
|
|
31
|
+
*/
|
|
32
|
+
reset(): void;
|
|
33
|
+
}
|
|
34
|
+
declare function getIntegrationFactory(): IntegrationFactory;
|
|
35
|
+
declare function resetIntegrationFactory(): void;
|
|
36
|
+
|
|
37
|
+
export { IntegrationFactory as I, getIntegrationFactory as g, resetIntegrationFactory as r };
|