n8n/packages/nodes-base/credentials/PipedriveOAuth2Api.credentials.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1 KiB
TypeScript
Raw Permalink Normal View History

import type { ICredentialType, INodeProperties } from 'n8n-workflow';
2020-06-09 06:48:40 -07:00
export class PipedriveOAuth2Api implements ICredentialType {
name = 'pipedriveOAuth2Api';
extends = ['oAuth2Api'];
2020-06-09 06:48:40 -07:00
displayName = 'Pipedrive OAuth2 API';
documentationUrl = 'pipedrive';
properties: INodeProperties[] = [
{
displayName: 'Grant Type',
name: 'grantType',
type: 'hidden',
default: 'authorizationCode',
},
2020-06-09 06:48:40 -07:00
{
displayName: 'Authorization URL',
name: 'authUrl',
type: 'hidden',
2020-06-09 06:48:40 -07:00
default: 'https://oauth.pipedrive.com/oauth/authorize',
required: true,
},
{
displayName: 'Access Token URL',
name: 'accessTokenUrl',
type: 'hidden',
2020-06-09 06:48:40 -07:00
default: 'https://oauth.pipedrive.com/oauth/token',
required: true,
},
{
displayName: 'Scope',
name: 'scope',
type: 'hidden',
2020-06-09 06:48:40 -07:00
default: '',
},
{
displayName: 'Auth URI Query Parameters',
name: 'authQueryParameters',
type: 'hidden',
2020-06-09 06:48:40 -07:00
default: '',
},
{
displayName: 'Authentication',
name: 'authentication',
type: 'hidden',
2020-06-09 06:48:40 -07:00
default: 'header',
},
];
}