ugcinc 3.80.0 → 3.81.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 +2 -2
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/automations.js
CHANGED
|
@@ -631,11 +631,11 @@ function getAllNodes() {
|
|
|
631
631
|
description: "Extract specific elements from an array by index or range",
|
|
632
632
|
category: "Control Flow",
|
|
633
633
|
nodeCategory: "generator",
|
|
634
|
-
// Input is any array type
|
|
634
|
+
// Input is any array type, or object (with arrayPath to specify where the array is)
|
|
635
635
|
inputs: [
|
|
636
636
|
{
|
|
637
637
|
id: "array",
|
|
638
|
-
type: ["image[]", "video[]", "audio[]", "text[]", "object[]"],
|
|
638
|
+
type: ["image[]", "video[]", "audio[]", "text[]", "object[]", "object"],
|
|
639
639
|
required: true,
|
|
640
640
|
},
|
|
641
641
|
],
|
package/dist/types.d.ts
CHANGED
|
@@ -1603,6 +1603,8 @@ export interface DestructureSelection {
|
|
|
1603
1603
|
* Destructure node configuration - extracts specific elements from an array
|
|
1604
1604
|
*/
|
|
1605
1605
|
export interface DestructureNodeConfig {
|
|
1606
|
+
/** Optional path to reach the array within an object input (e.g., "messages", "data.items") */
|
|
1607
|
+
arrayPath?: string;
|
|
1606
1608
|
/** List of selections - each becomes an output port */
|
|
1607
1609
|
selections: DestructureSelection[];
|
|
1608
1610
|
}
|