"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var apolloCacheConfig_exports = {};
__export(apolloCacheConfig_exports, {
  cacheConfig: () => cacheConfig
});
module.exports = __toCommonJS(apolloCacheConfig_exports);
var import_client = require("@apollo/client");
var import_apollo_react_relay_duct_tape = require("@graphitation/apollo-react-relay-duct-tape");
var import_schema = require("./schema");
const { possibleTypes, dataIdFromNode } = (0, import_apollo_react_relay_duct_tape.getPossibleTypesAndDataIdFromNode)(import_schema.schema);
const cacheConfig = {
  possibleTypes,
  dataIdFromObject(responseObject, keyFieldsContext) {
    return dataIdFromNode(responseObject, keyFieldsContext) || (0, import_client.defaultDataIdFromObject)(responseObject, keyFieldsContext);
  },
  typePolicies: import_apollo_react_relay_duct_tape.typePoliciesWithGlobalObjectIdStoreKeys
};
