import { SuggestionClickedAttributes } from '@spiffy-ai/commerce-api-client';

export const isApiSuggestionClickedAttributes = (
  data: unknown,
): data is SuggestionClickedAttributes =>
  data != null &&
  typeof data === 'object' &&
  'suggestion_id' in data &&
  typeof data.suggestion_id === 'string';
