FreshdeskSubmissionEventFieldMapping: {
    freshdeskFieldName: string;
} & ({
    formElementId: string;
    mapping: FreshdeskSubmissionEventFieldMapping;
    type: "FORM_FORM_ELEMENT";
} | {
    formElementId: string;
    type: "FORM_ELEMENT";
} | {
    type: "VALUE";
    value: number | string | boolean;
} | {
    dependentFieldValue: {
        category: string;
        item: string;
        subCategory: string;
    };
    type: "DEPENDENT_FIELD_VALUE";
} | {
    type: "SUBMISSION_ID";
} | {
    type: "EXTERNAL_ID";
})

Type declaration

  • freshdeskFieldName: string