"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.useIsWhitelistedLazyQuery = exports.useIsWhitelistedQuery = exports.IsWhitelistedDocument = exports.useOptInMutation = exports.OptInDocument = exports.useServerScyAprLazyQuery = exports.useServerScyAprQuery = exports.ServerScyAprDocument = exports.useServerHealthLazyQuery = exports.useServerHealthQuery = exports.ServerHealthDocument = void 0;
var client_1 = require("@apollo/client");
var Apollo = __importStar(require("@apollo/client"));
var defaultOptions = {};
exports.ServerHealthDocument = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  query serverHealth {\n    healthData {\n      id\n      harvestUpdatedAt\n      harvest\n      chain\n      address\n      type\n      symbol\n      strategy\n      rebalanceUpdatedAt\n      rebalanceOffsetUpdatedAt\n      rebalanceTriggeredAt\n      rebalanceOffset\n      rebalance\n      loanHealthUpdatedAt\n      loanHealth\n      lastRebalance\n      lastHarvest\n      riskAssetPrice\n      capacity\n      shareOfLp\n      borrowRate0\n      borrowRate1\n    }\n  }\n"], ["\n  query serverHealth {\n    healthData {\n      id\n      harvestUpdatedAt\n      harvest\n      chain\n      address\n      type\n      symbol\n      strategy\n      rebalanceUpdatedAt\n      rebalanceOffsetUpdatedAt\n      rebalanceTriggeredAt\n      rebalanceOffset\n      rebalance\n      loanHealthUpdatedAt\n      loanHealth\n      lastRebalance\n      lastHarvest\n      riskAssetPrice\n      capacity\n      shareOfLp\n      borrowRate0\n      borrowRate1\n    }\n  }\n"])));
/**
 * __useServerHealthQuery__
 *
 * To run a query within a React component, call `useServerHealthQuery` and pass it any options that fit your needs.
 * When your component renders, `useServerHealthQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useServerHealthQuery({
 *   variables: {
 *   },
 * });
 */
function useServerHealthQuery(baseOptions) {
    var options = __assign(__assign({}, defaultOptions), baseOptions);
    return Apollo.useQuery(exports.ServerHealthDocument, options);
}
exports.useServerHealthQuery = useServerHealthQuery;
function useServerHealthLazyQuery(baseOptions) {
    var options = __assign(__assign({}, defaultOptions), baseOptions);
    return Apollo.useLazyQuery(exports.ServerHealthDocument, options);
}
exports.useServerHealthLazyQuery = useServerHealthLazyQuery;
exports.ServerScyAprDocument = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n  query serverScyApr($id: String!) {\n    aprData(id: $id) {\n      id\n      aprAllTime\n      aprDaily\n      aprThreeDay\n      aprWeekly\n      tvl\n    }\n  }\n"], ["\n  query serverScyApr($id: String!) {\n    aprData(id: $id) {\n      id\n      aprAllTime\n      aprDaily\n      aprThreeDay\n      aprWeekly\n      tvl\n    }\n  }\n"])));
/**
 * __useServerScyAprQuery__
 *
 * To run a query within a React component, call `useServerScyAprQuery` and pass it any options that fit your needs.
 * When your component renders, `useServerScyAprQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useServerScyAprQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
function useServerScyAprQuery(baseOptions) {
    var options = __assign(__assign({}, defaultOptions), baseOptions);
    return Apollo.useQuery(exports.ServerScyAprDocument, options);
}
exports.useServerScyAprQuery = useServerScyAprQuery;
function useServerScyAprLazyQuery(baseOptions) {
    var options = __assign(__assign({}, defaultOptions), baseOptions);
    return Apollo.useLazyQuery(exports.ServerScyAprDocument, options);
}
exports.useServerScyAprLazyQuery = useServerScyAprLazyQuery;
exports.OptInDocument = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n  mutation optIn($data: WlInput!) {\n    optIn(data: $data) {\n      success\n    }\n  }\n"], ["\n  mutation optIn($data: WlInput!) {\n    optIn(data: $data) {\n      success\n    }\n  }\n"])));
/**
 * __useOptInMutation__
 *
 * To run a mutation, you first call `useOptInMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useOptInMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [optInMutation, { data, loading, error }] = useOptInMutation({
 *   variables: {
 *      data: // value for 'data'
 *   },
 * });
 */
function useOptInMutation(baseOptions) {
    var options = __assign(__assign({}, defaultOptions), baseOptions);
    return Apollo.useMutation(exports.OptInDocument, options);
}
exports.useOptInMutation = useOptInMutation;
exports.IsWhitelistedDocument = (0, client_1.gql)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n  query isWhitelisted($address: String!) {\n    isWhitelisted(address: $address)\n  }\n"], ["\n  query isWhitelisted($address: String!) {\n    isWhitelisted(address: $address)\n  }\n"])));
/**
 * __useIsWhitelistedQuery__
 *
 * To run a query within a React component, call `useIsWhitelistedQuery` and pass it any options that fit your needs.
 * When your component renders, `useIsWhitelistedQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useIsWhitelistedQuery({
 *   variables: {
 *      address: // value for 'address'
 *   },
 * });
 */
function useIsWhitelistedQuery(baseOptions) {
    var options = __assign(__assign({}, defaultOptions), baseOptions);
    return Apollo.useQuery(exports.IsWhitelistedDocument, options);
}
exports.useIsWhitelistedQuery = useIsWhitelistedQuery;
function useIsWhitelistedLazyQuery(baseOptions) {
    var options = __assign(__assign({}, defaultOptions), baseOptions);
    return Apollo.useLazyQuery(exports.IsWhitelistedDocument, options);
}
exports.useIsWhitelistedLazyQuery = useIsWhitelistedLazyQuery;
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
//# sourceMappingURL=serverTypes.js.map