"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.SHOPIFY_BULK_QUERY_STATUS = exports.SHOPIFY_BULK_QUERY = void 0;

const SHOPIFY_BULK_QUERY = query => `
  mutation {
    bulkOperationRunQuery(
      query: """
      {
        ${query}
      }
      """
    ) {
      bulkOperation {
        id
        status
      }
      userErrors {
        field
        message
      }
    }
  }
`;

exports.SHOPIFY_BULK_QUERY = SHOPIFY_BULK_QUERY;
const SHOPIFY_BULK_QUERY_STATUS = `
  query {
    currentBulkOperation {
      id
      status
      errorCode
      createdAt
      completedAt
      objectCount
      fileSize
      url
      partialDataUrl
    }
  }
`;
exports.SHOPIFY_BULK_QUERY_STATUS = SHOPIFY_BULK_QUERY_STATUS;
//# sourceMappingURL=graphql.js.map