mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(core): Use class-validator with XSS check for survey answers (#10490)
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
This commit is contained in:
@@ -48,6 +48,7 @@ import type {
|
||||
NodeConnectionType,
|
||||
INodeCredentialsDetails,
|
||||
StartNodeData,
|
||||
IPersonalizationSurveyAnswersV4,
|
||||
} from 'n8n-workflow';
|
||||
import type { BulkCommand, Undoable } from '@/models/history';
|
||||
import type { PartialBy, TupleToUnion } from '@/utils/typeHelpers';
|
||||
@@ -648,24 +649,6 @@ export type IPersonalizationSurveyAnswersV3 = {
|
||||
email?: string | null;
|
||||
};
|
||||
|
||||
export type IPersonalizationSurveyAnswersV4 = {
|
||||
version: 'v4';
|
||||
automationGoalDevops?: string[] | null;
|
||||
automationGoalDevopsOther?: string | null;
|
||||
companyIndustryExtended?: string[] | null;
|
||||
otherCompanyIndustryExtended?: string[] | null;
|
||||
companySize?: string | null;
|
||||
companyType?: string | null;
|
||||
automationGoalSm?: string[] | null;
|
||||
automationGoalSmOther?: string | null;
|
||||
usageModes?: string[] | null;
|
||||
email?: string | null;
|
||||
role?: string | null;
|
||||
roleOther?: string | null;
|
||||
reportedSource?: string | null;
|
||||
reportedSourceOther?: string | null;
|
||||
};
|
||||
|
||||
export type IPersonalizationLatestVersion = IPersonalizationSurveyAnswersV4;
|
||||
|
||||
export type IPersonalizationSurveyVersions =
|
||||
|
||||
Reference in New Issue
Block a user