mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 00:24:07 -08:00
36 lines
1 KiB
TypeScript
36 lines
1 KiB
TypeScript
import {
|
|
ICredentialType,
|
|
NodePropertyTypes,
|
|
} from 'n8n-workflow';
|
|
|
|
//https://www.contentful.com/developers/docs/references/authentication/
|
|
export class ContentfulApi implements ICredentialType {
|
|
name = 'contentfulApi';
|
|
displayName = 'Contenful API';
|
|
documentationUrl = 'contentful';
|
|
properties = [
|
|
{
|
|
displayName: 'Space ID',
|
|
name: 'spaceId',
|
|
type: 'string' as NodePropertyTypes,
|
|
default: '',
|
|
required: true,
|
|
description: 'The id for the Contentful space.',
|
|
},
|
|
{
|
|
displayName: 'Content Delivery API Access token',
|
|
name: 'ContentDeliveryaccessToken',
|
|
type: 'string' as NodePropertyTypes,
|
|
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' as NodePropertyTypes,
|
|
default: '',
|
|
description: 'Access token that has access to the space. Can be left empty if only Preview API should be used.',
|
|
},
|
|
];
|
|
}
|