import {
  ShopifyObject
} from '../../../models/shopify';
import { AirtableField } from '../AirtableFields';

export type ShopifyObjectAirtableFields<SO extends ShopifyObject> = {
  type: SO['type'];

  /**
   * Some optional fields will be null. e.g. product_variants.product is an optional field since
   * it will only be populated if there is a related products table in the base.sync_config.
   */
  fields: Record<keyof SO['props'], AirtableField | null>;
};