2024-08-07 02:18:05 -07:00
|
|
|
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
|
2024-08-29 06:55:53 -07:00
|
|
|
import { NodeConnectionType, type INodeTypeDescription } from 'n8n-workflow';
|
2024-08-07 02:18:05 -07:00
|
|
|
|
|
|
|
import * as item from './Item/Item.resource';
|
|
|
|
|
|
|
|
export const versionDescription: INodeTypeDescription = {
|
|
|
|
displayName: 'Webflow',
|
|
|
|
name: 'webflow',
|
|
|
|
icon: 'file:webflow.svg',
|
|
|
|
group: ['transform'],
|
|
|
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
|
|
description: 'Consume the Webflow API',
|
|
|
|
version: [2],
|
|
|
|
defaults: {
|
|
|
|
name: 'Webflow',
|
|
|
|
},
|
2024-08-29 06:55:53 -07:00
|
|
|
inputs: [NodeConnectionType.Main],
|
|
|
|
outputs: [NodeConnectionType.Main],
|
2024-08-07 02:18:05 -07:00
|
|
|
credentials: [
|
|
|
|
{
|
|
|
|
name: 'webflowOAuth2Api',
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
properties: [
|
|
|
|
{
|
|
|
|
displayName: 'Resource',
|
|
|
|
name: 'resource',
|
|
|
|
type: 'options',
|
|
|
|
noDataExpression: true,
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Item',
|
|
|
|
value: 'item',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'item',
|
|
|
|
},
|
|
|
|
...item.description,
|
|
|
|
],
|
|
|
|
};
|