import { Product } from '../../../models';
import {
  CheckboxField,
  DatetimeField,
  MultiLineTextField,
  MultipleSelectsField,
  SingleLineTextField,
  SingleSelectField,
  UrlField
} from '../AirtableFields';

import {
  ShopifyObjectAirtableFields
} from './ShopifyObjectAirtableFields';

export interface ProductAirtableFields extends ShopifyObjectAirtableFields<Product> {
  type: Product['type'];
  fields: {
    title: SingleLineTextField;
    createdAt: DatetimeField;
    description: SingleLineTextField;
    descriptionHtml: MultiLineTextField;
    featuredImage: UrlField;
    handle: SingleLineTextField;

    id: SingleLineTextField;
    legacyResourceId: SingleLineTextField;
    isGiftCard: CheckboxField;
    onlineStoreUrl: UrlField;
    productType: SingleLineTextField;
    publishedAt: DatetimeField;

    storefrontId: SingleLineTextField;
    tags: MultipleSelectsField;
    updatedAt: DatetimeField;
    vendor: SingleLineTextField;
    status: SingleSelectField;
    requiresSellingPlan: CheckboxField;
    'seo.title': SingleLineTextField;
    'seo.description': SingleLineTextField;

    'options.1': SingleLineTextField;
    'options.2': SingleLineTextField;
    'options.3': SingleLineTextField;
  };
};
