export type JQLAutocompleteResponse = { visibleFieldNames: JQLFieldResponse[]; visibleFunctionNames: JQLFunctionResponse[]; }; export type JQLFieldResponse = { auto?: string; cfid?: string; deprecated?: string; deprecatedSearcherKey?: string; displayName: string; operators: string[]; orderable?: string; searchable?: string; types: string[]; value: string; }; export type JQLFunctionResponse = { displayName: string; /** * `true` if the function **only** supports list operators. */ isList?: string; /** * `true` if the function supports **both** list and single value operators. */ supportsListAndSingleValueOperators?: string; types: string[]; value: string; }; export type JQLFieldValueResponse = { displayName: string; value: string; }; export type JQLAutocompleteSuggestionsResponse = { results: JQLFieldValueResponse[]; }; export type AutocompleteInitialDataResponse = { jqlFields: JQLFieldResponse[]; jqlFunctions: JQLFunctionResponse[]; }; export type GetAutocompleteInitialData = (url: string) => Promise; export type AutocompleteSuggestionsResponse = { results: JQLFieldValueResponse[]; }; export type GetAutocompleteSuggestions = (url: string) => Promise;