n8n/packages/nodes-base/credentials/ContentfulApi.credentials.ts
Iván Ovejero b03e358a12
refactor: Integrate consistent-type-imports in nodes-base (no-changelog) (#5267)
* 👕 Enable `consistent-type-imports` for nodes-base

* 👕 Apply to nodes-base

*  Undo unrelated changes

* 🚚 Move to `.eslintrc.js` in nodes-base

*  Revert "Enable `consistent-type-imports` for nodes-base"

This reverts commit 529ad72b05.

* 👕 Fix severity
2023-01-27 12:22:44 +01:00

38 lines
1,007 B
TypeScript

import type { 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.',
},
];
}