Record<string, string[]>: label is the last string in the array, value is
the key (parsed as an integer)
{ "2": ["Open", "Being Processed"], "3": ["Pending", "Awaiting your Reply"], "4": ["Resolved", "This ticket has been Resolved"], "5": ["Closed", "This ticket has been Closed"] }
Record<string, Record<string, string[]>>: Options are nested, value and
label are the same for each option
This will determine the type of mapping in the submission event config if
true, show form element dropdown in submission event config if false, show
free text entry in submission event config
default
default:boolean
This is just true if its a default field (i.e. cannot be deleted), not really useful
description
description:null|string
Description in fresh desk, we should prob display this in submission event
config screen
displayed_to_customers
displayed_to_customers:boolean
I think we can ignore this
id
id:number
Not sure if this is useful for us
label
label:string
Label in fresh desk, we should prob display this in submission event config screen
label_for_customers
label_for_customers:string
I think we can ignore this
Optionallevel
level?:number
name
name:string
I think this is what we will use to reference fields values when submitting tickets
String[]: label and value are the same
Record<string, number>: label is key (string), value is the number
Record<string, string[]>: label is the last string in the array, value is the key (parsed as an integer)
Record<string, Record<string, string[]>>: Options are nested, value and label are the same for each option