@ludo.ninja/api 3.0.20 → 3.0.22

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.
@@ -51,6 +51,7 @@ export type IAdminBrand = {
51
51
  facebook?: Maybe<Scalars['String']>;
52
52
  linkedin?: Maybe<Scalars['String']>;
53
53
  youtube?: Maybe<Scalars['String']>;
54
+ referralLinks?: Maybe<Array<Maybe<IReferralLink>>>;
54
55
  };
55
56
  export type IAdminCategory = {
56
57
  id: Scalars['String'];
@@ -109,6 +110,7 @@ export type IAdminInvite = {
109
110
  activeInvites?: Maybe<Array<IActiveInvite>>;
110
111
  referredUsers?: Maybe<Array<Scalars['String']>>;
111
112
  userXpLevel?: Maybe<Scalars['Int']>;
113
+ profileLink?: Maybe<IReferralLink>;
112
114
  };
113
115
  export type IAdminOpportunity = {
114
116
  opportunityId: Scalars['ID'];
@@ -210,6 +212,7 @@ export type IAdminUser = {
210
212
  ip?: Maybe<Scalars['String']>;
211
213
  location?: Maybe<Scalars['String']>;
212
214
  userLanguage?: Maybe<Scalars['String']>;
215
+ devicePlatform?: Maybe<IDevicePlatform>;
213
216
  };
214
217
  export type IAdminXp = {
215
218
  userId: Scalars['ID'];
@@ -320,6 +323,13 @@ export type ICountry = {
320
323
  continent: Scalars['String'];
321
324
  country: Scalars['String'];
322
325
  };
326
+ /** Sync with DevicePlatform.java */
327
+ export declare enum IDevicePlatform {
328
+ Ios = "IOS",
329
+ Android = "ANDROID",
330
+ Computer = "COMPUTER",
331
+ Unknown = "UNKNOWN"
332
+ }
323
333
  export type IFormOpportunityFilterInput = {
324
334
  idTerm?: Maybe<Scalars['String']>;
325
335
  userIdTerm?: Maybe<Scalars['String']>;
@@ -687,6 +697,16 @@ export type IQueryFetchAdminXpPageArgs = {
687
697
  sort: IXpSortInput;
688
698
  page: IAdminPageInput;
689
699
  };
700
+ export type IReferralLink = {
701
+ referralUrl?: Maybe<Scalars['String']>;
702
+ numOfReferredIps?: Maybe<Scalars['Int']>;
703
+ numOfReferredUsers?: Maybe<Scalars['Int']>;
704
+ refcode?: Maybe<Scalars['String']>;
705
+ reftypeId?: Maybe<Scalars['String']>;
706
+ reftypeName?: Maybe<Scalars['String']>;
707
+ reftypeColor?: Maybe<IReftypeColor>;
708
+ maxUsagesLimit?: Maybe<Scalars['Int']>;
709
+ };
690
710
  export type IReferralType = {
691
711
  id: Scalars['String'];
692
712
  name: Scalars['String'];
@@ -951,6 +971,7 @@ export type IResolversTypes = {
951
971
  ContentReportPage: ResolverTypeWrapper<IContentReportPage>;
952
972
  ContentReportSortInput: IContentReportSortInput;
953
973
  Country: ResolverTypeWrapper<ICountry>;
974
+ DevicePlatform: IDevicePlatform;
954
975
  FormOpportunityFilterInput: IFormOpportunityFilterInput;
955
976
  FormOpportunityPage: ResolverTypeWrapper<IFormOpportunityPage>;
956
977
  FormOpportunitySortInput: IFormOpportunitySortInput;
@@ -973,6 +994,7 @@ export type IResolversTypes = {
973
994
  PartnershipInquiryPage: ResolverTypeWrapper<IPartnershipInquiryPage>;
974
995
  PartnershipInquirySortInput: IPartnershipInquirySortInput;
975
996
  Query: ResolverTypeWrapper<{}>;
997
+ ReferralLink: ResolverTypeWrapper<IReferralLink>;
976
998
  ReferralType: ResolverTypeWrapper<IReferralType>;
977
999
  ReferralTypeFilterInput: IReferralTypeFilterInput;
978
1000
  ReferralTypeInput: IReferralTypeInput;
@@ -1065,6 +1087,7 @@ export type IResolversParentTypes = {
1065
1087
  PartnershipInquiryPage: IPartnershipInquiryPage;
1066
1088
  PartnershipInquirySortInput: IPartnershipInquirySortInput;
1067
1089
  Query: {};
1090
+ ReferralLink: IReferralLink;
1068
1091
  ReferralType: IReferralType;
1069
1092
  ReferralTypeFilterInput: IReferralTypeFilterInput;
1070
1093
  ReferralTypeInput: IReferralTypeInput;
@@ -1136,6 +1159,7 @@ export type IAdminBrandResolvers<ContextType = any, ParentType extends IResolver
1136
1159
  facebook?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1137
1160
  linkedin?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1138
1161
  youtube?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1162
+ referralLinks?: Resolver<Maybe<Array<Maybe<IResolversTypes['ReferralLink']>>>, ParentType, ContextType>;
1139
1163
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1140
1164
  };
1141
1165
  export type IAdminCategoryResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminCategory'] = IResolversParentTypes['AdminCategory']> = {
@@ -1200,6 +1224,7 @@ export type IAdminInviteResolvers<ContextType = any, ParentType extends IResolve
1200
1224
  activeInvites?: Resolver<Maybe<Array<IResolversTypes['ActiveInvite']>>, ParentType, ContextType>;
1201
1225
  referredUsers?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
1202
1226
  userXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1227
+ profileLink?: Resolver<Maybe<IResolversTypes['ReferralLink']>, ParentType, ContextType>;
1203
1228
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1204
1229
  };
1205
1230
  export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminOpportunity'] = IResolversParentTypes['AdminOpportunity']> = {
@@ -1275,6 +1300,7 @@ export type IAdminUserResolvers<ContextType = any, ParentType extends IResolvers
1275
1300
  ip?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1276
1301
  location?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1277
1302
  userLanguage?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1303
+ devicePlatform?: Resolver<Maybe<IResolversTypes['DevicePlatform']>, ParentType, ContextType>;
1278
1304
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1279
1305
  };
1280
1306
  export type IAdminXpResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminXp'] = IResolversParentTypes['AdminXp']> = {
@@ -1409,6 +1435,17 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
1409
1435
  fetchAdminUsersPage?: Resolver<IResolversTypes['UsersPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminUsersPageArgs, 'filter' | 'sort' | 'page'>>;
1410
1436
  fetchAdminXpPage?: Resolver<IResolversTypes['XpPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminXpPageArgs, 'filter' | 'sort' | 'page'>>;
1411
1437
  };
1438
+ export type IReferralLinkResolvers<ContextType = any, ParentType extends IResolversParentTypes['ReferralLink'] = IResolversParentTypes['ReferralLink']> = {
1439
+ referralUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1440
+ numOfReferredIps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1441
+ numOfReferredUsers?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1442
+ refcode?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1443
+ reftypeId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1444
+ reftypeName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1445
+ reftypeColor?: Resolver<Maybe<IResolversTypes['ReftypeColor']>, ParentType, ContextType>;
1446
+ maxUsagesLimit?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1447
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1448
+ };
1412
1449
  export type IReferralTypeResolvers<ContextType = any, ParentType extends IResolversParentTypes['ReferralType'] = IResolversParentTypes['ReferralType']> = {
1413
1450
  id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1414
1451
  name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
@@ -1526,6 +1563,7 @@ export type IResolvers<ContextType = any> = {
1526
1563
  OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
1527
1564
  PartnershipInquiryPage?: IPartnershipInquiryPageResolvers<ContextType>;
1528
1565
  Query?: IQueryResolvers<ContextType>;
1566
+ ReferralLink?: IReferralLinkResolvers<ContextType>;
1529
1567
  ReferralType?: IReferralTypeResolvers<ContextType>;
1530
1568
  ReferralTypesPage?: IReferralTypesPageResolvers<ContextType>;
1531
1569
  ReferralsPage?: IReferralsPageResolvers<ContextType>;
@@ -1852,7 +1890,7 @@ export type IFetchAdminUsersPageQueryVariables = Exact<{
1852
1890
  }>;
1853
1891
  export type IFetchAdminUsersPageQuery = {
1854
1892
  fetchAdminUsersPage: {
1855
- users: Array<(Pick<IAdminUser, 'userId' | 'username' | 'connectedBlockchains' | 'isActive' | 'createdAt' | 'topInterests' | 'walletsValue' | 'xpLevel' | 'ludoRank' | 'inviterId' | 'ip' | 'location' | 'userLanguage'> & {
1893
+ users: Array<(Pick<IAdminUser, 'userId' | 'username' | 'connectedBlockchains' | 'isActive' | 'createdAt' | 'topInterests' | 'walletsValue' | 'xpLevel' | 'ludoRank' | 'inviterId' | 'ip' | 'location' | 'userLanguage' | 'devicePlatform'> & {
1856
1894
  wallets?: Maybe<Array<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>>;
1857
1895
  })>;
1858
1896
  nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>>;
@@ -23,11 +23,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.CheckInviteCodeDocument = exports.useUpdateProfileStatusMutation = exports.UpdateProfileStatusDocument = exports.useUpdateOpportunityArchivedStatusMutation = exports.UpdateOpportunityArchivedStatusDocument = exports.useUpdateOpportunityMutation = exports.UpdateOpportunityDocument = exports.useUpdateCategoryArchivedStatusMutation = exports.UpdateCategoryArchivedStatusDocument = exports.useUpdateCategoryMutation = exports.UpdateCategoryDocument = exports.useUpdateBrandArchivedStatusMutation = exports.UpdateBrandArchivedStatusDocument = exports.useUpdateBrandMutation = exports.UpdateBrandDocument = exports.useRemoveInviteCodeMutation = exports.RemoveInviteCodeDocument = exports.useAddInviteCodesMutation = exports.AddInviteCodesDocument = exports.useCreateAdminOpportunityMutation = exports.CreateAdminOpportunityDocument = exports.useCreateBrandMutation = exports.CreateBrandDocument = exports.useCreateCategoryMutation = exports.CreateCategoryDocument = exports.useChangeXpPointsMutation = exports.ChangeXpPointsDocument = exports.useUpdateTierArchivedStatusMutation = exports.UpdateTierArchivedStatusDocument = exports.useUpdateTierMutation = exports.UpdateTierDocument = exports.useUpdateReferralTypeArchivedStatusMutation = exports.UpdateReferralTypeArchivedStatusDocument = exports.useUpdateReferralTypeMutation = exports.UpdateReferralTypeDocument = exports.useUpdateOpportunityPushStatusMutation = exports.UpdateOpportunityPushStatusDocument = exports.useUpdateInviteCodeUsagesLimitMutation = exports.UpdateInviteCodeUsagesLimitDocument = exports.useTriggerOpportunityNotificationMutation = exports.TriggerOpportunityNotificationDocument = exports.useCreateTierMutation = exports.CreateTierDocument = exports.useCreateReferralTypeMutation = exports.CreateReferralTypeDocument = exports.ISortDirection = exports.IReftypeColor = exports.IOpportunityType = exports.INotificationDestination = exports.ILocationType = void 0;
27
- exports.useFetchAdminInvitesPageLazyQuery = exports.useFetchAdminInvitesPageQuery = exports.FetchAdminInvitesPageDocument = exports.useFetchAdminCategoriesPageLazyQuery = exports.useFetchAdminCategoriesPageQuery = exports.FetchAdminCategoriesPageDocument = exports.useFetchAdminCategoriesLazyQuery = exports.useFetchAdminCategoriesQuery = exports.FetchAdminCategoriesDocument = exports.useFetchAdminBrandsPageLazyQuery = exports.useFetchAdminBrandsPageQuery = exports.FetchAdminBrandsPageDocument = exports.useFetchAdminBrandsLazyQuery = exports.useFetchAdminBrandsQuery = exports.FetchAdminBrandsDocument = exports.useFetchUserFeedbackPageLazyQuery = exports.useFetchUserFeedbackPageQuery = exports.FetchUserFeedbackPageDocument = exports.useFetchTiersPageLazyQuery = exports.useFetchTiersPageQuery = exports.FetchTiersPageDocument = exports.useFetchTiersLazyQuery = exports.useFetchTiersQuery = exports.FetchTiersDocument = exports.useFetchRegistrationInvitePageLazyQuery = exports.useFetchRegistrationInvitePageQuery = exports.FetchRegistrationInvitePageDocument = exports.useFetchReferralTypesPageLazyQuery = exports.useFetchReferralTypesPageQuery = exports.FetchReferralTypesPageDocument = exports.useFetchUnarchivedReferralTypesLazyQuery = exports.useFetchUnarchivedReferralTypesQuery = exports.FetchUnarchivedReferralTypesDocument = exports.useFetchPartnershipInquiryPageLazyQuery = exports.useFetchPartnershipInquiryPageQuery = exports.FetchPartnershipInquiryPageDocument = exports.useFetchInvestorInquiryPageLazyQuery = exports.useFetchInvestorInquiryPageQuery = exports.FetchInvestorInquiryPageDocument = exports.useFetchFormOpportunityPageLazyQuery = exports.useFetchFormOpportunityPageQuery = exports.FetchFormOpportunityPageDocument = exports.useFetchContentReportPageLazyQuery = exports.useFetchContentReportPageQuery = exports.FetchContentReportPageDocument = exports.useFetchContactSupportPageLazyQuery = exports.useFetchContactSupportPageQuery = exports.FetchContactSupportPageDocument = exports.useCheckInviteCodeLazyQuery = exports.useCheckInviteCodeQuery = void 0;
28
- exports.useFetchBlockchainsLazyQuery = exports.useFetchBlockchainsQuery = exports.FetchBlockchainsDocument = exports.useFetchAllCountriesLazyQuery = exports.useFetchAllCountriesQuery = exports.FetchAllCountriesDocument = exports.useFetchAdminXpPageLazyQuery = exports.useFetchAdminXpPageQuery = exports.FetchAdminXpPageDocument = exports.useFetchAdminUsersPageLazyQuery = exports.useFetchAdminUsersPageQuery = exports.FetchAdminUsersPageDocument = exports.useFetchAdminReferralsPageLazyQuery = exports.useFetchAdminReferralsPageQuery = exports.FetchAdminReferralsPageDocument = exports.useFetchAdminOpportunitiesPageLazyQuery = exports.useFetchAdminOpportunitiesPageQuery = exports.FetchAdminOpportunitiesPageDocument = void 0;
26
+ exports.useUpdateProfileStatusMutation = exports.UpdateProfileStatusDocument = exports.useUpdateOpportunityArchivedStatusMutation = exports.UpdateOpportunityArchivedStatusDocument = exports.useUpdateOpportunityMutation = exports.UpdateOpportunityDocument = exports.useUpdateCategoryArchivedStatusMutation = exports.UpdateCategoryArchivedStatusDocument = exports.useUpdateCategoryMutation = exports.UpdateCategoryDocument = exports.useUpdateBrandArchivedStatusMutation = exports.UpdateBrandArchivedStatusDocument = exports.useUpdateBrandMutation = exports.UpdateBrandDocument = exports.useRemoveInviteCodeMutation = exports.RemoveInviteCodeDocument = exports.useAddInviteCodesMutation = exports.AddInviteCodesDocument = exports.useCreateAdminOpportunityMutation = exports.CreateAdminOpportunityDocument = exports.useCreateBrandMutation = exports.CreateBrandDocument = exports.useCreateCategoryMutation = exports.CreateCategoryDocument = exports.useChangeXpPointsMutation = exports.ChangeXpPointsDocument = exports.useUpdateTierArchivedStatusMutation = exports.UpdateTierArchivedStatusDocument = exports.useUpdateTierMutation = exports.UpdateTierDocument = exports.useUpdateReferralTypeArchivedStatusMutation = exports.UpdateReferralTypeArchivedStatusDocument = exports.useUpdateReferralTypeMutation = exports.UpdateReferralTypeDocument = exports.useUpdateOpportunityPushStatusMutation = exports.UpdateOpportunityPushStatusDocument = exports.useUpdateInviteCodeUsagesLimitMutation = exports.UpdateInviteCodeUsagesLimitDocument = exports.useTriggerOpportunityNotificationMutation = exports.TriggerOpportunityNotificationDocument = exports.useCreateTierMutation = exports.CreateTierDocument = exports.useCreateReferralTypeMutation = exports.CreateReferralTypeDocument = exports.ISortDirection = exports.IReftypeColor = exports.IOpportunityType = exports.INotificationDestination = exports.ILocationType = exports.IDevicePlatform = void 0;
27
+ exports.useFetchAdminInvitesPageQuery = exports.FetchAdminInvitesPageDocument = exports.useFetchAdminCategoriesPageLazyQuery = exports.useFetchAdminCategoriesPageQuery = exports.FetchAdminCategoriesPageDocument = exports.useFetchAdminCategoriesLazyQuery = exports.useFetchAdminCategoriesQuery = exports.FetchAdminCategoriesDocument = exports.useFetchAdminBrandsPageLazyQuery = exports.useFetchAdminBrandsPageQuery = exports.FetchAdminBrandsPageDocument = exports.useFetchAdminBrandsLazyQuery = exports.useFetchAdminBrandsQuery = exports.FetchAdminBrandsDocument = exports.useFetchUserFeedbackPageLazyQuery = exports.useFetchUserFeedbackPageQuery = exports.FetchUserFeedbackPageDocument = exports.useFetchTiersPageLazyQuery = exports.useFetchTiersPageQuery = exports.FetchTiersPageDocument = exports.useFetchTiersLazyQuery = exports.useFetchTiersQuery = exports.FetchTiersDocument = exports.useFetchRegistrationInvitePageLazyQuery = exports.useFetchRegistrationInvitePageQuery = exports.FetchRegistrationInvitePageDocument = exports.useFetchReferralTypesPageLazyQuery = exports.useFetchReferralTypesPageQuery = exports.FetchReferralTypesPageDocument = exports.useFetchUnarchivedReferralTypesLazyQuery = exports.useFetchUnarchivedReferralTypesQuery = exports.FetchUnarchivedReferralTypesDocument = exports.useFetchPartnershipInquiryPageLazyQuery = exports.useFetchPartnershipInquiryPageQuery = exports.FetchPartnershipInquiryPageDocument = exports.useFetchInvestorInquiryPageLazyQuery = exports.useFetchInvestorInquiryPageQuery = exports.FetchInvestorInquiryPageDocument = exports.useFetchFormOpportunityPageLazyQuery = exports.useFetchFormOpportunityPageQuery = exports.FetchFormOpportunityPageDocument = exports.useFetchContentReportPageLazyQuery = exports.useFetchContentReportPageQuery = exports.FetchContentReportPageDocument = exports.useFetchContactSupportPageLazyQuery = exports.useFetchContactSupportPageQuery = exports.FetchContactSupportPageDocument = exports.useCheckInviteCodeLazyQuery = exports.useCheckInviteCodeQuery = exports.CheckInviteCodeDocument = void 0;
28
+ exports.useFetchBlockchainsLazyQuery = exports.useFetchBlockchainsQuery = exports.FetchBlockchainsDocument = exports.useFetchAllCountriesLazyQuery = exports.useFetchAllCountriesQuery = exports.FetchAllCountriesDocument = exports.useFetchAdminXpPageLazyQuery = exports.useFetchAdminXpPageQuery = exports.FetchAdminXpPageDocument = exports.useFetchAdminUsersPageLazyQuery = exports.useFetchAdminUsersPageQuery = exports.FetchAdminUsersPageDocument = exports.useFetchAdminReferralsPageLazyQuery = exports.useFetchAdminReferralsPageQuery = exports.FetchAdminReferralsPageDocument = exports.useFetchAdminOpportunitiesPageLazyQuery = exports.useFetchAdminOpportunitiesPageQuery = exports.FetchAdminOpportunitiesPageDocument = exports.useFetchAdminInvitesPageLazyQuery = void 0;
29
29
  const client_1 = require("@apollo/client");
30
30
  const Apollo = __importStar(require("@apollo/client"));
31
+ /** Sync with DevicePlatform.java */
32
+ var IDevicePlatform;
33
+ (function (IDevicePlatform) {
34
+ IDevicePlatform["Ios"] = "IOS";
35
+ IDevicePlatform["Android"] = "ANDROID";
36
+ IDevicePlatform["Computer"] = "COMPUTER";
37
+ IDevicePlatform["Unknown"] = "UNKNOWN";
38
+ })(IDevicePlatform || (exports.IDevicePlatform = IDevicePlatform = {}));
31
39
  var ILocationType;
32
40
  (function (ILocationType) {
33
41
  ILocationType["Continent"] = "CONTINENT";
@@ -1563,6 +1571,7 @@ exports.FetchAdminUsersPageDocument = (0, client_1.gql) `
1563
1571
  ip
1564
1572
  location
1565
1573
  userLanguage
1574
+ devicePlatform
1566
1575
  }
1567
1576
  nextPage {
1568
1577
  num
@@ -987,7 +987,7 @@ export type IFetchMyProfileV2QueryVariables = Exact<{
987
987
  [key: string]: never;
988
988
  }>;
989
989
  export type IFetchMyProfileV2Query = {
990
- 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'> & {
990
+ 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' | 'shareLink'> & {
991
991
  social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordServer' | 'discordNickname' | 'telegramLink'>>;
992
992
  wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>>;
993
993
  inviteCodes?: Maybe<Array<Maybe<(Pick<IInviteCode, 'inviteCode' | 'isUsed' | 'maxUsagesLimit' | 'codeUsersNum'> & {
@@ -1044,6 +1044,7 @@ exports.FetchMyProfileV2Document = (0, client_1.gql) `
1044
1044
  referralTypeId
1045
1045
  referralTypeName
1046
1046
  referralTypeColor
1047
+ shareLink
1047
1048
  }
1048
1049
  }
1049
1050
  `;
package/build/index.d.ts CHANGED
@@ -1898,6 +1898,7 @@ declare const schema: {
1898
1898
  }>> | undefined): import("@apollo/client").LazyQueryResultTuple<adminSchema.IFetchBlockchainsQuery, adminSchema.Exact<{
1899
1899
  [key: string]: never;
1900
1900
  }>>;
1901
+ IDevicePlatform: typeof adminSchema.IDevicePlatform;
1901
1902
  ILocationType: typeof adminSchema.ILocationType;
1902
1903
  INotificationDestination: typeof adminSchema.INotificationDestination;
1903
1904
  IOpportunityType: typeof adminSchema.IOpportunityType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "3.0.20",
3
+ "version": "3.0.22",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -48,6 +48,7 @@ export type IAdminBrand = {
48
48
  facebook?: Maybe<Scalars['String']>;
49
49
  linkedin?: Maybe<Scalars['String']>;
50
50
  youtube?: Maybe<Scalars['String']>;
51
+ referralLinks?: Maybe<Array<Maybe<IReferralLink>>>;
51
52
  };
52
53
 
53
54
  export type IAdminCategory = {
@@ -112,6 +113,7 @@ export type IAdminInvite = {
112
113
  activeInvites?: Maybe<Array<IActiveInvite>>;
113
114
  referredUsers?: Maybe<Array<Scalars['String']>>;
114
115
  userXpLevel?: Maybe<Scalars['Int']>;
116
+ profileLink?: Maybe<IReferralLink>;
115
117
  };
116
118
 
117
119
  export type IAdminOpportunity = {
@@ -220,6 +222,7 @@ export type IAdminUser = {
220
222
  ip?: Maybe<Scalars['String']>;
221
223
  location?: Maybe<Scalars['String']>;
222
224
  userLanguage?: Maybe<Scalars['String']>;
225
+ devicePlatform?: Maybe<IDevicePlatform>;
223
226
  };
224
227
 
225
228
  export type IAdminXp = {
@@ -348,6 +351,14 @@ export type ICountry = {
348
351
  country: Scalars['String'];
349
352
  };
350
353
 
354
+ /** Sync with DevicePlatform.java */
355
+ export enum IDevicePlatform {
356
+ Ios = 'IOS',
357
+ Android = 'ANDROID',
358
+ Computer = 'COMPUTER',
359
+ Unknown = 'UNKNOWN'
360
+ }
361
+
351
362
  export type IFormOpportunityFilterInput = {
352
363
  idTerm?: Maybe<Scalars['String']>;
353
364
  userIdTerm?: Maybe<Scalars['String']>;
@@ -821,6 +832,17 @@ export type IQueryFetchAdminXpPageArgs = {
821
832
  page: IAdminPageInput;
822
833
  };
823
834
 
835
+ export type IReferralLink = {
836
+ referralUrl?: Maybe<Scalars['String']>;
837
+ numOfReferredIps?: Maybe<Scalars['Int']>;
838
+ numOfReferredUsers?: Maybe<Scalars['Int']>;
839
+ refcode?: Maybe<Scalars['String']>;
840
+ reftypeId?: Maybe<Scalars['String']>;
841
+ reftypeName?: Maybe<Scalars['String']>;
842
+ reftypeColor?: Maybe<IReftypeColor>;
843
+ maxUsagesLimit?: Maybe<Scalars['Int']>;
844
+ };
845
+
824
846
  export type IReferralType = {
825
847
  id: Scalars['String'];
826
848
  name: Scalars['String'];
@@ -1159,6 +1181,7 @@ export type IResolversTypes = {
1159
1181
  ContentReportPage: ResolverTypeWrapper<IContentReportPage>;
1160
1182
  ContentReportSortInput: IContentReportSortInput;
1161
1183
  Country: ResolverTypeWrapper<ICountry>;
1184
+ DevicePlatform: IDevicePlatform;
1162
1185
  FormOpportunityFilterInput: IFormOpportunityFilterInput;
1163
1186
  FormOpportunityPage: ResolverTypeWrapper<IFormOpportunityPage>;
1164
1187
  FormOpportunitySortInput: IFormOpportunitySortInput;
@@ -1181,6 +1204,7 @@ export type IResolversTypes = {
1181
1204
  PartnershipInquiryPage: ResolverTypeWrapper<IPartnershipInquiryPage>;
1182
1205
  PartnershipInquirySortInput: IPartnershipInquirySortInput;
1183
1206
  Query: ResolverTypeWrapper<{}>;
1207
+ ReferralLink: ResolverTypeWrapper<IReferralLink>;
1184
1208
  ReferralType: ResolverTypeWrapper<IReferralType>;
1185
1209
  ReferralTypeFilterInput: IReferralTypeFilterInput;
1186
1210
  ReferralTypeInput: IReferralTypeInput;
@@ -1274,6 +1298,7 @@ export type IResolversParentTypes = {
1274
1298
  PartnershipInquiryPage: IPartnershipInquiryPage;
1275
1299
  PartnershipInquirySortInput: IPartnershipInquirySortInput;
1276
1300
  Query: {};
1301
+ ReferralLink: IReferralLink;
1277
1302
  ReferralType: IReferralType;
1278
1303
  ReferralTypeFilterInput: IReferralTypeFilterInput;
1279
1304
  ReferralTypeInput: IReferralTypeInput;
@@ -1353,6 +1378,7 @@ export type IAdminBrandResolvers<ContextType = any, ParentType extends IResolver
1353
1378
  facebook?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1354
1379
  linkedin?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1355
1380
  youtube?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1381
+ referralLinks?: Resolver<Maybe<Array<Maybe<IResolversTypes['ReferralLink']>>>, ParentType, ContextType>;
1356
1382
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1357
1383
  };
1358
1384
 
@@ -1423,6 +1449,7 @@ export type IAdminInviteResolvers<ContextType = any, ParentType extends IResolve
1423
1449
  activeInvites?: Resolver<Maybe<Array<IResolversTypes['ActiveInvite']>>, ParentType, ContextType>;
1424
1450
  referredUsers?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
1425
1451
  userXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1452
+ profileLink?: Resolver<Maybe<IResolversTypes['ReferralLink']>, ParentType, ContextType>;
1426
1453
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1427
1454
  };
1428
1455
 
@@ -1503,6 +1530,7 @@ export type IAdminUserResolvers<ContextType = any, ParentType extends IResolvers
1503
1530
  ip?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1504
1531
  location?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1505
1532
  userLanguage?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1533
+ devicePlatform?: Resolver<Maybe<IResolversTypes['DevicePlatform']>, ParentType, ContextType>;
1506
1534
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1507
1535
  };
1508
1536
 
@@ -1654,6 +1682,18 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
1654
1682
  fetchAdminXpPage?: Resolver<IResolversTypes['XpPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminXpPageArgs, 'filter' | 'sort' | 'page'>>;
1655
1683
  };
1656
1684
 
1685
+ export type IReferralLinkResolvers<ContextType = any, ParentType extends IResolversParentTypes['ReferralLink'] = IResolversParentTypes['ReferralLink']> = {
1686
+ referralUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1687
+ numOfReferredIps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1688
+ numOfReferredUsers?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1689
+ refcode?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1690
+ reftypeId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1691
+ reftypeName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1692
+ reftypeColor?: Resolver<Maybe<IResolversTypes['ReftypeColor']>, ParentType, ContextType>;
1693
+ maxUsagesLimit?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1694
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1695
+ };
1696
+
1657
1697
  export type IReferralTypeResolvers<ContextType = any, ParentType extends IResolversParentTypes['ReferralType'] = IResolversParentTypes['ReferralType']> = {
1658
1698
  id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1659
1699
  name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
@@ -1785,6 +1825,7 @@ export type IResolvers<ContextType = any> = {
1785
1825
  OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
1786
1826
  PartnershipInquiryPage?: IPartnershipInquiryPageResolvers<ContextType>;
1787
1827
  Query?: IQueryResolvers<ContextType>;
1828
+ ReferralLink?: IReferralLinkResolvers<ContextType>;
1788
1829
  ReferralType?: IReferralTypeResolvers<ContextType>;
1789
1830
  ReferralTypesPage?: IReferralTypesPageResolvers<ContextType>;
1790
1831
  ReferralsPage?: IReferralsPageResolvers<ContextType>;
@@ -2149,7 +2190,7 @@ export type IFetchAdminUsersPageQueryVariables = Exact<{
2149
2190
 
2150
2191
 
2151
2192
  export type IFetchAdminUsersPageQuery = { fetchAdminUsersPage: { users: Array<(
2152
- Pick<IAdminUser, 'userId' | 'username' | 'connectedBlockchains' | 'isActive' | 'createdAt' | 'topInterests' | 'walletsValue' | 'xpLevel' | 'ludoRank' | 'inviterId' | 'ip' | 'location' | 'userLanguage'>
2193
+ Pick<IAdminUser, 'userId' | 'username' | 'connectedBlockchains' | 'isActive' | 'createdAt' | 'topInterests' | 'walletsValue' | 'xpLevel' | 'ludoRank' | 'inviterId' | 'ip' | 'location' | 'userLanguage' | 'devicePlatform'>
2153
2194
  & { wallets?: Maybe<Array<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>> }
2154
2195
  )>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>> } };
2155
2196
 
@@ -3800,6 +3841,7 @@ export const FetchAdminUsersPageDocument = gql`
3800
3841
  ip
3801
3842
  location
3802
3843
  userLanguage
3844
+ devicePlatform
3803
3845
  }
3804
3846
  nextPage {
3805
3847
  num
@@ -1189,7 +1189,7 @@ export type IFetchMyProfileV2QueryVariables = Exact<{ [key: string]: never; }>;
1189
1189
 
1190
1190
 
1191
1191
  export type IFetchMyProfileV2Query = { fetchMyProfileV2: (
1192
- Pick<IMyProfileV2, 'userId' | 'username' | 'about' | 'userpic' | 'following' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'rank' | 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps' | 'referralTypeId' | 'referralTypeName' | 'referralTypeColor'>
1192
+ Pick<IMyProfileV2, 'userId' | 'username' | 'about' | 'userpic' | 'following' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'rank' | 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps' | 'referralTypeId' | 'referralTypeName' | 'referralTypeColor' | 'shareLink'>
1193
1193
  & { social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordServer' | 'discordNickname' | 'telegramLink'>>, wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>>, inviteCodes?: Maybe<Array<Maybe<(
1194
1194
  Pick<IInviteCode, 'inviteCode' | 'isUsed' | 'maxUsagesLimit' | 'codeUsersNum'>
1195
1195
  & { codeUsers: Array<Pick<IInviteCodeUser, 'inviteeId' | 'usedAt'>> }
@@ -2300,6 +2300,7 @@ export const FetchMyProfileV2Document = gql`
2300
2300
  referralTypeId
2301
2301
  referralTypeName
2302
2302
  referralTypeColor
2303
+ shareLink
2303
2304
  }
2304
2305
  }
2305
2306
  `;