@ludo.ninja/api 1.0.59 → 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 +40 -0
- package/build/graphql_tools/__generated__/schema.js +35 -5
- 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 -12
- 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 +14 -0
- package/src/graphql_tools/__generated__/schema.ts +54 -0
- 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 -11
- 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']>;
|
|
@@ -2018,6 +2029,14 @@ export type IFetchMyTasksQueryVariables = Exact<{
|
|
|
2018
2029
|
export type IFetchMyTasksQuery = {
|
|
2019
2030
|
fetchMyTasks: Array<Maybe<Pick<ITask, 'taskId' | 'userId' | 'taskType' | 'name' | 'description' | 'repeatable' | 'maxRepeats' | 'minPointsAward' | 'maxPointsAward' | 'repeatsCompleted'>>>;
|
|
2020
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
|
+
})>;
|
|
2039
|
+
};
|
|
2021
2040
|
export type IFetchNftDataQueryVariables = Exact<{
|
|
2022
2041
|
blockchain: Scalars['String'];
|
|
2023
2042
|
contractAddress?: Maybe<Scalars['String']>;
|
|
@@ -3025,6 +3044,27 @@ export declare function useFetchMyTasksLazyQuery(baseOptions?: Apollo.LazyQueryH
|
|
|
3025
3044
|
export type FetchMyTasksQueryHookResult = ReturnType<typeof useFetchMyTasksQuery>;
|
|
3026
3045
|
export type FetchMyTasksLazyQueryHookResult = ReturnType<typeof useFetchMyTasksLazyQuery>;
|
|
3027
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>;
|
|
3028
3068
|
export declare const FetchNftDataDocument: Apollo.DocumentNode;
|
|
3029
3069
|
/**
|
|
3030
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"));
|
|
@@ -945,6 +945,36 @@ function useFetchMyTasksLazyQuery(baseOptions) {
|
|
|
945
945
|
return Apollo.useLazyQuery(exports.FetchMyTasksDocument, baseOptions);
|
|
946
946
|
}
|
|
947
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;
|
|
948
978
|
exports.FetchNftDataDocument = (0, client_1.gql) `
|
|
949
979
|
query FetchNFTData($blockchain: String!, $contractAddress: String, $tokenId: String, $elrondId: String) {
|
|
950
980
|
fetchNFTData(
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
query FetchMyTasks {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
fetchMyTasks {
|
|
3
|
+
taskId
|
|
4
|
+
userId
|
|
5
|
+
taskType
|
|
6
|
+
name
|
|
7
|
+
description
|
|
8
|
+
repeatable
|
|
9
|
+
maxRepeats
|
|
10
|
+
minPointsAward
|
|
11
|
+
maxPointsAward
|
|
12
|
+
repeatsCompleted
|
|
13
|
+
}
|
|
14
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
|
|
@@ -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']>;
|
|
@@ -2482,6 +2496,14 @@ export type IFetchMyTasksQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
2482
2496
|
|
|
2483
2497
|
export type IFetchMyTasksQuery = { fetchMyTasks: Array<Maybe<Pick<ITask, 'taskId' | 'userId' | 'taskType' | 'name' | 'description' | 'repeatable' | 'maxRepeats' | 'minPointsAward' | 'maxPointsAward' | 'repeatsCompleted'>>> };
|
|
2484
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
|
+
)> };
|
|
2506
|
+
|
|
2485
2507
|
export type IFetchNftDataQueryVariables = Exact<{
|
|
2486
2508
|
blockchain: Scalars['String'];
|
|
2487
2509
|
contractAddress?: Maybe<Scalars['String']>;
|
|
@@ -4134,6 +4156,38 @@ export function useFetchMyTasksLazyQuery(baseOptions?: Apollo.LazyQueryHookOptio
|
|
|
4134
4156
|
export type FetchMyTasksQueryHookResult = ReturnType<typeof useFetchMyTasksQuery>;
|
|
4135
4157
|
export type FetchMyTasksLazyQueryHookResult = ReturnType<typeof useFetchMyTasksLazyQuery>;
|
|
4136
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>;
|
|
4137
4191
|
export const FetchNftDataDocument = gql`
|
|
4138
4192
|
query FetchNFTData($blockchain: String!, $contractAddress: String, $tokenId: String, $elrondId: String) {
|
|
4139
4193
|
fetchNFTData(
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
type Task {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
2
|
+
taskId: ID
|
|
3
|
+
userId: ID
|
|
4
|
+
taskType: String
|
|
5
|
+
name: String
|
|
6
|
+
description: String
|
|
7
|
+
repeatable: Boolean
|
|
8
|
+
maxRepeats: Int
|
|
9
|
+
minPointsAward: Int
|
|
10
|
+
maxPointsAward: Int
|
|
11
|
+
repeatsCompleted: Int
|
|
12
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type UserInviteCode {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
2
|
+
inviteCode: String!
|
|
3
|
+
inviteeId: ID
|
|
4
|
+
isUsed: Boolean!
|
|
5
|
+
usedAt: Long
|
|
6
|
+
}
|