mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Improvements to SurveyMonkey-Node
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user