import { InspectionAmPmRange , InspectionDayKindRange , InspectionDayOfMonthRange , InspectionDayOfWeekRange , InspectionHalfMonthRange , InspectionHalfWeekRange , InspectionHalfYearRange , InspectionHourKindRange , InspectionHourRange , InspectionMonthRange , InspectionQuarterRange , InspectionTenDaysRange , InspectionTimeRange , InspectionTimeRangeType , InspectionWeekOfMonthRange , InspectionWeekOfYearRange , InspectionYearRange } from './inspection-types' ; export const isInspectionYearRange = ( range ) : range is InspectionYearRange => { return range . type === InspectionTimeRangeType . YEAR ; } ; export const isInspectionHalfYearRange = ( range ) : range is InspectionHalfYearRange => { return range . type === InspectionTimeRangeType . HALF_YEAR ; } ; export const isInspectionQuarterRange = ( range ) : range is InspectionQuarterRange => { return range . type === InspectionTimeRangeType . QUARTER ; } ; export const isInspectionMonthRange = ( range ) : range is InspectionMonthRange => { return range . type === InspectionTimeRangeType . MONTH ; } ; export const isInspectionHalfMonthRange = ( range ) : range is InspectionHalfMonthRange => { return range . type === InspectionTimeRangeType . HALF_MONTH ; } ; export const isInspectionTenDaysRange = ( range ) : range is InspectionTenDaysRange => { return range . type === InspectionTimeRangeType . TEN_DAYS ; } ; export const isInspectionWeekOfYearRange = ( range ) : range is InspectionWeekOfYearRange => { return range . type === InspectionTimeRangeType . WEEK_OF_YEAR ; } ; export const isInspectionWeekOfMonthRange = ( range ) : range is InspectionWeekOfMonthRange => { return range . type === InspectionTimeRangeType . WEEK_OF_MONTH ; } ; export const isInspectionHalfWeekRange = ( range ) : range is InspectionHalfWeekRange => { return range . type === InspectionTimeRangeType . HALF_WEEK ; } ; export const isInspectionDayOfMonthRange = ( range ) : range is InspectionDayOfMonthRange => { return range . type === InspectionTimeRangeType . DAY_OF_MONTH ; } ; export const isInspectionDayOfWeekRange = ( range ) : range is InspectionDayOfWeekRange => { return range . type === InspectionTimeRangeType . DAY_OF_WEEK ; } ; export const isInspectionDayKindRange = ( range ) : range is InspectionDayKindRange => { return range . type === InspectionTimeRangeType . DAY_KIND ; } ; export const isInspectionHourRange = ( range ) : range is InspectionHourRange => { return range . type === InspectionTimeRangeType . HOUR ; } ; export const isInspectionHourKindRange = ( range ) : range is InspectionHourKindRange => { return range . type === InspectionTimeRangeType . HOUR_KIND ; } ; export const isInspectionAmPmRange = ( range ) : range is InspectionAmPmRange => { return range . type === InspectionTimeRangeType . AM_PM ; } ;