@almadar/integrations 2.11.0 → 2.12.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.
@@ -82,9 +82,20 @@ interface IntegrationLogger {
82
82
  * Integration action parameters.
83
83
  * Each integration's execute() method receives params as this type.
84
84
  * Individual methods cast to specific param shapes from their contracts.
85
+ *
86
+ * Per-key value union is widened to admit `@almadar/core`'s `FieldValue`
87
+ * shape (entity / payload values flowing into call-service args): `Date`
88
+ * for date fields, `IntegrationParams[]` for nested object arrays, and a
89
+ * raw-value array catch-all so `string[]` / `number[]` / mixed payload
90
+ * arrays satisfy the index signature without requiring `as unknown as`
91
+ * casts at the call site. Adapters narrow these to their canonical input
92
+ * types (typically JSON-string serialisation for `Date`).
85
93
  */
94
+ type IntegrationParamValue = string | number | boolean | Date | null | undefined | ReadonlyArray<IntegrationParamValue> | {
95
+ readonly [key: string]: IntegrationParamValue;
96
+ };
86
97
  interface IntegrationParams {
87
- [key: string]: string | number | boolean | null | undefined | string[] | IntegrationParams;
98
+ [key: string]: IntegrationParamValue;
88
99
  }
89
100
  /**
90
101
  * Validation result
@@ -1,4 +1,4 @@
1
- import { I as IntegrationConfig, B as BaseIntegration, d as IntegrationParams, e as IntegrationResult } from './BaseIntegration-d17YX8KE.js';
1
+ import { I as IntegrationConfig, B as BaseIntegration, d as IntegrationParams, e as IntegrationResult } from './BaseIntegration-B9lSTRQm.js';
2
2
 
3
3
  /**
4
4
  * Factory for creating and managing integration instances
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { d as IntegrationParams, c as IntegrationLogger, b as IntegrationErrorCode, I as IntegrationConfig, B as BaseIntegration, e as IntegrationResult } from './BaseIntegration-d17YX8KE.js';
2
- export { a as IntegrationError, V as ValidationError, f as ValidationResult, v as validateParams } from './BaseIntegration-d17YX8KE.js';
1
+ import { d as IntegrationParams, c as IntegrationLogger, b as IntegrationErrorCode, I as IntegrationConfig, B as BaseIntegration, e as IntegrationResult } from './BaseIntegration-B9lSTRQm.js';
2
+ export { a as IntegrationError, V as ValidationError, f as ValidationResult, v as validateParams } from './BaseIntegration-B9lSTRQm.js';
3
3
  import { ServiceParams, LogMeta } from '@almadar/core';
4
- export { I as IntegrationFactory, g as getIntegrationFactory, r as resetIntegrationFactory } from './factory-BcFFy4JA.js';
4
+ export { I as IntegrationFactory, g as getIntegrationFactory, r as resetIntegrationFactory } from './factory-TNgVDujm.js';
5
5
  export { GitHubIntegration } from './integrations/github/index.js';
6
6
 
7
7
  /**
@@ -429,9 +429,12 @@ type StorageActions = {
429
429
  upload: {
430
430
  params: {
431
431
  bucket: string;
432
- key: string;
433
- content: string;
432
+ key?: string;
433
+ content?: string;
434
434
  contentType?: string;
435
+ file?: IntegrationParams;
436
+ acl?: 'public' | 'private';
437
+ maxSize?: number;
435
438
  metadata?: IntegrationParams;
436
439
  };
437
440
  result: {