@ludo.ninja/api 1.0.58 → 1.0.60
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/cookies/index.d.ts +26 -16
- package/build/graphql_tools/__generated__/schema.d.ts +43 -2
- package/build/graphql_tools/__generated__/schema.js +37 -6
- package/package.json +1 -1
- package/src/documents/server-experiences/queries/useFetchMyExperience/FetchMyExperience.graphql +1 -1
- package/src/documents/server-experiences/queries/useFetchMyTasks/FetchMyTasks.graphql +12 -11
- package/src/documents/server-experiences/subscriptions/SubscribeOnMyExperienceUpdated.graphql +9 -0
- package/src/documents/server-extension/queries/useFetchNFTData/FetchNFTData.graphql +19 -19
- package/src/documents/server-galleries/mutations/useDeleteGallery/DeleteGallery.graphql +1 -1
- package/src/documents/server-galleries/queries/useFetchMyGalleries/FetchMyGalleriesV2.graphql +18 -18
- package/src/documents/server-identities/mutations/useGenerateNewInviteCodes/GenerateNewInviteCodes.graphql +7 -7
- package/src/documents/server-identities/mutations/useInviteCode/UseInviteCode.graphql +2 -2
- package/src/documents/server-identities/queries/useGetMyInviteCodes/GetMyInviteCodes.graphql +6 -6
- package/src/documents/server-opportunities/mutations/useCreateOpportunity//320/241reateOpportunity.graphql +1 -1
- package/src/documents/server-opportunities/queries/useFetchOpportunities/FetchOpportunities.graphql +39 -39
- package/src/graphql_tools/__generated__/schema.graphql +16 -1
- package/src/graphql_tools/__generated__/schema.ts +59 -3
- package/src/graphql_tools/schemas/asset/type/asset.graphqls +1 -1
- package/src/graphql_tools/schemas/experiences/query.graphqls +2 -2
- package/src/graphql_tools/schemas/experiences/subscription.graphqls +3 -0
- package/src/graphql_tools/schemas/experiences/type/subscribeMessage.graphqls +4 -0
- package/src/graphql_tools/schemas/experiences/type/subscribeMessagePayload.graphqls +4 -0
- package/src/graphql_tools/schemas/experiences/type/task.graphqls +11 -10
- package/src/graphql_tools/schemas/identities/profile/type/user_invite_code.graphqls +5 -5
- package/src/graphql_tools/schemas/opportunities/opportunity/input/opportunity.graphqls +1 -1
- package/src/graphql_tools/schemas/opportunities/opportunity/type/opportunity.graphqls +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/build/cookies/index.d.ts
CHANGED
|
@@ -1,19 +1,29 @@
|
|
|
1
|
-
declare const assignCookies: (
|
|
1
|
+
declare const assignCookies: (
|
|
2
|
+
userId: string,
|
|
3
|
+
wallets: Array<string>,
|
|
4
|
+
authToken: string,
|
|
5
|
+
refreshToken: string,
|
|
6
|
+
newUser: string,
|
|
7
|
+
inviteCode: string,
|
|
8
|
+
domain?: string,
|
|
9
|
+
) => void;
|
|
2
10
|
declare const refreshCookies: (authToken: string, refreshToken: string, domain?: string) => void;
|
|
3
|
-
declare const getCookies: () =>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
declare const getCookies: () =>
|
|
12
|
+
| {
|
|
13
|
+
authToken: string;
|
|
14
|
+
refreshToken: string;
|
|
15
|
+
userId: string;
|
|
16
|
+
wallets: string;
|
|
17
|
+
newUser: string;
|
|
18
|
+
inviteCode: string;
|
|
19
|
+
}
|
|
20
|
+
| {
|
|
21
|
+
authToken: null;
|
|
22
|
+
refreshToken: null;
|
|
23
|
+
userId: null;
|
|
24
|
+
wallets: null;
|
|
25
|
+
newUser: null;
|
|
26
|
+
inviteCode: null;
|
|
27
|
+
};
|
|
18
28
|
declare const destroyCookies: (domain?: string) => void;
|
|
19
29
|
export { assignCookies, refreshCookies, destroyCookies, getCookies };
|
|
@@ -1723,6 +1723,17 @@ export type ISocial = {
|
|
|
1723
1723
|
instagram?: Maybe<Scalars['String']>;
|
|
1724
1724
|
website?: Maybe<Scalars['String']>;
|
|
1725
1725
|
};
|
|
1726
|
+
export type ISubscribeMessage = {
|
|
1727
|
+
type?: Maybe<Scalars['String']>;
|
|
1728
|
+
payload?: Maybe<ISubscribeMessagePayload>;
|
|
1729
|
+
};
|
|
1730
|
+
export type ISubscribeMessagePayload = {
|
|
1731
|
+
operationName?: Maybe<Scalars['String']>;
|
|
1732
|
+
query?: Maybe<Scalars['String']>;
|
|
1733
|
+
};
|
|
1734
|
+
export type ISubscription = {
|
|
1735
|
+
onMyExperienceUpdated?: Maybe<ISubscribeMessage>;
|
|
1736
|
+
};
|
|
1726
1737
|
export type ITask = {
|
|
1727
1738
|
taskId?: Maybe<Scalars['ID']>;
|
|
1728
1739
|
userId?: Maybe<Scalars['ID']>;
|
|
@@ -1731,7 +1742,8 @@ export type ITask = {
|
|
|
1731
1742
|
description?: Maybe<Scalars['String']>;
|
|
1732
1743
|
repeatable?: Maybe<Scalars['Boolean']>;
|
|
1733
1744
|
maxRepeats?: Maybe<Scalars['Int']>;
|
|
1734
|
-
|
|
1745
|
+
minPointsAward?: Maybe<Scalars['Int']>;
|
|
1746
|
+
maxPointsAward?: Maybe<Scalars['Int']>;
|
|
1735
1747
|
repeatsCompleted?: Maybe<Scalars['Int']>;
|
|
1736
1748
|
};
|
|
1737
1749
|
export type ITestResponse = {
|
|
@@ -2015,7 +2027,15 @@ export type IFetchMyTasksQueryVariables = Exact<{
|
|
|
2015
2027
|
[key: string]: never;
|
|
2016
2028
|
}>;
|
|
2017
2029
|
export type IFetchMyTasksQuery = {
|
|
2018
|
-
fetchMyTasks: Array<Maybe<Pick<ITask, 'taskId' | 'userId' | 'taskType' | 'name' | 'description' | 'repeatable' | 'maxRepeats' | '
|
|
2030
|
+
fetchMyTasks: Array<Maybe<Pick<ITask, 'taskId' | 'userId' | 'taskType' | 'name' | 'description' | 'repeatable' | 'maxRepeats' | 'minPointsAward' | 'maxPointsAward' | 'repeatsCompleted'>>>;
|
|
2031
|
+
};
|
|
2032
|
+
export type IOnMyExperienceUpdatedSubscriptionVariables = Exact<{
|
|
2033
|
+
[key: string]: never;
|
|
2034
|
+
}>;
|
|
2035
|
+
export type IOnMyExperienceUpdatedSubscription = {
|
|
2036
|
+
onMyExperienceUpdated?: Maybe<(Pick<ISubscribeMessage, 'type'> & {
|
|
2037
|
+
payload?: Maybe<Pick<ISubscribeMessagePayload, 'operationName' | 'query'>>;
|
|
2038
|
+
})>;
|
|
2019
2039
|
};
|
|
2020
2040
|
export type IFetchNftDataQueryVariables = Exact<{
|
|
2021
2041
|
blockchain: Scalars['String'];
|
|
@@ -3024,6 +3044,27 @@ export declare function useFetchMyTasksLazyQuery(baseOptions?: Apollo.LazyQueryH
|
|
|
3024
3044
|
export type FetchMyTasksQueryHookResult = ReturnType<typeof useFetchMyTasksQuery>;
|
|
3025
3045
|
export type FetchMyTasksLazyQueryHookResult = ReturnType<typeof useFetchMyTasksLazyQuery>;
|
|
3026
3046
|
export type FetchMyTasksQueryResult = Apollo.QueryResult<IFetchMyTasksQuery, IFetchMyTasksQueryVariables>;
|
|
3047
|
+
export declare const OnMyExperienceUpdatedDocument: Apollo.DocumentNode;
|
|
3048
|
+
/**
|
|
3049
|
+
* __useOnMyExperienceUpdatedSubscription__
|
|
3050
|
+
*
|
|
3051
|
+
* To run a query within a React component, call `useOnMyExperienceUpdatedSubscription` and pass it any options that fit your needs.
|
|
3052
|
+
* When your component renders, `useOnMyExperienceUpdatedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3053
|
+
* you can use to render your UI.
|
|
3054
|
+
*
|
|
3055
|
+
* @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3056
|
+
*
|
|
3057
|
+
* @example
|
|
3058
|
+
* const { data, loading, error } = useOnMyExperienceUpdatedSubscription({
|
|
3059
|
+
* variables: {
|
|
3060
|
+
* },
|
|
3061
|
+
* });
|
|
3062
|
+
*/
|
|
3063
|
+
export declare function useOnMyExperienceUpdatedSubscription(baseOptions?: Apollo.SubscriptionHookOptions<IOnMyExperienceUpdatedSubscription, IOnMyExperienceUpdatedSubscriptionVariables>): Apollo.SubscriptionResult<IOnMyExperienceUpdatedSubscription, Exact<{
|
|
3064
|
+
[key: string]: never;
|
|
3065
|
+
}>>;
|
|
3066
|
+
export type OnMyExperienceUpdatedSubscriptionHookResult = ReturnType<typeof useOnMyExperienceUpdatedSubscription>;
|
|
3067
|
+
export type OnMyExperienceUpdatedSubscriptionResult = Apollo.SubscriptionResult<IOnMyExperienceUpdatedSubscription>;
|
|
3027
3068
|
export declare const FetchNftDataDocument: Apollo.DocumentNode;
|
|
3028
3069
|
/**
|
|
3029
3070
|
* __useFetchNftDataQuery__
|
|
@@ -23,11 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.useFindUserShowcaseItemsLazyQuery = exports.useFindUserShowcaseItemsQuery = exports.FindUserShowcaseItemsDocument = exports.useFindUserCreationsLazyQuery = exports.useFindUserCreationsQuery = exports.FindUserCreationsDocument = exports.useFindShowcaseItemsLazyQuery = exports.useFindShowcaseItemsQuery = exports.FindShowcaseItemsDocument = exports.useFindSetsLazyQuery = exports.useFindSetsQuery = exports.FindSetsDocument = exports.useFindProfilesByNameLazyQuery = exports.useFindProfilesByNameQuery = exports.FindProfilesByNameDocument = exports.useFindCreationsLazyQuery = exports.useFindCreationsQuery = exports.FindCreationsDocument = exports.useFetchUserPortfolioLazyQuery = exports.useFetchUserPortfolioQuery = exports.FetchUserPortfolioDocument = exports.useFindAllTopEntitiesByNameLazyQuery = exports.useFindAllTopEntitiesByNameQuery = exports.FindAllTopEntitiesByNameDocument = exports.useFetchCreationsByTypeLazyQuery = exports.useFetchCreationsByTypeQuery = exports.FetchCreationsByTypeDocument = exports.useFindCollectionsLazyQuery = exports.useFindCollectionsQuery = exports.FindCollectionsDocument = exports.useFetchAssetsCountLazyQuery = exports.useFetchAssetsCountQuery = exports.FetchAssetsCountDocument = exports.useFetchAllCreationsLazyQuery = exports.useFetchAllCreationsQuery = exports.FetchAllCreationsDocument = exports.useFetchSetsSearchResultTypeSelectionsLazyQuery = exports.useFetchSetsSearchResultTypeSelectionsQuery = void 0;
|
|
26
|
+
exports.FetchNftDataDocument = exports.useOnMyExperienceUpdatedSubscription = exports.OnMyExperienceUpdatedDocument = exports.useFetchMyTasksLazyQuery = exports.useFetchMyTasksQuery = exports.FetchMyTasksDocument = exports.useFetchMyExperienceLazyQuery = exports.useFetchMyExperienceQuery = exports.FetchMyExperienceDocument = exports.useFetchDynamicCollectionsDataLazyQuery = exports.useFetchDynamicCollectionsDataQuery = exports.FetchDynamicCollectionsDataDocument = exports.useFetchDynamicCollectionDataLazyQuery = exports.useFetchDynamicCollectionDataQuery = exports.FetchDynamicCollectionDataDocument = exports.useFetchCollectionsByIdsLazyQuery = exports.useFetchCollectionsByIdsQuery = exports.FetchCollectionsByIdsDocument = exports.useFetchCollectionsLazyQuery = exports.useFetchCollectionsQuery = exports.FetchCollectionsDocument = exports.useFetchCollectionLazyQuery = exports.useFetchCollectionQuery = exports.FetchCollectionDocument = exports.useLikeCollectionMutation = exports.LikeCollectionDocument = exports.useDislikeCollectionMutation = exports.DislikeCollectionDocument = exports.useFetchLikedLazyQuery = exports.useFetchLikedQuery = exports.FetchLikedDocument = exports.useFetchDynamicAssetsLikesLazyQuery = exports.useFetchDynamicAssetsLikesQuery = exports.FetchDynamicAssetsLikesDocument = exports.useFetchDynamicAssetLikesLazyQuery = exports.useFetchDynamicAssetLikesQuery = exports.FetchDynamicAssetLikesDocument = exports.useFetchAssetsLazyQuery = exports.useFetchAssetsQuery = exports.FetchAssetsDocument = exports.useFetchAssetByBlockchainLazyQuery = exports.useFetchAssetByBlockchainQuery = exports.FetchAssetByBlockchainDocument = exports.useFetchAssetLazyQuery = exports.useFetchAssetQuery = exports.FetchAssetDocument = exports.useLikeAssetMutation = exports.LikeAssetDocument = exports.useDislikeAssetMutation = exports.DislikeAssetDocument = void 0;
|
|
27
|
+
exports.useFetchGalleryV2Query = exports.FetchGalleryV2Document = exports.useFetchGalleryCreationsLazyQuery = exports.useFetchGalleryCreationsQuery = exports.FetchGalleryCreationsDocument = exports.useFetchGalleryLazyQuery = exports.useFetchGalleryQuery = exports.FetchGalleryDocument = exports.useRemoveCreationFromGalleryV2Mutation = exports.RemoveCreationFromGalleryV2Document = exports.useRemoveCreationFromGalleryMutation = exports.RemoveCreationFromGalleryDocument = exports.useRemoveCollectionFromGalleryV2Mutation = exports.RemoveCollectionFromGalleryV2Document = exports.useRemoveCollectionFromGalleryMutation = exports.RemoveCollectionFromGalleryDocument = exports.useRemoveAssetFromGalleryV2Mutation = exports.RemoveAssetFromGalleryV2Document = exports.useRemoveAssetFromGalleryMutation = exports.RemoveAssetFromGalleryDocument = exports.useEditGalleryMutation = exports.EditGalleryDocument = exports.useDeleteGalleryBannerMutation = exports.DeleteGalleryBannerDocument = exports.useDeleteGalleryMutation = exports.DeleteGalleryDocument = exports.useCreateGalleryV2Mutation = exports.CreateGalleryV2Document = exports.useCreateGalleryMutation = exports.CreateGalleryDocument = exports.useCreateFavoritesMutation = exports.CreateFavoritesDocument = exports.useCreateFavoriteListV2Mutation = exports.CreateFavoriteListV2Document = exports.useAddCreationsToGalleryV2Mutation = exports.AddCreationsToGalleryV2Document = exports.useAddCreationsToGalleryMutation = exports.AddCreationsToGalleryDocument = exports.useAddCollectionsToGalleryV2Mutation = exports.AddCollectionsToGalleryV2Document = exports.useAddCollectionsToGalleryMutation = exports.AddCollectionsToGalleryDocument = exports.useUploadGalleryBannerMutation = exports.UploadGalleryBannerDocument = exports.useAddAssetsToGalleryV2Mutation = exports.AddAssetsToGalleryV2Document = exports.useAddAssetsToGalleryMutation = exports.AddAssetsToGalleryDocument = exports.useFetchNftDataLazyQuery = exports.useFetchNftDataQuery = void 0;
|
|
28
|
+
exports.useSignInSolanaMutation = exports.SignInSolanaDocument = exports.useSignInMetamaskMutation = exports.SignInMetamaskDocument = exports.useSignInFlowMutation = exports.SignInFlowDocument = exports.useSignInElrondMutation = exports.SignInElrondDocument = exports.useRevokeTokenMutation = exports.RevokeTokenDocument = exports.useRefreshTokenMutation = exports.RefreshTokenDocument = exports.useUseInviteCodeMutation = exports.UseInviteCodeDocument = exports.useGenerateNewInviteCodesMutation = exports.GenerateNewInviteCodesDocument = exports.useCreateNonceMutation = exports.CreateNonceDocument = exports.useAddWalletTezosMutation = exports.AddWalletTezosDocument = exports.useAddWalletSolanaMutation = exports.AddWalletSolanaDocument = exports.useAddWalletMetamaskMutation = exports.AddWalletMetamaskDocument = exports.useAddWalletFlowMutation = exports.AddWalletFlowDocument = exports.useAddWalletElrondMutation = exports.AddWalletElrondDocument = exports.useFetchUserGalleriesV2LazyQuery = exports.useFetchUserGalleriesV2Query = exports.FetchUserGalleriesV2Document = exports.useFetchUserGalleriesLazyQuery = exports.useFetchUserGalleriesQuery = exports.FetchUserGalleriesDocument = exports.useFetchUserFavoritesV2LazyQuery = exports.useFetchUserFavoritesV2Query = exports.FetchUserFavoritesV2Document = exports.useFetchUserFavoritesLazyQuery = exports.useFetchUserFavoritesQuery = exports.FetchUserFavoritesDocument = exports.useFetchMyGalleriesV2LazyQuery = exports.useFetchMyGalleriesV2Query = exports.FetchMyGalleriesV2Document = exports.useFetchMyFavoritesV2LazyQuery = exports.useFetchMyFavoritesV2Query = exports.FetchMyFavoritesV2Document = exports.useFetchMyFavoritesLazyQuery = exports.useFetchMyFavoritesQuery = exports.FetchMyFavoritesDocument = exports.useFetchGalleryV2LazyQuery = void 0;
|
|
29
|
+
exports.useFetchSearchResultStatusSelectionsQuery = exports.FetchSearchResultStatusSelectionsDocument = exports.useFetchSearchResultCategorySelectionsLazyQuery = exports.useFetchSearchResultCategorySelectionsQuery = exports.FetchSearchResultCategorySelectionsDocument = exports.useFetchSearchResultBlockchainSelectionsLazyQuery = exports.useFetchSearchResultBlockchainSelectionsQuery = exports.FetchSearchResultBlockchainSelectionsDocument = exports.useFetchUserInterestsLazyQuery = exports.useFetchUserInterestsQuery = exports.FetchUserInterestsDocument = exports.useFetchUserExpectationsLazyQuery = exports.useFetchUserExpectationsQuery = exports.FetchUserExpectationsDocument = exports.useFetchSearchResultTimeSelectionsLazyQuery = exports.useFetchSearchResultTimeSelectionsQuery = exports.FetchSearchResultTimeSelectionsDocument = exports.useFetchInterestsLazyQuery = exports.useFetchInterestsQuery = exports.FetchInterestsDocument = exports.useFetchExpectationsLazyQuery = exports.useFetchExpectationsQuery = exports.FetchExpectationsDocument = exports.useSaveUserInterestsMutation = exports.SaveUserInterestsDocument = exports.useSaveUserExpectationsMutation = exports.SaveUserExpectationsDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useFetchUserpicLazyQuery = exports.useFetchUserpicQuery = exports.FetchUserpicDocument = exports.useGetMyInviteCodesLazyQuery = exports.useGetMyInviteCodesQuery = exports.GetMyInviteCodesDocument = exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.useUpdateProfileMutation = exports.UpdateProfileDocument = exports.useSignInTezosMutation = exports.SignInTezosDocument = void 0;
|
|
30
|
+
exports.useFindUserShowcaseItemsLazyQuery = exports.useFindUserShowcaseItemsQuery = exports.FindUserShowcaseItemsDocument = exports.useFindUserCreationsLazyQuery = exports.useFindUserCreationsQuery = exports.FindUserCreationsDocument = exports.useFindShowcaseItemsLazyQuery = exports.useFindShowcaseItemsQuery = exports.FindShowcaseItemsDocument = exports.useFindSetsLazyQuery = exports.useFindSetsQuery = exports.FindSetsDocument = exports.useFindProfilesByNameLazyQuery = exports.useFindProfilesByNameQuery = exports.FindProfilesByNameDocument = exports.useFindCreationsLazyQuery = exports.useFindCreationsQuery = exports.FindCreationsDocument = exports.useFetchUserPortfolioLazyQuery = exports.useFetchUserPortfolioQuery = exports.FetchUserPortfolioDocument = exports.useFindAllTopEntitiesByNameLazyQuery = exports.useFindAllTopEntitiesByNameQuery = exports.FindAllTopEntitiesByNameDocument = exports.useFetchCreationsByTypeLazyQuery = exports.useFetchCreationsByTypeQuery = exports.FetchCreationsByTypeDocument = exports.useFindCollectionsLazyQuery = exports.useFindCollectionsQuery = exports.FindCollectionsDocument = exports.useFetchAssetsCountLazyQuery = exports.useFetchAssetsCountQuery = exports.FetchAssetsCountDocument = exports.useFetchAllCreationsLazyQuery = exports.useFetchAllCreationsQuery = exports.FetchAllCreationsDocument = exports.useFetchSetsSearchResultTypeSelectionsLazyQuery = exports.useFetchSetsSearchResultTypeSelectionsQuery = exports.FetchSetsSearchResultTypeSelectionsDocument = exports.useFetchSearchResultStatusSelectionsLazyQuery = void 0;
|
|
31
31
|
/* eslint-disable */
|
|
32
32
|
const client_1 = require("@apollo/client");
|
|
33
33
|
const Apollo = __importStar(require("@apollo/client"));
|
|
@@ -916,7 +916,8 @@ exports.FetchMyTasksDocument = (0, client_1.gql) `
|
|
|
916
916
|
description
|
|
917
917
|
repeatable
|
|
918
918
|
maxRepeats
|
|
919
|
-
|
|
919
|
+
minPointsAward
|
|
920
|
+
maxPointsAward
|
|
920
921
|
repeatsCompleted
|
|
921
922
|
}
|
|
922
923
|
}
|
|
@@ -944,6 +945,36 @@ function useFetchMyTasksLazyQuery(baseOptions) {
|
|
|
944
945
|
return Apollo.useLazyQuery(exports.FetchMyTasksDocument, baseOptions);
|
|
945
946
|
}
|
|
946
947
|
exports.useFetchMyTasksLazyQuery = useFetchMyTasksLazyQuery;
|
|
948
|
+
exports.OnMyExperienceUpdatedDocument = (0, client_1.gql) `
|
|
949
|
+
subscription OnMyExperienceUpdated {
|
|
950
|
+
onMyExperienceUpdated {
|
|
951
|
+
type
|
|
952
|
+
payload {
|
|
953
|
+
operationName
|
|
954
|
+
query
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
`;
|
|
959
|
+
/**
|
|
960
|
+
* __useOnMyExperienceUpdatedSubscription__
|
|
961
|
+
*
|
|
962
|
+
* To run a query within a React component, call `useOnMyExperienceUpdatedSubscription` and pass it any options that fit your needs.
|
|
963
|
+
* When your component renders, `useOnMyExperienceUpdatedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
964
|
+
* you can use to render your UI.
|
|
965
|
+
*
|
|
966
|
+
* @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
967
|
+
*
|
|
968
|
+
* @example
|
|
969
|
+
* const { data, loading, error } = useOnMyExperienceUpdatedSubscription({
|
|
970
|
+
* variables: {
|
|
971
|
+
* },
|
|
972
|
+
* });
|
|
973
|
+
*/
|
|
974
|
+
function useOnMyExperienceUpdatedSubscription(baseOptions) {
|
|
975
|
+
return Apollo.useSubscription(exports.OnMyExperienceUpdatedDocument, baseOptions);
|
|
976
|
+
}
|
|
977
|
+
exports.useOnMyExperienceUpdatedSubscription = useOnMyExperienceUpdatedSubscription;
|
|
947
978
|
exports.FetchNftDataDocument = (0, client_1.gql) `
|
|
948
979
|
query FetchNFTData($blockchain: String!, $contractAddress: String, $tokenId: String, $elrondId: String) {
|
|
949
980
|
fetchNFTData(
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
query FetchMyTasks {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
fetchMyTasks {
|
|
3
|
+
taskId
|
|
4
|
+
userId
|
|
5
|
+
taskType
|
|
6
|
+
name
|
|
7
|
+
description
|
|
8
|
+
repeatable
|
|
9
|
+
maxRepeats
|
|
10
|
+
minPointsAward
|
|
11
|
+
maxPointsAward
|
|
12
|
+
repeatsCompleted
|
|
13
|
+
}
|
|
13
14
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
query FetchNFTData($blockchain: String!, $contractAddress: String, $tokenId: String, $elrondId: String) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
assetData {
|
|
17
|
-
assetId
|
|
18
|
-
rank
|
|
19
|
-
}
|
|
20
|
-
userRank
|
|
2
|
+
fetchNFTData(blockchain: $blockchain, contractAddress: $contractAddress, tokenId: $tokenId, elrondId: $elrondId) {
|
|
3
|
+
blockchain
|
|
4
|
+
contractAddress
|
|
5
|
+
tokenId
|
|
6
|
+
elrondId
|
|
7
|
+
collectionData {
|
|
8
|
+
collectionId
|
|
9
|
+
title
|
|
10
|
+
rank
|
|
11
|
+
createdAt
|
|
12
|
+
itemsNum
|
|
13
|
+
holdersNum
|
|
14
|
+
floorPrice
|
|
21
15
|
}
|
|
16
|
+
assetData {
|
|
17
|
+
assetId
|
|
18
|
+
rank
|
|
19
|
+
}
|
|
20
|
+
userRank
|
|
21
|
+
}
|
|
22
22
|
}
|
package/src/documents/server-galleries/queries/useFetchMyGalleries/FetchMyGalleriesV2.graphql
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
query FetchMyGalleriesV2($pageSize: Int!, $pageToken: String) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
2
|
+
fetchMyGalleriesV2(pageSize: $pageSize, pageToken: $pageToken) {
|
|
3
|
+
nextPageToken
|
|
4
|
+
galleries {
|
|
5
|
+
galleryId
|
|
6
|
+
galleryType
|
|
7
|
+
name
|
|
8
|
+
description
|
|
9
|
+
userId
|
|
10
|
+
username
|
|
11
|
+
userpic
|
|
12
|
+
banner
|
|
13
|
+
createdAt
|
|
14
|
+
items
|
|
15
|
+
views
|
|
16
|
+
publiclyAccessible
|
|
17
|
+
nsfw
|
|
18
|
+
creationIds
|
|
20
19
|
}
|
|
20
|
+
}
|
|
21
21
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
mutation GenerateNewInviteCodes($codesNum: Int!) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
2
|
+
generateNewInviteCodes(codesNum: $codesNum) {
|
|
3
|
+
inviteCode
|
|
4
|
+
inviteeId
|
|
5
|
+
isUsed
|
|
6
|
+
usedAt
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
mutation UseInviteCode($inviteCode: String!) {
|
|
2
|
-
|
|
3
|
-
}
|
|
2
|
+
useInviteCode(inviteCode: $inviteCode)
|
|
3
|
+
}
|
package/src/documents/server-opportunities/queries/useFetchOpportunities/FetchOpportunities.graphql
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
query FetchOpportunities($domain: String) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
similarOpportunities {
|
|
23
|
-
opportunityId
|
|
24
|
-
name
|
|
25
|
-
description
|
|
26
|
-
startedAt
|
|
27
|
-
endedAt
|
|
28
|
-
createdAt
|
|
29
|
-
tags
|
|
30
|
-
category
|
|
31
|
-
media
|
|
32
|
-
links
|
|
33
|
-
ludoRankRequired
|
|
34
|
-
ludoRankRequiredMin
|
|
35
|
-
ludoRankRequiredMax
|
|
36
|
-
rewardType
|
|
37
|
-
creatorId
|
|
38
|
-
creatorWallet
|
|
39
|
-
status
|
|
40
|
-
}
|
|
2
|
+
fetchOpportunities(domain: $domain) {
|
|
3
|
+
currentOpportunities {
|
|
4
|
+
opportunityId
|
|
5
|
+
name
|
|
6
|
+
description
|
|
7
|
+
startedAt
|
|
8
|
+
endedAt
|
|
9
|
+
createdAt
|
|
10
|
+
tags
|
|
11
|
+
category
|
|
12
|
+
media
|
|
13
|
+
links
|
|
14
|
+
ludoRankRequired
|
|
15
|
+
ludoRankRequiredMin
|
|
16
|
+
ludoRankRequiredMax
|
|
17
|
+
rewardType
|
|
18
|
+
creatorId
|
|
19
|
+
creatorWallet
|
|
20
|
+
status
|
|
41
21
|
}
|
|
22
|
+
similarOpportunities {
|
|
23
|
+
opportunityId
|
|
24
|
+
name
|
|
25
|
+
description
|
|
26
|
+
startedAt
|
|
27
|
+
endedAt
|
|
28
|
+
createdAt
|
|
29
|
+
tags
|
|
30
|
+
category
|
|
31
|
+
media
|
|
32
|
+
links
|
|
33
|
+
ludoRankRequired
|
|
34
|
+
ludoRankRequiredMin
|
|
35
|
+
ludoRankRequiredMax
|
|
36
|
+
rewardType
|
|
37
|
+
creatorId
|
|
38
|
+
creatorWallet
|
|
39
|
+
status
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
42
|
}
|
|
@@ -1106,6 +1106,20 @@ type Social {
|
|
|
1106
1106
|
website: String
|
|
1107
1107
|
}
|
|
1108
1108
|
|
|
1109
|
+
type SubscribeMessage {
|
|
1110
|
+
type: String
|
|
1111
|
+
payload: SubscribeMessagePayload
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
type SubscribeMessagePayload {
|
|
1115
|
+
operationName: String
|
|
1116
|
+
query: String
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
type Subscription {
|
|
1120
|
+
onMyExperienceUpdated: SubscribeMessage
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1109
1123
|
type Task {
|
|
1110
1124
|
taskId: ID
|
|
1111
1125
|
userId: ID
|
|
@@ -1114,7 +1128,8 @@ type Task {
|
|
|
1114
1128
|
description: String
|
|
1115
1129
|
repeatable: Boolean
|
|
1116
1130
|
maxRepeats: Int
|
|
1117
|
-
|
|
1131
|
+
minPointsAward: Int
|
|
1132
|
+
maxPointsAward: Int
|
|
1118
1133
|
repeatsCompleted: Int
|
|
1119
1134
|
}
|
|
1120
1135
|
|
|
@@ -2152,6 +2152,20 @@ export type ISocial = {
|
|
|
2152
2152
|
website?: Maybe<Scalars['String']>;
|
|
2153
2153
|
};
|
|
2154
2154
|
|
|
2155
|
+
export type ISubscribeMessage = {
|
|
2156
|
+
type?: Maybe<Scalars['String']>;
|
|
2157
|
+
payload?: Maybe<ISubscribeMessagePayload>;
|
|
2158
|
+
};
|
|
2159
|
+
|
|
2160
|
+
export type ISubscribeMessagePayload = {
|
|
2161
|
+
operationName?: Maybe<Scalars['String']>;
|
|
2162
|
+
query?: Maybe<Scalars['String']>;
|
|
2163
|
+
};
|
|
2164
|
+
|
|
2165
|
+
export type ISubscription = {
|
|
2166
|
+
onMyExperienceUpdated?: Maybe<ISubscribeMessage>;
|
|
2167
|
+
};
|
|
2168
|
+
|
|
2155
2169
|
export type ITask = {
|
|
2156
2170
|
taskId?: Maybe<Scalars['ID']>;
|
|
2157
2171
|
userId?: Maybe<Scalars['ID']>;
|
|
@@ -2160,7 +2174,8 @@ export type ITask = {
|
|
|
2160
2174
|
description?: Maybe<Scalars['String']>;
|
|
2161
2175
|
repeatable?: Maybe<Scalars['Boolean']>;
|
|
2162
2176
|
maxRepeats?: Maybe<Scalars['Int']>;
|
|
2163
|
-
|
|
2177
|
+
minPointsAward?: Maybe<Scalars['Int']>;
|
|
2178
|
+
maxPointsAward?: Maybe<Scalars['Int']>;
|
|
2164
2179
|
repeatsCompleted?: Maybe<Scalars['Int']>;
|
|
2165
2180
|
};
|
|
2166
2181
|
|
|
@@ -2479,7 +2494,15 @@ export type IFetchMyExperienceQuery = Pick<IQuery, 'fetchMyExperience'>;
|
|
|
2479
2494
|
export type IFetchMyTasksQueryVariables = Exact<{ [key: string]: never; }>;
|
|
2480
2495
|
|
|
2481
2496
|
|
|
2482
|
-
export type IFetchMyTasksQuery = { fetchMyTasks: Array<Maybe<Pick<ITask, 'taskId' | 'userId' | 'taskType' | 'name' | 'description' | 'repeatable' | 'maxRepeats' | '
|
|
2497
|
+
export type IFetchMyTasksQuery = { fetchMyTasks: Array<Maybe<Pick<ITask, 'taskId' | 'userId' | 'taskType' | 'name' | 'description' | 'repeatable' | 'maxRepeats' | 'minPointsAward' | 'maxPointsAward' | 'repeatsCompleted'>>> };
|
|
2498
|
+
|
|
2499
|
+
export type IOnMyExperienceUpdatedSubscriptionVariables = Exact<{ [key: string]: never; }>;
|
|
2500
|
+
|
|
2501
|
+
|
|
2502
|
+
export type IOnMyExperienceUpdatedSubscription = { onMyExperienceUpdated?: Maybe<(
|
|
2503
|
+
Pick<ISubscribeMessage, 'type'>
|
|
2504
|
+
& { payload?: Maybe<Pick<ISubscribeMessagePayload, 'operationName' | 'query'>> }
|
|
2505
|
+
)> };
|
|
2483
2506
|
|
|
2484
2507
|
export type IFetchNftDataQueryVariables = Exact<{
|
|
2485
2508
|
blockchain: Scalars['String'];
|
|
@@ -4102,7 +4125,8 @@ export const FetchMyTasksDocument = gql`
|
|
|
4102
4125
|
description
|
|
4103
4126
|
repeatable
|
|
4104
4127
|
maxRepeats
|
|
4105
|
-
|
|
4128
|
+
minPointsAward
|
|
4129
|
+
maxPointsAward
|
|
4106
4130
|
repeatsCompleted
|
|
4107
4131
|
}
|
|
4108
4132
|
}
|
|
@@ -4132,6 +4156,38 @@ export function useFetchMyTasksLazyQuery(baseOptions?: Apollo.LazyQueryHookOptio
|
|
|
4132
4156
|
export type FetchMyTasksQueryHookResult = ReturnType<typeof useFetchMyTasksQuery>;
|
|
4133
4157
|
export type FetchMyTasksLazyQueryHookResult = ReturnType<typeof useFetchMyTasksLazyQuery>;
|
|
4134
4158
|
export type FetchMyTasksQueryResult = Apollo.QueryResult<IFetchMyTasksQuery, IFetchMyTasksQueryVariables>;
|
|
4159
|
+
export const OnMyExperienceUpdatedDocument = gql`
|
|
4160
|
+
subscription OnMyExperienceUpdated {
|
|
4161
|
+
onMyExperienceUpdated {
|
|
4162
|
+
type
|
|
4163
|
+
payload {
|
|
4164
|
+
operationName
|
|
4165
|
+
query
|
|
4166
|
+
}
|
|
4167
|
+
}
|
|
4168
|
+
}
|
|
4169
|
+
`;
|
|
4170
|
+
|
|
4171
|
+
/**
|
|
4172
|
+
* __useOnMyExperienceUpdatedSubscription__
|
|
4173
|
+
*
|
|
4174
|
+
* To run a query within a React component, call `useOnMyExperienceUpdatedSubscription` and pass it any options that fit your needs.
|
|
4175
|
+
* When your component renders, `useOnMyExperienceUpdatedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4176
|
+
* you can use to render your UI.
|
|
4177
|
+
*
|
|
4178
|
+
* @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4179
|
+
*
|
|
4180
|
+
* @example
|
|
4181
|
+
* const { data, loading, error } = useOnMyExperienceUpdatedSubscription({
|
|
4182
|
+
* variables: {
|
|
4183
|
+
* },
|
|
4184
|
+
* });
|
|
4185
|
+
*/
|
|
4186
|
+
export function useOnMyExperienceUpdatedSubscription(baseOptions?: Apollo.SubscriptionHookOptions<IOnMyExperienceUpdatedSubscription, IOnMyExperienceUpdatedSubscriptionVariables>) {
|
|
4187
|
+
return Apollo.useSubscription<IOnMyExperienceUpdatedSubscription, IOnMyExperienceUpdatedSubscriptionVariables>(OnMyExperienceUpdatedDocument, baseOptions);
|
|
4188
|
+
}
|
|
4189
|
+
export type OnMyExperienceUpdatedSubscriptionHookResult = ReturnType<typeof useOnMyExperienceUpdatedSubscription>;
|
|
4190
|
+
export type OnMyExperienceUpdatedSubscriptionResult = Apollo.SubscriptionResult<IOnMyExperienceUpdatedSubscription>;
|
|
4135
4191
|
export const FetchNftDataDocument = gql`
|
|
4136
4192
|
query FetchNFTData($blockchain: String!, $contractAddress: String, $tokenId: String, $elrondId: String) {
|
|
4137
4193
|
fetchNFTData(
|