@ludo.ninja/api 3.0.91 → 3.0.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/graphql_tools/__generated__/adminHost/schema.d.ts +1 -0
- package/build/graphql_tools/__generated__/identityHost/schema.d.ts +45 -54
- package/build/graphql_tools/__generated__/identityHost/schema.js +32 -49
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +42 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +51 -1
- package/build/graphql_tools/__generated__/searchHost/schema.d.ts +68 -0
- package/build/graphql_tools/__generated__/searchHost/schema.js +52 -1
- package/build/index.d.ts +53 -10
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +1 -0
- package/src/graphql_tools/__generated__/identityHost/schema.ts +55 -79
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +67 -0
- package/src/graphql_tools/__generated__/searchHost/schema.ts +88 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -147,7 +147,6 @@ export type IMutation = {
|
|
|
147
147
|
signInElrond: IIdentity;
|
|
148
148
|
signInFlow: IIdentity;
|
|
149
149
|
signInTon: IIdentity;
|
|
150
|
-
signInTonV2: IIdentity;
|
|
151
150
|
signInEthereum: IIdentity;
|
|
152
151
|
signInEthereumWeb3Auth: IIdentity;
|
|
153
152
|
addWalletMetamask: Scalars['Boolean'];
|
|
@@ -156,7 +155,6 @@ export type IMutation = {
|
|
|
156
155
|
addWalletElrond: Scalars['Boolean'];
|
|
157
156
|
addWalletFlow: Scalars['Boolean'];
|
|
158
157
|
addWalletTon: Scalars['Boolean'];
|
|
159
|
-
addWalletTonV2: Scalars['Boolean'];
|
|
160
158
|
removeWallet: Scalars['Boolean'];
|
|
161
159
|
setMainWallet: Scalars['Boolean'];
|
|
162
160
|
generateNewInviteCodes: Array<IUserInviteCode>;
|
|
@@ -212,11 +210,6 @@ export type IMutationSignInTonArgs = {
|
|
|
212
210
|
restore?: Maybe<Scalars['Boolean']>;
|
|
213
211
|
loginSource?: Maybe<ILoginSource>;
|
|
214
212
|
};
|
|
215
|
-
export type IMutationSignInTonV2Args = {
|
|
216
|
-
address: Scalars['String'];
|
|
217
|
-
restore?: Maybe<Scalars['Boolean']>;
|
|
218
|
-
loginSource?: Maybe<ILoginSource>;
|
|
219
|
-
};
|
|
220
213
|
export type IMutationSignInEthereumArgs = {
|
|
221
214
|
signInData: IEthereumSignInData;
|
|
222
215
|
loginSource?: Maybe<ILoginSource>;
|
|
@@ -251,9 +244,6 @@ export type IMutationAddWalletFlowArgs = {
|
|
|
251
244
|
export type IMutationAddWalletTonArgs = {
|
|
252
245
|
request: ICheckTonProofRequest;
|
|
253
246
|
};
|
|
254
|
-
export type IMutationAddWalletTonV2Args = {
|
|
255
|
-
address: Scalars['String'];
|
|
256
|
-
};
|
|
257
247
|
export type IMutationRemoveWalletArgs = {
|
|
258
248
|
blockchain: Scalars['String'];
|
|
259
249
|
address: Scalars['String'];
|
|
@@ -349,8 +339,10 @@ export type IProof = {
|
|
|
349
339
|
export type IQuery = {
|
|
350
340
|
getDummy: Scalars['String'];
|
|
351
341
|
fetchUserWallets: Array<Maybe<IWallet>>;
|
|
342
|
+
fetchExtendedUserWallets: Array<Maybe<IWallet>>;
|
|
352
343
|
fetchMultiversxAudit?: Maybe<IMultiversxAudit>;
|
|
353
344
|
fetchAggregatedMultiversxAudit?: Maybe<IMultiversxAudit>;
|
|
345
|
+
fetchIsLudoNftMintable: Scalars['Boolean'];
|
|
354
346
|
fetchInviteCode: IInviteCode;
|
|
355
347
|
fetchMyProfileV2: IMyProfileV2;
|
|
356
348
|
fetchProfile: IProfile;
|
|
@@ -360,12 +352,19 @@ export type IQuery = {
|
|
|
360
352
|
export type IQueryFetchUserWalletsArgs = {
|
|
361
353
|
userId: Scalars['ID'];
|
|
362
354
|
};
|
|
355
|
+
export type IQueryFetchExtendedUserWalletsArgs = {
|
|
356
|
+
userId: Scalars['ID'];
|
|
357
|
+
};
|
|
363
358
|
export type IQueryFetchMultiversxAuditArgs = {
|
|
364
359
|
wallet: Scalars['String'];
|
|
365
360
|
};
|
|
366
361
|
export type IQueryFetchAggregatedMultiversxAuditArgs = {
|
|
367
362
|
userId: Scalars['ID'];
|
|
368
363
|
};
|
|
364
|
+
export type IQueryFetchIsLudoNftMintableArgs = {
|
|
365
|
+
blockchain: Scalars['String'];
|
|
366
|
+
address: Scalars['String'];
|
|
367
|
+
};
|
|
369
368
|
export type IQueryFetchInviteCodeArgs = {
|
|
370
369
|
inviteCode: Scalars['String'];
|
|
371
370
|
};
|
|
@@ -631,7 +630,6 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
631
630
|
signInElrond?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInElrondArgs, 'signature' | 'address'>>;
|
|
632
631
|
signInFlow?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInFlowArgs, 'signature' | 'address'>>;
|
|
633
632
|
signInTon?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonArgs, 'request'>>;
|
|
634
|
-
signInTonV2?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonV2Args, 'address'>>;
|
|
635
633
|
signInEthereum?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInEthereumArgs, 'signInData'>>;
|
|
636
634
|
signInEthereumWeb3Auth?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInEthereumWeb3AuthArgs, 'signInData' | 'loginType'>>;
|
|
637
635
|
addWalletMetamask?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
|
|
@@ -640,7 +638,6 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
640
638
|
addWalletElrond?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletElrondArgs, 'signature' | 'address'>>;
|
|
641
639
|
addWalletFlow?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletFlowArgs, 'signature' | 'address'>>;
|
|
642
640
|
addWalletTon?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTonArgs, 'request'>>;
|
|
643
|
-
addWalletTonV2?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTonV2Args, 'address'>>;
|
|
644
641
|
removeWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveWalletArgs, 'blockchain' | 'address'>>;
|
|
645
642
|
setMainWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSetMainWalletArgs, 'blockchain' | 'address'>>;
|
|
646
643
|
generateNewInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType, RequireFields<IMutationGenerateNewInviteCodesArgs, 'codesNum'>>;
|
|
@@ -711,8 +708,10 @@ export type IProfileResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
711
708
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
712
709
|
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
713
710
|
fetchUserWallets?: Resolver<Array<Maybe<IResolversTypes['Wallet']>>, ParentType, ContextType, RequireFields<IQueryFetchUserWalletsArgs, 'userId'>>;
|
|
711
|
+
fetchExtendedUserWallets?: Resolver<Array<Maybe<IResolversTypes['Wallet']>>, ParentType, ContextType, RequireFields<IQueryFetchExtendedUserWalletsArgs, 'userId'>>;
|
|
714
712
|
fetchMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchMultiversxAuditArgs, 'wallet'>>;
|
|
715
713
|
fetchAggregatedMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchAggregatedMultiversxAuditArgs, 'userId'>>;
|
|
714
|
+
fetchIsLudoNftMintable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryFetchIsLudoNftMintableArgs, 'blockchain' | 'address'>>;
|
|
716
715
|
fetchInviteCode?: Resolver<IResolversTypes['InviteCode'], ParentType, ContextType, RequireFields<IQueryFetchInviteCodeArgs, 'inviteCode'>>;
|
|
717
716
|
fetchMyProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType>;
|
|
718
717
|
fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
|
|
@@ -966,19 +965,6 @@ export type ISignInTonMutation = {
|
|
|
966
965
|
};
|
|
967
966
|
});
|
|
968
967
|
};
|
|
969
|
-
export type ISignInTonV2MutationVariables = Exact<{
|
|
970
|
-
address: Scalars['String'];
|
|
971
|
-
restore?: Maybe<Scalars['Boolean']>;
|
|
972
|
-
loginSource?: Maybe<ILoginSource>;
|
|
973
|
-
}>;
|
|
974
|
-
export type ISignInTonV2Mutation = {
|
|
975
|
-
signInTonV2: (Pick<IIdentity, 'userId' | 'wallets' | 'newUser' | 'inviteCode' | 'role' | 'reftypeId' | 'reftypeName' | 'reftypeColor'> & {
|
|
976
|
-
tokens: {
|
|
977
|
-
portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>;
|
|
978
|
-
extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>;
|
|
979
|
-
};
|
|
980
|
-
});
|
|
981
|
-
};
|
|
982
968
|
export type IUpdateProfileMutationVariables = Exact<{
|
|
983
969
|
username?: Maybe<Scalars['String']>;
|
|
984
970
|
about?: Maybe<Scalars['String']>;
|
|
@@ -1026,6 +1012,11 @@ export type IFetchMyProfileV2Query = {
|
|
|
1026
1012
|
})>>>;
|
|
1027
1013
|
});
|
|
1028
1014
|
};
|
|
1015
|
+
export type IFetchIsLudoNftMintableQueryVariables = Exact<{
|
|
1016
|
+
blockchain: Scalars['String'];
|
|
1017
|
+
address: Scalars['String'];
|
|
1018
|
+
}>;
|
|
1019
|
+
export type IFetchIsLudoNftMintableQuery = Pick<IQuery, 'fetchIsLudoNftMintable'>;
|
|
1029
1020
|
export type IFetchProfileQueryVariables = Exact<{
|
|
1030
1021
|
userId: Scalars['ID'];
|
|
1031
1022
|
}>;
|
|
@@ -1661,35 +1652,6 @@ export declare function useSignInTonMutation(baseOptions?: Apollo.MutationHookOp
|
|
|
1661
1652
|
export type SignInTonMutationHookResult = ReturnType<typeof useSignInTonMutation>;
|
|
1662
1653
|
export type SignInTonMutationResult = Apollo.MutationResult<ISignInTonMutation>;
|
|
1663
1654
|
export type SignInTonMutationOptions = Apollo.BaseMutationOptions<ISignInTonMutation, ISignInTonMutationVariables>;
|
|
1664
|
-
export declare const SignInTonV2Document: Apollo.DocumentNode;
|
|
1665
|
-
export type ISignInTonV2MutationFn = Apollo.MutationFunction<ISignInTonV2Mutation, ISignInTonV2MutationVariables>;
|
|
1666
|
-
/**
|
|
1667
|
-
* __useSignInTonV2Mutation__
|
|
1668
|
-
*
|
|
1669
|
-
* To run a mutation, you first call `useSignInTonV2Mutation` within a React component and pass it any options that fit your needs.
|
|
1670
|
-
* When your component renders, `useSignInTonV2Mutation` returns a tuple that includes:
|
|
1671
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
1672
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
1673
|
-
*
|
|
1674
|
-
* @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;
|
|
1675
|
-
*
|
|
1676
|
-
* @example
|
|
1677
|
-
* const [signInTonV2Mutation, { data, loading, error }] = useSignInTonV2Mutation({
|
|
1678
|
-
* variables: {
|
|
1679
|
-
* address: // value for 'address'
|
|
1680
|
-
* restore: // value for 'restore'
|
|
1681
|
-
* loginSource: // value for 'loginSource'
|
|
1682
|
-
* },
|
|
1683
|
-
* });
|
|
1684
|
-
*/
|
|
1685
|
-
export declare function useSignInTonV2Mutation(baseOptions?: Apollo.MutationHookOptions<ISignInTonV2Mutation, ISignInTonV2MutationVariables>): Apollo.MutationTuple<ISignInTonV2Mutation, Exact<{
|
|
1686
|
-
address: string;
|
|
1687
|
-
restore?: Maybe<boolean> | undefined;
|
|
1688
|
-
loginSource?: Maybe<ILoginSource> | undefined;
|
|
1689
|
-
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1690
|
-
export type SignInTonV2MutationHookResult = ReturnType<typeof useSignInTonV2Mutation>;
|
|
1691
|
-
export type SignInTonV2MutationResult = Apollo.MutationResult<ISignInTonV2Mutation>;
|
|
1692
|
-
export type SignInTonV2MutationOptions = Apollo.BaseMutationOptions<ISignInTonV2Mutation, ISignInTonV2MutationVariables>;
|
|
1693
1655
|
export declare const UpdateProfileDocument: Apollo.DocumentNode;
|
|
1694
1656
|
export type IUpdateProfileMutationFn = Apollo.MutationFunction<IUpdateProfileMutation, IUpdateProfileMutationVariables>;
|
|
1695
1657
|
/**
|
|
@@ -1810,6 +1772,35 @@ export declare function useFetchMyProfileV2LazyQuery(baseOptions?: Apollo.LazyQu
|
|
|
1810
1772
|
export type FetchMyProfileV2QueryHookResult = ReturnType<typeof useFetchMyProfileV2Query>;
|
|
1811
1773
|
export type FetchMyProfileV2LazyQueryHookResult = ReturnType<typeof useFetchMyProfileV2LazyQuery>;
|
|
1812
1774
|
export type FetchMyProfileV2QueryResult = Apollo.QueryResult<IFetchMyProfileV2Query, IFetchMyProfileV2QueryVariables>;
|
|
1775
|
+
export declare const FetchIsLudoNftMintableDocument: Apollo.DocumentNode;
|
|
1776
|
+
/**
|
|
1777
|
+
* __useFetchIsLudoNftMintableQuery__
|
|
1778
|
+
*
|
|
1779
|
+
* To run a query within a React component, call `useFetchIsLudoNftMintableQuery` and pass it any options that fit your needs.
|
|
1780
|
+
* When your component renders, `useFetchIsLudoNftMintableQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1781
|
+
* you can use to render your UI.
|
|
1782
|
+
*
|
|
1783
|
+
* @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;
|
|
1784
|
+
*
|
|
1785
|
+
* @example
|
|
1786
|
+
* const { data, loading, error } = useFetchIsLudoNftMintableQuery({
|
|
1787
|
+
* variables: {
|
|
1788
|
+
* blockchain: // value for 'blockchain'
|
|
1789
|
+
* address: // value for 'address'
|
|
1790
|
+
* },
|
|
1791
|
+
* });
|
|
1792
|
+
*/
|
|
1793
|
+
export declare function useFetchIsLudoNftMintableQuery(baseOptions: Apollo.QueryHookOptions<IFetchIsLudoNftMintableQuery, IFetchIsLudoNftMintableQueryVariables>): Apollo.QueryResult<IFetchIsLudoNftMintableQuery, Exact<{
|
|
1794
|
+
blockchain: string;
|
|
1795
|
+
address: string;
|
|
1796
|
+
}>>;
|
|
1797
|
+
export declare function useFetchIsLudoNftMintableLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchIsLudoNftMintableQuery, IFetchIsLudoNftMintableQueryVariables>): Apollo.LazyQueryResultTuple<IFetchIsLudoNftMintableQuery, Exact<{
|
|
1798
|
+
blockchain: string;
|
|
1799
|
+
address: string;
|
|
1800
|
+
}>>;
|
|
1801
|
+
export type FetchIsLudoNftMintableQueryHookResult = ReturnType<typeof useFetchIsLudoNftMintableQuery>;
|
|
1802
|
+
export type FetchIsLudoNftMintableLazyQueryHookResult = ReturnType<typeof useFetchIsLudoNftMintableLazyQuery>;
|
|
1803
|
+
export type FetchIsLudoNftMintableQueryResult = Apollo.QueryResult<IFetchIsLudoNftMintableQuery, IFetchIsLudoNftMintableQueryVariables>;
|
|
1813
1804
|
export declare const FetchProfileDocument: Apollo.DocumentNode;
|
|
1814
1805
|
/**
|
|
1815
1806
|
* __useFetchProfileQuery__
|
|
@@ -23,8 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.
|
|
26
|
+
exports.useUpdateProfileMutation = exports.UpdateProfileDocument = exports.useSignInTonMutation = exports.SignInTonDocument = exports.useSignInTezosMutation = exports.SignInTezosDocument = exports.useSignInSolanaMutation = exports.SignInSolanaDocument = exports.useSignInMetamaskMutation = exports.SignInMetamaskDocument = exports.useSignInFlowMutation = exports.SignInFlowDocument = exports.useSignInElrondMutation = exports.SignInElrondDocument = exports.useSignInAdminMetamaskMutation = exports.SignInAdminMetamaskDocument = exports.useSetMainWalletMutation = exports.SetMainWalletDocument = exports.useSaveEmailOfJoinerMutation = exports.SaveEmailOfJoinerDocument = exports.useRemoveWalletMutation = exports.RemoveWalletDocument = exports.useUseInviteCodeMutation = exports.UseInviteCodeDocument = exports.useGenerateNewInviteCodesMutation = exports.GenerateNewInviteCodesDocument = exports.useCreateTonNonceMutation = exports.CreateTonNonceDocument = exports.useCreateNonceMutation = exports.CreateNonceDocument = exports.useCreateEvmNonceMutation = exports.CreateEvmNonceDocument = exports.useAddWalletTonMutation = exports.AddWalletTonDocument = exports.useAddWalletTezosMutation = exports.AddWalletTezosDocument = exports.useAddWalletSolanaMutation = exports.AddWalletSolanaDocument = exports.useAddWalletMetamaskMutation = exports.AddWalletMetamaskDocument = exports.useAddWalletFlowMutation = exports.AddWalletFlowDocument = exports.useAddWalletElrondMutation = exports.AddWalletElrondDocument = exports.useSignInEthereumWeb3AuthMutation = exports.SignInEthereumWeb3AuthDocument = exports.IRole = exports.IReftypeColor = exports.ILoginType = exports.ILoginSource = void 0;
|
|
27
|
+
exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.useFetchIsLudoNftMintableLazyQuery = exports.useFetchIsLudoNftMintableQuery = exports.FetchIsLudoNftMintableDocument = exports.useFetchMyProfileV2LazyQuery = exports.useFetchMyProfileV2Query = exports.FetchMyProfileV2Document = exports.useFetchMultiversXAuditLazyQuery = exports.useFetchMultiversXAuditQuery = exports.FetchMultiversXAuditDocument = exports.useFetchAggregatedMultiversxAuditLazyQuery = exports.useFetchAggregatedMultiversxAuditQuery = exports.FetchAggregatedMultiversxAuditDocument = void 0;
|
|
28
28
|
const client_1 = require("@apollo/client");
|
|
29
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
30
30
|
/** Please sync with ApplicationType.java */
|
|
@@ -861,53 +861,6 @@ function useSignInTonMutation(baseOptions) {
|
|
|
861
861
|
return Apollo.useMutation(exports.SignInTonDocument, baseOptions);
|
|
862
862
|
}
|
|
863
863
|
exports.useSignInTonMutation = useSignInTonMutation;
|
|
864
|
-
exports.SignInTonV2Document = (0, client_1.gql) `
|
|
865
|
-
mutation SignInTonV2($address: String!, $restore: Boolean, $loginSource: LoginSource) {
|
|
866
|
-
signInTonV2(address: $address, restore: $restore, loginSource: $loginSource) {
|
|
867
|
-
userId
|
|
868
|
-
wallets
|
|
869
|
-
tokens {
|
|
870
|
-
portalTokenPair {
|
|
871
|
-
authToken
|
|
872
|
-
refreshToken
|
|
873
|
-
}
|
|
874
|
-
extensionTokenPair {
|
|
875
|
-
authToken
|
|
876
|
-
refreshToken
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
newUser
|
|
880
|
-
inviteCode
|
|
881
|
-
role
|
|
882
|
-
reftypeId
|
|
883
|
-
reftypeName
|
|
884
|
-
reftypeColor
|
|
885
|
-
}
|
|
886
|
-
}
|
|
887
|
-
`;
|
|
888
|
-
/**
|
|
889
|
-
* __useSignInTonV2Mutation__
|
|
890
|
-
*
|
|
891
|
-
* To run a mutation, you first call `useSignInTonV2Mutation` within a React component and pass it any options that fit your needs.
|
|
892
|
-
* When your component renders, `useSignInTonV2Mutation` returns a tuple that includes:
|
|
893
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
894
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
895
|
-
*
|
|
896
|
-
* @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;
|
|
897
|
-
*
|
|
898
|
-
* @example
|
|
899
|
-
* const [signInTonV2Mutation, { data, loading, error }] = useSignInTonV2Mutation({
|
|
900
|
-
* variables: {
|
|
901
|
-
* address: // value for 'address'
|
|
902
|
-
* restore: // value for 'restore'
|
|
903
|
-
* loginSource: // value for 'loginSource'
|
|
904
|
-
* },
|
|
905
|
-
* });
|
|
906
|
-
*/
|
|
907
|
-
function useSignInTonV2Mutation(baseOptions) {
|
|
908
|
-
return Apollo.useMutation(exports.SignInTonV2Document, baseOptions);
|
|
909
|
-
}
|
|
910
|
-
exports.useSignInTonV2Mutation = useSignInTonV2Mutation;
|
|
911
864
|
exports.UpdateProfileDocument = (0, client_1.gql) `
|
|
912
865
|
mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean, $discordNickname: String, $discordServer: String, $telegramLink: String) {
|
|
913
866
|
updateProfile(
|
|
@@ -1120,6 +1073,36 @@ function useFetchMyProfileV2LazyQuery(baseOptions) {
|
|
|
1120
1073
|
return Apollo.useLazyQuery(exports.FetchMyProfileV2Document, baseOptions);
|
|
1121
1074
|
}
|
|
1122
1075
|
exports.useFetchMyProfileV2LazyQuery = useFetchMyProfileV2LazyQuery;
|
|
1076
|
+
exports.FetchIsLudoNftMintableDocument = (0, client_1.gql) `
|
|
1077
|
+
query FetchIsLudoNftMintable($blockchain: String!, $address: String!) {
|
|
1078
|
+
fetchIsLudoNftMintable(blockchain: $blockchain, address: $address)
|
|
1079
|
+
}
|
|
1080
|
+
`;
|
|
1081
|
+
/**
|
|
1082
|
+
* __useFetchIsLudoNftMintableQuery__
|
|
1083
|
+
*
|
|
1084
|
+
* To run a query within a React component, call `useFetchIsLudoNftMintableQuery` and pass it any options that fit your needs.
|
|
1085
|
+
* When your component renders, `useFetchIsLudoNftMintableQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1086
|
+
* you can use to render your UI.
|
|
1087
|
+
*
|
|
1088
|
+
* @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;
|
|
1089
|
+
*
|
|
1090
|
+
* @example
|
|
1091
|
+
* const { data, loading, error } = useFetchIsLudoNftMintableQuery({
|
|
1092
|
+
* variables: {
|
|
1093
|
+
* blockchain: // value for 'blockchain'
|
|
1094
|
+
* address: // value for 'address'
|
|
1095
|
+
* },
|
|
1096
|
+
* });
|
|
1097
|
+
*/
|
|
1098
|
+
function useFetchIsLudoNftMintableQuery(baseOptions) {
|
|
1099
|
+
return Apollo.useQuery(exports.FetchIsLudoNftMintableDocument, baseOptions);
|
|
1100
|
+
}
|
|
1101
|
+
exports.useFetchIsLudoNftMintableQuery = useFetchIsLudoNftMintableQuery;
|
|
1102
|
+
function useFetchIsLudoNftMintableLazyQuery(baseOptions) {
|
|
1103
|
+
return Apollo.useLazyQuery(exports.FetchIsLudoNftMintableDocument, baseOptions);
|
|
1104
|
+
}
|
|
1105
|
+
exports.useFetchIsLudoNftMintableLazyQuery = useFetchIsLudoNftMintableLazyQuery;
|
|
1123
1106
|
exports.FetchProfileDocument = (0, client_1.gql) `
|
|
1124
1107
|
query FetchProfile($userId: ID!) {
|
|
1125
1108
|
fetchProfile(userId: $userId) {
|
|
@@ -338,6 +338,7 @@ export type IQuery = {
|
|
|
338
338
|
fetchAirdropRegistrationsCsv: Scalars['String'];
|
|
339
339
|
fetchOpportunityBySlug: IOpportunityV2;
|
|
340
340
|
fetchProjectBySlug: IProject;
|
|
341
|
+
fetchProject?: Maybe<IProject>;
|
|
341
342
|
};
|
|
342
343
|
export type IQueryFetchBrandArgs = {
|
|
343
344
|
brandId: Scalars['ID'];
|
|
@@ -370,6 +371,10 @@ export type IQueryFetchOpportunityBySlugArgs = {
|
|
|
370
371
|
export type IQueryFetchProjectBySlugArgs = {
|
|
371
372
|
slug: Scalars['String'];
|
|
372
373
|
};
|
|
374
|
+
export type IQueryFetchProjectArgs = {
|
|
375
|
+
blockchain: Scalars['String'];
|
|
376
|
+
contract: Scalars['String'];
|
|
377
|
+
};
|
|
373
378
|
export declare enum IReactionType {
|
|
374
379
|
Like = "LIKE",
|
|
375
380
|
Dislike = "DISLIKE",
|
|
@@ -684,6 +689,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
684
689
|
fetchAirdropRegistrationsCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IQueryFetchAirdropRegistrationsCsvArgs, 'opportunityId'>>;
|
|
685
690
|
fetchOpportunityBySlug?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityBySlugArgs, 'slug'>>;
|
|
686
691
|
fetchProjectBySlug?: Resolver<IResolversTypes['Project'], ParentType, ContextType, RequireFields<IQueryFetchProjectBySlugArgs, 'slug'>>;
|
|
692
|
+
fetchProject?: Resolver<Maybe<IResolversTypes['Project']>, ParentType, ContextType, RequireFields<IQueryFetchProjectArgs, 'blockchain' | 'contract'>>;
|
|
687
693
|
};
|
|
688
694
|
export type IVotesGeolocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['VotesGeolocation'] = IResolversParentTypes['VotesGeolocation']> = {
|
|
689
695
|
country?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
@@ -812,6 +818,13 @@ export type IFetchProfileOpportunitiesQuery = {
|
|
|
812
818
|
eventOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'slug'>>>>;
|
|
813
819
|
};
|
|
814
820
|
};
|
|
821
|
+
export type IFetchProjectQueryVariables = Exact<{
|
|
822
|
+
blockchain: Scalars['String'];
|
|
823
|
+
contract: Scalars['String'];
|
|
824
|
+
}>;
|
|
825
|
+
export type IFetchProjectQuery = {
|
|
826
|
+
fetchProject?: Maybe<Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'website' | 'twitter' | 'type' | 'ludoRank' | 'investors' | 'holders' | 'volume' | 'marketCap' | 'liquidity' | 'price' | 'twitterFollowers' | 'twitterSentiment' | 'verified'>>;
|
|
827
|
+
};
|
|
815
828
|
export type IFetchProjectBySlugQueryVariables = Exact<{
|
|
816
829
|
slug: Scalars['String'];
|
|
817
830
|
}>;
|
|
@@ -1265,6 +1278,35 @@ export declare function useFetchProfileOpportunitiesLazyQuery(baseOptions?: Apol
|
|
|
1265
1278
|
export type FetchProfileOpportunitiesQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesQuery>;
|
|
1266
1279
|
export type FetchProfileOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesLazyQuery>;
|
|
1267
1280
|
export type FetchProfileOpportunitiesQueryResult = Apollo.QueryResult<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>;
|
|
1281
|
+
export declare const FetchProjectDocument: Apollo.DocumentNode;
|
|
1282
|
+
/**
|
|
1283
|
+
* __useFetchProjectQuery__
|
|
1284
|
+
*
|
|
1285
|
+
* To run a query within a React component, call `useFetchProjectQuery` and pass it any options that fit your needs.
|
|
1286
|
+
* When your component renders, `useFetchProjectQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1287
|
+
* you can use to render your UI.
|
|
1288
|
+
*
|
|
1289
|
+
* @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;
|
|
1290
|
+
*
|
|
1291
|
+
* @example
|
|
1292
|
+
* const { data, loading, error } = useFetchProjectQuery({
|
|
1293
|
+
* variables: {
|
|
1294
|
+
* blockchain: // value for 'blockchain'
|
|
1295
|
+
* contract: // value for 'contract'
|
|
1296
|
+
* },
|
|
1297
|
+
* });
|
|
1298
|
+
*/
|
|
1299
|
+
export declare function useFetchProjectQuery(baseOptions: Apollo.QueryHookOptions<IFetchProjectQuery, IFetchProjectQueryVariables>): Apollo.QueryResult<IFetchProjectQuery, Exact<{
|
|
1300
|
+
blockchain: string;
|
|
1301
|
+
contract: string;
|
|
1302
|
+
}>>;
|
|
1303
|
+
export declare function useFetchProjectLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectQuery, IFetchProjectQueryVariables>): Apollo.LazyQueryResultTuple<IFetchProjectQuery, Exact<{
|
|
1304
|
+
blockchain: string;
|
|
1305
|
+
contract: string;
|
|
1306
|
+
}>>;
|
|
1307
|
+
export type FetchProjectQueryHookResult = ReturnType<typeof useFetchProjectQuery>;
|
|
1308
|
+
export type FetchProjectLazyQueryHookResult = ReturnType<typeof useFetchProjectLazyQuery>;
|
|
1309
|
+
export type FetchProjectQueryResult = Apollo.QueryResult<IFetchProjectQuery, IFetchProjectQueryVariables>;
|
|
1268
1310
|
export declare const FetchProjectBySlugDocument: Apollo.DocumentNode;
|
|
1269
1311
|
/**
|
|
1270
1312
|
* __useFetchProjectBySlugQuery__
|
|
@@ -23,7 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.useFetchProjectBySlugQuery = exports.FetchProjectBySlugDocument = exports.useFetchProjectLazyQuery = exports.useFetchProjectQuery = exports.FetchProjectDocument = exports.useFetchProfileOpportunitiesLazyQuery = exports.useFetchProfileOpportunitiesQuery = exports.FetchProfileOpportunitiesDocument = exports.useFetchOpportunityBySlugLazyQuery = exports.useFetchOpportunityBySlugQuery = exports.FetchOpportunityBySlugDocument = exports.useFetchOpportunityLazyQuery = exports.useFetchOpportunityQuery = exports.FetchOpportunityDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchBrandBySlugLazyQuery = exports.useFetchBrandBySlugQuery = exports.FetchBrandBySlugDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useFetchOpportunitiesByIdsLazyQuery = exports.useFetchOpportunitiesByIdsQuery = exports.FetchOpportunitiesByIdsDocument = exports.useFetchAirdropRegistrationsCsvLazyQuery = exports.useFetchAirdropRegistrationsCsvQuery = exports.FetchAirdropRegistrationsCsvDocument = exports.useRegisterNewProjectMutation = exports.RegisterNewProjectDocument = exports.useRegisterForAirdrop2Mutation = exports.RegisterForAirdrop2Document = exports.useRegisterForAirdropMutation = exports.RegisterForAirdropDocument = exports.useReactOnProjectMutation = exports.ReactOnProjectDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useCopyOpportunityShareLinkMutation = exports.CopyOpportunityShareLinkDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = exports.IReactionType = exports.IProjectRegistrationStatus = exports.IOpportunityType = void 0;
|
|
27
|
+
exports.useFetchProjectBySlugLazyQuery = void 0;
|
|
27
28
|
const client_1 = require("@apollo/client");
|
|
28
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
29
30
|
var IOpportunityType;
|
|
@@ -939,6 +940,55 @@ function useFetchProfileOpportunitiesLazyQuery(baseOptions) {
|
|
|
939
940
|
return Apollo.useLazyQuery(exports.FetchProfileOpportunitiesDocument, baseOptions);
|
|
940
941
|
}
|
|
941
942
|
exports.useFetchProfileOpportunitiesLazyQuery = useFetchProfileOpportunitiesLazyQuery;
|
|
943
|
+
exports.FetchProjectDocument = (0, client_1.gql) `
|
|
944
|
+
query FetchProject($blockchain: String!, $contract: String!) {
|
|
945
|
+
fetchProject(blockchain: $blockchain, contract: $contract) {
|
|
946
|
+
blockchain
|
|
947
|
+
contract
|
|
948
|
+
name
|
|
949
|
+
slug
|
|
950
|
+
symbol
|
|
951
|
+
website
|
|
952
|
+
twitter
|
|
953
|
+
type
|
|
954
|
+
ludoRank
|
|
955
|
+
investors
|
|
956
|
+
holders
|
|
957
|
+
volume
|
|
958
|
+
marketCap
|
|
959
|
+
liquidity
|
|
960
|
+
price
|
|
961
|
+
twitterFollowers
|
|
962
|
+
twitterSentiment
|
|
963
|
+
verified
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
`;
|
|
967
|
+
/**
|
|
968
|
+
* __useFetchProjectQuery__
|
|
969
|
+
*
|
|
970
|
+
* To run a query within a React component, call `useFetchProjectQuery` and pass it any options that fit your needs.
|
|
971
|
+
* When your component renders, `useFetchProjectQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
972
|
+
* you can use to render your UI.
|
|
973
|
+
*
|
|
974
|
+
* @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;
|
|
975
|
+
*
|
|
976
|
+
* @example
|
|
977
|
+
* const { data, loading, error } = useFetchProjectQuery({
|
|
978
|
+
* variables: {
|
|
979
|
+
* blockchain: // value for 'blockchain'
|
|
980
|
+
* contract: // value for 'contract'
|
|
981
|
+
* },
|
|
982
|
+
* });
|
|
983
|
+
*/
|
|
984
|
+
function useFetchProjectQuery(baseOptions) {
|
|
985
|
+
return Apollo.useQuery(exports.FetchProjectDocument, baseOptions);
|
|
986
|
+
}
|
|
987
|
+
exports.useFetchProjectQuery = useFetchProjectQuery;
|
|
988
|
+
function useFetchProjectLazyQuery(baseOptions) {
|
|
989
|
+
return Apollo.useLazyQuery(exports.FetchProjectDocument, baseOptions);
|
|
990
|
+
}
|
|
991
|
+
exports.useFetchProjectLazyQuery = useFetchProjectLazyQuery;
|
|
942
992
|
exports.FetchProjectBySlugDocument = (0, client_1.gql) `
|
|
943
993
|
query FetchProjectBySlug($slug: String!) {
|
|
944
994
|
fetchProjectBySlug(slug: $slug) {
|
|
@@ -335,6 +335,9 @@ export declare enum IProjectType {
|
|
|
335
335
|
GameFi = "GAME_FI",
|
|
336
336
|
DeFi = "DE_FI"
|
|
337
337
|
}
|
|
338
|
+
export type IProjectsFilterInput = {
|
|
339
|
+
blockchain?: Maybe<Scalars['String']>;
|
|
340
|
+
};
|
|
338
341
|
export type IProjectsLeaderboardFilterInput = {
|
|
339
342
|
type?: Maybe<Scalars['String']>;
|
|
340
343
|
};
|
|
@@ -348,6 +351,12 @@ export type IProjectsPage = {
|
|
|
348
351
|
projects: Array<IProject>;
|
|
349
352
|
nextPage?: Maybe<IPage>;
|
|
350
353
|
};
|
|
354
|
+
export type IProjectsSortInput = {
|
|
355
|
+
sortByLudoRank?: Maybe<ISort>;
|
|
356
|
+
sortByLudoRankHourDifference?: Maybe<ISort>;
|
|
357
|
+
sortByLudoRankDayDifference?: Maybe<ISort>;
|
|
358
|
+
sortByLudoRankWeekDifference?: Maybe<ISort>;
|
|
359
|
+
};
|
|
351
360
|
export type IQuery = {
|
|
352
361
|
getDummy: Scalars['String'];
|
|
353
362
|
fetchUserPortfolio: Array<Maybe<ICurrencyAmountPair>>;
|
|
@@ -379,6 +388,7 @@ export type IQuery = {
|
|
|
379
388
|
fetchUserReferralsInfoCsv: Scalars['String'];
|
|
380
389
|
fetchProjectsLeaderboard: IProjectsPage;
|
|
381
390
|
fetchProjectsByTerm: Array<IProject>;
|
|
391
|
+
fetchProjectsPage: IProjectsPage;
|
|
382
392
|
fetchProjectsSlugs: Array<Scalars['String']>;
|
|
383
393
|
};
|
|
384
394
|
export type IQueryFetchUserPortfolioArgs = {
|
|
@@ -483,6 +493,12 @@ export type IQueryFetchProjectsByTermArgs = {
|
|
|
483
493
|
searchInput: Scalars['String'];
|
|
484
494
|
pageSize: Scalars['Int'];
|
|
485
495
|
};
|
|
496
|
+
export type IQueryFetchProjectsPageArgs = {
|
|
497
|
+
term?: Maybe<Scalars['String']>;
|
|
498
|
+
filter: IProjectsFilterInput;
|
|
499
|
+
sort: IProjectsSortInput;
|
|
500
|
+
page: IPageInput;
|
|
501
|
+
};
|
|
486
502
|
export declare enum IReftypeColor {
|
|
487
503
|
Red = "RED",
|
|
488
504
|
Green = "GREEN",
|
|
@@ -615,9 +631,11 @@ export type IResolversTypes = {
|
|
|
615
631
|
ProfilePage: ResolverTypeWrapper<IProfilePage>;
|
|
616
632
|
Project: ResolverTypeWrapper<IProject>;
|
|
617
633
|
ProjectType: IProjectType;
|
|
634
|
+
ProjectsFilterInput: IProjectsFilterInput;
|
|
618
635
|
ProjectsLeaderboardFilterInput: IProjectsLeaderboardFilterInput;
|
|
619
636
|
ProjectsLeaderboardSortInput: IProjectsLeaderboardSortInput;
|
|
620
637
|
ProjectsPage: ResolverTypeWrapper<IProjectsPage>;
|
|
638
|
+
ProjectsSortInput: IProjectsSortInput;
|
|
621
639
|
Query: ResolverTypeWrapper<{}>;
|
|
622
640
|
ReftypeColor: IReftypeColor;
|
|
623
641
|
Sort: ISort;
|
|
@@ -667,9 +685,11 @@ export type IResolversParentTypes = {
|
|
|
667
685
|
Profile: IProfile;
|
|
668
686
|
ProfilePage: IProfilePage;
|
|
669
687
|
Project: IProject;
|
|
688
|
+
ProjectsFilterInput: IProjectsFilterInput;
|
|
670
689
|
ProjectsLeaderboardFilterInput: IProjectsLeaderboardFilterInput;
|
|
671
690
|
ProjectsLeaderboardSortInput: IProjectsLeaderboardSortInput;
|
|
672
691
|
ProjectsPage: IProjectsPage;
|
|
692
|
+
ProjectsSortInput: IProjectsSortInput;
|
|
673
693
|
Query: {};
|
|
674
694
|
Sort: ISort;
|
|
675
695
|
Tier: ITier;
|
|
@@ -1002,6 +1022,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1002
1022
|
fetchUserReferralsInfoCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1003
1023
|
fetchProjectsLeaderboard?: Resolver<IResolversTypes['ProjectsPage'], ParentType, ContextType, RequireFields<IQueryFetchProjectsLeaderboardArgs, 'filter' | 'sort' | 'page'>>;
|
|
1004
1024
|
fetchProjectsByTerm?: Resolver<Array<IResolversTypes['Project']>, ParentType, ContextType, RequireFields<IQueryFetchProjectsByTermArgs, 'searchInput' | 'pageSize'>>;
|
|
1025
|
+
fetchProjectsPage?: Resolver<IResolversTypes['ProjectsPage'], ParentType, ContextType, RequireFields<IQueryFetchProjectsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1005
1026
|
fetchProjectsSlugs?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1006
1027
|
};
|
|
1007
1028
|
export type ITierResolvers<ContextType = any, ParentType extends IResolversParentTypes['Tier'] = IResolversParentTypes['Tier']> = {
|
|
@@ -1278,6 +1299,18 @@ export type IFetchProjectsLeaderboardQuery = {
|
|
|
1278
1299
|
nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements' | 'lastNum'>>;
|
|
1279
1300
|
};
|
|
1280
1301
|
};
|
|
1302
|
+
export type IFetchProjectsPageQueryVariables = Exact<{
|
|
1303
|
+
term?: Maybe<Scalars['String']>;
|
|
1304
|
+
filter: IProjectsFilterInput;
|
|
1305
|
+
sort: IProjectsSortInput;
|
|
1306
|
+
page: IPageInput;
|
|
1307
|
+
}>;
|
|
1308
|
+
export type IFetchProjectsPageQuery = {
|
|
1309
|
+
fetchProjectsPage: {
|
|
1310
|
+
projects: Array<Pick<IProject, 'id' | 'name' | 'slug' | 'type' | 'ludoRank' | 'ludoRankHourDifference' | 'ludoRankDayDifference' | 'ludoRankWeekDifference' | 'price'>>;
|
|
1311
|
+
nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements' | 'lastNum'>>;
|
|
1312
|
+
};
|
|
1313
|
+
};
|
|
1281
1314
|
export type IFetchProjectsSlugsQueryVariables = Exact<{
|
|
1282
1315
|
[key: string]: never;
|
|
1283
1316
|
}>;
|
|
@@ -1857,6 +1890,41 @@ export declare function useFetchProjectsLeaderboardLazyQuery(baseOptions?: Apoll
|
|
|
1857
1890
|
export type FetchProjectsLeaderboardQueryHookResult = ReturnType<typeof useFetchProjectsLeaderboardQuery>;
|
|
1858
1891
|
export type FetchProjectsLeaderboardLazyQueryHookResult = ReturnType<typeof useFetchProjectsLeaderboardLazyQuery>;
|
|
1859
1892
|
export type FetchProjectsLeaderboardQueryResult = Apollo.QueryResult<IFetchProjectsLeaderboardQuery, IFetchProjectsLeaderboardQueryVariables>;
|
|
1893
|
+
export declare const FetchProjectsPageDocument: Apollo.DocumentNode;
|
|
1894
|
+
/**
|
|
1895
|
+
* __useFetchProjectsPageQuery__
|
|
1896
|
+
*
|
|
1897
|
+
* To run a query within a React component, call `useFetchProjectsPageQuery` and pass it any options that fit your needs.
|
|
1898
|
+
* When your component renders, `useFetchProjectsPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1899
|
+
* you can use to render your UI.
|
|
1900
|
+
*
|
|
1901
|
+
* @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;
|
|
1902
|
+
*
|
|
1903
|
+
* @example
|
|
1904
|
+
* const { data, loading, error } = useFetchProjectsPageQuery({
|
|
1905
|
+
* variables: {
|
|
1906
|
+
* term: // value for 'term'
|
|
1907
|
+
* filter: // value for 'filter'
|
|
1908
|
+
* sort: // value for 'sort'
|
|
1909
|
+
* page: // value for 'page'
|
|
1910
|
+
* },
|
|
1911
|
+
* });
|
|
1912
|
+
*/
|
|
1913
|
+
export declare function useFetchProjectsPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchProjectsPageQuery, IFetchProjectsPageQueryVariables>): Apollo.QueryResult<IFetchProjectsPageQuery, Exact<{
|
|
1914
|
+
term?: Maybe<string> | undefined;
|
|
1915
|
+
filter: IProjectsFilterInput;
|
|
1916
|
+
sort: IProjectsSortInput;
|
|
1917
|
+
page: IPageInput;
|
|
1918
|
+
}>>;
|
|
1919
|
+
export declare function useFetchProjectsPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectsPageQuery, IFetchProjectsPageQueryVariables>): Apollo.LazyQueryResultTuple<IFetchProjectsPageQuery, Exact<{
|
|
1920
|
+
term?: Maybe<string> | undefined;
|
|
1921
|
+
filter: IProjectsFilterInput;
|
|
1922
|
+
sort: IProjectsSortInput;
|
|
1923
|
+
page: IPageInput;
|
|
1924
|
+
}>>;
|
|
1925
|
+
export type FetchProjectsPageQueryHookResult = ReturnType<typeof useFetchProjectsPageQuery>;
|
|
1926
|
+
export type FetchProjectsPageLazyQueryHookResult = ReturnType<typeof useFetchProjectsPageLazyQuery>;
|
|
1927
|
+
export type FetchProjectsPageQueryResult = Apollo.QueryResult<IFetchProjectsPageQuery, IFetchProjectsPageQueryVariables>;
|
|
1860
1928
|
export declare const FetchProjectsSlugsDocument: Apollo.DocumentNode;
|
|
1861
1929
|
/**
|
|
1862
1930
|
* __useFetchProjectsSlugsQuery__
|