import { FieldType } from '@terascope/types' ; import { FieldTransformConfig , ProcessMode , FunctionDefinitionType , FunctionDefinitionCategory , } from '../interfaces' ; import { runMathFn } from './utils' ; export const asinConfig = { name : 'asin' , type : FunctionDefinitionType . FIELD_TRANSFORM , process_mode : ProcessMode . INDIVIDUAL_VALUES , category : FunctionDefinitionCategory . NUMERIC , description : "Returns the arcsine (in radians) of the given number if it's between -1 and 1" , examples : [ { args : { } , config : { version : 1 , fields : { testField : { type : FieldType . Float } } } , field : 'testField' , input : 1 , output : 1.5707963267948966 } ] , create ( ) { return runMathFn ( Math . asin ) ; } , accepts : [ FieldType . Number , ] , argument_schema : { } , } ;