mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 17:14:05 -08:00
dec19585bc
* 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
42 lines
905 B
TypeScript
42 lines
905 B
TypeScript
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
|
|
export class SurveyMonkeyApi implements ICredentialType {
|
|
name = 'surveyMonkeyApi';
|
|
|
|
displayName = 'SurveyMonkey API';
|
|
|
|
documentationUrl = 'surveyMonkey';
|
|
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'Access Token',
|
|
name: 'accessToken',
|
|
type: 'string',
|
|
typeOptions: { password: true },
|
|
default: '',
|
|
description: `The access token must have the following scopes:
|
|
<ul>
|
|
<li>Create/modify webhooks</li>
|
|
<li>View webhooks</li>
|
|
<li>View surveys</li>
|
|
<li>View collectors</li>
|
|
<li>View responses</li>
|
|
<li>View response details</li>
|
|
</ul>`,
|
|
},
|
|
{
|
|
displayName: 'Client ID',
|
|
name: 'clientId',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Client Secret',
|
|
name: 'clientSecret',
|
|
type: 'string',
|
|
typeOptions: { password: true },
|
|
default: '',
|
|
},
|
|
];
|
|
}
|