@almadar/integrations 2.0.1 → 2.0.2

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.
@@ -155,5 +155,7 @@ declare class IntegrationFactory {
155
155
  */
156
156
  reset(): void;
157
157
  }
158
+ declare function getIntegrationFactory(): IntegrationFactory;
159
+ declare function resetIntegrationFactory(): void;
158
160
 
159
- 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, validateParams as v };
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 };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as IntegrationLogger, a as IntegrationErrorCode, b as IntegrationConfig, B as BaseIntegration, c as IntegrationResult } from './factory-rMujCO3M.js';
2
- export { d as IntegrationError, e as IntegrationFactory, V as ValidationError, f as ValidationResult, v as validateParams } from './factory-rMujCO3M.js';
1
+ import { I as IntegrationLogger, a as IntegrationErrorCode, b as IntegrationConfig, B as BaseIntegration, c as IntegrationResult } from './factory-Bi5eLpB0.js';
2
+ export { d as IntegrationError, e as IntegrationFactory, V as ValidationError, f as ValidationResult, g as getIntegrationFactory, r as resetIntegrationFactory, v as validateParams } from './factory-Bi5eLpB0.js';
3
3
 
4
4
  /**
5
5
  * Console-based logger implementation
package/dist/index.js CHANGED
@@ -271,6 +271,17 @@ var IntegrationFactory = class {
271
271
  this.configs.clear();
272
272
  }
273
273
  };
274
+ var _factory = null;
275
+ function getIntegrationFactory() {
276
+ if (!_factory) {
277
+ _factory = new IntegrationFactory();
278
+ }
279
+ return _factory;
280
+ }
281
+ function resetIntegrationFactory() {
282
+ _factory?.reset();
283
+ _factory = null;
284
+ }
274
285
  var StripeIntegration = class extends BaseIntegration {
275
286
  constructor(config) {
276
287
  super(config);
@@ -2683,6 +2694,6 @@ var DockerIntegration = class extends BaseIntegration {
2683
2694
  };
2684
2695
  registerIntegration("docker", DockerIntegration);
2685
2696
 
2686
- export { BaseIntegration, CLIIntegration, ConsoleLogger, DeepAgentIntegration, DockerIntegration, EmailIntegration, GitHubIntegration, IntegrationFactory, LLMIntegration, OAuthIntegration, OtelIntegration, QueueIntegration, RedisIntegration, StorageIntegration, StripeIntegration, TwilioIntegration, YouTubeIntegration, getIntegration, getRegisteredIntegrations, isKnownIntegration, registerIntegration, validateParams, withRetry };
2697
+ export { BaseIntegration, CLIIntegration, ConsoleLogger, DeepAgentIntegration, DockerIntegration, EmailIntegration, GitHubIntegration, IntegrationFactory, LLMIntegration, OAuthIntegration, OtelIntegration, QueueIntegration, RedisIntegration, StorageIntegration, StripeIntegration, TwilioIntegration, YouTubeIntegration, getIntegration, getIntegrationFactory, getRegisteredIntegrations, isKnownIntegration, registerIntegration, resetIntegrationFactory, validateParams, withRetry };
2687
2698
  //# sourceMappingURL=index.js.map
2688
2699
  //# sourceMappingURL=index.js.map