import { lazy , object , optional , Schema , string } from '../schema' ; import { FilterValue , filterValueSchema } from './filterValue' ; /** A query filter to search for appointment segments by. */ export interface SegmentFilter { /** The ID of the [CatalogItemVariation]($m/CatalogItemVariation) representing the service booked in this segment. */ serviceVariationId : string ; /**
     * A filter to select resources based on an exact field value. For any given
     * value, the value can only be in one property. Depending on the field, either
     * all properties can be set or only a subset will be available.
     * Refer to the documentation of the field.
     */ teamMemberIdFilter ? : FilterValue ; } export const segmentFilterSchema = object ( { serviceVariationId : [ 'service_variation_id' , string ( ) ] , teamMemberIdFilter : [ 'team_member_id_filter' , optional ( lazy ( ( ) => filterValueSchema ) ) , ] , } ) ;