mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 09:34:07 -08:00
57afd480ab
* Apply Prettier to all credentials * Fix quotes for lint * 👕 Remove `quotemark` rule * 👕 Run Prettier to take over quotes * ⬆️ Upgrade `eslint-plugin-n8n-nodes-base` * 📦 Update `package-lock.json` Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
35 lines
999 B
TypeScript
35 lines
999 B
TypeScript
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
|
|
//https://www.contentful.com/developers/docs/references/authentication/
|
|
export class ContentfulApi implements ICredentialType {
|
|
name = 'contentfulApi';
|
|
displayName = 'Contenful API';
|
|
documentationUrl = 'contentful';
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'Space ID',
|
|
name: 'spaceId',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
description: 'The ID for the Contentful space',
|
|
},
|
|
{
|
|
displayName: 'Content Delivery API Access Token',
|
|
name: 'ContentDeliveryaccessToken',
|
|
type: 'string',
|
|
default: '',
|
|
description:
|
|
'Access token that has access to the space. Can be left empty if only Delivery API should be used.',
|
|
},
|
|
{
|
|
displayName: 'Content Preview API Access Token',
|
|
name: 'ContentPreviewaccessToken',
|
|
type: 'string',
|
|
default: '',
|
|
description:
|
|
'Access token that has access to the space. Can be left empty if only Preview API should be used.',
|
|
},
|
|
];
|
|
}
|