Small improvements to Bannerbear-Node

This commit is contained in:
Jan Oberhauser
2020-05-07 00:44:39 +02:00
parent adae987d46
commit 12b93a5b52
2 changed files with 33 additions and 15 deletions

View File

@@ -81,6 +81,33 @@ export const imageFields = [
default: '',
description: 'Metadata that you need to store e.g. ID of a record in your DB',
},
{
displayName: 'Wait for Image',
name: 'waitForImage',
type: 'boolean',
default: false,
description: `Wait for the image to be proccesed before returning.<br />
If after three tries the images is not ready, an error will be thrown.<br />
Number of tries can be increased by setting "Wait Max Tries".`,
},
{
displayName: 'Wait Max Tries',
name: 'waitForImageMaxTries',
type: 'number',
typeOptions: {
minValue: 1,
maxValue: 10,
},
displayOptions: {
show: {
waitForImage: [
true,
],
},
},
default: 3,
description: `How often it should check if the image is available before it fails.`,
},
{
displayName: 'Webhook URL',
name: 'webhookUrl',
@@ -88,14 +115,6 @@ export const imageFields = [
default: '',
description: 'A url to POST the Image object to upon rendering completed',
},
{
displayName: 'Wait for Image',
name: 'waitForImage',
type: 'boolean',
default: false,
description: `Wait for the image to be proccesed before returning.</br>
If after two tries the images is not ready an error will be thrown`,
},
],
},
{