()
| 545 | } |
| 546 | |
| 547 | function createFinishedJob(): Job { |
| 548 | return { |
| 549 | id: 'job-id', |
| 550 | tasks: [ |
| 551 | { |
| 552 | name: 'export', |
| 553 | operation: 'export/url', |
| 554 | result: { |
| 555 | files: [ |
| 556 | { |
| 557 | filename: 'output.pdf', |
| 558 | url: 'https://example.com/output.pdf' |
| 559 | } |
| 560 | ] |
| 561 | } |
| 562 | }, |
| 563 | { |
| 564 | name: 'process', |
| 565 | operation: 'optimize', |
| 566 | message: 'File size reduced by 12%' |
| 567 | } |
| 568 | ] |
| 569 | }; |
| 570 | } |
| 571 | |
| 572 | function createArgv(client: CloudConvertClient, files: string[]): CliArguments { |
| 573 | return { |