import MergeParameters from './merge-parameters' import Client from './client' import { StorageOptions } from './parameters' export default class MergeProcess extends MergeParameters { constructor(public client: Client) { super() } /** * Submit the conversion to the API and return the result. */ getResult() { return this.client.convert(this) } /** * Submit the conversion to the API and return the result as a Blob. */ getBufferResult() { return this.client.convertToBuffer(this) } /** * Submit the conversion to the API and return the conversion result. * The API returns an error if the account associated with the API * key doesn't have access to the CDN. */ getCDNResult() { return this.client.convertUsingCDN(this) } /** * Submit the conversion to the API and return the conversion result. * The generated PDF will be uploaded directly to the user's configured storage disk. */ getStorageResult(options?: StorageOptions) { return this.client.convertUsingStorage(this, options) } }