n8n/packages/nodes-base/credentials/SurveyMonkeyApi.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

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: '',
},
];
}