2023-07-03 00:31:06 -07:00
|
|
|
import type { INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
|
|
import { allProperties } from './descriptions';
|
|
|
|
|
|
|
|
export class CrowdDev implements INodeType {
|
|
|
|
description: INodeTypeDescription = {
|
|
|
|
displayName: 'crowd.dev',
|
|
|
|
name: 'crowdDev',
|
2024-06-06 04:34:30 -07:00
|
|
|
icon: { light: 'file:crowdDev.svg', dark: 'file:crowdDev.dark.svg' },
|
2023-07-03 00:31:06 -07:00
|
|
|
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: ['main'],
|
|
|
|
outputs: ['main'],
|
|
|
|
credentials: [
|
|
|
|
{
|
|
|
|
name: 'crowdDevApi',
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
requestDefaults: {
|
|
|
|
baseURL: '={{$credentials.url}}/api/tenant/{{$credentials.tenantId}}',
|
|
|
|
json: true,
|
|
|
|
skipSslCertificateValidation: '={{ $credentials.allowUnauthorizedCerts }}',
|
|
|
|
},
|
|
|
|
properties: allProperties,
|
|
|
|
};
|
|
|
|
}
|