👕 Fix lint issue
This commit is contained in:
@@ -52,7 +52,7 @@ export const fields = [
|
||||
},
|
||||
},
|
||||
default: 'master',
|
||||
description: 'The id for the Contentful environment (e.g. master, staging, etc.). Depending on your plan, you might not have environments. In that case use "master".'
|
||||
description: 'The id for the Contentful environment (e.g. master, staging, etc.). Depending on your plan, you might not have environments. In that case use "master".',
|
||||
},
|
||||
{
|
||||
displayName: 'Return All',
|
||||
@@ -104,7 +104,7 @@ export const fields = [
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
resource.value
|
||||
resource.value,
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
|
||||
@@ -47,7 +47,7 @@ export const fields = [
|
||||
},
|
||||
},
|
||||
default: 'master',
|
||||
description: 'The id for the Contentful environment (e.g. master, staging, etc.). Depending on your plan, you might not have environments. In that case use "master".'
|
||||
description: 'The id for the Contentful environment (e.g. master, staging, etc.). Depending on your plan, you might not have environments. In that case use "master".',
|
||||
},
|
||||
{
|
||||
displayName: 'Content Type ID',
|
||||
|
||||
@@ -31,14 +31,14 @@ export class Contentful implements INodeType {
|
||||
description: 'Consume Contenful API',
|
||||
defaults: {
|
||||
name: 'Contentful',
|
||||
color: '#2E75D4'
|
||||
color: '#2E75D4',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
credentials: [
|
||||
{
|
||||
name: 'contentfulApi',
|
||||
required: true
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
properties: [
|
||||
@@ -51,11 +51,11 @@ export class Contentful implements INodeType {
|
||||
options: [
|
||||
{
|
||||
name: 'Delivery API',
|
||||
value: 'deliveryApi'
|
||||
value: 'deliveryApi',
|
||||
},
|
||||
{
|
||||
name: 'Preview API',
|
||||
value: 'previewApi'
|
||||
value: 'previewApi',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -72,7 +72,7 @@ export class Contentful implements INodeType {
|
||||
SpaceDescription.resource,
|
||||
],
|
||||
default: 'entry',
|
||||
description: 'The resource to operate on.'
|
||||
description: 'The resource to operate on.',
|
||||
},
|
||||
|
||||
// Operations:
|
||||
|
||||
@@ -31,8 +31,8 @@ export const operations = [
|
||||
},
|
||||
],
|
||||
default: 'get',
|
||||
description: 'The operation to perform.'
|
||||
}
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
|
||||
export const fields = [
|
||||
|
||||
@@ -27,7 +27,7 @@ export async function contentfulApiRequest(this: IExecuteFunctions | IExecuteSin
|
||||
qs,
|
||||
body,
|
||||
uri: uri ||`https://${isPreview ? 'preview' : 'cdn'}.contentful.com${resource}`,
|
||||
json: true
|
||||
json: true,
|
||||
};
|
||||
|
||||
if (isPreview) {
|
||||
|
||||
@@ -48,7 +48,7 @@ export const fields = [
|
||||
},
|
||||
},
|
||||
default: 'master',
|
||||
description: 'The id for the Contentful environment (e.g. master, staging, etc.). Depending on your plan, you might not have environments. In that case use "master".'
|
||||
description: 'The id for the Contentful environment (e.g. master, staging, etc.). Depending on your plan, you might not have environments. In that case use "master".',
|
||||
},
|
||||
{
|
||||
displayName: 'Return All',
|
||||
|
||||
@@ -21,17 +21,17 @@ export const fields = [
|
||||
name: 'name',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Name of the search parameter to set.'
|
||||
description: 'Name of the search parameter to set.',
|
||||
},
|
||||
{
|
||||
displayName: 'Parameter Value',
|
||||
name: 'value',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Value of the search parameter to set.'
|
||||
description: 'Value of the search parameter to set.',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
] as INodeProperties[];
|
||||
|
||||
Reference in New Issue
Block a user