import type { ICredentialTestRequest, ICredentialType, INodeProperties, Icon } from 'n8n-workflow'; export class GwezzChangdunovelApi implements ICredentialType { name = 'gwezzChangdunovelApi'; displayName = 'Gwezz 常读分销 API'; icon = { light: 'file:../icons/gwezz.svg', dark: 'file:../icons/gwezz.dark.svg' } as Icon; documentationUrl = 'https://github.com/org/-gwezz-changdunovel?tab=readme-ov-file#credentials'; properties: INodeProperties[] = [ { displayName: 'Distributor ID', name: 'distributor_id', type: 'string', required: true, default: '', description: '分销商 ID,可与常读商务同学沟通获取', }, { displayName: 'Secret Key', name: 'secret_key', type: 'string', typeOptions: { password: true }, required: true, default: '', description: '签名密钥,可与常读商务同学沟通获取', }, ]; test: ICredentialTestRequest = { request: { url: 'https://www.changdunovel.com/novelsale/openapi', }, }; }