@ludo.ninja/api 3.0.21 → 3.0.23

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'];
@@ -138,6 +140,7 @@ export type IAdminOpportunity = {
138
140
  geolocations?: Maybe<Array<Scalars['String']>>;
139
141
  notificationDestinations?: Maybe<Array<INotificationDestination>>;
140
142
  type: IOpportunityType;
143
+ devicePlatforms?: Maybe<Array<IDevicePlatform>>;
141
144
  };
142
145
  export type IAdminOpportunityInput = {
143
146
  brandId: Scalars['String'];
@@ -164,6 +167,7 @@ export type IAdminOpportunityInput = {
164
167
  geolocations?: Maybe<Array<Scalars['String']>>;
165
168
  notificationDestinations?: Maybe<Array<INotificationDestination>>;
166
169
  type: IOpportunityType;
170
+ devicePlatforms?: Maybe<Array<IDevicePlatform>>;
167
171
  };
168
172
  export type IAdminPage = {
169
173
  num?: Maybe<Scalars['Int']>;
@@ -210,6 +214,7 @@ export type IAdminUser = {
210
214
  ip?: Maybe<Scalars['String']>;
211
215
  location?: Maybe<Scalars['String']>;
212
216
  userLanguage?: Maybe<Scalars['String']>;
217
+ devicePlatform?: Maybe<IDevicePlatform>;
213
218
  };
214
219
  export type IAdminXp = {
215
220
  userId: Scalars['ID'];
@@ -320,6 +325,13 @@ export type ICountry = {
320
325
  continent: Scalars['String'];
321
326
  country: Scalars['String'];
322
327
  };
328
+ /** Sync with DevicePlatform.java */
329
+ export declare enum IDevicePlatform {
330
+ Ios = "IOS",
331
+ Android = "ANDROID",
332
+ Computer = "COMPUTER",
333
+ Unknown = "UNKNOWN"
334
+ }
323
335
  export type IFormOpportunityFilterInput = {
324
336
  idTerm?: Maybe<Scalars['String']>;
325
337
  userIdTerm?: Maybe<Scalars['String']>;
@@ -687,6 +699,16 @@ export type IQueryFetchAdminXpPageArgs = {
687
699
  sort: IXpSortInput;
688
700
  page: IAdminPageInput;
689
701
  };
702
+ export type IReferralLink = {
703
+ referralUrl?: Maybe<Scalars['String']>;
704
+ numOfReferredIps?: Maybe<Scalars['Int']>;
705
+ numOfReferredUsers?: Maybe<Scalars['Int']>;
706
+ refcode?: Maybe<Scalars['String']>;
707
+ reftypeId?: Maybe<Scalars['String']>;
708
+ reftypeName?: Maybe<Scalars['String']>;
709
+ reftypeColor?: Maybe<IReftypeColor>;
710
+ maxUsagesLimit?: Maybe<Scalars['Int']>;
711
+ };
690
712
  export type IReferralType = {
691
713
  id: Scalars['String'];
692
714
  name: Scalars['String'];
@@ -841,6 +863,7 @@ export type IUsersFilterInput = {
841
863
  xpLevel?: Maybe<Scalars['Int']>;
842
864
  ludoRank?: Maybe<Scalars['Float']>;
843
865
  invitedByTerm?: Maybe<Scalars['String']>;
866
+ devicePlatformTerm?: Maybe<Scalars['String']>;
844
867
  };
845
868
  export type IUsersPage = {
846
869
  users: Array<IAdminUser>;
@@ -853,6 +876,7 @@ export type IUsersSortInput = {
853
876
  sortByWalletsValue?: Maybe<ISort>;
854
877
  sortByXpLevel?: Maybe<ISort>;
855
878
  sortByLudoRank?: Maybe<ISort>;
879
+ sortByDevicePlatform?: Maybe<ISort>;
856
880
  };
857
881
  export type IWallet = {
858
882
  address: Scalars['String'];
@@ -951,6 +975,7 @@ export type IResolversTypes = {
951
975
  ContentReportPage: ResolverTypeWrapper<IContentReportPage>;
952
976
  ContentReportSortInput: IContentReportSortInput;
953
977
  Country: ResolverTypeWrapper<ICountry>;
978
+ DevicePlatform: IDevicePlatform;
954
979
  FormOpportunityFilterInput: IFormOpportunityFilterInput;
955
980
  FormOpportunityPage: ResolverTypeWrapper<IFormOpportunityPage>;
956
981
  FormOpportunitySortInput: IFormOpportunitySortInput;
@@ -973,6 +998,7 @@ export type IResolversTypes = {
973
998
  PartnershipInquiryPage: ResolverTypeWrapper<IPartnershipInquiryPage>;
974
999
  PartnershipInquirySortInput: IPartnershipInquirySortInput;
975
1000
  Query: ResolverTypeWrapper<{}>;
1001
+ ReferralLink: ResolverTypeWrapper<IReferralLink>;
976
1002
  ReferralType: ResolverTypeWrapper<IReferralType>;
977
1003
  ReferralTypeFilterInput: IReferralTypeFilterInput;
978
1004
  ReferralTypeInput: IReferralTypeInput;
@@ -1065,6 +1091,7 @@ export type IResolversParentTypes = {
1065
1091
  PartnershipInquiryPage: IPartnershipInquiryPage;
1066
1092
  PartnershipInquirySortInput: IPartnershipInquirySortInput;
1067
1093
  Query: {};
1094
+ ReferralLink: IReferralLink;
1068
1095
  ReferralType: IReferralType;
1069
1096
  ReferralTypeFilterInput: IReferralTypeFilterInput;
1070
1097
  ReferralTypeInput: IReferralTypeInput;
@@ -1136,6 +1163,7 @@ export type IAdminBrandResolvers<ContextType = any, ParentType extends IResolver
1136
1163
  facebook?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1137
1164
  linkedin?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1138
1165
  youtube?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1166
+ referralLinks?: Resolver<Maybe<Array<Maybe<IResolversTypes['ReferralLink']>>>, ParentType, ContextType>;
1139
1167
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1140
1168
  };
1141
1169
  export type IAdminCategoryResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminCategory'] = IResolversParentTypes['AdminCategory']> = {
@@ -1200,6 +1228,7 @@ export type IAdminInviteResolvers<ContextType = any, ParentType extends IResolve
1200
1228
  activeInvites?: Resolver<Maybe<Array<IResolversTypes['ActiveInvite']>>, ParentType, ContextType>;
1201
1229
  referredUsers?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
1202
1230
  userXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1231
+ profileLink?: Resolver<Maybe<IResolversTypes['ReferralLink']>, ParentType, ContextType>;
1203
1232
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1204
1233
  };
1205
1234
  export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminOpportunity'] = IResolversParentTypes['AdminOpportunity']> = {
@@ -1230,6 +1259,7 @@ export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IRe
1230
1259
  geolocations?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
1231
1260
  notificationDestinations?: Resolver<Maybe<Array<IResolversTypes['NotificationDestination']>>, ParentType, ContextType>;
1232
1261
  type?: Resolver<IResolversTypes['OpportunityType'], ParentType, ContextType>;
1262
+ devicePlatforms?: Resolver<Maybe<Array<IResolversTypes['DevicePlatform']>>, ParentType, ContextType>;
1233
1263
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1234
1264
  };
1235
1265
  export type IAdminPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminPage'] = IResolversParentTypes['AdminPage']> = {
@@ -1275,6 +1305,7 @@ export type IAdminUserResolvers<ContextType = any, ParentType extends IResolvers
1275
1305
  ip?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1276
1306
  location?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1277
1307
  userLanguage?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1308
+ devicePlatform?: Resolver<Maybe<IResolversTypes['DevicePlatform']>, ParentType, ContextType>;
1278
1309
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1279
1310
  };
1280
1311
  export type IAdminXpResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminXp'] = IResolversParentTypes['AdminXp']> = {
@@ -1409,6 +1440,17 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
1409
1440
  fetchAdminUsersPage?: Resolver<IResolversTypes['UsersPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminUsersPageArgs, 'filter' | 'sort' | 'page'>>;
1410
1441
  fetchAdminXpPage?: Resolver<IResolversTypes['XpPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminXpPageArgs, 'filter' | 'sort' | 'page'>>;
1411
1442
  };
1443
+ export type IReferralLinkResolvers<ContextType = any, ParentType extends IResolversParentTypes['ReferralLink'] = IResolversParentTypes['ReferralLink']> = {
1444
+ referralUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1445
+ numOfReferredIps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1446
+ numOfReferredUsers?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1447
+ refcode?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1448
+ reftypeId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1449
+ reftypeName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1450
+ reftypeColor?: Resolver<Maybe<IResolversTypes['ReftypeColor']>, ParentType, ContextType>;
1451
+ maxUsagesLimit?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1452
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1453
+ };
1412
1454
  export type IReferralTypeResolvers<ContextType = any, ParentType extends IResolversParentTypes['ReferralType'] = IResolversParentTypes['ReferralType']> = {
1413
1455
  id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1414
1456
  name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
@@ -1526,6 +1568,7 @@ export type IResolvers<ContextType = any> = {
1526
1568
  OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
1527
1569
  PartnershipInquiryPage?: IPartnershipInquiryPageResolvers<ContextType>;
1528
1570
  Query?: IQueryResolvers<ContextType>;
1571
+ ReferralLink?: IReferralLinkResolvers<ContextType>;
1529
1572
  ReferralType?: IReferralTypeResolvers<ContextType>;
1530
1573
  ReferralTypesPage?: IReferralTypesPageResolvers<ContextType>;
1531
1574
  ReferralsPage?: IReferralsPageResolvers<ContextType>;
@@ -1785,7 +1828,9 @@ export type IFetchAdminBrandsPageQueryVariables = Exact<{
1785
1828
  }>;
1786
1829
  export type IFetchAdminBrandsPageQuery = {
1787
1830
  fetchAdminBrandsPage: {
1788
- brands: Array<Pick<IAdminBrand, 'description' | 'id' | 'industry' | 'link' | 'matchingWords' | 'media' | 'name' | 'archived' | 'addedBy' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'>>;
1831
+ brands: Array<(Pick<IAdminBrand, 'description' | 'id' | 'industry' | 'link' | 'matchingWords' | 'media' | 'name' | 'archived' | 'addedBy' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'> & {
1832
+ referralLinks?: Maybe<Array<Maybe<Pick<IReferralLink, 'referralUrl' | 'numOfReferredIps' | 'numOfReferredUsers' | 'refcode' | 'reftypeId' | 'reftypeName' | 'reftypeColor' | 'maxUsagesLimit'>>>>;
1833
+ })>;
1789
1834
  nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements'>>;
1790
1835
  };
1791
1836
  };
@@ -1816,6 +1861,7 @@ export type IFetchAdminInvitesPageQuery = {
1816
1861
  invites: Array<(Pick<IAdminInvite, 'userId' | 'username' | 'referredUsers' | 'userXpLevel'> & {
1817
1862
  wallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>;
1818
1863
  activeInvites?: Maybe<Array<Pick<IActiveInvite, 'inviteCode' | 'createdAt' | 'usedTimes' | 'maxUsagesLimit' | 'reftypeId' | 'reftypeName' | 'reftypeColor'>>>;
1864
+ profileLink?: Maybe<Pick<IReferralLink, 'referralUrl' | 'numOfReferredIps' | 'numOfReferredUsers' | 'refcode' | 'reftypeId' | 'reftypeName' | 'reftypeColor' | 'maxUsagesLimit'>>;
1819
1865
  })>;
1820
1866
  nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>>;
1821
1867
  };
@@ -1852,7 +1898,7 @@ export type IFetchAdminUsersPageQueryVariables = Exact<{
1852
1898
  }>;
1853
1899
  export type IFetchAdminUsersPageQuery = {
1854
1900
  fetchAdminUsersPage: {
1855
- users: Array<(Pick<IAdminUser, 'userId' | 'username' | 'connectedBlockchains' | 'isActive' | 'createdAt' | 'topInterests' | 'walletsValue' | 'xpLevel' | 'ludoRank' | 'inviterId' | 'ip' | 'location' | 'userLanguage'> & {
1901
+ users: Array<(Pick<IAdminUser, 'userId' | 'username' | 'connectedBlockchains' | 'isActive' | 'createdAt' | 'topInterests' | 'walletsValue' | 'xpLevel' | 'ludoRank' | 'inviterId' | 'ip' | 'location' | 'userLanguage' | 'devicePlatform'> & {
1856
1902
  wallets?: Maybe<Array<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>>;
1857
1903
  })>;
1858
1904
  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";
@@ -1248,6 +1256,16 @@ exports.FetchAdminBrandsPageDocument = (0, client_1.gql) `
1248
1256
  facebook
1249
1257
  linkedin
1250
1258
  youtube
1259
+ referralLinks {
1260
+ referralUrl
1261
+ numOfReferredIps
1262
+ numOfReferredUsers
1263
+ refcode
1264
+ reftypeId
1265
+ reftypeName
1266
+ reftypeColor
1267
+ maxUsagesLimit
1268
+ }
1251
1269
  }
1252
1270
  nextPage {
1253
1271
  num
@@ -1382,6 +1400,16 @@ exports.FetchAdminInvitesPageDocument = (0, client_1.gql) `
1382
1400
  }
1383
1401
  referredUsers
1384
1402
  userXpLevel
1403
+ profileLink {
1404
+ referralUrl
1405
+ numOfReferredIps
1406
+ numOfReferredUsers
1407
+ refcode
1408
+ reftypeId
1409
+ reftypeName
1410
+ reftypeColor
1411
+ maxUsagesLimit
1412
+ }
1385
1413
  }
1386
1414
  nextPage {
1387
1415
  num
@@ -1563,6 +1591,7 @@ exports.FetchAdminUsersPageDocument = (0, client_1.gql) `
1563
1591
  ip
1564
1592
  location
1565
1593
  userLanguage
1594
+ devicePlatform
1566
1595
  }
1567
1596
  nextPage {
1568
1597
  num
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.21",
3
+ "version": "3.0.23",
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 = {
@@ -142,6 +144,7 @@ export type IAdminOpportunity = {
142
144
  geolocations?: Maybe<Array<Scalars['String']>>;
143
145
  notificationDestinations?: Maybe<Array<INotificationDestination>>;
144
146
  type: IOpportunityType;
147
+ devicePlatforms?: Maybe<Array<IDevicePlatform>>;
145
148
  };
146
149
 
147
150
  export type IAdminOpportunityInput = {
@@ -169,6 +172,7 @@ export type IAdminOpportunityInput = {
169
172
  geolocations?: Maybe<Array<Scalars['String']>>;
170
173
  notificationDestinations?: Maybe<Array<INotificationDestination>>;
171
174
  type: IOpportunityType;
175
+ devicePlatforms?: Maybe<Array<IDevicePlatform>>;
172
176
  };
173
177
 
174
178
  export type IAdminPage = {
@@ -220,6 +224,7 @@ export type IAdminUser = {
220
224
  ip?: Maybe<Scalars['String']>;
221
225
  location?: Maybe<Scalars['String']>;
222
226
  userLanguage?: Maybe<Scalars['String']>;
227
+ devicePlatform?: Maybe<IDevicePlatform>;
223
228
  };
224
229
 
225
230
  export type IAdminXp = {
@@ -348,6 +353,14 @@ export type ICountry = {
348
353
  country: Scalars['String'];
349
354
  };
350
355
 
356
+ /** Sync with DevicePlatform.java */
357
+ export enum IDevicePlatform {
358
+ Ios = 'IOS',
359
+ Android = 'ANDROID',
360
+ Computer = 'COMPUTER',
361
+ Unknown = 'UNKNOWN'
362
+ }
363
+
351
364
  export type IFormOpportunityFilterInput = {
352
365
  idTerm?: Maybe<Scalars['String']>;
353
366
  userIdTerm?: Maybe<Scalars['String']>;
@@ -821,6 +834,17 @@ export type IQueryFetchAdminXpPageArgs = {
821
834
  page: IAdminPageInput;
822
835
  };
823
836
 
837
+ export type IReferralLink = {
838
+ referralUrl?: Maybe<Scalars['String']>;
839
+ numOfReferredIps?: Maybe<Scalars['Int']>;
840
+ numOfReferredUsers?: Maybe<Scalars['Int']>;
841
+ refcode?: Maybe<Scalars['String']>;
842
+ reftypeId?: Maybe<Scalars['String']>;
843
+ reftypeName?: Maybe<Scalars['String']>;
844
+ reftypeColor?: Maybe<IReftypeColor>;
845
+ maxUsagesLimit?: Maybe<Scalars['Int']>;
846
+ };
847
+
824
848
  export type IReferralType = {
825
849
  id: Scalars['String'];
826
850
  name: Scalars['String'];
@@ -1001,6 +1025,7 @@ export type IUsersFilterInput = {
1001
1025
  xpLevel?: Maybe<Scalars['Int']>;
1002
1026
  ludoRank?: Maybe<Scalars['Float']>;
1003
1027
  invitedByTerm?: Maybe<Scalars['String']>;
1028
+ devicePlatformTerm?: Maybe<Scalars['String']>;
1004
1029
  };
1005
1030
 
1006
1031
  export type IUsersPage = {
@@ -1015,6 +1040,7 @@ export type IUsersSortInput = {
1015
1040
  sortByWalletsValue?: Maybe<ISort>;
1016
1041
  sortByXpLevel?: Maybe<ISort>;
1017
1042
  sortByLudoRank?: Maybe<ISort>;
1043
+ sortByDevicePlatform?: Maybe<ISort>;
1018
1044
  };
1019
1045
 
1020
1046
  export type IWallet = {
@@ -1159,6 +1185,7 @@ export type IResolversTypes = {
1159
1185
  ContentReportPage: ResolverTypeWrapper<IContentReportPage>;
1160
1186
  ContentReportSortInput: IContentReportSortInput;
1161
1187
  Country: ResolverTypeWrapper<ICountry>;
1188
+ DevicePlatform: IDevicePlatform;
1162
1189
  FormOpportunityFilterInput: IFormOpportunityFilterInput;
1163
1190
  FormOpportunityPage: ResolverTypeWrapper<IFormOpportunityPage>;
1164
1191
  FormOpportunitySortInput: IFormOpportunitySortInput;
@@ -1181,6 +1208,7 @@ export type IResolversTypes = {
1181
1208
  PartnershipInquiryPage: ResolverTypeWrapper<IPartnershipInquiryPage>;
1182
1209
  PartnershipInquirySortInput: IPartnershipInquirySortInput;
1183
1210
  Query: ResolverTypeWrapper<{}>;
1211
+ ReferralLink: ResolverTypeWrapper<IReferralLink>;
1184
1212
  ReferralType: ResolverTypeWrapper<IReferralType>;
1185
1213
  ReferralTypeFilterInput: IReferralTypeFilterInput;
1186
1214
  ReferralTypeInput: IReferralTypeInput;
@@ -1274,6 +1302,7 @@ export type IResolversParentTypes = {
1274
1302
  PartnershipInquiryPage: IPartnershipInquiryPage;
1275
1303
  PartnershipInquirySortInput: IPartnershipInquirySortInput;
1276
1304
  Query: {};
1305
+ ReferralLink: IReferralLink;
1277
1306
  ReferralType: IReferralType;
1278
1307
  ReferralTypeFilterInput: IReferralTypeFilterInput;
1279
1308
  ReferralTypeInput: IReferralTypeInput;
@@ -1353,6 +1382,7 @@ export type IAdminBrandResolvers<ContextType = any, ParentType extends IResolver
1353
1382
  facebook?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1354
1383
  linkedin?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1355
1384
  youtube?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1385
+ referralLinks?: Resolver<Maybe<Array<Maybe<IResolversTypes['ReferralLink']>>>, ParentType, ContextType>;
1356
1386
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1357
1387
  };
1358
1388
 
@@ -1423,6 +1453,7 @@ export type IAdminInviteResolvers<ContextType = any, ParentType extends IResolve
1423
1453
  activeInvites?: Resolver<Maybe<Array<IResolversTypes['ActiveInvite']>>, ParentType, ContextType>;
1424
1454
  referredUsers?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
1425
1455
  userXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1456
+ profileLink?: Resolver<Maybe<IResolversTypes['ReferralLink']>, ParentType, ContextType>;
1426
1457
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1427
1458
  };
1428
1459
 
@@ -1454,6 +1485,7 @@ export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IRe
1454
1485
  geolocations?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
1455
1486
  notificationDestinations?: Resolver<Maybe<Array<IResolversTypes['NotificationDestination']>>, ParentType, ContextType>;
1456
1487
  type?: Resolver<IResolversTypes['OpportunityType'], ParentType, ContextType>;
1488
+ devicePlatforms?: Resolver<Maybe<Array<IResolversTypes['DevicePlatform']>>, ParentType, ContextType>;
1457
1489
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1458
1490
  };
1459
1491
 
@@ -1503,6 +1535,7 @@ export type IAdminUserResolvers<ContextType = any, ParentType extends IResolvers
1503
1535
  ip?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1504
1536
  location?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1505
1537
  userLanguage?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1538
+ devicePlatform?: Resolver<Maybe<IResolversTypes['DevicePlatform']>, ParentType, ContextType>;
1506
1539
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1507
1540
  };
1508
1541
 
@@ -1654,6 +1687,18 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
1654
1687
  fetchAdminXpPage?: Resolver<IResolversTypes['XpPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminXpPageArgs, 'filter' | 'sort' | 'page'>>;
1655
1688
  };
1656
1689
 
1690
+ export type IReferralLinkResolvers<ContextType = any, ParentType extends IResolversParentTypes['ReferralLink'] = IResolversParentTypes['ReferralLink']> = {
1691
+ referralUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1692
+ numOfReferredIps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1693
+ numOfReferredUsers?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1694
+ refcode?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1695
+ reftypeId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1696
+ reftypeName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1697
+ reftypeColor?: Resolver<Maybe<IResolversTypes['ReftypeColor']>, ParentType, ContextType>;
1698
+ maxUsagesLimit?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1699
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1700
+ };
1701
+
1657
1702
  export type IReferralTypeResolvers<ContextType = any, ParentType extends IResolversParentTypes['ReferralType'] = IResolversParentTypes['ReferralType']> = {
1658
1703
  id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1659
1704
  name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
@@ -1785,6 +1830,7 @@ export type IResolvers<ContextType = any> = {
1785
1830
  OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
1786
1831
  PartnershipInquiryPage?: IPartnershipInquiryPageResolvers<ContextType>;
1787
1832
  Query?: IQueryResolvers<ContextType>;
1833
+ ReferralLink?: IReferralLinkResolvers<ContextType>;
1788
1834
  ReferralType?: IReferralTypeResolvers<ContextType>;
1789
1835
  ReferralTypesPage?: IReferralTypesPageResolvers<ContextType>;
1790
1836
  ReferralsPage?: IReferralsPageResolvers<ContextType>;
@@ -2092,7 +2138,10 @@ export type IFetchAdminBrandsPageQueryVariables = Exact<{
2092
2138
  }>;
2093
2139
 
2094
2140
 
2095
- export type IFetchAdminBrandsPageQuery = { fetchAdminBrandsPage: { brands: Array<Pick<IAdminBrand, 'description' | 'id' | 'industry' | 'link' | 'matchingWords' | 'media' | 'name' | 'archived' | 'addedBy' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'>>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements'>> } };
2141
+ export type IFetchAdminBrandsPageQuery = { fetchAdminBrandsPage: { brands: Array<(
2142
+ Pick<IAdminBrand, 'description' | 'id' | 'industry' | 'link' | 'matchingWords' | 'media' | 'name' | 'archived' | 'addedBy' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'>
2143
+ & { referralLinks?: Maybe<Array<Maybe<Pick<IReferralLink, 'referralUrl' | 'numOfReferredIps' | 'numOfReferredUsers' | 'refcode' | 'reftypeId' | 'reftypeName' | 'reftypeColor' | 'maxUsagesLimit'>>>> }
2144
+ )>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements'>> } };
2096
2145
 
2097
2146
  export type IFetchAdminCategoriesQueryVariables = Exact<{ [key: string]: never; }>;
2098
2147
 
@@ -2117,7 +2166,7 @@ export type IFetchAdminInvitesPageQueryVariables = Exact<{
2117
2166
 
2118
2167
  export type IFetchAdminInvitesPageQuery = { fetchAdminInvitesPage: { invites: Array<(
2119
2168
  Pick<IAdminInvite, 'userId' | 'username' | 'referredUsers' | 'userXpLevel'>
2120
- & { wallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>, activeInvites?: Maybe<Array<Pick<IActiveInvite, 'inviteCode' | 'createdAt' | 'usedTimes' | 'maxUsagesLimit' | 'reftypeId' | 'reftypeName' | 'reftypeColor'>>> }
2169
+ & { wallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>, activeInvites?: Maybe<Array<Pick<IActiveInvite, 'inviteCode' | 'createdAt' | 'usedTimes' | 'maxUsagesLimit' | 'reftypeId' | 'reftypeName' | 'reftypeColor'>>>, profileLink?: Maybe<Pick<IReferralLink, 'referralUrl' | 'numOfReferredIps' | 'numOfReferredUsers' | 'refcode' | 'reftypeId' | 'reftypeName' | 'reftypeColor' | 'maxUsagesLimit'>> }
2121
2170
  )>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>> } };
2122
2171
 
2123
2172
  export type IFetchAdminOpportunitiesPageQueryVariables = Exact<{
@@ -2149,7 +2198,7 @@ export type IFetchAdminUsersPageQueryVariables = Exact<{
2149
2198
 
2150
2199
 
2151
2200
  export type IFetchAdminUsersPageQuery = { fetchAdminUsersPage: { users: Array<(
2152
- Pick<IAdminUser, 'userId' | 'username' | 'connectedBlockchains' | 'isActive' | 'createdAt' | 'topInterests' | 'walletsValue' | 'xpLevel' | 'ludoRank' | 'inviterId' | 'ip' | 'location' | 'userLanguage'>
2201
+ Pick<IAdminUser, 'userId' | 'username' | 'connectedBlockchains' | 'isActive' | 'createdAt' | 'topInterests' | 'walletsValue' | 'xpLevel' | 'ludoRank' | 'inviterId' | 'ip' | 'location' | 'userLanguage' | 'devicePlatform'>
2153
2202
  & { wallets?: Maybe<Array<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>> }
2154
2203
  )>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>> } };
2155
2204
 
@@ -3473,6 +3522,16 @@ export const FetchAdminBrandsPageDocument = gql`
3473
3522
  facebook
3474
3523
  linkedin
3475
3524
  youtube
3525
+ referralLinks {
3526
+ referralUrl
3527
+ numOfReferredIps
3528
+ numOfReferredUsers
3529
+ refcode
3530
+ reftypeId
3531
+ reftypeName
3532
+ reftypeColor
3533
+ maxUsagesLimit
3534
+ }
3476
3535
  }
3477
3536
  nextPage {
3478
3537
  num
@@ -3613,6 +3672,16 @@ export const FetchAdminInvitesPageDocument = gql`
3613
3672
  }
3614
3673
  referredUsers
3615
3674
  userXpLevel
3675
+ profileLink {
3676
+ referralUrl
3677
+ numOfReferredIps
3678
+ numOfReferredUsers
3679
+ refcode
3680
+ reftypeId
3681
+ reftypeName
3682
+ reftypeColor
3683
+ maxUsagesLimit
3684
+ }
3616
3685
  }
3617
3686
  nextPage {
3618
3687
  num
@@ -3800,6 +3869,7 @@ export const FetchAdminUsersPageDocument = gql`
3800
3869
  ip
3801
3870
  location
3802
3871
  userLanguage
3872
+ devicePlatform
3803
3873
  }
3804
3874
  nextPage {
3805
3875
  num