"use strict";

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

var _graphql = require("./api/graphql");

var _auth = require("./auth/auth");

var _callback = require("./auth/callback");

var _activateCharge = require("./auth/activate-charge");

var _uninstall = require("./webhook/uninstall");

var _shopRedact = require("./webhook/shop-redact");

var _customerRedact = require("./webhook/customer-redact");

var _customersDataRequest = require("./webhook/customers-data-request");

var App = _interopRequireWildcard(require("./helpers/app"));

var Utils = _interopRequireWildcard(require("./helpers/utils"));

var Config = _interopRequireWildcard(require("./helpers/config"));

var Shopify = _interopRequireWildcard(require("./helpers/shopify"));

var Firebase = _interopRequireWildcard(require("./helpers/firebase"));

function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

const ReactifyFunctions = {
  App: { ...App
  },
  Utils: { ...Utils
  },
  Config: { ...Config
  },
  Shopify: {
    getShopifyApi: Shopify.getShopifyApi,
    formatShopifyHeaders: Shopify.formatShopifyHeaders,
    queryShopifyBulk: Shopify.queryShopifyBulk,
    pollShopifyBulk: Shopify.pollShopifyBulk,
    checkShopifyBulkStatus: Shopify.checkShopifyBulkStatus
  },
  Firebase: {
    getFirebase: Firebase.getFirebase,
    getFirebaseRef: Firebase.getFirebaseRef,
    getFirebaseDoc: Firebase.getFirebaseDoc
  },
  Functions: {
    graphql: _graphql.graphql,
    auth: _auth.auth,
    callback: _callback.callback,
    activateCharge: _activateCharge.activateCharge,
    webhookUninstall: _uninstall.webhookUninstall,
    webhookShopRedact: _shopRedact.webhookShopRedact,
    webhookCustomerRedact: _customerRedact.webhookCustomerRedact,
    webhookCustomersDataRequest: _customersDataRequest.webhookCustomersDataRequest
  }
};
exports.ReactifyFunctions = ReactifyFunctions;
//# sourceMappingURL=index.js.map