ugcinc 4.1.24 → 4.1.25

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.
@@ -15,14 +15,20 @@ const definition = (0, types_1.defineNode)({
15
15
  outputMode: null,
16
16
  selectionMode: null,
17
17
  },
18
- computePorts: ({ config }) => {
18
+ computePorts: ({ config, getConnectedOutput }) => {
19
19
  const configInputs = config?.inputs ?? [];
20
- const inputs = configInputs.map(input => ({
21
- id: input.id,
22
- type: input.type,
23
- isArray: input.isArray ?? false,
24
- required: false,
25
- }));
20
+ const inputs = configInputs.map(input => {
21
+ // Get objectSchema from connected output if available
22
+ const connectedOutput = getConnectedOutput?.(input.id);
23
+ const objectSchema = connectedOutput?.objectSchema ?? input.objectSchema;
24
+ return {
25
+ id: input.id,
26
+ type: input.type,
27
+ isArray: input.isArray ?? false,
28
+ required: false,
29
+ objectSchema,
30
+ };
31
+ });
26
32
  return {
27
33
  inputs,
28
34
  outputs: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "4.1.24",
3
+ "version": "4.1.25",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",