ugcinc 3.6.0 → 3.7.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.
@@ -503,6 +503,7 @@ function getAllNodes() {
503
503
  required: true,
504
504
  },
505
505
  ],
506
+ // Base outputs - additional outputs are dynamic based on forEachConfig.outputProperties
506
507
  outputs: [
507
508
  {
508
509
  id: "item",
package/dist/types.d.ts CHANGED
@@ -1144,10 +1144,30 @@ export interface DeduplicateNodeConfig {
1144
1144
  /** Deduplication settings - preset level or custom config */
1145
1145
  deduplication: DeduplicationInput;
1146
1146
  }
1147
+ /**
1148
+ * For-each output property configuration
1149
+ * Maps a property path from the item object to an output port
1150
+ */
1151
+ export interface ForEachOutputProperty {
1152
+ /** The output port ID (lowercase, hyphens/underscores only) */
1153
+ portId: string;
1154
+ /** The property path to extract from each item (e.g., "startMs", "data.value") */
1155
+ propertyPath: string;
1156
+ /** The output type for the port */
1157
+ type: 'text' | 'object';
1158
+ }
1159
+ /**
1160
+ * For-each node configuration
1161
+ */
1162
+ export interface ForEachNodeConfig {
1163
+ /** Properties to extract from each item and expose as separate outputs */
1164
+ outputProperties?: ForEachOutputProperty[];
1165
+ }
1147
1166
  /**
1148
1167
  * Supported platforms for video import
1168
+ * Note: YouTube is not yet implemented
1149
1169
  */
1150
- export type VideoImportPlatform = 'youtube' | 'tiktok' | 'instagram' | 'twitter' | 'reddit';
1170
+ export type VideoImportPlatform = 'youtube' | 'tiktok' | 'instagram';
1151
1171
  /**
1152
1172
  * Video quality options for video import
1153
1173
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",