UNPKG

@esri/solution-common

Version:

Provides general helper functions for @esri/solution.js.

45 lines (44 loc) 1.08 kB
/** * Convert indicator "definitions" from the CAS style to the Indicator schema * see https://github.com/ArcGIS/Hub/blob/master/indicators.md * * @param model * @private */ export declare function _upgradeTwoDotZero(model: any): any; /** * Given the Indicators entry from a CAS configurationSettings array, * convert to an indicators object in the new schema * * @private */ export declare function _convertIndicatorsToDefinitions(indicatorsHash?: any): any; /** * Convert a CAS formatted indicator to the .definition in the new schama * * @private */ export declare const _convertIndicatorToDefinition: (ind: any) => { id: any; type: string; name: any; optional: any; definition: { description: any; supportedTypes: any[]; geometryTypes: any[]; fields: any; }; }; /** * Convert the CAS formatted "field" into the new schema * * @private */ export declare const _convertIndicatorField: (field: any) => { id: any; name: any; optional: any; description: any; supportedTypes: any[]; };