@ludo.ninja/api 3.2.47 → 3.2.49
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__/experiencesHost/schema.d.ts +24 -77
- package/build/graphql_tools/__generated__/experiencesHost/schema.js +1 -40
- package/build/graphql_tools/__generated__/identityHost/schema.d.ts +34 -0
- package/build/graphql_tools/__generated__/identityHost/schema.js +28 -2
- package/build/graphql_tools/__generated__/searchHost/schema.d.ts +92 -5
- package/build/graphql_tools/__generated__/searchHost/schema.js +52 -3
- package/build/index.d.ts +27 -17
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/experiencesHost/schema.ts +28 -95
- package/src/graphql_tools/__generated__/identityHost/schema.ts +44 -0
- package/src/graphql_tools/__generated__/searchHost/schema.ts +121 -5
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.useFindAllTopEntitiesByNameQuery = exports.FindAllTopEntitiesByNameDocument = exports.useFetchDynamicCollectionsDataLazyQuery = exports.useFetchDynamicCollectionsDataQuery = exports.FetchDynamicCollectionsDataDocument = exports.useFetchDynamicCollectionDataLazyQuery = exports.useFetchDynamicCollectionDataQuery = exports.FetchDynamicCollectionDataDocument = exports.useFetchDynamicAssetsLikesLazyQuery = exports.useFetchDynamicAssetsLikesQuery = exports.FetchDynamicAssetsLikesDocument = exports.useFetchDynamicAssetLikesLazyQuery = exports.useFetchDynamicAssetLikesQuery = exports.FetchDynamicAssetLikesDocument = exports.useFetchCreationsByTypeLazyQuery = exports.useFetchCreationsByTypeQuery = exports.FetchCreationsByTypeDocument = exports.useFetchCollectionsByIdsLazyQuery = exports.useFetchCollectionsByIdsQuery = exports.FetchCollectionsByIdsDocument = exports.useFindCollectionsLazyQuery = exports.useFindCollectionsQuery = exports.FindCollectionsDocument = exports.useFetchCollectionLazyQuery = exports.useFetchCollectionQuery = exports.FetchCollectionDocument = exports.useFetchAvailableLeaderboardsLazyQuery = exports.useFetchAvailableLeaderboardsQuery = exports.FetchAvailableLeaderboardsDocument = exports.useFetchAssetsLazyQuery = exports.useFetchAssetsQuery = exports.FetchAssetsDocument = exports.useFetchAssetByBlockchainLazyQuery = exports.useFetchAssetByBlockchainQuery = exports.FetchAssetByBlockchainDocument = exports.useFetchAllCreationsLazyQuery = exports.useFetchAllCreationsQuery = exports.FetchAllCreationsDocument = exports.useFetchAirdropsLeaderboardLazyQuery = exports.useFetchAirdropsLeaderboardQuery = exports.FetchAirdropsLeaderboardDocument = exports.useLikeAssetMutation = exports.LikeAssetDocument = exports.useDislikeAssetMutation = exports.DislikeAssetDocument = exports.ISortDirection = exports.IReftypeColor = exports.IProjectType = exports.ILeaderboardType = exports.IBlockchain = void 0;
|
|
27
|
-
exports.useFindUserLudoCreationsLazyQuery = exports.useFindUserLudoCreationsQuery = exports.FindUserLudoCreationsDocument = exports.useFindUserCreationsLazyQuery = exports.useFindUserCreationsQuery = exports.FindUserCreationsDocument = exports.useFindProfilesByNameLazyQuery = exports.useFindProfilesByNameQuery = exports.FindProfilesByNameDocument = exports.useFindCreationsLazyQuery = exports.useFindCreationsQuery = exports.FindCreationsDocument = exports.useFetchUserReferralsInfoPageLazyQuery = exports.useFetchUserReferralsInfoPageQuery = exports.FetchUserReferralsInfoPageDocument = exports.useFetchUserReferralsInfoCsvLazyQuery = exports.useFetchUserReferralsInfoCsvQuery = exports.FetchUserReferralsInfoCsvDocument = exports.useFetchUsedForMintingRefCodeLazyQuery = exports.useFetchUsedForMintingRefCodeQuery = exports.FetchUsedForMintingRefCodeDocument = exports.useFetchUsedForMintingDataLazyQuery = exports.useFetchUsedForMintingDataQuery = exports.FetchUsedForMintingDataDocument = exports.useFetchProjectsSlugsLazyQuery = exports.useFetchProjectsSlugsQuery = exports.FetchProjectsSlugsDocument = exports.useFetchProjectsPageLazyQuery = exports.useFetchProjectsPageQuery = exports.FetchProjectsPageDocument = exports.useFetchProjectsLeaderboardLazyQuery = exports.useFetchProjectsLeaderboardQuery = exports.FetchProjectsLeaderboardDocument = exports.useFetchProjectsByTermLazyQuery = exports.useFetchProjectsByTermQuery = exports.FetchProjectsByTermDocument = exports.useFetchUserPortfolioLazyQuery = exports.useFetchUserPortfolioQuery = exports.FetchUserPortfolioDocument = exports.useFetchLudoNftsTonPageLazyQuery = exports.useFetchLudoNftsTonPageQuery = exports.FetchLudoNftsTonPageDocument = exports.useFindAllTopEntitiesByNameLazyQuery = void 0;
|
|
27
|
+
exports.useFindUserLudoCreationsLazyQuery = exports.useFindUserLudoCreationsQuery = exports.FindUserLudoCreationsDocument = exports.useFindUserCreationsLazyQuery = exports.useFindUserCreationsQuery = exports.FindUserCreationsDocument = exports.useFindProfilesByNameLazyQuery = exports.useFindProfilesByNameQuery = exports.FindProfilesByNameDocument = exports.useFindCreationsLazyQuery = exports.useFindCreationsQuery = exports.FindCreationsDocument = exports.useFetchUserReferralsInfoPageLazyQuery = exports.useFetchUserReferralsInfoPageQuery = exports.FetchUserReferralsInfoPageDocument = exports.useFetchUserReferralsInfoCsvLazyQuery = exports.useFetchUserReferralsInfoCsvQuery = exports.FetchUserReferralsInfoCsvDocument = exports.useFetchUsedForMintingRefCodeLazyQuery = exports.useFetchUsedForMintingRefCodeQuery = exports.FetchUsedForMintingRefCodeDocument = exports.useFetchUsedForMintingDataLazyQuery = exports.useFetchUsedForMintingDataQuery = exports.FetchUsedForMintingDataDocument = exports.useFetchProjectsSlugsLazyQuery = exports.useFetchProjectsSlugsQuery = exports.FetchProjectsSlugsDocument = exports.useFetchProjectsPageLazyQuery = exports.useFetchProjectsPageQuery = exports.FetchProjectsPageDocument = exports.useFetchProjectsLeaderboardLazyQuery = exports.useFetchProjectsLeaderboardQuery = exports.FetchProjectsLeaderboardDocument = exports.useFetchProjectsByTermLazyQuery = exports.useFetchProjectsByTermQuery = exports.FetchProjectsByTermDocument = exports.useFetchUserPortfolioLazyQuery = exports.useFetchUserPortfolioQuery = exports.FetchUserPortfolioDocument = exports.useFetchMyXpEarningsPageLazyQuery = exports.useFetchMyXpEarningsPageQuery = exports.FetchMyXpEarningsPageDocument = exports.useFetchLudoNftsTonPageLazyQuery = exports.useFetchLudoNftsTonPageQuery = exports.FetchLudoNftsTonPageDocument = exports.useFindAllTopEntitiesByNameLazyQuery = void 0;
|
|
28
28
|
const client_1 = require("@apollo/client");
|
|
29
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
30
30
|
var IBlockchain;
|
|
@@ -1254,6 +1254,53 @@ function useFetchLudoNftsTonPageLazyQuery(baseOptions) {
|
|
|
1254
1254
|
return Apollo.useLazyQuery(exports.FetchLudoNftsTonPageDocument, baseOptions);
|
|
1255
1255
|
}
|
|
1256
1256
|
exports.useFetchLudoNftsTonPageLazyQuery = useFetchLudoNftsTonPageLazyQuery;
|
|
1257
|
+
exports.FetchMyXpEarningsPageDocument = (0, client_1.gql) `
|
|
1258
|
+
query FetchMyXpEarningsPage($page: PageInput!) {
|
|
1259
|
+
fetchMyXpEarningsPage(page: $page) {
|
|
1260
|
+
xpEarnings {
|
|
1261
|
+
userId
|
|
1262
|
+
earnedAt
|
|
1263
|
+
inviteeId
|
|
1264
|
+
inviteeRank
|
|
1265
|
+
xpChange
|
|
1266
|
+
xps
|
|
1267
|
+
milestone
|
|
1268
|
+
status
|
|
1269
|
+
}
|
|
1270
|
+
nextPage {
|
|
1271
|
+
token
|
|
1272
|
+
num
|
|
1273
|
+
size
|
|
1274
|
+
elements
|
|
1275
|
+
lastNum
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
`;
|
|
1280
|
+
/**
|
|
1281
|
+
* __useFetchMyXpEarningsPageQuery__
|
|
1282
|
+
*
|
|
1283
|
+
* To run a query within a React component, call `useFetchMyXpEarningsPageQuery` and pass it any options that fit your needs.
|
|
1284
|
+
* When your component renders, `useFetchMyXpEarningsPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1285
|
+
* you can use to render your UI.
|
|
1286
|
+
*
|
|
1287
|
+
* @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;
|
|
1288
|
+
*
|
|
1289
|
+
* @example
|
|
1290
|
+
* const { data, loading, error } = useFetchMyXpEarningsPageQuery({
|
|
1291
|
+
* variables: {
|
|
1292
|
+
* page: // value for 'page'
|
|
1293
|
+
* },
|
|
1294
|
+
* });
|
|
1295
|
+
*/
|
|
1296
|
+
function useFetchMyXpEarningsPageQuery(baseOptions) {
|
|
1297
|
+
return Apollo.useQuery(exports.FetchMyXpEarningsPageDocument, baseOptions);
|
|
1298
|
+
}
|
|
1299
|
+
exports.useFetchMyXpEarningsPageQuery = useFetchMyXpEarningsPageQuery;
|
|
1300
|
+
function useFetchMyXpEarningsPageLazyQuery(baseOptions) {
|
|
1301
|
+
return Apollo.useLazyQuery(exports.FetchMyXpEarningsPageDocument, baseOptions);
|
|
1302
|
+
}
|
|
1303
|
+
exports.useFetchMyXpEarningsPageLazyQuery = useFetchMyXpEarningsPageLazyQuery;
|
|
1257
1304
|
exports.FetchUserPortfolioDocument = (0, client_1.gql) `
|
|
1258
1305
|
query FetchUserPortfolio($ownerId: String!) {
|
|
1259
1306
|
fetchUserPortfolio(ownerId: $ownerId) {
|
|
@@ -1556,8 +1603,8 @@ function useFetchUsedForMintingRefCodeLazyQuery(baseOptions) {
|
|
|
1556
1603
|
}
|
|
1557
1604
|
exports.useFetchUsedForMintingRefCodeLazyQuery = useFetchUsedForMintingRefCodeLazyQuery;
|
|
1558
1605
|
exports.FetchUserReferralsInfoCsvDocument = (0, client_1.gql) `
|
|
1559
|
-
query FetchUserReferralsInfoCsv {
|
|
1560
|
-
fetchUserReferralsInfoCsv
|
|
1606
|
+
query FetchUserReferralsInfoCsv($filter: UserReferralsInfoFilterInput!, $sort: UserReferralsInfoSortInput!) {
|
|
1607
|
+
fetchUserReferralsInfoCsv(filter: $filter, sort: $sort)
|
|
1561
1608
|
}
|
|
1562
1609
|
`;
|
|
1563
1610
|
/**
|
|
@@ -1572,6 +1619,8 @@ exports.FetchUserReferralsInfoCsvDocument = (0, client_1.gql) `
|
|
|
1572
1619
|
* @example
|
|
1573
1620
|
* const { data, loading, error } = useFetchUserReferralsInfoCsvQuery({
|
|
1574
1621
|
* variables: {
|
|
1622
|
+
* filter: // value for 'filter'
|
|
1623
|
+
* sort: // value for 'sort'
|
|
1575
1624
|
* },
|
|
1576
1625
|
* });
|
|
1577
1626
|
*/
|
package/build/index.d.ts
CHANGED
|
@@ -427,6 +427,16 @@ declare const schema: {
|
|
|
427
427
|
userId: string;
|
|
428
428
|
page: searchSchema.IPageInput;
|
|
429
429
|
}>>;
|
|
430
|
+
useFetchMyXpEarningsPageQuery(baseOptions: import("@apollo/client").QueryHookOptions<searchSchema.IFetchMyXpEarningsPageQuery, searchSchema.Exact<{
|
|
431
|
+
page: searchSchema.IPageInput;
|
|
432
|
+
}>>): import("@apollo/client").QueryResult<searchSchema.IFetchMyXpEarningsPageQuery, searchSchema.Exact<{
|
|
433
|
+
page: searchSchema.IPageInput;
|
|
434
|
+
}>>;
|
|
435
|
+
useFetchMyXpEarningsPageLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<searchSchema.IFetchMyXpEarningsPageQuery, searchSchema.Exact<{
|
|
436
|
+
page: searchSchema.IPageInput;
|
|
437
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<searchSchema.IFetchMyXpEarningsPageQuery, searchSchema.Exact<{
|
|
438
|
+
page: searchSchema.IPageInput;
|
|
439
|
+
}>>;
|
|
430
440
|
useFetchUserPortfolioQuery(baseOptions: import("@apollo/client").QueryHookOptions<searchSchema.IFetchUserPortfolioQuery, searchSchema.Exact<{
|
|
431
441
|
ownerId: string;
|
|
432
442
|
}>>): import("@apollo/client").QueryResult<searchSchema.IFetchUserPortfolioQuery, searchSchema.Exact<{
|
|
@@ -521,15 +531,19 @@ declare const schema: {
|
|
|
521
531
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<searchSchema.IFetchUsedForMintingRefCodeQuery, searchSchema.Exact<{
|
|
522
532
|
ludoNftId: string;
|
|
523
533
|
}>>;
|
|
524
|
-
useFetchUserReferralsInfoCsvQuery(baseOptions
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
534
|
+
useFetchUserReferralsInfoCsvQuery(baseOptions: import("@apollo/client").QueryHookOptions<searchSchema.IFetchUserReferralsInfoCsvQuery, searchSchema.Exact<{
|
|
535
|
+
filter: searchSchema.IUserReferralsInfoFilterInput;
|
|
536
|
+
sort: searchSchema.IUserReferralsInfoSortInput;
|
|
537
|
+
}>>): import("@apollo/client").QueryResult<searchSchema.IFetchUserReferralsInfoCsvQuery, searchSchema.Exact<{
|
|
538
|
+
filter: searchSchema.IUserReferralsInfoFilterInput;
|
|
539
|
+
sort: searchSchema.IUserReferralsInfoSortInput;
|
|
528
540
|
}>>;
|
|
529
541
|
useFetchUserReferralsInfoCsvLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<searchSchema.IFetchUserReferralsInfoCsvQuery, searchSchema.Exact<{
|
|
530
|
-
|
|
542
|
+
filter: searchSchema.IUserReferralsInfoFilterInput;
|
|
543
|
+
sort: searchSchema.IUserReferralsInfoSortInput;
|
|
531
544
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<searchSchema.IFetchUserReferralsInfoCsvQuery, searchSchema.Exact<{
|
|
532
|
-
|
|
545
|
+
filter: searchSchema.IUserReferralsInfoFilterInput;
|
|
546
|
+
sort: searchSchema.IUserReferralsInfoSortInput;
|
|
533
547
|
}>>;
|
|
534
548
|
useFetchUserReferralsInfoPageQuery(baseOptions: import("@apollo/client").QueryHookOptions<searchSchema.IFetchUserReferralsInfoPageQuery, searchSchema.Exact<{
|
|
535
549
|
filter: searchSchema.IUserReferralsInfoFilterInput;
|
|
@@ -635,6 +649,7 @@ declare const schema: {
|
|
|
635
649
|
FetchDynamicCollectionsDataDocument: import("graphql").DocumentNode;
|
|
636
650
|
FindAllTopEntitiesByNameDocument: import("graphql").DocumentNode;
|
|
637
651
|
FetchLudoNftsTonPageDocument: import("graphql").DocumentNode;
|
|
652
|
+
FetchMyXpEarningsPageDocument: import("graphql").DocumentNode;
|
|
638
653
|
FetchUserPortfolioDocument: import("graphql").DocumentNode;
|
|
639
654
|
FetchProjectsByTermDocument: import("graphql").DocumentNode;
|
|
640
655
|
FetchProjectsLeaderboardDocument: import("graphql").DocumentNode;
|
|
@@ -1124,6 +1139,11 @@ declare const schema: {
|
|
|
1124
1139
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<identitySchema.IUseInviteCodeMutation, identitySchema.Exact<{
|
|
1125
1140
|
inviteCode: string;
|
|
1126
1141
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1142
|
+
useUseRefcodeMutation(baseOptions?: import("@apollo/client").MutationHookOptions<identitySchema.IUseRefcodeMutation, identitySchema.Exact<{
|
|
1143
|
+
refcode: string;
|
|
1144
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<identitySchema.IUseRefcodeMutation, identitySchema.Exact<{
|
|
1145
|
+
refcode: string;
|
|
1146
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1127
1147
|
useRemoveWalletMutation(baseOptions?: import("@apollo/client").MutationHookOptions<identitySchema.IRemoveWalletMutation, identitySchema.Exact<{
|
|
1128
1148
|
blockchain: string;
|
|
1129
1149
|
address: string;
|
|
@@ -1343,6 +1363,7 @@ declare const schema: {
|
|
|
1343
1363
|
CreateTonNonceDocument: import("graphql").DocumentNode;
|
|
1344
1364
|
GenerateNewInviteCodesDocument: import("graphql").DocumentNode;
|
|
1345
1365
|
UseInviteCodeDocument: import("graphql").DocumentNode;
|
|
1366
|
+
UseRefcodeDocument: import("graphql").DocumentNode;
|
|
1346
1367
|
RemoveWalletDocument: import("graphql").DocumentNode;
|
|
1347
1368
|
SaveEmailOfJoinerDocument: import("graphql").DocumentNode;
|
|
1348
1369
|
SetEducatorBoostDocument: import("graphql").DocumentNode;
|
|
@@ -1695,20 +1716,9 @@ declare const schema: {
|
|
|
1695
1716
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<experiencesSchema.IFetchMyMonthReferralsXpsQuery, experiencesSchema.Exact<{
|
|
1696
1717
|
[key: string]: never;
|
|
1697
1718
|
}>>;
|
|
1698
|
-
useFetchMyTasksQuery(baseOptions?: import("@apollo/client").QueryHookOptions<experiencesSchema.IFetchMyTasksQuery, experiencesSchema.Exact<{
|
|
1699
|
-
[key: string]: never;
|
|
1700
|
-
}>> | undefined): import("@apollo/client").QueryResult<experiencesSchema.IFetchMyTasksQuery, experiencesSchema.Exact<{
|
|
1701
|
-
[key: string]: never;
|
|
1702
|
-
}>>;
|
|
1703
|
-
useFetchMyTasksLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<experiencesSchema.IFetchMyTasksQuery, experiencesSchema.Exact<{
|
|
1704
|
-
[key: string]: never;
|
|
1705
|
-
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<experiencesSchema.IFetchMyTasksQuery, experiencesSchema.Exact<{
|
|
1706
|
-
[key: string]: never;
|
|
1707
|
-
}>>;
|
|
1708
1719
|
FetchMyActivityStreakDocument: import("graphql").DocumentNode;
|
|
1709
1720
|
FetchMyExperienceDocument: import("graphql").DocumentNode;
|
|
1710
1721
|
FetchMyMonthReferralsXpsDocument: import("graphql").DocumentNode;
|
|
1711
|
-
FetchMyTasksDocument: import("graphql").DocumentNode;
|
|
1712
1722
|
useDislikeCollectionMutation(baseOptions?: import("@apollo/client").MutationHookOptions<collectionsSchema.IDislikeCollectionMutation, collectionsSchema.Exact<{
|
|
1713
1723
|
collectionId: string;
|
|
1714
1724
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<collectionsSchema.IDislikeCollectionMutation, collectionsSchema.Exact<{
|
package/package.json
CHANGED
|
@@ -41,11 +41,22 @@ export type IOpportunityNotification = {
|
|
|
41
41
|
projectUrl?: Maybe<Scalars['String']>;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
+
export type IPage = {
|
|
45
|
+
num?: Maybe<Scalars['Int']>;
|
|
46
|
+
lastNum?: Maybe<Scalars['Int']>;
|
|
47
|
+
size?: Maybe<Scalars['Int']>;
|
|
48
|
+
elements?: Maybe<Scalars['Long']>;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export type IPageInput = {
|
|
52
|
+
size?: Maybe<Scalars['Int']>;
|
|
53
|
+
num?: Maybe<Scalars['Int']>;
|
|
54
|
+
};
|
|
55
|
+
|
|
44
56
|
export type IQuery = {
|
|
45
57
|
getDummy: Scalars['String'];
|
|
46
58
|
fetchMyExperience: Scalars['Int'];
|
|
47
59
|
fetchMyExperienceV2: IUserXp;
|
|
48
|
-
fetchMyTasks: Array<Maybe<ITask>>;
|
|
49
60
|
fetchMyLatestExperienceIncrement?: Maybe<IUserXpIncrement>;
|
|
50
61
|
fetchMyMonthReferralsXps: Scalars['Int'];
|
|
51
62
|
fetchMyActivityStreak?: Maybe<IActivityStreak>;
|
|
@@ -55,20 +66,6 @@ export type ISubscription = {
|
|
|
55
66
|
onDummy: Scalars['String'];
|
|
56
67
|
};
|
|
57
68
|
|
|
58
|
-
export type ITask = {
|
|
59
|
-
taskId?: Maybe<Scalars['ID']>;
|
|
60
|
-
userId?: Maybe<Scalars['ID']>;
|
|
61
|
-
taskType?: Maybe<Scalars['String']>;
|
|
62
|
-
name?: Maybe<Scalars['String']>;
|
|
63
|
-
description?: Maybe<Scalars['String']>;
|
|
64
|
-
repeatable?: Maybe<Scalars['Boolean']>;
|
|
65
|
-
maxRepeats?: Maybe<Scalars['Int']>;
|
|
66
|
-
minPointsAward?: Maybe<Scalars['Int']>;
|
|
67
|
-
maxPointsAward?: Maybe<Scalars['Int']>;
|
|
68
|
-
repeatsCompleted?: Maybe<Scalars['Int']>;
|
|
69
|
-
xpPointsEarned?: Maybe<Scalars['Int']>;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
69
|
export type IUsedInviteCode = {
|
|
73
70
|
userId?: Maybe<Scalars['String']>;
|
|
74
71
|
inviteCode?: Maybe<Scalars['String']>;
|
|
@@ -77,18 +74,12 @@ export type IUsedInviteCode = {
|
|
|
77
74
|
|
|
78
75
|
export type IUserXp = {
|
|
79
76
|
xps: Scalars['Int'];
|
|
80
|
-
level: Scalars['Int'];
|
|
81
|
-
levelMinXps: Scalars['Int'];
|
|
82
|
-
levelMaxXps: Scalars['Int'];
|
|
83
77
|
};
|
|
84
78
|
|
|
85
79
|
export type IUserXpIncrement = {
|
|
86
80
|
xpsIncrement: Scalars['Int'];
|
|
87
81
|
description?: Maybe<Scalars['String']>;
|
|
88
82
|
xps: Scalars['Int'];
|
|
89
|
-
level: Scalars['Int'];
|
|
90
|
-
levelMinXps: Scalars['Int'];
|
|
91
|
-
levelMaxXps: Scalars['Int'];
|
|
92
83
|
};
|
|
93
84
|
|
|
94
85
|
|
|
@@ -167,13 +158,14 @@ export type IResolversTypes = {
|
|
|
167
158
|
Mutation: ResolverTypeWrapper<{}>;
|
|
168
159
|
String: ResolverTypeWrapper<Scalars['String']>;
|
|
169
160
|
OpportunityNotification: ResolverTypeWrapper<IOpportunityNotification>;
|
|
161
|
+
Page: ResolverTypeWrapper<IPage>;
|
|
162
|
+
PageInput: IPageInput;
|
|
170
163
|
Query: ResolverTypeWrapper<{}>;
|
|
171
164
|
Subscription: ResolverTypeWrapper<{}>;
|
|
172
|
-
Task: ResolverTypeWrapper<ITask>;
|
|
173
|
-
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
174
165
|
UsedInviteCode: ResolverTypeWrapper<IUsedInviteCode>;
|
|
175
166
|
UserXP: ResolverTypeWrapper<IUserXp>;
|
|
176
167
|
UserXPIncrement: ResolverTypeWrapper<IUserXpIncrement>;
|
|
168
|
+
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
177
169
|
};
|
|
178
170
|
|
|
179
171
|
/** Mapping between all available schema types and the resolvers parents */
|
|
@@ -185,13 +177,14 @@ export type IResolversParentTypes = {
|
|
|
185
177
|
Mutation: {};
|
|
186
178
|
String: Scalars['String'];
|
|
187
179
|
OpportunityNotification: IOpportunityNotification;
|
|
180
|
+
Page: IPage;
|
|
181
|
+
PageInput: IPageInput;
|
|
188
182
|
Query: {};
|
|
189
183
|
Subscription: {};
|
|
190
|
-
Task: ITask;
|
|
191
|
-
Boolean: Scalars['Boolean'];
|
|
192
184
|
UsedInviteCode: IUsedInviteCode;
|
|
193
185
|
UserXP: IUserXp;
|
|
194
186
|
UserXPIncrement: IUserXpIncrement;
|
|
187
|
+
Boolean: Scalars['Boolean'];
|
|
195
188
|
};
|
|
196
189
|
|
|
197
190
|
export type IDeferDirectiveArgs = {
|
|
@@ -235,11 +228,18 @@ export type IOpportunityNotificationResolvers<ContextType = any, ParentType exte
|
|
|
235
228
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
236
229
|
};
|
|
237
230
|
|
|
231
|
+
export type IPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['Page'] = IResolversParentTypes['Page']> = {
|
|
232
|
+
num?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
233
|
+
lastNum?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
234
|
+
size?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
235
|
+
elements?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
236
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
237
|
+
};
|
|
238
|
+
|
|
238
239
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
239
240
|
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
240
241
|
fetchMyExperience?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
241
242
|
fetchMyExperienceV2?: Resolver<IResolversTypes['UserXP'], ParentType, ContextType>;
|
|
242
|
-
fetchMyTasks?: Resolver<Array<Maybe<IResolversTypes['Task']>>, ParentType, ContextType>;
|
|
243
243
|
fetchMyLatestExperienceIncrement?: Resolver<Maybe<IResolversTypes['UserXPIncrement']>, ParentType, ContextType>;
|
|
244
244
|
fetchMyMonthReferralsXps?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
245
245
|
fetchMyActivityStreak?: Resolver<Maybe<IResolversTypes['ActivityStreak']>, ParentType, ContextType>;
|
|
@@ -249,21 +249,6 @@ export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolv
|
|
|
249
249
|
onDummy?: SubscriptionResolver<IResolversTypes['String'], "onDummy", ParentType, ContextType>;
|
|
250
250
|
};
|
|
251
251
|
|
|
252
|
-
export type ITaskResolvers<ContextType = any, ParentType extends IResolversParentTypes['Task'] = IResolversParentTypes['Task']> = {
|
|
253
|
-
taskId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
254
|
-
userId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
255
|
-
taskType?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
256
|
-
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
257
|
-
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
258
|
-
repeatable?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
259
|
-
maxRepeats?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
260
|
-
minPointsAward?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
261
|
-
maxPointsAward?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
262
|
-
repeatsCompleted?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
263
|
-
xpPointsEarned?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
264
|
-
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
265
|
-
};
|
|
266
|
-
|
|
267
252
|
export type IUsedInviteCodeResolvers<ContextType = any, ParentType extends IResolversParentTypes['UsedInviteCode'] = IResolversParentTypes['UsedInviteCode']> = {
|
|
268
253
|
userId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
269
254
|
inviteCode?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -273,9 +258,6 @@ export type IUsedInviteCodeResolvers<ContextType = any, ParentType extends IReso
|
|
|
273
258
|
|
|
274
259
|
export type IUserXpResolvers<ContextType = any, ParentType extends IResolversParentTypes['UserXP'] = IResolversParentTypes['UserXP']> = {
|
|
275
260
|
xps?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
276
|
-
level?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
277
|
-
levelMinXps?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
278
|
-
levelMaxXps?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
279
261
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
280
262
|
};
|
|
281
263
|
|
|
@@ -283,9 +265,6 @@ export type IUserXpIncrementResolvers<ContextType = any, ParentType extends IRes
|
|
|
283
265
|
xpsIncrement?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
284
266
|
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
285
267
|
xps?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
286
|
-
level?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
287
|
-
levelMinXps?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
288
|
-
levelMaxXps?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
289
268
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
290
269
|
};
|
|
291
270
|
|
|
@@ -294,9 +273,9 @@ export type IResolvers<ContextType = any> = {
|
|
|
294
273
|
Long?: GraphQLScalarType;
|
|
295
274
|
Mutation?: IMutationResolvers<ContextType>;
|
|
296
275
|
OpportunityNotification?: IOpportunityNotificationResolvers<ContextType>;
|
|
276
|
+
Page?: IPageResolvers<ContextType>;
|
|
297
277
|
Query?: IQueryResolvers<ContextType>;
|
|
298
278
|
Subscription?: ISubscriptionResolvers<ContextType>;
|
|
299
|
-
Task?: ITaskResolvers<ContextType>;
|
|
300
279
|
UsedInviteCode?: IUsedInviteCodeResolvers<ContextType>;
|
|
301
280
|
UserXP?: IUserXpResolvers<ContextType>;
|
|
302
281
|
UserXPIncrement?: IUserXpIncrementResolvers<ContextType>;
|
|
@@ -323,11 +302,6 @@ export type IFetchMyMonthReferralsXpsQueryVariables = Exact<{ [key: string]: nev
|
|
|
323
302
|
|
|
324
303
|
export type IFetchMyMonthReferralsXpsQuery = Pick<IQuery, 'fetchMyMonthReferralsXps'>;
|
|
325
304
|
|
|
326
|
-
export type IFetchMyTasksQueryVariables = Exact<{ [key: string]: never; }>;
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
export type IFetchMyTasksQuery = { fetchMyTasks: Array<Maybe<Pick<ITask, 'taskId' | 'userId' | 'taskType' | 'name' | 'description' | 'repeatable' | 'maxRepeats' | 'minPointsAward' | 'maxPointsAward' | 'repeatsCompleted'>>> };
|
|
330
|
-
|
|
331
305
|
|
|
332
306
|
export const FetchMyActivityStreakDocument = gql`
|
|
333
307
|
query FetchMyActivityStreak {
|
|
@@ -423,45 +397,4 @@ export function useFetchMyMonthReferralsXpsLazyQuery(baseOptions?: Apollo.LazyQu
|
|
|
423
397
|
}
|
|
424
398
|
export type FetchMyMonthReferralsXpsQueryHookResult = ReturnType<typeof useFetchMyMonthReferralsXpsQuery>;
|
|
425
399
|
export type FetchMyMonthReferralsXpsLazyQueryHookResult = ReturnType<typeof useFetchMyMonthReferralsXpsLazyQuery>;
|
|
426
|
-
export type FetchMyMonthReferralsXpsQueryResult = Apollo.QueryResult<IFetchMyMonthReferralsXpsQuery, IFetchMyMonthReferralsXpsQueryVariables>;
|
|
427
|
-
export const FetchMyTasksDocument = gql`
|
|
428
|
-
query FetchMyTasks {
|
|
429
|
-
fetchMyTasks {
|
|
430
|
-
taskId
|
|
431
|
-
userId
|
|
432
|
-
taskType
|
|
433
|
-
name
|
|
434
|
-
description
|
|
435
|
-
repeatable
|
|
436
|
-
maxRepeats
|
|
437
|
-
minPointsAward
|
|
438
|
-
maxPointsAward
|
|
439
|
-
repeatsCompleted
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
`;
|
|
443
|
-
|
|
444
|
-
/**
|
|
445
|
-
* __useFetchMyTasksQuery__
|
|
446
|
-
*
|
|
447
|
-
* To run a query within a React component, call `useFetchMyTasksQuery` and pass it any options that fit your needs.
|
|
448
|
-
* When your component renders, `useFetchMyTasksQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
449
|
-
* you can use to render your UI.
|
|
450
|
-
*
|
|
451
|
-
* @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;
|
|
452
|
-
*
|
|
453
|
-
* @example
|
|
454
|
-
* const { data, loading, error } = useFetchMyTasksQuery({
|
|
455
|
-
* variables: {
|
|
456
|
-
* },
|
|
457
|
-
* });
|
|
458
|
-
*/
|
|
459
|
-
export function useFetchMyTasksQuery(baseOptions?: Apollo.QueryHookOptions<IFetchMyTasksQuery, IFetchMyTasksQueryVariables>) {
|
|
460
|
-
return Apollo.useQuery<IFetchMyTasksQuery, IFetchMyTasksQueryVariables>(FetchMyTasksDocument, baseOptions);
|
|
461
|
-
}
|
|
462
|
-
export function useFetchMyTasksLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMyTasksQuery, IFetchMyTasksQueryVariables>) {
|
|
463
|
-
return Apollo.useLazyQuery<IFetchMyTasksQuery, IFetchMyTasksQueryVariables>(FetchMyTasksDocument, baseOptions);
|
|
464
|
-
}
|
|
465
|
-
export type FetchMyTasksQueryHookResult = ReturnType<typeof useFetchMyTasksQuery>;
|
|
466
|
-
export type FetchMyTasksLazyQueryHookResult = ReturnType<typeof useFetchMyTasksLazyQuery>;
|
|
467
|
-
export type FetchMyTasksQueryResult = Apollo.QueryResult<IFetchMyTasksQuery, IFetchMyTasksQueryVariables>;
|
|
400
|
+
export type FetchMyMonthReferralsXpsQueryResult = Apollo.QueryResult<IFetchMyMonthReferralsXpsQuery, IFetchMyMonthReferralsXpsQueryVariables>;
|
|
@@ -209,6 +209,7 @@ export type IMutation = {
|
|
|
209
209
|
generateNewInviteCodes: Array<IUserInviteCode>;
|
|
210
210
|
saveEmailOfJoiner: Scalars['Boolean'];
|
|
211
211
|
useInviteCode: Scalars['Boolean'];
|
|
212
|
+
useRefcode: Scalars['Boolean'];
|
|
212
213
|
updateProfile: Scalars['Boolean'];
|
|
213
214
|
followProfile: Scalars['Boolean'];
|
|
214
215
|
unfollowProfile: Scalars['Boolean'];
|
|
@@ -371,6 +372,11 @@ export type IMutationUseInviteCodeArgs = {
|
|
|
371
372
|
};
|
|
372
373
|
|
|
373
374
|
|
|
375
|
+
export type IMutationUseRefcodeArgs = {
|
|
376
|
+
refcode: Scalars['String'];
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
|
|
374
380
|
export type IMutationUpdateProfileArgs = {
|
|
375
381
|
profile?: Maybe<IInputProfile>;
|
|
376
382
|
};
|
|
@@ -890,6 +896,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
890
896
|
generateNewInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType, RequireFields<IMutationGenerateNewInviteCodesArgs, 'codesNum'>>;
|
|
891
897
|
saveEmailOfJoiner?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSaveEmailOfJoinerArgs, 'email' | 'isSubscribed'>>;
|
|
892
898
|
useInviteCode?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUseInviteCodeArgs, 'inviteCode'>>;
|
|
899
|
+
useRefcode?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUseRefcodeArgs, 'refcode'>>;
|
|
893
900
|
updateProfile?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, Partial<IMutationUpdateProfileArgs>>;
|
|
894
901
|
followProfile?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationFollowProfileArgs, 'followingUserId'>>;
|
|
895
902
|
unfollowProfile?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUnfollowProfileArgs, 'followingUserId'>>;
|
|
@@ -1161,6 +1168,13 @@ export type IUseInviteCodeMutationVariables = Exact<{
|
|
|
1161
1168
|
|
|
1162
1169
|
export type IUseInviteCodeMutation = Pick<IMutation, 'useInviteCode'>;
|
|
1163
1170
|
|
|
1171
|
+
export type IUseRefcodeMutationVariables = Exact<{
|
|
1172
|
+
refcode: Scalars['String'];
|
|
1173
|
+
}>;
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
export type IUseRefcodeMutation = Pick<IMutation, 'useRefcode'>;
|
|
1177
|
+
|
|
1164
1178
|
export type IRemoveWalletMutationVariables = Exact<{
|
|
1165
1179
|
blockchain: Scalars['String'];
|
|
1166
1180
|
address: Scalars['String'];
|
|
@@ -1832,6 +1846,36 @@ export function useUseInviteCodeMutation(baseOptions?: Apollo.MutationHookOption
|
|
|
1832
1846
|
export type UseInviteCodeMutationHookResult = ReturnType<typeof useUseInviteCodeMutation>;
|
|
1833
1847
|
export type UseInviteCodeMutationResult = Apollo.MutationResult<IUseInviteCodeMutation>;
|
|
1834
1848
|
export type UseInviteCodeMutationOptions = Apollo.BaseMutationOptions<IUseInviteCodeMutation, IUseInviteCodeMutationVariables>;
|
|
1849
|
+
export const UseRefcodeDocument = gql`
|
|
1850
|
+
mutation UseRefcode($refcode: String!) {
|
|
1851
|
+
useRefcode(refcode: $refcode)
|
|
1852
|
+
}
|
|
1853
|
+
`;
|
|
1854
|
+
export type IUseRefcodeMutationFn = Apollo.MutationFunction<IUseRefcodeMutation, IUseRefcodeMutationVariables>;
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* __useUseRefcodeMutation__
|
|
1858
|
+
*
|
|
1859
|
+
* To run a mutation, you first call `useUseRefcodeMutation` within a React component and pass it any options that fit your needs.
|
|
1860
|
+
* When your component renders, `useUseRefcodeMutation` returns a tuple that includes:
|
|
1861
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1862
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1863
|
+
*
|
|
1864
|
+
* @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;
|
|
1865
|
+
*
|
|
1866
|
+
* @example
|
|
1867
|
+
* const [useRefcodeMutation, { data, loading, error }] = useUseRefcodeMutation({
|
|
1868
|
+
* variables: {
|
|
1869
|
+
* refcode: // value for 'refcode'
|
|
1870
|
+
* },
|
|
1871
|
+
* });
|
|
1872
|
+
*/
|
|
1873
|
+
export function useUseRefcodeMutation(baseOptions?: Apollo.MutationHookOptions<IUseRefcodeMutation, IUseRefcodeMutationVariables>) {
|
|
1874
|
+
return Apollo.useMutation<IUseRefcodeMutation, IUseRefcodeMutationVariables>(UseRefcodeDocument, baseOptions);
|
|
1875
|
+
}
|
|
1876
|
+
export type UseRefcodeMutationHookResult = ReturnType<typeof useUseRefcodeMutation>;
|
|
1877
|
+
export type UseRefcodeMutationResult = Apollo.MutationResult<IUseRefcodeMutation>;
|
|
1878
|
+
export type UseRefcodeMutationOptions = Apollo.BaseMutationOptions<IUseRefcodeMutation, IUseRefcodeMutationVariables>;
|
|
1835
1879
|
export const RemoveWalletDocument = gql`
|
|
1836
1880
|
mutation RemoveWallet($blockchain: String!, $address: String!, $chainId: String) {
|
|
1837
1881
|
removeWallet(blockchain: $blockchain, address: $address, chainId: $chainId)
|