"use strict";
exports.id = 357;
exports.ids = [357];
exports.modules = {

/***/ 3357:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Hg": () => (/* binding */ useDatasetLazyQuery),
/* harmony export */   "gJ": () => (/* binding */ useEndpointsQuery),
/* harmony export */   "j0": () => (/* binding */ useEndpointLazyQuery)
/* harmony export */ });
/* unused harmony exports EndpointsDocument, useEndpointsLazyQuery, EndpointDocument, useEndpointQuery, DatasetDocument, useDatasetQuery */
/* harmony import */ var _apollo_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9114);
/* harmony import */ var _apollo_client__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_apollo_client__WEBPACK_IMPORTED_MODULE_0__);


const defaultOptions = {};
const EndpointsDocument = _apollo_client__WEBPACK_IMPORTED_MODULE_0__.gql`
    query Endpoints {
  endpoints {
    slug
    name
    description
    apiDocUrl
  }
}
    `;
/**
 * __useEndpointsQuery__
 *
 * To run a query within a React component, call `useEndpointsQuery` and pass it any options that fit your needs.
 * When your component renders, `useEndpointsQuery` 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 } = useEndpointsQuery({
 *   variables: {
 *   },
 * });
 */ function useEndpointsQuery(baseOptions) {
    const options = {
        ...defaultOptions,
        ...baseOptions
    };
    return _apollo_client__WEBPACK_IMPORTED_MODULE_0__.useQuery(EndpointsDocument, options);
}
function useEndpointsLazyQuery(baseOptions) {
    const options = {
        ...defaultOptions,
        ...baseOptions
    };
    return Apollo.useLazyQuery(EndpointsDocument, options);
}
const EndpointDocument = _apollo_client__WEBPACK_IMPORTED_MODULE_0__.gql`
    query Endpoint($slug: String) {
  endpoint(slug: $slug) {
    slug
    name
    description
    apiDocUrl
    parameters {
      name
      key
      type
      description
      required
    }
    columns {
      name
      type
      description
    }
  }
}
    `;
/**
 * __useEndpointQuery__
 *
 * To run a query within a React component, call `useEndpointQuery` and pass it any options that fit your needs.
 * When your component renders, `useEndpointQuery` 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 } = useEndpointQuery({
 *   variables: {
 *      slug: // value for 'slug'
 *   },
 * });
 */ function useEndpointQuery(baseOptions) {
    const options = {
        ...defaultOptions,
        ...baseOptions
    };
    return Apollo.useQuery(EndpointDocument, options);
}
function useEndpointLazyQuery(baseOptions) {
    const options = {
        ...defaultOptions,
        ...baseOptions
    };
    return _apollo_client__WEBPACK_IMPORTED_MODULE_0__.useLazyQuery(EndpointDocument, options);
}
const DatasetDocument = _apollo_client__WEBPACK_IMPORTED_MODULE_0__.gql`
    query Dataset($endpointSlug: String, $filter: JSON) {
  dataset(endpointSlug: $endpointSlug, filter: $filter) {
    data
    apiUrl
    csvDownloadUrl
    jsonDownloadUrl
    shareJsonUrl
    metadata {
      currentCount
      totalCount
    }
  }
}
    `;
/**
 * __useDatasetQuery__
 *
 * To run a query within a React component, call `useDatasetQuery` and pass it any options that fit your needs.
 * When your component renders, `useDatasetQuery` 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 } = useDatasetQuery({
 *   variables: {
 *      endpointSlug: // value for 'endpointSlug'
 *      filter: // value for 'filter'
 *   },
 * });
 */ function useDatasetQuery(baseOptions) {
    const options = {
        ...defaultOptions,
        ...baseOptions
    };
    return Apollo.useQuery(DatasetDocument, options);
}
function useDatasetLazyQuery(baseOptions) {
    const options = {
        ...defaultOptions,
        ...baseOptions
    };
    return _apollo_client__WEBPACK_IMPORTED_MODULE_0__.useLazyQuery(DatasetDocument, options);
}


/***/ })

};
;