@ludo.ninja/api-server-features
Version:
Visit [Pharos Production](https://pharosproduction.com) – the software development company specializing in high-load Web3 and DeFi projects. We deliver projects on time and within budget!
211 lines (210 loc) • 8.42 kB
JavaScript
import { gql } from '@apollo/client';
import * as Apollo from '@apollo/client';
const defaultOptions = {};
export var IFeatureType;
(function (IFeatureType) {
IFeatureType["AutoAirdropSubscription"] = "AUTO_AIRDROP_SUBSCRIPTION";
IFeatureType["BuyWithLudoXp"] = "BUY_WITH_LUDO_XP";
IFeatureType["HistoricCharts"] = "HISTORIC_CHARTS";
IFeatureType["NormalKpis"] = "NORMAL_KPIS";
IFeatureType["ProjectAlerts"] = "PROJECT_ALERTS";
IFeatureType["ProjectMonitors"] = "PROJECT_MONITORS";
})(IFeatureType || (IFeatureType = {}));
export const BuyFeaturePackForXpDocument = gql `
mutation buyFeaturePackForXp($featurePackId: String!) {
buyFeaturePackForXp(featurePackId: $featurePackId)
}
`;
/**
* __useBuyFeaturePackForXpMutation__
*
* To run a mutation, you first call `useBuyFeaturePackForXpMutation` within a React component and pass it any options that fit your needs.
* When your component renders, `useBuyFeaturePackForXpMutation` 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 [buyFeaturePackForXpMutation, { data, loading, error }] = useBuyFeaturePackForXpMutation({
* variables: {
* featurePackId: // value for 'featurePackId'
* },
* });
*/
export function useBuyFeaturePackForXpMutation(baseOptions) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useMutation(BuyFeaturePackForXpDocument, options);
}
export const BuyProjectAlertForXpDocument = gql `
mutation buyProjectAlertForXp {
buyProjectAlertForXp
}
`;
/**
* __useBuyProjectAlertForXpMutation__
*
* To run a mutation, you first call `useBuyProjectAlertForXpMutation` within a React component and pass it any options that fit your needs.
* When your component renders, `useBuyProjectAlertForXpMutation` 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 [buyProjectAlertForXpMutation, { data, loading, error }] = useBuyProjectAlertForXpMutation({
* variables: {
* },
* });
*/
export function useBuyProjectAlertForXpMutation(baseOptions) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useMutation(BuyProjectAlertForXpDocument, options);
}
export const BuyProjectMonitorForXpDocument = gql `
mutation buyProjectMonitorForXp {
buyProjectMonitorForXp
}
`;
/**
* __useBuyProjectMonitorForXpMutation__
*
* To run a mutation, you first call `useBuyProjectMonitorForXpMutation` within a React component and pass it any options that fit your needs.
* When your component renders, `useBuyProjectMonitorForXpMutation` 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 [buyProjectMonitorForXpMutation, { data, loading, error }] = useBuyProjectMonitorForXpMutation({
* variables: {
* },
* });
*/
export function useBuyProjectMonitorForXpMutation(baseOptions) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useMutation(BuyProjectMonitorForXpDocument, options);
}
export const FetchFeaturePacksDocument = gql `
query fetchFeaturePacks {
fetchFeaturePacks {
featurePackId
name
price
basic
daysPeriod
packedFeatures {
featurePackId
featureId
name
description
param
usageLimit
}
}
}
`;
/**
* __useFetchFeaturePacksQuery__
*
* To run a query within a React component, call `useFetchFeaturePacksQuery` and pass it any options that fit your needs.
* When your component renders, `useFetchFeaturePacksQuery` 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 } = useFetchFeaturePacksQuery({
* variables: {
* },
* });
*/
export function useFetchFeaturePacksQuery(baseOptions) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useQuery(FetchFeaturePacksDocument, options);
}
export function useFetchFeaturePacksLazyQuery(baseOptions) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useLazyQuery(FetchFeaturePacksDocument, options);
}
export function useFetchFeaturePacksSuspenseQuery(baseOptions) {
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
return Apollo.useSuspenseQuery(FetchFeaturePacksDocument, options);
}
export const FetchFeaturesDocument = gql `
query fetchFeatures {
fetchFeatures {
featureId
name
description
parameterized
}
}
`;
/**
* __useFetchFeaturesQuery__
*
* To run a query within a React component, call `useFetchFeaturesQuery` and pass it any options that fit your needs.
* When your component renders, `useFetchFeaturesQuery` 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 } = useFetchFeaturesQuery({
* variables: {
* },
* });
*/
export function useFetchFeaturesQuery(baseOptions) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useQuery(FetchFeaturesDocument, options);
}
export function useFetchFeaturesLazyQuery(baseOptions) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useLazyQuery(FetchFeaturesDocument, options);
}
export function useFetchFeaturesSuspenseQuery(baseOptions) {
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
return Apollo.useSuspenseQuery(FetchFeaturesDocument, options);
}
export const FetchUserFeatureUsageDocument = gql `
query fetchUserFeatureUsage($featureType: FeatureType!) {
fetchUserFeatureUsage(featureType: $featureType) {
userId
featureType
usageLimit
usages
activeUntil
}
}
`;
/**
* __useFetchUserFeatureUsageQuery__
*
* To run a query within a React component, call `useFetchUserFeatureUsageQuery` and pass it any options that fit your needs.
* When your component renders, `useFetchUserFeatureUsageQuery` 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 } = useFetchUserFeatureUsageQuery({
* variables: {
* featureType: // value for 'featureType'
* },
* });
*/
export function useFetchUserFeatureUsageQuery(baseOptions) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useQuery(FetchUserFeatureUsageDocument, options);
}
export function useFetchUserFeatureUsageLazyQuery(baseOptions) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useLazyQuery(FetchUserFeatureUsageDocument, options);
}
export function useFetchUserFeatureUsageSuspenseQuery(baseOptions) {
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
return Apollo.useSuspenseQuery(FetchUserFeatureUsageDocument, options);
}