import gql from 'graphql-tag';

export default gql`
  type AirtableToShopifySync implements Model {
    # Model
    id: ID!
    created_at: Date!
    updated_at: Date!

    # Props
    airtable_record_ids: AirtableRecordIds!
    base_id: String!
    table_id: String!
    account_id: String!

    # Related
    table: Table!
    records(status: SyncToShopifyStatus!): [AT_Record!]!
  }

  type AirtableRecordIds {
    provided: [String!]!
    skipped: [String!]!
    new: [String!]!
    syncable: [String!]!
  }
`;
