import { type INodeType, type INodeTypeDescription } from 'n8n-workflow'; import { distributionDescription } from './resources/distribution'; export class GwezzChangdunovel implements INodeType { description: INodeTypeDescription = { displayName: 'Gwezz 常读分销', name: 'gwezzChangdunovel', icon: { light: 'file:gwezz.svg', dark: 'file:gwezz.dark.svg' }, group: ['transform'], version: 1, subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', description: 'Interact with the Changdunovel API', defaults: { name: 'Gwezz 常读分销', }, usableAsTool: true, inputs: ['main'], outputs: ['main'], credentials: [], requestDefaults: { baseURL: 'https://www.changdunovel.com/novelsale/openapi', headers: { Accept: 'application/json', 'Content-Type': 'application/json', }, }, properties: [ { displayName: '资源', name: 'resource', type: 'options', noDataExpression: true, options: [ { name: '分销', value: 'distribution', }, ], default: 'distribution', }, ...distributionDescription, ], }; }