@ludo.ninja/api 2.9.4 → 2.9.5

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.
@@ -86,6 +86,8 @@ export type IInputSocial = {
86
86
  twitter?: Maybe<Scalars['String']>;
87
87
  instagram?: Maybe<Scalars['String']>;
88
88
  website?: Maybe<Scalars['String']>;
89
+ discordNickname?: Maybe<Scalars['String']>;
90
+ discordServer?: Maybe<Scalars['String']>;
89
91
  };
90
92
  export type IInviteCode = {
91
93
  inviteCode: Scalars['String'];
@@ -296,6 +298,7 @@ export type IQuery = {
296
298
  fetchInviteCode: IInviteCode;
297
299
  fetchMyProfileV2: IMyProfileV2;
298
300
  fetchProfile: IProfile;
301
+ fetchProfileV2: IMyProfileV2;
299
302
  fetchFollowingStatus: IFollowingStatus;
300
303
  fetchFollowingStatuses: Array<Maybe<IFollowingStatus>>;
301
304
  };
@@ -314,6 +317,9 @@ export type IQueryFetchInviteCodeArgs = {
314
317
  export type IQueryFetchProfileArgs = {
315
318
  userId: Scalars['ID'];
316
319
  };
320
+ export type IQueryFetchProfileV2Args = {
321
+ userId: Scalars['ID'];
322
+ };
317
323
  export type IQueryFetchFollowingStatusArgs = {
318
324
  userId: Scalars['ID'];
319
325
  };
@@ -342,6 +348,8 @@ export type ISocial = {
342
348
  twitter?: Maybe<Scalars['String']>;
343
349
  instagram?: Maybe<Scalars['String']>;
344
350
  website?: Maybe<Scalars['String']>;
351
+ discordNickname?: Maybe<Scalars['String']>;
352
+ discordServer?: Maybe<Scalars['String']>;
345
353
  };
346
354
  export type ITokenPair = {
347
355
  authToken: Scalars['String'];
@@ -641,6 +649,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
641
649
  fetchInviteCode?: Resolver<IResolversTypes['InviteCode'], ParentType, ContextType, RequireFields<IQueryFetchInviteCodeArgs, 'inviteCode'>>;
642
650
  fetchMyProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType>;
643
651
  fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
652
+ fetchProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType, RequireFields<IQueryFetchProfileV2Args, 'userId'>>;
644
653
  fetchFollowingStatus?: Resolver<IResolversTypes['FollowingStatus'], ParentType, ContextType, RequireFields<IQueryFetchFollowingStatusArgs, 'userId'>>;
645
654
  fetchFollowingStatuses?: Resolver<Array<Maybe<IResolversTypes['FollowingStatus']>>, ParentType, ContextType, RequireFields<IQueryFetchFollowingStatusesArgs, 'userIds'>>;
646
655
  };
@@ -649,6 +658,8 @@ export type ISocialResolvers<ContextType = any, ParentType extends IResolversPar
649
658
  twitter?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
650
659
  instagram?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
651
660
  website?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
661
+ discordNickname?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
662
+ discordServer?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
652
663
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
653
664
  };
654
665
  export type ITokenPairResolvers<ContextType = any, ParentType extends IResolversParentTypes['TokenPair'] = IResolversParentTypes['TokenPair']> = {
@@ -870,6 +881,8 @@ export type IUpdateProfileMutationVariables = Exact<{
870
881
  instagram?: Maybe<Scalars['String']>;
871
882
  website?: Maybe<Scalars['String']>;
872
883
  showNsfw?: Maybe<Scalars['Boolean']>;
884
+ discordNickname?: Maybe<Scalars['String']>;
885
+ discordServer?: Maybe<Scalars['String']>;
873
886
  }>;
874
887
  export type IUpdateProfileMutation = Pick<IMutation, 'updateProfile'>;
875
888
  export type IFetchAggregatedMultiversxAuditQueryVariables = Exact<{
@@ -899,7 +912,7 @@ export type IFetchMyProfileV2QueryVariables = Exact<{
899
912
  }>;
900
913
  export type IFetchMyProfileV2Query = {
901
914
  fetchMyProfileV2: (Pick<IMyProfileV2, 'userId' | 'username' | 'about' | 'userpic' | 'following' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'rank' | 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps' | 'referralTypeId' | 'referralTypeName' | 'referralTypeColor'> & {
902
- social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website'>>;
915
+ social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordServer' | 'discordNickname'>>;
903
916
  wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId'>>>>;
904
917
  inviteCodes?: Maybe<Array<Maybe<(Pick<IInviteCode, 'inviteCode' | 'isUsed' | 'maxUsagesLimit' | 'codeUsersNum'> & {
905
918
  codeUsers: Array<Pick<IInviteCodeUser, 'inviteeId' | 'usedAt'>>;
@@ -911,7 +924,7 @@ export type IFetchProfileQueryVariables = Exact<{
911
924
  }>;
912
925
  export type IFetchProfileQuery = {
913
926
  fetchProfile: (Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'following' | 'followings' | 'followers' | 'rank' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'referralTypeId' | 'referralTypeName' | 'referralTypeColor'> & {
914
- social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website'>>;
927
+ social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordNickname' | 'discordServer'>>;
915
928
  wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId'>>>>;
916
929
  });
917
930
  };
@@ -1510,6 +1523,8 @@ export type IUpdateProfileMutationFn = Apollo.MutationFunction<IUpdateProfileMut
1510
1523
  * instagram: // value for 'instagram'
1511
1524
  * website: // value for 'website'
1512
1525
  * showNsfw: // value for 'showNsfw'
1526
+ * discordNickname: // value for 'discordNickname'
1527
+ * discordServer: // value for 'discordServer'
1513
1528
  * },
1514
1529
  * });
1515
1530
  */
@@ -1521,6 +1536,8 @@ export declare function useUpdateProfileMutation(baseOptions?: Apollo.MutationHo
1521
1536
  instagram?: Maybe<string> | undefined;
1522
1537
  website?: Maybe<string> | undefined;
1523
1538
  showNsfw?: Maybe<boolean> | undefined;
1539
+ discordNickname?: Maybe<string> | undefined;
1540
+ discordServer?: Maybe<string> | undefined;
1524
1541
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1525
1542
  export type UpdateProfileMutationHookResult = ReturnType<typeof useUpdateProfileMutation>;
1526
1543
  export type UpdateProfileMutationResult = Apollo.MutationResult<IUpdateProfileMutation>;
@@ -751,9 +751,9 @@ function useSignInTonMutation(baseOptions) {
751
751
  }
752
752
  exports.useSignInTonMutation = useSignInTonMutation;
753
753
  exports.UpdateProfileDocument = (0, client_1.gql) `
754
- mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean) {
754
+ mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean, $discordNickname: String, $discordServer: String) {
755
755
  updateProfile(
756
- profile: {username: $username, about: $about, showNsfw: $showNsfw, social: {facebook: $facebook, twitter: $twitter, instagram: $instagram, website: $website}}
756
+ profile: {username: $username, about: $about, showNsfw: $showNsfw, social: {facebook: $facebook, twitter: $twitter, instagram: $instagram, website: $website, discordNickname: $discordNickname, discordServer: $discordServer}}
757
757
  )
758
758
  }
759
759
  `;
@@ -777,6 +777,8 @@ exports.UpdateProfileDocument = (0, client_1.gql) `
777
777
  * instagram: // value for 'instagram'
778
778
  * website: // value for 'website'
779
779
  * showNsfw: // value for 'showNsfw'
780
+ * discordNickname: // value for 'discordNickname'
781
+ * discordServer: // value for 'discordServer'
780
782
  * },
781
783
  * });
782
784
  */
@@ -895,6 +897,8 @@ exports.FetchMyProfileV2Document = (0, client_1.gql) `
895
897
  twitter
896
898
  instagram
897
899
  website
900
+ discordServer
901
+ discordNickname
898
902
  }
899
903
  views
900
904
  createdAt
@@ -970,6 +974,8 @@ exports.FetchProfileDocument = (0, client_1.gql) `
970
974
  twitter
971
975
  instagram
972
976
  website
977
+ discordNickname
978
+ discordServer
973
979
  }
974
980
  views
975
981
  createdAt
package/build/index.d.ts CHANGED
@@ -753,6 +753,8 @@ declare const schema: {
753
753
  instagram?: identitySchema.Maybe<string> | undefined;
754
754
  website?: identitySchema.Maybe<string> | undefined;
755
755
  showNsfw?: identitySchema.Maybe<boolean> | undefined;
756
+ discordNickname?: identitySchema.Maybe<string> | undefined;
757
+ discordServer?: identitySchema.Maybe<string> | undefined;
756
758
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<identitySchema.IUpdateProfileMutation, identitySchema.Exact<{
757
759
  username?: identitySchema.Maybe<string> | undefined;
758
760
  about?: identitySchema.Maybe<string> | undefined;
@@ -761,6 +763,8 @@ declare const schema: {
761
763
  instagram?: identitySchema.Maybe<string> | undefined;
762
764
  website?: identitySchema.Maybe<string> | undefined;
763
765
  showNsfw?: identitySchema.Maybe<boolean> | undefined;
766
+ discordNickname?: identitySchema.Maybe<string> | undefined;
767
+ discordServer?: identitySchema.Maybe<string> | undefined;
764
768
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
765
769
  useFetchAggregatedMultiversxAuditQuery(baseOptions: import("@apollo/client").QueryHookOptions<identitySchema.IFetchAggregatedMultiversxAuditQuery, identitySchema.Exact<{
766
770
  userId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "2.9.4",
3
+ "version": "2.9.5",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -93,6 +93,8 @@ export type IInputSocial = {
93
93
  twitter?: Maybe<Scalars['String']>;
94
94
  instagram?: Maybe<Scalars['String']>;
95
95
  website?: Maybe<Scalars['String']>;
96
+ discordNickname?: Maybe<Scalars['String']>;
97
+ discordServer?: Maybe<Scalars['String']>;
96
98
  };
97
99
 
98
100
  export type IInviteCode = {
@@ -356,6 +358,7 @@ export type IQuery = {
356
358
  fetchInviteCode: IInviteCode;
357
359
  fetchMyProfileV2: IMyProfileV2;
358
360
  fetchProfile: IProfile;
361
+ fetchProfileV2: IMyProfileV2;
359
362
  fetchFollowingStatus: IFollowingStatus;
360
363
  fetchFollowingStatuses: Array<Maybe<IFollowingStatus>>;
361
364
  };
@@ -386,6 +389,11 @@ export type IQueryFetchProfileArgs = {
386
389
  };
387
390
 
388
391
 
392
+ export type IQueryFetchProfileV2Args = {
393
+ userId: Scalars['ID'];
394
+ };
395
+
396
+
389
397
  export type IQueryFetchFollowingStatusArgs = {
390
398
  userId: Scalars['ID'];
391
399
  };
@@ -419,6 +427,8 @@ export type ISocial = {
419
427
  twitter?: Maybe<Scalars['String']>;
420
428
  instagram?: Maybe<Scalars['String']>;
421
429
  website?: Maybe<Scalars['String']>;
430
+ discordNickname?: Maybe<Scalars['String']>;
431
+ discordServer?: Maybe<Scalars['String']>;
422
432
  };
423
433
 
424
434
  export type ITokenPair = {
@@ -789,6 +799,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
789
799
  fetchInviteCode?: Resolver<IResolversTypes['InviteCode'], ParentType, ContextType, RequireFields<IQueryFetchInviteCodeArgs, 'inviteCode'>>;
790
800
  fetchMyProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType>;
791
801
  fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
802
+ fetchProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType, RequireFields<IQueryFetchProfileV2Args, 'userId'>>;
792
803
  fetchFollowingStatus?: Resolver<IResolversTypes['FollowingStatus'], ParentType, ContextType, RequireFields<IQueryFetchFollowingStatusArgs, 'userId'>>;
793
804
  fetchFollowingStatuses?: Resolver<Array<Maybe<IResolversTypes['FollowingStatus']>>, ParentType, ContextType, RequireFields<IQueryFetchFollowingStatusesArgs, 'userIds'>>;
794
805
  };
@@ -798,6 +809,8 @@ export type ISocialResolvers<ContextType = any, ParentType extends IResolversPar
798
809
  twitter?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
799
810
  instagram?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
800
811
  website?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
812
+ discordNickname?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
813
+ discordServer?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
801
814
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
802
815
  };
803
816
 
@@ -1055,6 +1068,8 @@ export type IUpdateProfileMutationVariables = Exact<{
1055
1068
  instagram?: Maybe<Scalars['String']>;
1056
1069
  website?: Maybe<Scalars['String']>;
1057
1070
  showNsfw?: Maybe<Scalars['Boolean']>;
1071
+ discordNickname?: Maybe<Scalars['String']>;
1072
+ discordServer?: Maybe<Scalars['String']>;
1058
1073
  }>;
1059
1074
 
1060
1075
 
@@ -1091,7 +1106,7 @@ export type IFetchMyProfileV2QueryVariables = Exact<{ [key: string]: never; }>;
1091
1106
 
1092
1107
  export type IFetchMyProfileV2Query = { fetchMyProfileV2: (
1093
1108
  Pick<IMyProfileV2, 'userId' | 'username' | 'about' | 'userpic' | 'following' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'rank' | 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps' | 'referralTypeId' | 'referralTypeName' | 'referralTypeColor'>
1094
- & { social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website'>>, wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId'>>>>, inviteCodes?: Maybe<Array<Maybe<(
1109
+ & { social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordServer' | 'discordNickname'>>, wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId'>>>>, inviteCodes?: Maybe<Array<Maybe<(
1095
1110
  Pick<IInviteCode, 'inviteCode' | 'isUsed' | 'maxUsagesLimit' | 'codeUsersNum'>
1096
1111
  & { codeUsers: Array<Pick<IInviteCodeUser, 'inviteeId' | 'usedAt'>> }
1097
1112
  )>>> }
@@ -1104,7 +1119,7 @@ export type IFetchProfileQueryVariables = Exact<{
1104
1119
 
1105
1120
  export type IFetchProfileQuery = { fetchProfile: (
1106
1121
  Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'following' | 'followings' | 'followers' | 'rank' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'referralTypeId' | 'referralTypeName' | 'referralTypeColor'>
1107
- & { social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website'>>, wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId'>>>> }
1122
+ & { social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordNickname' | 'discordServer'>>, wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId'>>>> }
1108
1123
  ) };
1109
1124
 
1110
1125
  export type IFetchUserWalletsQueryVariables = Exact<{
@@ -1904,9 +1919,9 @@ export type SignInTonMutationHookResult = ReturnType<typeof useSignInTonMutation
1904
1919
  export type SignInTonMutationResult = Apollo.MutationResult<ISignInTonMutation>;
1905
1920
  export type SignInTonMutationOptions = Apollo.BaseMutationOptions<ISignInTonMutation, ISignInTonMutationVariables>;
1906
1921
  export const UpdateProfileDocument = gql`
1907
- mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean) {
1922
+ mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean, $discordNickname: String, $discordServer: String) {
1908
1923
  updateProfile(
1909
- profile: {username: $username, about: $about, showNsfw: $showNsfw, social: {facebook: $facebook, twitter: $twitter, instagram: $instagram, website: $website}}
1924
+ profile: {username: $username, about: $about, showNsfw: $showNsfw, social: {facebook: $facebook, twitter: $twitter, instagram: $instagram, website: $website, discordNickname: $discordNickname, discordServer: $discordServer}}
1910
1925
  )
1911
1926
  }
1912
1927
  `;
@@ -1932,6 +1947,8 @@ export type IUpdateProfileMutationFn = Apollo.MutationFunction<IUpdateProfileMut
1932
1947
  * instagram: // value for 'instagram'
1933
1948
  * website: // value for 'website'
1934
1949
  * showNsfw: // value for 'showNsfw'
1950
+ * discordNickname: // value for 'discordNickname'
1951
+ * discordServer: // value for 'discordServer'
1935
1952
  * },
1936
1953
  * });
1937
1954
  */
@@ -2056,6 +2073,8 @@ export const FetchMyProfileV2Document = gql`
2056
2073
  twitter
2057
2074
  instagram
2058
2075
  website
2076
+ discordServer
2077
+ discordNickname
2059
2078
  }
2060
2079
  views
2061
2080
  createdAt
@@ -2133,6 +2152,8 @@ export const FetchProfileDocument = gql`
2133
2152
  twitter
2134
2153
  instagram
2135
2154
  website
2155
+ discordNickname
2156
+ discordServer
2136
2157
  }
2137
2158
  views
2138
2159
  createdAt