@ludo.ninja/api 3.0.4 → 3.0.6

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.
@@ -14,6 +14,8 @@ export type Scalars = {
14
14
  Boolean: boolean;
15
15
  Int: number;
16
16
  Float: number;
17
+ /** A JSON scalar */
18
+ JSON: any;
17
19
  /** A 64-bit signed integer */
18
20
  Long: any;
19
21
  };
@@ -55,6 +57,12 @@ export type IDomain = {
55
57
  value?: Maybe<Scalars['String']>;
56
58
  };
57
59
 
60
+ export type IEthereumSignInData = {
61
+ address: Scalars['String'];
62
+ signature: Scalars['String'];
63
+ restore: Scalars['Boolean'];
64
+ };
65
+
58
66
  export type IFollower = {
59
67
  userId: Scalars['ID'];
60
68
  username?: Maybe<Scalars['String']>;
@@ -112,6 +120,19 @@ export type IInviteCodeUser = {
112
120
  };
113
121
 
114
122
 
123
+ /** Please sync with LoginType.java */
124
+ export enum ILoginType {
125
+ Google = 'GOOGLE',
126
+ X = 'X',
127
+ Discord = 'DISCORD',
128
+ Facebook = 'FACEBOOK',
129
+ Linkedin = 'LINKEDIN',
130
+ Reddit = 'REDDIT',
131
+ Email = 'EMAIL',
132
+ PhoneNumber = 'PHONE_NUMBER'
133
+ }
134
+
135
+
115
136
  /** noinspection SpellCheckingInspection */
116
137
  export type IMultiversxAudit = {
117
138
  delegated?: Maybe<Scalars['Float']>;
@@ -134,12 +155,15 @@ export type IMutation = {
134
155
  signInFlow: IIdentity;
135
156
  signInTon: IIdentity;
136
157
  signInTonV2: IIdentity;
158
+ signInEthereum: IIdentity;
159
+ signInEthereumWeb3Auth: IIdentity;
137
160
  addWalletMetamask: Scalars['Boolean'];
138
161
  addWalletTezos: Scalars['Boolean'];
139
162
  addWalletSolana: Scalars['Boolean'];
140
163
  addWalletElrond: Scalars['Boolean'];
141
164
  addWalletFlow: Scalars['Boolean'];
142
165
  addWalletTon: Scalars['Boolean'];
166
+ addWalletTonV2: Scalars['Boolean'];
143
167
  removeWallet: Scalars['Boolean'];
144
168
  setMainWallet: Scalars['Boolean'];
145
169
  generateNewInviteCodes: Array<IUserInviteCode>;
@@ -213,6 +237,18 @@ export type IMutationSignInTonV2Args = {
213
237
  };
214
238
 
215
239
 
240
+ export type IMutationSignInEthereumArgs = {
241
+ signInData: IEthereumSignInData;
242
+ };
243
+
244
+
245
+ export type IMutationSignInEthereumWeb3AuthArgs = {
246
+ signInData: IEthereumSignInData;
247
+ loginType: ILoginType;
248
+ additionalMeta?: Maybe<Scalars['JSON']>;
249
+ };
250
+
251
+
216
252
  export type IMutationAddWalletMetamaskArgs = {
217
253
  signature: Scalars['String'];
218
254
  address: Scalars['String'];
@@ -249,6 +285,11 @@ export type IMutationAddWalletTonArgs = {
249
285
  };
250
286
 
251
287
 
288
+ export type IMutationAddWalletTonV2Args = {
289
+ address: Scalars['String'];
290
+ };
291
+
292
+
252
293
  export type IMutationRemoveWalletArgs = {
253
294
  blockchain: Scalars['String'];
254
295
  address: Scalars['String'];
@@ -537,15 +578,18 @@ export type IResolversTypes = {
537
578
  AuditNFTBalance: ResolverTypeWrapper<IAuditNftBalance>;
538
579
  CheckTonProofRequest: ICheckTonProofRequest;
539
580
  Domain: IDomain;
581
+ EthereumSignInData: IEthereumSignInData;
582
+ Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
540
583
  Follower: ResolverTypeWrapper<IFollower>;
541
584
  ID: ResolverTypeWrapper<Scalars['ID']>;
542
- Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
543
585
  FollowingStatus: ResolverTypeWrapper<IFollowingStatus>;
544
586
  Identity: ResolverTypeWrapper<IIdentity>;
545
587
  InputProfile: IInputProfile;
546
588
  InputSocial: IInputSocial;
547
589
  InviteCode: ResolverTypeWrapper<IInviteCode>;
548
590
  InviteCodeUser: ResolverTypeWrapper<IInviteCodeUser>;
591
+ JSON: ResolverTypeWrapper<Scalars['JSON']>;
592
+ LoginType: ILoginType;
549
593
  Long: ResolverTypeWrapper<Scalars['Long']>;
550
594
  MultiversxAudit: ResolverTypeWrapper<IMultiversxAudit>;
551
595
  Mutation: ResolverTypeWrapper<{}>;
@@ -572,15 +616,17 @@ export type IResolversParentTypes = {
572
616
  AuditNFTBalance: IAuditNftBalance;
573
617
  CheckTonProofRequest: ICheckTonProofRequest;
574
618
  Domain: IDomain;
619
+ EthereumSignInData: IEthereumSignInData;
620
+ Boolean: Scalars['Boolean'];
575
621
  Follower: IFollower;
576
622
  ID: Scalars['ID'];
577
- Boolean: Scalars['Boolean'];
578
623
  FollowingStatus: IFollowingStatus;
579
624
  Identity: IIdentity;
580
625
  InputProfile: IInputProfile;
581
626
  InputSocial: IInputSocial;
582
627
  InviteCode: IInviteCode;
583
628
  InviteCodeUser: IInviteCodeUser;
629
+ JSON: Scalars['JSON'];
584
630
  Long: Scalars['Long'];
585
631
  MultiversxAudit: IMultiversxAudit;
586
632
  Mutation: {};
@@ -694,6 +740,10 @@ export type IInviteCodeUserResolvers<ContextType = any, ParentType extends IReso
694
740
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
695
741
  };
696
742
 
743
+ export interface IJsonScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['JSON'], any> {
744
+ name: 'JSON';
745
+ }
746
+
697
747
  export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
698
748
  name: 'Long';
699
749
  }
@@ -720,12 +770,15 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
720
770
  signInFlow?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInFlowArgs, 'signature' | 'address'>>;
721
771
  signInTon?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonArgs, 'request'>>;
722
772
  signInTonV2?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonV2Args, 'address'>>;
773
+ signInEthereum?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInEthereumArgs, 'signInData'>>;
774
+ signInEthereumWeb3Auth?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInEthereumWeb3AuthArgs, 'signInData' | 'loginType'>>;
723
775
  addWalletMetamask?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
724
776
  addWalletTezos?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTezosArgs, 'signature' | 'pubkey'>>;
725
777
  addWalletSolana?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletSolanaArgs, 'signature' | 'pubkey'>>;
726
778
  addWalletElrond?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletElrondArgs, 'signature' | 'address'>>;
727
779
  addWalletFlow?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletFlowArgs, 'signature' | 'address'>>;
728
780
  addWalletTon?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTonArgs, 'request'>>;
781
+ addWalletTonV2?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTonV2Args, 'address'>>;
729
782
  removeWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveWalletArgs, 'blockchain' | 'address'>>;
730
783
  setMainWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSetMainWalletArgs, 'blockchain' | 'address'>>;
731
784
  generateNewInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType, RequireFields<IMutationGenerateNewInviteCodesArgs, 'codesNum'>>;
@@ -857,6 +910,7 @@ export type IResolvers<ContextType = any> = {
857
910
  Identity?: IIdentityResolvers<ContextType>;
858
911
  InviteCode?: IInviteCodeResolvers<ContextType>;
859
912
  InviteCodeUser?: IInviteCodeUserResolvers<ContextType>;
913
+ JSON?: GraphQLScalarType;
860
914
  Long?: GraphQLScalarType;
861
915
  MultiversxAudit?: IMultiversxAuditResolvers<ContextType>;
862
916
  Mutation?: IMutationResolvers<ContextType>;
@@ -878,6 +932,18 @@ export type IDirectiveResolvers<ContextType = any> = {
878
932
  oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
879
933
  };
880
934
 
935
+ export type ISignInEthereumWeb3AuthMutationVariables = Exact<{
936
+ signInData: IEthereumSignInData;
937
+ loginType: ILoginType;
938
+ additionalMeta?: Maybe<Scalars['JSON']>;
939
+ }>;
940
+
941
+
942
+ export type ISignInEthereumWeb3AuthMutation = { signInEthereumWeb3Auth: (
943
+ Pick<IIdentity, 'userId' | 'wallets' | 'newUser' | 'inviteCode' | 'role' | 'reftypeId' | 'reftypeName' | 'reftypeColor'>
944
+ & { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
945
+ ) };
946
+
881
947
  export type IAddWalletElrondMutationVariables = Exact<{
882
948
  signature: Scalars['String'];
883
949
  address: Scalars['String'];
@@ -1146,6 +1212,61 @@ export type IFetchUserWalletsQueryVariables = Exact<{
1146
1212
  export type IFetchUserWalletsQuery = { fetchUserWallets: Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>> };
1147
1213
 
1148
1214
 
1215
+ export const SignInEthereumWeb3AuthDocument = gql`
1216
+ mutation signInEthereumWeb3Auth($signInData: EthereumSignInData!, $loginType: LoginType!, $additionalMeta: JSON) {
1217
+ signInEthereumWeb3Auth(
1218
+ signInData: $signInData
1219
+ loginType: $loginType
1220
+ additionalMeta: $additionalMeta
1221
+ ) {
1222
+ userId
1223
+ wallets
1224
+ tokens {
1225
+ portalTokenPair {
1226
+ authToken
1227
+ refreshToken
1228
+ }
1229
+ extensionTokenPair {
1230
+ authToken
1231
+ refreshToken
1232
+ }
1233
+ }
1234
+ newUser
1235
+ inviteCode
1236
+ role
1237
+ reftypeId
1238
+ reftypeName
1239
+ reftypeColor
1240
+ }
1241
+ }
1242
+ `;
1243
+ export type ISignInEthereumWeb3AuthMutationFn = Apollo.MutationFunction<ISignInEthereumWeb3AuthMutation, ISignInEthereumWeb3AuthMutationVariables>;
1244
+
1245
+ /**
1246
+ * __useSignInEthereumWeb3AuthMutation__
1247
+ *
1248
+ * To run a mutation, you first call `useSignInEthereumWeb3AuthMutation` within a React component and pass it any options that fit your needs.
1249
+ * When your component renders, `useSignInEthereumWeb3AuthMutation` returns a tuple that includes:
1250
+ * - A mutate function that you can call at any time to execute the mutation
1251
+ * - An object with fields that represent the current status of the mutation's execution
1252
+ *
1253
+ * @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;
1254
+ *
1255
+ * @example
1256
+ * const [signInEthereumWeb3AuthMutation, { data, loading, error }] = useSignInEthereumWeb3AuthMutation({
1257
+ * variables: {
1258
+ * signInData: // value for 'signInData'
1259
+ * loginType: // value for 'loginType'
1260
+ * additionalMeta: // value for 'additionalMeta'
1261
+ * },
1262
+ * });
1263
+ */
1264
+ export function useSignInEthereumWeb3AuthMutation(baseOptions?: Apollo.MutationHookOptions<ISignInEthereumWeb3AuthMutation, ISignInEthereumWeb3AuthMutationVariables>) {
1265
+ return Apollo.useMutation<ISignInEthereumWeb3AuthMutation, ISignInEthereumWeb3AuthMutationVariables>(SignInEthereumWeb3AuthDocument, baseOptions);
1266
+ }
1267
+ export type SignInEthereumWeb3AuthMutationHookResult = ReturnType<typeof useSignInEthereumWeb3AuthMutation>;
1268
+ export type SignInEthereumWeb3AuthMutationResult = Apollo.MutationResult<ISignInEthereumWeb3AuthMutation>;
1269
+ export type SignInEthereumWeb3AuthMutationOptions = Apollo.BaseMutationOptions<ISignInEthereumWeb3AuthMutation, ISignInEthereumWeb3AuthMutationVariables>;
1149
1270
  export const AddWalletElrondDocument = gql`
1150
1271
  mutation AddWalletElrond($signature: String!, $address: String!) {
1151
1272
  addWalletElrond(signature: $signature, address: $address)
@@ -288,6 +288,7 @@ export type IQuery = {
288
288
  findUserCreations: ICreationsPage;
289
289
  findProfilesByName: IProfilePage;
290
290
  fetchUserReferralsInfoPage: IUserReferralsInfoPage;
291
+ fetchUserReferralsInfoCsv: Scalars['String'];
291
292
  };
292
293
 
293
294
 
@@ -865,6 +866,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
865
866
  findUserCreations?: Resolver<IResolversTypes['CreationsPage'], ParentType, ContextType, RequireFields<IQueryFindUserCreationsArgs, 'ownerId' | 'input'>>;
866
867
  findProfilesByName?: Resolver<IResolversTypes['ProfilePage'], ParentType, ContextType, RequireFields<IQueryFindProfilesByNameArgs, 'name'>>;
867
868
  fetchUserReferralsInfoPage?: Resolver<IResolversTypes['UserReferralsInfoPage'], ParentType, ContextType, RequireFields<IQueryFetchUserReferralsInfoPageArgs, 'filter' | 'sort' | 'page'>>;
869
+ fetchUserReferralsInfoCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
868
870
  };
869
871
 
870
872
  export type ITopEntitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['TopEntitiesPage'] = IResolversParentTypes['TopEntitiesPage']> = {
@@ -1057,6 +1059,11 @@ export type IFetchUserPortfolioQueryVariables = Exact<{
1057
1059
 
1058
1060
  export type IFetchUserPortfolioQuery = { fetchUserPortfolio: Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>> };
1059
1061
 
1062
+ export type IFetchUserReferralsInfoCsvQueryVariables = Exact<{ [key: string]: never; }>;
1063
+
1064
+
1065
+ export type IFetchUserReferralsInfoCsvQuery = Pick<IQuery, 'fetchUserReferralsInfoCsv'>;
1066
+
1060
1067
  export type IFetchUserReferralsInfoPageQueryVariables = Exact<{
1061
1068
  filter: IUserReferralsInfoFilterInput;
1062
1069
  sort: IUserReferralsInfoSortInput;
@@ -2128,6 +2135,36 @@ export function useFetchUserPortfolioLazyQuery(baseOptions?: Apollo.LazyQueryHoo
2128
2135
  export type FetchUserPortfolioQueryHookResult = ReturnType<typeof useFetchUserPortfolioQuery>;
2129
2136
  export type FetchUserPortfolioLazyQueryHookResult = ReturnType<typeof useFetchUserPortfolioLazyQuery>;
2130
2137
  export type FetchUserPortfolioQueryResult = Apollo.QueryResult<IFetchUserPortfolioQuery, IFetchUserPortfolioQueryVariables>;
2138
+ export const FetchUserReferralsInfoCsvDocument = gql`
2139
+ query FetchUserReferralsInfoCsv {
2140
+ fetchUserReferralsInfoCsv
2141
+ }
2142
+ `;
2143
+
2144
+ /**
2145
+ * __useFetchUserReferralsInfoCsvQuery__
2146
+ *
2147
+ * To run a query within a React component, call `useFetchUserReferralsInfoCsvQuery` and pass it any options that fit your needs.
2148
+ * When your component renders, `useFetchUserReferralsInfoCsvQuery` returns an object from Apollo Client that contains loading, error, and data properties
2149
+ * you can use to render your UI.
2150
+ *
2151
+ * @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;
2152
+ *
2153
+ * @example
2154
+ * const { data, loading, error } = useFetchUserReferralsInfoCsvQuery({
2155
+ * variables: {
2156
+ * },
2157
+ * });
2158
+ */
2159
+ export function useFetchUserReferralsInfoCsvQuery(baseOptions?: Apollo.QueryHookOptions<IFetchUserReferralsInfoCsvQuery, IFetchUserReferralsInfoCsvQueryVariables>) {
2160
+ return Apollo.useQuery<IFetchUserReferralsInfoCsvQuery, IFetchUserReferralsInfoCsvQueryVariables>(FetchUserReferralsInfoCsvDocument, baseOptions);
2161
+ }
2162
+ export function useFetchUserReferralsInfoCsvLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchUserReferralsInfoCsvQuery, IFetchUserReferralsInfoCsvQueryVariables>) {
2163
+ return Apollo.useLazyQuery<IFetchUserReferralsInfoCsvQuery, IFetchUserReferralsInfoCsvQueryVariables>(FetchUserReferralsInfoCsvDocument, baseOptions);
2164
+ }
2165
+ export type FetchUserReferralsInfoCsvQueryHookResult = ReturnType<typeof useFetchUserReferralsInfoCsvQuery>;
2166
+ export type FetchUserReferralsInfoCsvLazyQueryHookResult = ReturnType<typeof useFetchUserReferralsInfoCsvLazyQuery>;
2167
+ export type FetchUserReferralsInfoCsvQueryResult = Apollo.QueryResult<IFetchUserReferralsInfoCsvQuery, IFetchUserReferralsInfoCsvQueryVariables>;
2131
2168
  export const FetchUserReferralsInfoPageDocument = gql`
2132
2169
  query FetchUserReferralsInfoPage($filter: UserReferralsInfoFilterInput!, $sort: UserReferralsInfoSortInput!, $page: PageInput!) {
2133
2170
  fetchUserReferralsInfoPage(filter: $filter, sort: $sort, page: $page) {