@ludo.ninja/api 2.6.4 → 2.6.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.
|
@@ -39,6 +39,28 @@ export type IAdminInvite = {
|
|
|
39
39
|
userXpLevel?: Maybe<Scalars['Int']>;
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
+
export type IAdminOpportunity = {
|
|
43
|
+
opportunityId: Scalars['ID'];
|
|
44
|
+
name?: Maybe<Scalars['String']>;
|
|
45
|
+
brandName?: Maybe<Scalars['String']>;
|
|
46
|
+
industry?: Maybe<Scalars['String']>;
|
|
47
|
+
category?: Maybe<Scalars['String']>;
|
|
48
|
+
ludoUrl?: Maybe<Scalars['String']>;
|
|
49
|
+
projectUrl?: Maybe<Scalars['String']>;
|
|
50
|
+
pushNotificationsEnabled?: Maybe<Scalars['Boolean']>;
|
|
51
|
+
status?: Maybe<Scalars['String']>;
|
|
52
|
+
activeFrom?: Maybe<Scalars['Long']>;
|
|
53
|
+
activeUntil?: Maybe<Scalars['Long']>;
|
|
54
|
+
minXpLevel?: Maybe<Scalars['Int']>;
|
|
55
|
+
maxXpLevel?: Maybe<Scalars['Int']>;
|
|
56
|
+
minLudoRank?: Maybe<Scalars['Float']>;
|
|
57
|
+
maxLudoRank?: Maybe<Scalars['Float']>;
|
|
58
|
+
minWalletValue?: Maybe<Scalars['Float']>;
|
|
59
|
+
maxWalletValue?: Maybe<Scalars['Float']>;
|
|
60
|
+
clicks?: Maybe<Scalars['Int']>;
|
|
61
|
+
views?: Maybe<Scalars['Int']>;
|
|
62
|
+
};
|
|
63
|
+
|
|
42
64
|
export type IAdminPage = {
|
|
43
65
|
num?: Maybe<Scalars['Int']>;
|
|
44
66
|
lastNum?: Maybe<Scalars['Int']>;
|
|
@@ -53,6 +75,14 @@ export type IAdminPageInput = {
|
|
|
53
75
|
token?: Maybe<Scalars['String']>;
|
|
54
76
|
};
|
|
55
77
|
|
|
78
|
+
export type IAdminReferral = {
|
|
79
|
+
userId: Scalars['ID'];
|
|
80
|
+
username?: Maybe<Scalars['String']>;
|
|
81
|
+
mainWallet?: Maybe<IWallet>;
|
|
82
|
+
referredUsersNum?: Maybe<Scalars['Int']>;
|
|
83
|
+
referrals?: Maybe<Array<IReferredUsersInfo>>;
|
|
84
|
+
};
|
|
85
|
+
|
|
56
86
|
export type IAdminUser = {
|
|
57
87
|
userId: Scalars['ID'];
|
|
58
88
|
username?: Maybe<Scalars['String']>;
|
|
@@ -63,7 +93,7 @@ export type IAdminUser = {
|
|
|
63
93
|
topInterests?: Maybe<Array<Scalars['String']>>;
|
|
64
94
|
walletsValue?: Maybe<Scalars['Float']>;
|
|
65
95
|
xpLevel?: Maybe<Scalars['Int']>;
|
|
66
|
-
ludoRank?: Maybe<Scalars['
|
|
96
|
+
ludoRank?: Maybe<Scalars['Float']>;
|
|
67
97
|
inviterId?: Maybe<Scalars['String']>;
|
|
68
98
|
};
|
|
69
99
|
|
|
@@ -756,10 +786,10 @@ export type IInvitesPage = {
|
|
|
756
786
|
};
|
|
757
787
|
|
|
758
788
|
export type IInvitesSortInput = {
|
|
759
|
-
sortByUsername
|
|
760
|
-
sortByXpLevel
|
|
761
|
-
sortByActiveInvites
|
|
762
|
-
sortByReferredUsers
|
|
789
|
+
sortByUsername?: Maybe<ISort>;
|
|
790
|
+
sortByXpLevel?: Maybe<ISort>;
|
|
791
|
+
sortByActiveInvites?: Maybe<ISort>;
|
|
792
|
+
sortByReferredUsers?: Maybe<ISort>;
|
|
763
793
|
};
|
|
764
794
|
|
|
765
795
|
export type ILogin = {
|
|
@@ -1539,11 +1569,47 @@ export type IOffer = {
|
|
|
1539
1569
|
status?: Maybe<Scalars['String']>;
|
|
1540
1570
|
};
|
|
1541
1571
|
|
|
1572
|
+
export type IOpportunitiesFilterInput = {
|
|
1573
|
+
opportunityIdTerm?: Maybe<Scalars['String']>;
|
|
1574
|
+
industryTerm?: Maybe<Scalars['String']>;
|
|
1575
|
+
categoryTerm?: Maybe<Scalars['String']>;
|
|
1576
|
+
opportunityLudoUrlTerm?: Maybe<Scalars['String']>;
|
|
1577
|
+
opportunityProjectUrlTerm?: Maybe<Scalars['String']>;
|
|
1578
|
+
arePushNotificationsEnabled?: Maybe<Scalars['Boolean']>;
|
|
1579
|
+
opportunityStatusTerm?: Maybe<Scalars['String']>;
|
|
1580
|
+
activeFromTimestamp?: Maybe<Scalars['Long']>;
|
|
1581
|
+
activeUntilTimestamp?: Maybe<Scalars['Long']>;
|
|
1582
|
+
minXpLevel?: Maybe<Scalars['Int']>;
|
|
1583
|
+
maxXpLevel?: Maybe<Scalars['Int']>;
|
|
1584
|
+
minLudoRank?: Maybe<Scalars['Float']>;
|
|
1585
|
+
maxLudoRank?: Maybe<Scalars['Float']>;
|
|
1586
|
+
minWalletValue?: Maybe<Scalars['Float']>;
|
|
1587
|
+
maxWalletValue?: Maybe<Scalars['Float']>;
|
|
1588
|
+
clicks?: Maybe<Scalars['Int']>;
|
|
1589
|
+
views?: Maybe<Scalars['Int']>;
|
|
1590
|
+
};
|
|
1591
|
+
|
|
1592
|
+
export type IOpportunitiesPage = {
|
|
1593
|
+
opportunities: Array<IAdminOpportunity>;
|
|
1594
|
+
nextPage?: Maybe<IAdminPage>;
|
|
1595
|
+
};
|
|
1596
|
+
|
|
1542
1597
|
export type IOpportunitiesPageV2 = {
|
|
1543
1598
|
currentOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
1544
1599
|
similarOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
1545
1600
|
};
|
|
1546
1601
|
|
|
1602
|
+
export type IOpportunitiesSortInput = {
|
|
1603
|
+
sortByOpportunityName?: Maybe<ISort>;
|
|
1604
|
+
sortByBrandName?: Maybe<ISort>;
|
|
1605
|
+
sortByCategory?: Maybe<ISort>;
|
|
1606
|
+
sortByOpportunityStatus?: Maybe<ISort>;
|
|
1607
|
+
sortByActiveFrom?: Maybe<ISort>;
|
|
1608
|
+
sortByActiveUntil?: Maybe<ISort>;
|
|
1609
|
+
sortByMinXpLevel?: Maybe<ISort>;
|
|
1610
|
+
sortByMaxXpLevel?: Maybe<ISort>;
|
|
1611
|
+
};
|
|
1612
|
+
|
|
1547
1613
|
export type IOpportunity = {
|
|
1548
1614
|
opportunityId?: Maybe<Scalars['ID']>;
|
|
1549
1615
|
name?: Maybe<Scalars['String']>;
|
|
@@ -1652,6 +1718,8 @@ export type IProfilePage = {
|
|
|
1652
1718
|
|
|
1653
1719
|
export type IQuery = {
|
|
1654
1720
|
fetchAdminInvitesPage: IInvitesPage;
|
|
1721
|
+
fetchAdminOpportunitiesPage: IOpportunitiesPage;
|
|
1722
|
+
fetchAdminReferralsPage: IReferralsPage;
|
|
1655
1723
|
fetchAdminUsersPage: IUsersPage;
|
|
1656
1724
|
fetchAdminXpPage: IXpPage;
|
|
1657
1725
|
fetchAllAssets: IAssetsPage;
|
|
@@ -1803,6 +1871,20 @@ export type IQueryFetchAdminInvitesPageArgs = {
|
|
|
1803
1871
|
};
|
|
1804
1872
|
|
|
1805
1873
|
|
|
1874
|
+
export type IQueryFetchAdminOpportunitiesPageArgs = {
|
|
1875
|
+
filter: IOpportunitiesFilterInput;
|
|
1876
|
+
sort: IOpportunitiesSortInput;
|
|
1877
|
+
page: IAdminPageInput;
|
|
1878
|
+
};
|
|
1879
|
+
|
|
1880
|
+
|
|
1881
|
+
export type IQueryFetchAdminReferralsPageArgs = {
|
|
1882
|
+
filter: IReferralsFilterInput;
|
|
1883
|
+
sort: IReferralsSortInput;
|
|
1884
|
+
page: IAdminPageInput;
|
|
1885
|
+
};
|
|
1886
|
+
|
|
1887
|
+
|
|
1806
1888
|
export type IQueryFetchAdminUsersPageArgs = {
|
|
1807
1889
|
filter: IUsersFilterInput;
|
|
1808
1890
|
sort: IUsersSortInput;
|
|
@@ -2365,6 +2447,31 @@ export type IQuerySetMainWalletArgs = {
|
|
|
2365
2447
|
chainId?: Maybe<Scalars['String']>;
|
|
2366
2448
|
};
|
|
2367
2449
|
|
|
2450
|
+
export type IReferralsFilterInput = {
|
|
2451
|
+
userIdTerm?: Maybe<Scalars['String']>;
|
|
2452
|
+
usernameTerm?: Maybe<Scalars['String']>;
|
|
2453
|
+
mainWalletTerm?: Maybe<Scalars['String']>;
|
|
2454
|
+
referredUsersNumTerm?: Maybe<Scalars['String']>;
|
|
2455
|
+
userRefUrlTerm?: Maybe<Scalars['String']>;
|
|
2456
|
+
opportunityUrlTerm?: Maybe<Scalars['String']>;
|
|
2457
|
+
};
|
|
2458
|
+
|
|
2459
|
+
export type IReferralsPage = {
|
|
2460
|
+
adminReferrals: Array<IAdminReferral>;
|
|
2461
|
+
nextPage?: Maybe<IAdminPage>;
|
|
2462
|
+
};
|
|
2463
|
+
|
|
2464
|
+
export type IReferralsSortInput = {
|
|
2465
|
+
sortByUsername?: Maybe<ISort>;
|
|
2466
|
+
sortByReferredUsersNum?: Maybe<ISort>;
|
|
2467
|
+
};
|
|
2468
|
+
|
|
2469
|
+
export type IReferredUsersInfo = {
|
|
2470
|
+
userRefUrl: Scalars['String'];
|
|
2471
|
+
opportunityUrl: Scalars['String'];
|
|
2472
|
+
referredUsersPerUrlNum: Scalars['Int'];
|
|
2473
|
+
};
|
|
2474
|
+
|
|
2368
2475
|
export type ISearchFilterInput = {
|
|
2369
2476
|
categories?: Maybe<Array<Maybe<ISelectionInput>>>;
|
|
2370
2477
|
sort: ISelectionInput;
|
|
@@ -2463,8 +2570,8 @@ export type ISort = {
|
|
|
2463
2570
|
};
|
|
2464
2571
|
|
|
2465
2572
|
export enum ISortDirection {
|
|
2466
|
-
Asc = '
|
|
2467
|
-
Desc = '
|
|
2573
|
+
Asc = 'asc',
|
|
2574
|
+
Desc = 'desc'
|
|
2468
2575
|
}
|
|
2469
2576
|
|
|
2470
2577
|
export type ISubscription = {
|
|
@@ -2688,7 +2795,7 @@ export type IUsersFilterInput = {
|
|
|
2688
2795
|
interestTerm?: Maybe<Scalars['String']>;
|
|
2689
2796
|
walletsValue?: Maybe<Scalars['Float']>;
|
|
2690
2797
|
xpLevel?: Maybe<Scalars['Int']>;
|
|
2691
|
-
ludoRank?: Maybe<Scalars['
|
|
2798
|
+
ludoRank?: Maybe<Scalars['Float']>;
|
|
2692
2799
|
invitedByTerm?: Maybe<Scalars['String']>;
|
|
2693
2800
|
};
|
|
2694
2801
|
|
|
@@ -2698,12 +2805,12 @@ export type IUsersPage = {
|
|
|
2698
2805
|
};
|
|
2699
2806
|
|
|
2700
2807
|
export type IUsersSortInput = {
|
|
2701
|
-
sortByUsername
|
|
2702
|
-
sortByAccountStatus
|
|
2703
|
-
sortByCreatedDate
|
|
2704
|
-
sortByWalletsValue
|
|
2705
|
-
sortByXpLevel
|
|
2706
|
-
sortByLudoRank
|
|
2808
|
+
sortByUsername?: Maybe<ISort>;
|
|
2809
|
+
sortByAccountStatus?: Maybe<ISort>;
|
|
2810
|
+
sortByCreatedDate?: Maybe<ISort>;
|
|
2811
|
+
sortByWalletsValue?: Maybe<ISort>;
|
|
2812
|
+
sortByXpLevel?: Maybe<ISort>;
|
|
2813
|
+
sortByLudoRank?: Maybe<ISort>;
|
|
2707
2814
|
};
|
|
2708
2815
|
|
|
2709
2816
|
export type IWallet = {
|
|
@@ -2737,14 +2844,14 @@ export type IXpPage = {
|
|
|
2737
2844
|
};
|
|
2738
2845
|
|
|
2739
2846
|
export type IXpSortInput = {
|
|
2740
|
-
sortByUsername
|
|
2741
|
-
sortByXpLevel
|
|
2742
|
-
sortByXpPoints
|
|
2743
|
-
sortByInvitedUsers
|
|
2744
|
-
sortByReferredUsersNum
|
|
2745
|
-
sortByJoinedOpportunities
|
|
2746
|
-
sortByConnectedWalletsNum
|
|
2747
|
-
sortBySuggestedOpportunities
|
|
2847
|
+
sortByUsername?: Maybe<ISort>;
|
|
2848
|
+
sortByXpLevel?: Maybe<ISort>;
|
|
2849
|
+
sortByXpPoints?: Maybe<ISort>;
|
|
2850
|
+
sortByInvitedUsers?: Maybe<ISort>;
|
|
2851
|
+
sortByReferredUsersNum?: Maybe<ISort>;
|
|
2852
|
+
sortByJoinedOpportunities?: Maybe<ISort>;
|
|
2853
|
+
sortByConnectedWalletsNum?: Maybe<ISort>;
|
|
2854
|
+
sortBySuggestedOpportunities?: Maybe<ISort>;
|
|
2748
2855
|
};
|
|
2749
2856
|
|
|
2750
2857
|
export type IChangeXpPointsMutationVariables = Exact<{
|
|
@@ -3462,6 +3569,18 @@ export type ISetMainWalletMutationVariables = Exact<{
|
|
|
3462
3569
|
|
|
3463
3570
|
export type ISetMainWalletMutation = Pick<IMutation, 'setMainWallet'>;
|
|
3464
3571
|
|
|
3572
|
+
export type ISignInAdminMetamaskMutationVariables = Exact<{
|
|
3573
|
+
signature: Scalars['String'];
|
|
3574
|
+
address: Scalars['String'];
|
|
3575
|
+
chainId: Scalars['String'];
|
|
3576
|
+
}>;
|
|
3577
|
+
|
|
3578
|
+
|
|
3579
|
+
export type ISignInAdminMetamaskMutation = { signInAdminMetamask: (
|
|
3580
|
+
Pick<IIdentity, 'userId' | 'wallets' | 'newUser' | 'inviteCode'>
|
|
3581
|
+
& { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
|
|
3582
|
+
) };
|
|
3583
|
+
|
|
3465
3584
|
export type ISignInElrondMutationVariables = Exact<{
|
|
3466
3585
|
signature: Scalars['String'];
|
|
3467
3586
|
address: Scalars['String'];
|
|
@@ -7211,6 +7330,53 @@ export function useSetMainWalletMutation(baseOptions?: Apollo.MutationHookOption
|
|
|
7211
7330
|
export type SetMainWalletMutationHookResult = ReturnType<typeof useSetMainWalletMutation>;
|
|
7212
7331
|
export type SetMainWalletMutationResult = Apollo.MutationResult<ISetMainWalletMutation>;
|
|
7213
7332
|
export type SetMainWalletMutationOptions = Apollo.BaseMutationOptions<ISetMainWalletMutation, ISetMainWalletMutationVariables>;
|
|
7333
|
+
export const SignInAdminMetamaskDocument = gql`
|
|
7334
|
+
mutation SignInAdminMetamask($signature: String!, $address: String!, $chainId: String!) {
|
|
7335
|
+
signInAdminMetamask(signature: $signature, address: $address, chainId: $chainId) {
|
|
7336
|
+
userId
|
|
7337
|
+
wallets
|
|
7338
|
+
tokens {
|
|
7339
|
+
portalTokenPair {
|
|
7340
|
+
authToken
|
|
7341
|
+
refreshToken
|
|
7342
|
+
}
|
|
7343
|
+
extensionTokenPair {
|
|
7344
|
+
authToken
|
|
7345
|
+
refreshToken
|
|
7346
|
+
}
|
|
7347
|
+
}
|
|
7348
|
+
newUser
|
|
7349
|
+
inviteCode
|
|
7350
|
+
}
|
|
7351
|
+
}
|
|
7352
|
+
`;
|
|
7353
|
+
export type ISignInAdminMetamaskMutationFn = Apollo.MutationFunction<ISignInAdminMetamaskMutation, ISignInAdminMetamaskMutationVariables>;
|
|
7354
|
+
|
|
7355
|
+
/**
|
|
7356
|
+
* __useSignInAdminMetamaskMutation__
|
|
7357
|
+
*
|
|
7358
|
+
* To run a mutation, you first call `useSignInAdminMetamaskMutation` within a React component and pass it any options that fit your needs.
|
|
7359
|
+
* When your component renders, `useSignInAdminMetamaskMutation` returns a tuple that includes:
|
|
7360
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
7361
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
7362
|
+
*
|
|
7363
|
+
* @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;
|
|
7364
|
+
*
|
|
7365
|
+
* @example
|
|
7366
|
+
* const [signInAdminMetamaskMutation, { data, loading, error }] = useSignInAdminMetamaskMutation({
|
|
7367
|
+
* variables: {
|
|
7368
|
+
* signature: // value for 'signature'
|
|
7369
|
+
* address: // value for 'address'
|
|
7370
|
+
* chainId: // value for 'chainId'
|
|
7371
|
+
* },
|
|
7372
|
+
* });
|
|
7373
|
+
*/
|
|
7374
|
+
export function useSignInAdminMetamaskMutation(baseOptions?: Apollo.MutationHookOptions<ISignInAdminMetamaskMutation, ISignInAdminMetamaskMutationVariables>) {
|
|
7375
|
+
return Apollo.useMutation<ISignInAdminMetamaskMutation, ISignInAdminMetamaskMutationVariables>(SignInAdminMetamaskDocument, baseOptions);
|
|
7376
|
+
}
|
|
7377
|
+
export type SignInAdminMetamaskMutationHookResult = ReturnType<typeof useSignInAdminMetamaskMutation>;
|
|
7378
|
+
export type SignInAdminMetamaskMutationResult = Apollo.MutationResult<ISignInAdminMetamaskMutation>;
|
|
7379
|
+
export type SignInAdminMetamaskMutationOptions = Apollo.BaseMutationOptions<ISignInAdminMetamaskMutation, ISignInAdminMetamaskMutationVariables>;
|
|
7214
7380
|
export const SignInElrondDocument = gql`
|
|
7215
7381
|
mutation SignInElrond($signature: String!, $address: String!) {
|
|
7216
7382
|
signInElrond(signature: $signature, address: $address) {
|