n8n/packages/nodes-base/credentials/ContentfulApi.credentials.ts
Iván Ovejero dec19585bc
refactor: Enforce expanded sensitive inputs rules (no-changelog) (#6815)
* refactor: Enforce expanded sensitive inputs rules (no-changelog)

* refactor: Add extra exemption

* fix: Add setting to `sessionToken` fields

* fix: Restore for `hidden` fields

* fix: More edge case exemptions

* fix: One more
2023-08-01 13:08:25 +02:00

40 lines
1.1 KiB
TypeScript

import type { ICredentialType, INodeProperties } from 'n8n-workflow';
//https://www.contentful.com/developers/docs/references/authentication/
export class ContentfulApi implements ICredentialType {
name = 'contentfulApi';
displayName = 'Contentful 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',
typeOptions: { password: true },
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',
typeOptions: { password: true },
default: '',
description:
'Access token that has access to the space. Can be left empty if only Preview API should be used.',
},
];
}