/** * APITemplate.io Node - Version 1 * Discriminator: resource=pdf, operation=create */ interface Credentials { apiTemplateIoApi: CredentialReference; } export type ApiTemplateIoV1PdfCreateParams = { resource: 'pdf'; operation: 'create'; /** * ID of the PDF template to use. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ pdfTemplateId?: string | Expression; /** * JSON Parameters * @default false */ jsonParameters?: boolean | Expression; /** * Name of the binary property to which to write the data of the read file * @default false */ download?: boolean | Expression; /** * Put Output File in Field * @hint The name of the output binary field to put the file in * @displayOptions.show { download: [true] } * @default data */ binaryProperty?: string | Expression | PlaceholderValue; /** * Properties (JSON) * @displayOptions.show { jsonParameters: [true] } */ propertiesJson?: IDataObject | string | Expression; /** * Properties * @displayOptions.show { jsonParameters: [false] } * @default {} */ propertiesUi?: { /** Property */ propertyValues?: Array<{ /** Name of the property */ key?: string | Expression | PlaceholderValue; /** Value to the property */ value?: string | Expression | PlaceholderValue; }>; }; /** * Options * @displayOptions.show { download: [true] } * @default {} */ options?: { /** The name of the downloaded image/pdf. It has to include the extension. For example: report.pdf */ fileName?: string | Expression | PlaceholderValue; }; }; export type ApiTemplateIoV1PdfCreateOutput = { download_url?: string; status?: string; template_id?: string; transaction_ref?: string; }; export type ApiTemplateIoV1PdfCreateNode = { type: 'n8n-nodes-base.apiTemplateIo'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };