( taskData: TaskData, parameterOptions: Map<string, CloudConvertOperationOption> )
| 474 | } |
| 475 | |
| 476 | function resolveSecondaryInputFiles( |
| 477 | taskData: TaskData, |
| 478 | parameterOptions: Map<string, CloudConvertOperationOption> |
| 479 | ): SecondaryInputFiles { |
| 480 | const secondaryInputFiles: SecondaryInputFiles = {}; |
| 481 | |
| 482 | for (const [parameterName, option] of parameterOptions) { |
| 483 | if (option.type.toLowerCase() !== 'input') { |
| 484 | continue; |
| 485 | } |
| 486 | |
| 487 | const value = taskData[parameterName]; |
| 488 | |
| 489 | if (value === undefined) { |
| 490 | continue; |
| 491 | } |
| 492 | |
| 493 | secondaryInputFiles[parameterName] = normalizeInputParameterFiles(parameterName, value); |
| 494 | } |
| 495 | |
| 496 | return secondaryInputFiles; |
| 497 | } |
| 498 | |
| 499 | async function fetchParameterOptions( |
| 500 | cloudconvert: CloudConvertClient, |
no test coverage detected