ugcinc 3.81.0 → 3.82.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.
@@ -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, or object (with arrayPath to specify where the array is)
634
+ // Input is any array type
635
635
  inputs: [
636
636
  {
637
637
  id: "array",
638
- type: ["image[]", "video[]", "audio[]", "text[]", "object[]", "object"],
638
+ type: ["image[]", "video[]", "audio[]", "text[]", "object[]"],
639
639
  required: true,
640
640
  },
641
641
  ],
package/dist/types.d.ts CHANGED
@@ -1596,6 +1596,8 @@ export interface DestructureSelection {
1596
1596
  portId: string;
1597
1597
  /** Index expression: single index "0", comma-separated "0, 2, 4", ranges "0-3", or mixed "0, 2-4, 7" */
1598
1598
  indexExpr: string;
1599
+ /** Optional property path to extract from selected items (e.g., "messages", "data.items") */
1600
+ propertyPath?: string;
1599
1601
  /** If true, read indexExpr from input port (idx-{portId}) instead of using static value */
1600
1602
  isVariable?: boolean;
1601
1603
  }
@@ -1603,8 +1605,6 @@ export interface DestructureSelection {
1603
1605
  * Destructure node configuration - extracts specific elements from an array
1604
1606
  */
1605
1607
  export interface DestructureNodeConfig {
1606
- /** Optional path to reach the array within an object input (e.g., "messages", "data.items") */
1607
- arrayPath?: string;
1608
1608
  /** List of selections - each becomes an output port */
1609
1609
  selections: DestructureSelection[];
1610
1610
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "3.81.0",
3
+ "version": "3.82.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",