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';
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',
name: 'apiToken',

View file

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

View file

@ -30,6 +30,7 @@ export class Automizy implements INodeType {
},
inputs: ['main'],
outputs: ['main'],
hidden: true,
credentials: [
{
name: 'automizyApi',
@ -37,6 +38,13 @@ export class Automizy implements INodeType {
},
],
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',
name: 'resource',

View file

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

View file

@ -214,7 +214,7 @@ export const certificateDescription: INodeProperties[] = [
},
},
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',
@ -281,7 +281,7 @@ export const certificateDescription: INodeProperties[] = [
},
default: '',
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)',
@ -294,7 +294,7 @@ export const certificateDescription: INodeProperties[] = [
},
default: '',
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',

View file

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

View file

@ -1,18 +1,19 @@
{
"node": "n8n-nodes-base.citrixAdc",
"node": "n8n-nodes-base.netscalerAdc",
"nodeVersion": "1.0",
"codexVersion": "1.0",
"categories": ["Development"],
"resources": {
"credentialDocumentation": [
{
"url": "https://docs.n8n.io/integrations/builtin/credentials/citrixAdc/"
"url": "https://docs.n8n.io/integrations/builtin/credentials/netscalerAdc/"
}
],
"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 {
IDataObject,
IExecuteFunctions,
@ -7,23 +8,24 @@ import type {
JsonObject,
} from 'n8n-workflow';
import { citrixADCApiRequest } from './GenericFunctions';
import { netscalerADCApiRequest } from './GenericFunctions';
import { fileDescription } from './FileDescription';
import { certificateDescription } from './CertificateDescription';
export class CitrixAdc implements INodeType {
export class NetscalerAdc implements INodeType {
description: INodeTypeDescription = {
displayName: 'Citrix ADC',
displayName: 'Netscaler ADC',
// This prevents a breaking change
name: 'citrixAdc',
icon: { light: 'file:citrix.svg', dark: 'file:citrix.dark.svg' },
icon: { light: 'file:netscaler.svg', dark: 'file:netscaler.dark.svg' },
group: ['output'],
version: 1,
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Consume Citrix ADC API',
description: 'Consume Netscaler ADC API',
defaults: {
name: 'Citrix ADC',
name: 'Netscaler ADC',
},
credentials: [
{
@ -88,7 +90,7 @@ export class CitrixAdc implements INodeType {
body.systemfile.filename = options.fileName as string;
}
await citrixADCApiRequest.call(this, 'POST', endpoint, body);
await netscalerADCApiRequest.call(this, 'POST', endpoint, body);
responseData = { success: true };
}
if (operation === 'delete') {
@ -99,7 +101,7 @@ export class CitrixAdc implements INodeType {
fileLocation,
)}`;
await citrixADCApiRequest.call(this, 'DELETE', endpoint);
await netscalerADCApiRequest.call(this, 'DELETE', endpoint);
responseData = { success: true };
}
if (operation === 'download') {
@ -111,7 +113,7 @@ export class CitrixAdc implements INodeType {
fileLocation,
)}`;
const { systemfile } = await citrixADCApiRequest.call(this, 'GET', endpoint);
const { systemfile } = await netscalerADCApiRequest.call(this, 'GET', endpoint);
const file = systemfile[0];
@ -185,7 +187,7 @@ export class CitrixAdc implements INodeType {
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 };
}
@ -225,7 +227,7 @@ export class CitrixAdc implements INodeType {
const endpoint = '/config/sslcertkey';
await citrixADCApiRequest.call(this, 'POST', endpoint, { sslcertkey: body });
await netscalerADCApiRequest.call(this, 'POST', endpoint, { sslcertkey: body });
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/CiscoWebexOAuth2Api.credentials.js",
"dist/credentials/CiscoUmbrellaApi.credentials.js",
"dist/credentials/CitrixAdcApi.credentials.js",
"dist/credentials/CloudflareApi.credentials.js",
"dist/credentials/ClearbitApi.credentials.js",
"dist/credentials/ClickUpApi.credentials.js",
@ -234,6 +233,7 @@
"dist/credentials/N8nApi.credentials.js",
"dist/credentials/NasaApi.credentials.js",
"dist/credentials/NetlifyApi.credentials.js",
"dist/credentials/NetscalerAdcApi.credentials.js",
"dist/credentials/NextCloudApi.credentials.js",
"dist/credentials/NextCloudOAuth2Api.credentials.js",
"dist/credentials/NocoDb.credentials.js",
@ -427,7 +427,6 @@
"dist/nodes/Chargebee/ChargebeeTrigger.node.js",
"dist/nodes/CircleCi/CircleCi.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/Cloudflare/Cloudflare.node.js",
"dist/nodes/Clearbit/Clearbit.node.js",
@ -642,6 +641,7 @@
"dist/nodes/NoOp/NoOp.node.js",
"dist/nodes/Onfleet/Onfleet.node.js",
"dist/nodes/Onfleet/OnfleetTrigger.node.js",
"dist/nodes/Netscaler/ADC/NetscalerAdc.node.js",
"dist/nodes/Notion/Notion.node.js",
"dist/nodes/Notion/NotionTrigger.node.js",
"dist/nodes/Npm/Npm.node.js",