mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-28 22:19:41 -08:00
34 lines
1 KiB
TypeScript
34 lines
1 KiB
TypeScript
import type { INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
import { NodeConnectionType } from 'n8n-workflow';
|
|
import { allProperties } from './descriptions';
|
|
|
|
export class CrowdDev implements INodeType {
|
|
description: INodeTypeDescription = {
|
|
displayName: 'crowd.dev',
|
|
name: 'crowdDev',
|
|
icon: { light: 'file:crowdDev.svg', dark: 'file:crowdDev.dark.svg' },
|
|
group: ['transform'],
|
|
version: 1,
|
|
subtitle: '={{ $parameter["operation"] + ": " + $parameter["resource"] }}',
|
|
description:
|
|
'crowd.dev is an open-source suite of community and data tools built to unlock community-led growth for your organization.',
|
|
defaults: {
|
|
name: 'crowd.dev',
|
|
},
|
|
inputs: [NodeConnectionType.Main],
|
|
outputs: [NodeConnectionType.Main],
|
|
credentials: [
|
|
{
|
|
name: 'crowdDevApi',
|
|
required: true,
|
|
},
|
|
],
|
|
requestDefaults: {
|
|
baseURL: '={{$credentials.url}}/api/tenant/{{$credentials.tenantId}}',
|
|
json: true,
|
|
skipSslCertificateValidation: '={{ $credentials.allowUnauthorizedCerts }}',
|
|
},
|
|
properties: allProperties,
|
|
};
|
|
}
|