ugcinc 3.5.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.
- package/dist/automations.js +8 -1
- package/dist/types.d.ts +22 -7
- package/package.json +1 -1
package/dist/automations.js
CHANGED
|
@@ -179,7 +179,13 @@ function getAllNodes() {
|
|
|
179
179
|
description: "Import videos from YouTube, TikTok, Instagram & more",
|
|
180
180
|
category: "Sources",
|
|
181
181
|
nodeCategory: "source",
|
|
182
|
-
inputs: [
|
|
182
|
+
inputs: [
|
|
183
|
+
{
|
|
184
|
+
id: "url",
|
|
185
|
+
type: "text",
|
|
186
|
+
required: true,
|
|
187
|
+
},
|
|
188
|
+
],
|
|
183
189
|
outputs: [
|
|
184
190
|
{
|
|
185
191
|
id: "video",
|
|
@@ -497,6 +503,7 @@ function getAllNodes() {
|
|
|
497
503
|
required: true,
|
|
498
504
|
},
|
|
499
505
|
],
|
|
506
|
+
// Base outputs - additional outputs are dynamic based on forEachConfig.outputProperties
|
|
500
507
|
outputs: [
|
|
501
508
|
{
|
|
502
509
|
id: "item",
|
package/dist/types.d.ts
CHANGED
|
@@ -1144,28 +1144,43 @@ 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'
|
|
1170
|
+
export type VideoImportPlatform = 'youtube' | 'tiktok' | 'instagram';
|
|
1151
1171
|
/**
|
|
1152
1172
|
* Video quality options for video import
|
|
1153
1173
|
*/
|
|
1154
1174
|
export type VideoImportQuality = '360' | '480' | '720' | '1080' | '1440' | '2160';
|
|
1155
1175
|
/**
|
|
1156
1176
|
* Video Import node configuration - imports videos from social media platforms
|
|
1177
|
+
* Note: URL is received via input port, not stored in config
|
|
1157
1178
|
*/
|
|
1158
1179
|
export interface VideoImportNodeConfig {
|
|
1159
1180
|
/** Platform to import from */
|
|
1160
1181
|
platform: VideoImportPlatform;
|
|
1161
|
-
/** URL options (like textOptions in text node) */
|
|
1162
|
-
urlOptions: string[];
|
|
1163
1182
|
/** Video quality preference */
|
|
1164
1183
|
videoQuality?: VideoImportQuality;
|
|
1165
|
-
/** Selection mode for multiple URLs */
|
|
1166
|
-
selectionConfig?: {
|
|
1167
|
-
mode: 'random' | 'sequential';
|
|
1168
|
-
};
|
|
1169
1184
|
}
|
|
1170
1185
|
/**
|
|
1171
1186
|
* Video Generation Model IDs
|