import { schema , TypeOf } from '@kbn/config-schema' ; import { TransformPivotConfig } from '../types/transform' ; import { retentionPolicySchema , settingsSchema , sourceSchema , syncSchema } from './transforms' ; export const postTransformsUpdateRequestSchema = schema . object ( { description : schema . maybe ( schema . string ( ) ) , dest : schema . maybe ( schema . object ( { index : schema . string ( ) , pipeline : schema . maybe ( schema . string ( ) ) , } ) ) , frequency : schema . maybe ( schema . string ( ) ) , retention_policy : schema . maybe ( retentionPolicySchema ) , settings : schema . maybe ( settingsSchema ) , source : schema . maybe ( sourceSchema ) , sync : schema . maybe ( syncSchema ) , } ) ; export type PostTransformsUpdateRequestSchema = TypeOf < typeof postTransformsUpdateRequestSchema > ; export type PostTransformsUpdateResponseSchema = TransformPivotConfig ;