docs: Branding tweaks for Cal and Citrix ADC (no-changelog) (#10042)

This commit is contained in:
Jon 2024-07-15 15:16:41 +01:00 committed by GitHub
parent 0b021ab6a5
commit ef8c867ec7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 45 additions and 27 deletions

View file

@ -8,6 +8,13 @@ export class AutomizyApi implements ICredentialType {
documentationUrl = 'automizy'; documentationUrl = 'automizy';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{
displayName:
'This service may no longer exist and will be removed from n8n in a future release.',
name: 'deprecated',
type: 'notice',
default: '',
},
{ {
displayName: 'API Token', displayName: 'API Token',
name: 'apiToken', name: 'apiToken',

View file

@ -5,12 +5,12 @@ import type {
INodeProperties, INodeProperties,
} from 'n8n-workflow'; } from 'n8n-workflow';
export class CitrixAdcApi implements ICredentialType { export class NetscalerAdcApi implements ICredentialType {
name = 'citrixAdcApi'; name = 'citrixAdcApi';
displayName = 'Citrix ADC API'; displayName = 'Netscaler ADC API';
documentationUrl = 'citrixadc'; documentationUrl = 'netscaleradc';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {

View file

@ -30,6 +30,7 @@ export class Automizy implements INodeType {
}, },
inputs: ['main'], inputs: ['main'],
outputs: ['main'], outputs: ['main'],
hidden: true,
credentials: [ credentials: [
{ {
name: 'automizyApi', name: 'automizyApi',
@ -37,6 +38,13 @@ export class Automizy implements INodeType {
}, },
], ],
properties: [ properties: [
{
displayName:
'This service may no longer exist and will be removed from n8n in a future release.',
name: 'deprecated',
type: 'notice',
default: '',
},
{ {
displayName: 'Resource', displayName: 'Resource',
name: 'resource', name: 'resource',

View file

@ -13,15 +13,15 @@ import { calApiRequest, sortOptionParameters } from './GenericFunctions';
export class CalTrigger implements INodeType { export class CalTrigger implements INodeType {
description: INodeTypeDescription = { description: INodeTypeDescription = {
displayName: 'Cal Trigger', displayName: 'Cal.com Trigger',
name: 'calTrigger', name: 'calTrigger',
icon: { light: 'file:cal.svg', dark: 'file:cal.dark.svg' }, icon: { light: 'file:cal.svg', dark: 'file:cal.dark.svg' },
group: ['trigger'], group: ['trigger'],
version: [1, 2], version: [1, 2],
subtitle: '=Events: {{$parameter["events"].join(", ")}}', subtitle: '=Events: {{$parameter["events"].join(", ")}}',
description: 'Handle Cal events via webhooks', description: 'Handle Cal.com events via webhooks',
defaults: { defaults: {
name: 'Cal Trigger', name: 'Cal.com Trigger',
}, },
inputs: [], inputs: [],
outputs: ['main'], outputs: ['main'],

View file

@ -214,7 +214,7 @@ export const certificateDescription: INodeProperties[] = [
}, },
}, },
description: description:
'Name for and, optionally, path to the private key. You can either use an existing RSA or DSA key that you own or create a new private key on the Citrix ADC. This file is required only when creating a self-signed Root-CA certificate. The key file is stored in the /nsconfig/ssl directory by default.', 'Name for and, optionally, path to the private key. You can either use an existing RSA or DSA key that you own or create a new private key on the Netscaler ADC. This file is required only when creating a self-signed Root-CA certificate. The key file is stored in the /nsconfig/ssl directory by default.',
}, },
{ {
displayName: 'CA Serial File Number', displayName: 'CA Serial File Number',
@ -281,7 +281,7 @@ export const certificateDescription: INodeProperties[] = [
}, },
default: '', default: '',
description: description:
'Name for and, optionally, path to the private key. You can either use an existing RSA or DSA key that you own or create a new private key on the Citrix ADC. This file is required only when creating a self-signed Root-CA certificate. The key file is stored in the /nsconfig/ssl directory by default.', 'Name for and, optionally, path to the private key. You can either use an existing RSA or DSA key that you own or create a new private key on the Netscaler ADC. This file is required only when creating a self-signed Root-CA certificate. The key file is stored in the /nsconfig/ssl directory by default.',
}, },
{ {
displayName: 'PEM Passphrase (For Encrypted CA Key)', displayName: 'PEM Passphrase (For Encrypted CA Key)',
@ -294,7 +294,7 @@ export const certificateDescription: INodeProperties[] = [
}, },
default: '', default: '',
description: description:
'Name for and, optionally, path to the private key. You can either use an existing RSA or DSA key that you own or create a new private key on the Citrix ADC. This file is required only when creating a self-signed Root-CA certificate. The key file is stored in the /nsconfig/ssl directory by default.', 'Name for and, optionally, path to the private key. You can either use an existing RSA or DSA key that you own or create a new private key on the Netscaler ADC. This file is required only when creating a self-signed Root-CA certificate. The key file is stored in the /nsconfig/ssl directory by default.',
}, },
{ {
displayName: 'Subject Alternative Name', displayName: 'Subject Alternative Name',

View file

@ -10,7 +10,7 @@ import type {
} from 'n8n-workflow'; } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
export async function citrixADCApiRequest( export async function netscalerADCApiRequest(
this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions,
method: IHttpRequestMethods, method: IHttpRequestMethods,
resource: string, resource: string,

View file

@ -1,18 +1,19 @@
{ {
"node": "n8n-nodes-base.citrixAdc", "node": "n8n-nodes-base.netscalerAdc",
"nodeVersion": "1.0", "nodeVersion": "1.0",
"codexVersion": "1.0", "codexVersion": "1.0",
"categories": ["Development"], "categories": ["Development"],
"resources": { "resources": {
"credentialDocumentation": [ "credentialDocumentation": [
{ {
"url": "https://docs.n8n.io/integrations/builtin/credentials/citrixAdc/" "url": "https://docs.n8n.io/integrations/builtin/credentials/netscalerAdc/"
} }
], ],
"primaryDocumentation": [ "primaryDocumentation": [
{ {
"url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.citrixadc/" "url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.netscaleradc/"
} }
] ]
} },
"alias": ["Citrix"]
} }

View file

@ -1,3 +1,4 @@
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
import type { import type {
IDataObject, IDataObject,
IExecuteFunctions, IExecuteFunctions,
@ -7,23 +8,24 @@ import type {
JsonObject, JsonObject,
} from 'n8n-workflow'; } from 'n8n-workflow';
import { citrixADCApiRequest } from './GenericFunctions'; import { netscalerADCApiRequest } from './GenericFunctions';
import { fileDescription } from './FileDescription'; import { fileDescription } from './FileDescription';
import { certificateDescription } from './CertificateDescription'; import { certificateDescription } from './CertificateDescription';
export class CitrixAdc implements INodeType { export class NetscalerAdc implements INodeType {
description: INodeTypeDescription = { description: INodeTypeDescription = {
displayName: 'Citrix ADC', displayName: 'Netscaler ADC',
// This prevents a breaking change
name: 'citrixAdc', name: 'citrixAdc',
icon: { light: 'file:citrix.svg', dark: 'file:citrix.dark.svg' }, icon: { light: 'file:netscaler.svg', dark: 'file:netscaler.dark.svg' },
group: ['output'], group: ['output'],
version: 1, version: 1,
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Consume Citrix ADC API', description: 'Consume Netscaler ADC API',
defaults: { defaults: {
name: 'Citrix ADC', name: 'Netscaler ADC',
}, },
credentials: [ credentials: [
{ {
@ -88,7 +90,7 @@ export class CitrixAdc implements INodeType {
body.systemfile.filename = options.fileName as string; body.systemfile.filename = options.fileName as string;
} }
await citrixADCApiRequest.call(this, 'POST', endpoint, body); await netscalerADCApiRequest.call(this, 'POST', endpoint, body);
responseData = { success: true }; responseData = { success: true };
} }
if (operation === 'delete') { if (operation === 'delete') {
@ -99,7 +101,7 @@ export class CitrixAdc implements INodeType {
fileLocation, fileLocation,
)}`; )}`;
await citrixADCApiRequest.call(this, 'DELETE', endpoint); await netscalerADCApiRequest.call(this, 'DELETE', endpoint);
responseData = { success: true }; responseData = { success: true };
} }
if (operation === 'download') { if (operation === 'download') {
@ -111,7 +113,7 @@ export class CitrixAdc implements INodeType {
fileLocation, fileLocation,
)}`; )}`;
const { systemfile } = await citrixADCApiRequest.call(this, 'GET', endpoint); const { systemfile } = await netscalerADCApiRequest.call(this, 'GET', endpoint);
const file = systemfile[0]; const file = systemfile[0];
@ -185,7 +187,7 @@ export class CitrixAdc implements INodeType {
const endpoint = '/config/sslcert?action=create'; const endpoint = '/config/sslcert?action=create';
await citrixADCApiRequest.call(this, 'POST', endpoint, { sslcert: body }); await netscalerADCApiRequest.call(this, 'POST', endpoint, { sslcert: body });
responseData = { success: true }; responseData = { success: true };
} }
@ -225,7 +227,7 @@ export class CitrixAdc implements INodeType {
const endpoint = '/config/sslcertkey'; const endpoint = '/config/sslcertkey';
await citrixADCApiRequest.call(this, 'POST', endpoint, { sslcertkey: body }); await netscalerADCApiRequest.call(this, 'POST', endpoint, { sslcertkey: body });
responseData = { success: true }; responseData = { success: true };
} }

View file

Before

Width:  |  Height:  |  Size: 1,013 B

After

Width:  |  Height:  |  Size: 1,013 B

View file

Before

Width:  |  Height:  |  Size: 1,015 B

After

Width:  |  Height:  |  Size: 1,015 B

View file

@ -59,7 +59,6 @@
"dist/credentials/CiscoSecureEndpointApi.credentials.js", "dist/credentials/CiscoSecureEndpointApi.credentials.js",
"dist/credentials/CiscoWebexOAuth2Api.credentials.js", "dist/credentials/CiscoWebexOAuth2Api.credentials.js",
"dist/credentials/CiscoUmbrellaApi.credentials.js", "dist/credentials/CiscoUmbrellaApi.credentials.js",
"dist/credentials/CitrixAdcApi.credentials.js",
"dist/credentials/CloudflareApi.credentials.js", "dist/credentials/CloudflareApi.credentials.js",
"dist/credentials/ClearbitApi.credentials.js", "dist/credentials/ClearbitApi.credentials.js",
"dist/credentials/ClickUpApi.credentials.js", "dist/credentials/ClickUpApi.credentials.js",
@ -234,6 +233,7 @@
"dist/credentials/N8nApi.credentials.js", "dist/credentials/N8nApi.credentials.js",
"dist/credentials/NasaApi.credentials.js", "dist/credentials/NasaApi.credentials.js",
"dist/credentials/NetlifyApi.credentials.js", "dist/credentials/NetlifyApi.credentials.js",
"dist/credentials/NetscalerAdcApi.credentials.js",
"dist/credentials/NextCloudApi.credentials.js", "dist/credentials/NextCloudApi.credentials.js",
"dist/credentials/NextCloudOAuth2Api.credentials.js", "dist/credentials/NextCloudOAuth2Api.credentials.js",
"dist/credentials/NocoDb.credentials.js", "dist/credentials/NocoDb.credentials.js",
@ -427,7 +427,6 @@
"dist/nodes/Chargebee/ChargebeeTrigger.node.js", "dist/nodes/Chargebee/ChargebeeTrigger.node.js",
"dist/nodes/CircleCi/CircleCi.node.js", "dist/nodes/CircleCi/CircleCi.node.js",
"dist/nodes/Cisco/Webex/CiscoWebex.node.js", "dist/nodes/Cisco/Webex/CiscoWebex.node.js",
"dist/nodes/Citrix/ADC/CitrixAdc.node.js",
"dist/nodes/Cisco/Webex/CiscoWebexTrigger.node.js", "dist/nodes/Cisco/Webex/CiscoWebexTrigger.node.js",
"dist/nodes/Cloudflare/Cloudflare.node.js", "dist/nodes/Cloudflare/Cloudflare.node.js",
"dist/nodes/Clearbit/Clearbit.node.js", "dist/nodes/Clearbit/Clearbit.node.js",
@ -642,6 +641,7 @@
"dist/nodes/NoOp/NoOp.node.js", "dist/nodes/NoOp/NoOp.node.js",
"dist/nodes/Onfleet/Onfleet.node.js", "dist/nodes/Onfleet/Onfleet.node.js",
"dist/nodes/Onfleet/OnfleetTrigger.node.js", "dist/nodes/Onfleet/OnfleetTrigger.node.js",
"dist/nodes/Netscaler/ADC/NetscalerAdc.node.js",
"dist/nodes/Notion/Notion.node.js", "dist/nodes/Notion/Notion.node.js",
"dist/nodes/Notion/NotionTrigger.node.js", "dist/nodes/Notion/NotionTrigger.node.js",
"dist/nodes/Npm/Npm.node.js", "dist/nodes/Npm/Npm.node.js",