import * as t from 'io-ts' ; import { _versionOrUndefined } from '../../common/underscore_version' ; import { deserializerOrUndefined } from '../../common/deserializer' ; import { metaOrUndefined } from '../../common/meta' ; import { serializerOrUndefined } from '../../common/serializer' ; import { created_at } from '../../common/created_at' ; import { created_by } from '../../common/created_by' ; import { id } from '../../common/id' ; import { tie_breaker_id } from '../../common/tie_breaker_id' ; import { type } from '../../common/type' ; import { updated_at } from '../../common/updated_at' ; import { updated_by } from '../../common/updated_by' ; import { list_id } from '../../common/list_id' ; import { value } from '../../common/value' ; export const listItemSchema = t . exact ( t . type ( { _version : _versionOrUndefined , created_at , created_by , deserializer : deserializerOrUndefined , id , list_id , meta : metaOrUndefined , serializer : serializerOrUndefined , tie_breaker_id , type , updated_at , updated_by , value , } ) ) ; export type ListItemSchema = t . TypeOf < typeof listItemSchema > ; export const listItemArraySchema = t . array ( listItemSchema ) ; export type ListItemArraySchema = t . TypeOf < typeof listItemArraySchema > ;