"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.specState = exports.getLoadedSpecs = exports.api40 = exports.api = exports.specs = void 0;

var _sdkCodegen = require("@looker/sdk-codegen");

var _state = require("../state");

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var specs = {
  '3.1': {
    key: '3.1',
    isDefault: false,
    status: 'current',
    specURL: 'https://self-signed.looker.com:19999/api/3.1/swagger.json',
    specContent: require('../../../../spec/Looker.3.1.oas.json'),
    version: '3.1'
  },
  '4.0': {
    key: '4.0',
    isDefault: true,
    status: 'experimental',
    specURL: 'https://self-signed.looker.com:19999/api/4.0/swagger.json',
    specContent: require('../../../../spec/Looker.4.0.oas.json'),
    version: '4.0'
  }
};
exports.specs = specs;

var api = _sdkCodegen.ApiModel.fromJson(specs['3.1'].specContent);

exports.api = api;

var api40 = _sdkCodegen.ApiModel.fromJson(specs['4.0'].specContent);

exports.api40 = api40;

var getLoadedSpecs = () => {
  var loadedSpecs = _objectSpread({}, specs);

  loadedSpecs['3.1'].api = api;
  loadedSpecs['4.0'].api = api40;
  return loadedSpecs;
};

exports.getLoadedSpecs = getLoadedSpecs;

var specState = _objectSpread(_objectSpread({}, _state.defaultSpecsState), {}, {
  specs: getLoadedSpecs()
});

exports.specState = specState;
//# sourceMappingURL=specs.js.map