@ludo.ninja/api 2.2.9 → 2.3.0
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.
- package/build/graphql_tools/__generated__/schema.d.ts +156 -3
- package/build/graphql_tools/__generated__/schema.js +70 -6
- package/package.json +1 -1
- package/src/config/index.ts +7 -7
- package/src/cookies/index.ts +3 -4
- package/src/graphql_tools/__generated__/schema.ts +209 -3
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -19,12 +19,37 @@ export type Scalars = {
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
export type IActiveInvite = {
|
|
23
|
+
inviteCode?: Maybe<Scalars['String']>;
|
|
24
|
+
createdAt?: Maybe<Scalars['Long']>;
|
|
25
|
+
};
|
|
26
|
+
|
|
22
27
|
export type IAddress = {
|
|
23
28
|
creators?: Maybe<Array<Maybe<IWallet>>>;
|
|
24
29
|
owners?: Maybe<Array<Maybe<IWallet>>>;
|
|
25
30
|
associateAddresses?: Maybe<Array<Maybe<IWallet>>>;
|
|
26
31
|
};
|
|
27
32
|
|
|
33
|
+
export type IAdminInvite = {
|
|
34
|
+
userId: Scalars['String'];
|
|
35
|
+
wallet?: Maybe<IWallet>;
|
|
36
|
+
activeInvites?: Maybe<Array<IActiveInvite>>;
|
|
37
|
+
referredUsers?: Maybe<Array<Scalars['String']>>;
|
|
38
|
+
userXpLevel?: Maybe<Scalars['Int']>;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export type IAdminXp = {
|
|
42
|
+
userId: Scalars['ID'];
|
|
43
|
+
mainWallet?: Maybe<IWallet>;
|
|
44
|
+
userXpLevel?: Maybe<Scalars['Int']>;
|
|
45
|
+
userXpPoints?: Maybe<Scalars['Int']>;
|
|
46
|
+
referredUsers?: Maybe<Array<Scalars['ID']>>;
|
|
47
|
+
referredUsersNum?: Maybe<Scalars['Int']>;
|
|
48
|
+
joinedOpportunityIds?: Maybe<Array<Scalars['String']>>;
|
|
49
|
+
connectedWalletsNum?: Maybe<Scalars['Int']>;
|
|
50
|
+
suggestedOpportunityIds?: Maybe<Array<Scalars['String']>>;
|
|
51
|
+
};
|
|
52
|
+
|
|
28
53
|
export type IAsset = {
|
|
29
54
|
address?: Maybe<Scalars['String']>;
|
|
30
55
|
assetId: Scalars['String'];
|
|
@@ -651,6 +676,25 @@ export type IInterest = {
|
|
|
651
676
|
imageUrl: Scalars['String'];
|
|
652
677
|
};
|
|
653
678
|
|
|
679
|
+
export type IInvitesFilterInput = {
|
|
680
|
+
userIdTerm?: Maybe<Scalars['String']>;
|
|
681
|
+
mainWalletTerm?: Maybe<Scalars['String']>;
|
|
682
|
+
userXpLevelTerm?: Maybe<Scalars['String']>;
|
|
683
|
+
activeInviteTerm?: Maybe<Scalars['String']>;
|
|
684
|
+
referredUserTerm?: Maybe<Scalars['String']>;
|
|
685
|
+
};
|
|
686
|
+
|
|
687
|
+
export type IInvitesPage = {
|
|
688
|
+
invites: Array<IAdminInvite>;
|
|
689
|
+
nextPage?: Maybe<IPage>;
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
export type IInvitesSortInput = {
|
|
693
|
+
sortByXpLevel: ISort;
|
|
694
|
+
sortByActiveInvites: ISort;
|
|
695
|
+
sortByReferredUsers: ISort;
|
|
696
|
+
};
|
|
697
|
+
|
|
654
698
|
export type ILogin = {
|
|
655
699
|
userId?: Maybe<Scalars['ID']>;
|
|
656
700
|
loggedTime?: Maybe<Scalars['Long']>;
|
|
@@ -709,6 +753,8 @@ export type IMutation = {
|
|
|
709
753
|
addCollectionsToGalleryV2: Scalars['Boolean'];
|
|
710
754
|
addCreationsToGallery: Scalars['Boolean'];
|
|
711
755
|
addCreationsToGalleryV2: Scalars['Boolean'];
|
|
756
|
+
addInviteCodes: Scalars['Boolean'];
|
|
757
|
+
addSuggestedOpportunity: Scalars['Boolean'];
|
|
712
758
|
addWalletBitcoin: Scalars['Boolean'];
|
|
713
759
|
addWalletElrond: Scalars['Boolean'];
|
|
714
760
|
addWalletFlow: Scalars['Boolean'];
|
|
@@ -724,6 +770,7 @@ export type IMutation = {
|
|
|
724
770
|
approveUsers: Scalars['Boolean'];
|
|
725
771
|
blockUser: Scalars['Boolean'];
|
|
726
772
|
blockUsers: Scalars['Boolean'];
|
|
773
|
+
changeXpPoints: Scalars['Boolean'];
|
|
727
774
|
createFavoriteListV2: Scalars['ID'];
|
|
728
775
|
createFavorites: Scalars['ID'];
|
|
729
776
|
createGallery: Scalars['ID'];
|
|
@@ -759,6 +806,8 @@ export type IMutation = {
|
|
|
759
806
|
removeCollectionFromGalleryV2: Scalars['Boolean'];
|
|
760
807
|
removeCreationFromGallery: Scalars['Boolean'];
|
|
761
808
|
removeCreationFromGalleryV2: Scalars['Boolean'];
|
|
809
|
+
removeInviteCode: Scalars['Boolean'];
|
|
810
|
+
removeSuggestedOpportunity: Scalars['Boolean'];
|
|
762
811
|
removeWallet: Scalars['Boolean'];
|
|
763
812
|
reportAsset: Scalars['Boolean'];
|
|
764
813
|
reportGallery: Scalars['Boolean'];
|
|
@@ -835,6 +884,18 @@ export type IMutationAddCreationsToGalleryV2Args = {
|
|
|
835
884
|
};
|
|
836
885
|
|
|
837
886
|
|
|
887
|
+
export type IMutationAddInviteCodesArgs = {
|
|
888
|
+
userId: Scalars['String'];
|
|
889
|
+
codesNum: Scalars['Int'];
|
|
890
|
+
};
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
export type IMutationAddSuggestedOpportunityArgs = {
|
|
894
|
+
userId: Scalars['ID'];
|
|
895
|
+
opportunityId: Scalars['String'];
|
|
896
|
+
};
|
|
897
|
+
|
|
898
|
+
|
|
838
899
|
export type IMutationAddWalletBitcoinArgs = {
|
|
839
900
|
signature: Scalars['String'];
|
|
840
901
|
address: Scalars['String'];
|
|
@@ -923,6 +984,12 @@ export type IMutationBlockUsersArgs = {
|
|
|
923
984
|
};
|
|
924
985
|
|
|
925
986
|
|
|
987
|
+
export type IMutationChangeXpPointsArgs = {
|
|
988
|
+
userId: Scalars['ID'];
|
|
989
|
+
pointsDiff: Scalars['Int'];
|
|
990
|
+
};
|
|
991
|
+
|
|
992
|
+
|
|
926
993
|
export type IMutationCreateFavoriteListV2Args = {
|
|
927
994
|
name: Scalars['String'];
|
|
928
995
|
description?: Maybe<Scalars['String']>;
|
|
@@ -1120,6 +1187,17 @@ export type IMutationRemoveCreationFromGalleryV2Args = {
|
|
|
1120
1187
|
};
|
|
1121
1188
|
|
|
1122
1189
|
|
|
1190
|
+
export type IMutationRemoveInviteCodeArgs = {
|
|
1191
|
+
inviteCode: Scalars['String'];
|
|
1192
|
+
};
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
export type IMutationRemoveSuggestedOpportunityArgs = {
|
|
1196
|
+
userId: Scalars['ID'];
|
|
1197
|
+
opportunityId: Scalars['String'];
|
|
1198
|
+
};
|
|
1199
|
+
|
|
1200
|
+
|
|
1123
1201
|
export type IMutationRemoveWalletArgs = {
|
|
1124
1202
|
blockchain: Scalars['String'];
|
|
1125
1203
|
address: Scalars['String'];
|
|
@@ -1391,15 +1469,17 @@ export type IOpportunityPage = {
|
|
|
1391
1469
|
};
|
|
1392
1470
|
|
|
1393
1471
|
export type IPage = {
|
|
1394
|
-
|
|
1472
|
+
elements?: Maybe<Scalars['Long']>;
|
|
1473
|
+
lastNum?: Maybe<Scalars['Int']>;
|
|
1395
1474
|
num?: Maybe<Scalars['Int']>;
|
|
1396
1475
|
size?: Maybe<Scalars['Int']>;
|
|
1397
|
-
|
|
1476
|
+
token?: Maybe<Scalars['String']>;
|
|
1398
1477
|
};
|
|
1399
1478
|
|
|
1400
1479
|
export type IPageInput = {
|
|
1480
|
+
num: Scalars['Int'];
|
|
1481
|
+
size: Scalars['Int'];
|
|
1401
1482
|
token?: Maybe<Scalars['String']>;
|
|
1402
|
-
size?: Maybe<Scalars['Int']>;
|
|
1403
1483
|
};
|
|
1404
1484
|
|
|
1405
1485
|
export type IProfile = {
|
|
@@ -1432,6 +1512,8 @@ export type IProfilePage = {
|
|
|
1432
1512
|
};
|
|
1433
1513
|
|
|
1434
1514
|
export type IQuery = {
|
|
1515
|
+
fetchAdminInvitesPage: IInvitesPage;
|
|
1516
|
+
fetchAdminXpPage: IXpPage;
|
|
1435
1517
|
fetchAllAssets: IAssetsPage;
|
|
1436
1518
|
fetchAllBannerAssets: IBannerAssetsPage;
|
|
1437
1519
|
fetchAllCreations: ICreationsPage;
|
|
@@ -1569,6 +1651,20 @@ export type IQuery = {
|
|
|
1569
1651
|
};
|
|
1570
1652
|
|
|
1571
1653
|
|
|
1654
|
+
export type IQueryFetchAdminInvitesPageArgs = {
|
|
1655
|
+
filter: IInvitesFilterInput;
|
|
1656
|
+
sort: IInvitesSortInput;
|
|
1657
|
+
page: IPageInput;
|
|
1658
|
+
};
|
|
1659
|
+
|
|
1660
|
+
|
|
1661
|
+
export type IQueryFetchAdminXpPageArgs = {
|
|
1662
|
+
filter: IXpFilterInput;
|
|
1663
|
+
sort: IXpSortInput;
|
|
1664
|
+
page: IPageInput;
|
|
1665
|
+
};
|
|
1666
|
+
|
|
1667
|
+
|
|
1572
1668
|
export type IQueryFetchAllAssetsArgs = {
|
|
1573
1669
|
pageSize: Scalars['Int'];
|
|
1574
1670
|
pageToken?: Maybe<Scalars['String']>;
|
|
@@ -2192,6 +2288,16 @@ export type ISocial = {
|
|
|
2192
2288
|
website?: Maybe<Scalars['String']>;
|
|
2193
2289
|
};
|
|
2194
2290
|
|
|
2291
|
+
export type ISort = {
|
|
2292
|
+
enabled: Scalars['Boolean'];
|
|
2293
|
+
direction?: Maybe<ISortDirection>;
|
|
2294
|
+
};
|
|
2295
|
+
|
|
2296
|
+
export enum ISortDirection {
|
|
2297
|
+
Asc = 'ASC',
|
|
2298
|
+
Desc = 'DESC'
|
|
2299
|
+
}
|
|
2300
|
+
|
|
2195
2301
|
export type ISubscription = {
|
|
2196
2302
|
onMyExperienceUpdated: IUserXp;
|
|
2197
2303
|
onMyExperienceIncremented: IUserXpIncrement;
|
|
@@ -2414,6 +2520,45 @@ export type IWallet = {
|
|
|
2414
2520
|
walletName: Scalars['String'];
|
|
2415
2521
|
};
|
|
2416
2522
|
|
|
2523
|
+
export type IXpFilterInput = {
|
|
2524
|
+
userIdTerm?: Maybe<Scalars['String']>;
|
|
2525
|
+
mainWalletTerm?: Maybe<Scalars['String']>;
|
|
2526
|
+
userXpLevelTerm?: Maybe<Scalars['String']>;
|
|
2527
|
+
userXpPointsTerm?: Maybe<Scalars['String']>;
|
|
2528
|
+
invitedUserTerm?: Maybe<Scalars['String']>;
|
|
2529
|
+
referredUsersNumTerm?: Maybe<Scalars['String']>;
|
|
2530
|
+
joinedOpportunityTerm?: Maybe<Scalars['String']>;
|
|
2531
|
+
connectedWalletsNumTerm?: Maybe<Scalars['String']>;
|
|
2532
|
+
suggestedOpportunityTerm?: Maybe<Scalars['String']>;
|
|
2533
|
+
};
|
|
2534
|
+
|
|
2535
|
+
export type IXpPage = {
|
|
2536
|
+
xps: Array<IAdminXp>;
|
|
2537
|
+
nextPage?: Maybe<IPage>;
|
|
2538
|
+
};
|
|
2539
|
+
|
|
2540
|
+
export type IXpSortInput = {
|
|
2541
|
+
sortByXpLevel: ISort;
|
|
2542
|
+
sortByXpPoints: ISort;
|
|
2543
|
+
sortByInvitedUsers: ISort;
|
|
2544
|
+
sortByReferredUsersNum: ISort;
|
|
2545
|
+
sortByJoinedOpportunities: ISort;
|
|
2546
|
+
sortByConnectedWalletsNum: ISort;
|
|
2547
|
+
sortBySuggestedOpportunities: ISort;
|
|
2548
|
+
};
|
|
2549
|
+
|
|
2550
|
+
export type IFetchAdminXpPageQueryVariables = Exact<{
|
|
2551
|
+
filter: IXpFilterInput;
|
|
2552
|
+
sort: IXpSortInput;
|
|
2553
|
+
page: IPageInput;
|
|
2554
|
+
}>;
|
|
2555
|
+
|
|
2556
|
+
|
|
2557
|
+
export type IFetchAdminXpPageQuery = { fetchAdminXpPage: { xps: Array<(
|
|
2558
|
+
Pick<IAdminXp, 'userId' | 'userXpLevel' | 'userXpPoints' | 'referredUsers' | 'referredUsersNum' | 'joinedOpportunityIds' | 'connectedWalletsNum' | 'suggestedOpportunityIds'>
|
|
2559
|
+
& { mainWallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId' | 'mainWallet' | 'name' | 'url' | 'userId' | 'walletName'>> }
|
|
2560
|
+
)>, nextPage?: Maybe<Pick<IPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
|
|
2561
|
+
|
|
2417
2562
|
export type IDislikeAssetMutationVariables = Exact<{
|
|
2418
2563
|
assetId: Scalars['String'];
|
|
2419
2564
|
}>;
|
|
@@ -3320,6 +3465,67 @@ export type IFindUserShowcaseItemsQuery = { findUserShowcaseItems: (
|
|
|
3320
3465
|
) };
|
|
3321
3466
|
|
|
3322
3467
|
|
|
3468
|
+
export const FetchAdminXpPageDocument = gql`
|
|
3469
|
+
query FetchAdminXpPage($filter: XpFilterInput!, $sort: XpSortInput!, $page: PageInput!) {
|
|
3470
|
+
fetchAdminXpPage(filter: $filter, sort: $sort, page: $page) {
|
|
3471
|
+
xps {
|
|
3472
|
+
userId
|
|
3473
|
+
mainWallet {
|
|
3474
|
+
address
|
|
3475
|
+
blockchain
|
|
3476
|
+
chainId
|
|
3477
|
+
mainWallet
|
|
3478
|
+
name
|
|
3479
|
+
url
|
|
3480
|
+
userId
|
|
3481
|
+
walletName
|
|
3482
|
+
}
|
|
3483
|
+
userXpLevel
|
|
3484
|
+
userXpPoints
|
|
3485
|
+
referredUsers
|
|
3486
|
+
referredUsersNum
|
|
3487
|
+
joinedOpportunityIds
|
|
3488
|
+
connectedWalletsNum
|
|
3489
|
+
suggestedOpportunityIds
|
|
3490
|
+
}
|
|
3491
|
+
nextPage {
|
|
3492
|
+
elements
|
|
3493
|
+
lastNum
|
|
3494
|
+
num
|
|
3495
|
+
size
|
|
3496
|
+
token
|
|
3497
|
+
}
|
|
3498
|
+
}
|
|
3499
|
+
}
|
|
3500
|
+
`;
|
|
3501
|
+
|
|
3502
|
+
/**
|
|
3503
|
+
* __useFetchAdminXpPageQuery__
|
|
3504
|
+
*
|
|
3505
|
+
* To run a query within a React component, call `useFetchAdminXpPageQuery` and pass it any options that fit your needs.
|
|
3506
|
+
* When your component renders, `useFetchAdminXpPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3507
|
+
* you can use to render your UI.
|
|
3508
|
+
*
|
|
3509
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3510
|
+
*
|
|
3511
|
+
* @example
|
|
3512
|
+
* const { data, loading, error } = useFetchAdminXpPageQuery({
|
|
3513
|
+
* variables: {
|
|
3514
|
+
* filter: // value for 'filter'
|
|
3515
|
+
* sort: // value for 'sort'
|
|
3516
|
+
* page: // value for 'page'
|
|
3517
|
+
* },
|
|
3518
|
+
* });
|
|
3519
|
+
*/
|
|
3520
|
+
export function useFetchAdminXpPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>) {
|
|
3521
|
+
return Apollo.useQuery<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>(FetchAdminXpPageDocument, baseOptions);
|
|
3522
|
+
}
|
|
3523
|
+
export function useFetchAdminXpPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>) {
|
|
3524
|
+
return Apollo.useLazyQuery<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>(FetchAdminXpPageDocument, baseOptions);
|
|
3525
|
+
}
|
|
3526
|
+
export type FetchAdminXpPageQueryHookResult = ReturnType<typeof useFetchAdminXpPageQuery>;
|
|
3527
|
+
export type FetchAdminXpPageLazyQueryHookResult = ReturnType<typeof useFetchAdminXpPageLazyQuery>;
|
|
3528
|
+
export type FetchAdminXpPageQueryResult = Apollo.QueryResult<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>;
|
|
3323
3529
|
export const DislikeAssetDocument = gql`
|
|
3324
3530
|
mutation DislikeAsset($assetId: String!) {
|
|
3325
3531
|
dislikeAsset(assetId: $assetId)
|