UNPKG

@arcgis/workflow-manager

Version:

ArcGIS Workflow Manager JavaScript API

74 lines (73 loc) 1.59 kB
export declare enum SortOrderType { Asc = "Asc", Desc = "Desc" } export declare enum SearchType { Chart = "Chart", Standard = "Standard" } export interface SortField { field: string; sortOrder: SortOrderType; } export interface Query { searchId?: string; q?: string; search?: string; fields?: string[]; displayNames?: string[]; sortFields?: SortField[]; spatialExtent?: string; hasLocation?: boolean; start: number; num?: number; returnAllRelatedProperties?: boolean | null; } export interface QueryResult { q: string; fields: Array<Field>; results: Array<Array<any>>; start: number; nextStart: number; num: number; } export declare enum FieldType { String = "String", Integer = "Integer", DateTime = "DateTime", Boolean = "Boolean", Double = "Double" } export interface Field { name: string; fieldType: FieldType; } export interface JobStatistics { total: number; groupBy?: string; groupedValues?: Array<GroupedValue>; } export interface JobStatisticsDetails { q?: string; search?: string; groupBy?: string; spatialExtent?: string; hasLocation?: boolean; } export interface GroupedValue { value?: string | null; count: number; } export interface SavedQuery { searchId?: string; name: string; definition: Query; sortIndex?: number; searchType: SearchType; } export interface SavedSearch extends SavedQuery { folder?: string; } export interface SavedChart extends SavedQuery { colorRamp?: string; }