n8n-nodes-base
Version:
Base nodes of n8n
64 lines (58 loc) • 2.41 kB
text/typescript
/**
* SurveyMonkey Trigger Node - Version 1
* Starts the workflow when Survey Monkey events occur
*/
export interface SurveyMonkeyTriggerV1Params {
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
objectType?: 'collector' | 'survey' | Expression<string>;
/**
* Event
* @displayOptions.show { objectType: ["survey"] }
*/
event?: 'collector_created' | 'collector_deleted' | 'collector_updated' | 'response_completed' | 'response_created' | 'response_deleted' | 'response_disqualified' | 'response_overquota' | 'response_updated' | 'survey_created' | 'survey_deleted' | 'survey_updated' | Expression<string>;
/**
* Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
* @displayOptions.show { objectType: ["survey"] }
* @displayOptions.hide { event: ["survey_created"] }
* @default []
*/
surveyIds?: string[];
/**
* Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
* @displayOptions.show { objectType: ["collector"] }
* @default []
*/
surveyId?: string | Expression<string>;
/**
* Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
* @displayOptions.show { objectType: ["collector"] }
* @default []
*/
collectorIds?: string[];
/**
* By default the webhook-data only contain the IDs. If this option gets activated, it will resolve the data automatically.
* @displayOptions.show { event: ["response_completed"] }
* @default true
*/
resolveData?: boolean | Expression<boolean>;
/**
* Whether to return only the answers of the form and not any of the other data
* @displayOptions.show { resolveData: [true], event: ["response_completed"] }
* @default true
*/
onlyAnswers?: boolean | Expression<boolean>;
}
export interface SurveyMonkeyTriggerV1Credentials {
surveyMonkeyApi: CredentialReference;
surveyMonkeyOAuth2Api: CredentialReference;
}
interface SurveyMonkeyTriggerV1NodeBase {
type: 'n8n-nodes-base.surveyMonkeyTrigger';
version: 1;
credentials?: SurveyMonkeyTriggerV1Credentials;
isTrigger: true;
}
export type SurveyMonkeyTriggerV1ParamsNode = SurveyMonkeyTriggerV1NodeBase & {
config: NodeConfig<SurveyMonkeyTriggerV1Params>;
};
export type SurveyMonkeyTriggerV1Node = SurveyMonkeyTriggerV1ParamsNode;