mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
⚡ Improvements to SurveyMonkey-Node
This commit is contained in:
parent
3c817788e7
commit
0f6b82249b
|
@ -3,6 +3,14 @@ import {
|
||||||
NodePropertyTypes,
|
NodePropertyTypes,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
|
const scopes = [
|
||||||
|
'surveys_read',
|
||||||
|
'collectors_read',
|
||||||
|
'responses_read',
|
||||||
|
'responses_read_detail',
|
||||||
|
'webhooks_write',
|
||||||
|
'webhooks_read',
|
||||||
|
];
|
||||||
|
|
||||||
export class SurveyMonkeyOAuth2Api implements ICredentialType {
|
export class SurveyMonkeyOAuth2Api implements ICredentialType {
|
||||||
name = 'surveyMonkeyOAuth2Api';
|
name = 'surveyMonkeyOAuth2Api';
|
||||||
|
@ -28,8 +36,8 @@ export class SurveyMonkeyOAuth2Api implements ICredentialType {
|
||||||
{
|
{
|
||||||
displayName: 'Scope',
|
displayName: 'Scope',
|
||||||
name: 'scope',
|
name: 'scope',
|
||||||
type: 'string' as NodePropertyTypes,
|
type: 'hidden' as NodePropertyTypes,
|
||||||
default: 'surveys_read,surveys_write,responses_read,responses_write,webhooks_read,webhooks_write',
|
default: scopes.join(','),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Auth URI Query Parameters',
|
displayName: 'Auth URI Query Parameters',
|
||||||
|
|
Loading…
Reference in a new issue